Combined Code
frame 1 {
stop();
}
button 3 {
on (release) {
gotoAndPlay(5);
}
}
frame 4 {
Mouse.hide();
eval(mouse) = _xmouse;
eval((Object(_root)).mc)._x = _xmouse;
eval((Object(_root)).mc)._y = _ymouse;
}
movieClip 5 {
}
instance mc of movieClip 5 {
onClipEvent (load) {
moveSpeed = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._x += moveSpeed;
} else {
if (Key.isDown(37)) {
this._x -= moveSpeed;
}
}
if (Key.isDown(40)) {
this._y += moveSpeed;
} else {
if (Key.isDown(38)) {
this._y -= moveSpeed;
}
}
if (_root.circle.hitTest(this._x, this._y, true)) {
this._alpha = 20;
}
}
onClipEvent (load) {
moveSpeed = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._x += moveSpeed;
} else {
if (Key.isDown(37)) {
this._x -= moveSpeed;
}
}
if (Key.isDown(40)) {
this._y += moveSpeed;
} else {
if (Key.isDown(38)) {
this._y -= moveSpeed;
}
}
if (_root.obstacle.hitTest(this._x, this._y, true)) {
this._alpha = 20;
}
}
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 10 {
}
button 14 {
on (release) {
gotoAndPlay(5);
}
}
frame 7 {
gotoAndPlay(4);
}