Add this script at the end of the current script: var SPEED:Number = 5; function moveLeft():Void { target._x -= SPEED; } function moveRight():Void { target._x += SPEED; } function moveUp():Void { target._y -= SPEED; } function moveDown():Void { target._y += SPEED; } In the first line we are creating a constant variable that represents the number of pixels we will move the target clip each time the function is called. Each function has specific logic in place to move the target clip. The moveLeft() function moves the target to the left, moveRight() moves it to the right, moveUp() moves it up, and moveDown() moves it down. The _x and _y properties of the movie clip class can be modified to move the clip along the x axis and the y axis. This is pretty straight forward logic. |