onclipEvent (enterFrame) {
}
What were going to do is have the movie clip align its x and y coordinates (Cartesian, remember) with the X and Y coordinates of the mouse with each frame that Flash plays, so that no matter what position the mouse is in on each frame passedor each time the same frame cyclesthe custom cursor is there, tailing its exact position. Thats why we used the enterFrame event.
Next were going to add the code that tells it to align the movie clips x position with that of the mouse:
onclipEvent (enterFrame) {
_x = _xmouse;
}
_x is the Flash operator representing the x (horizontal) position of the object in question, measured in pixels from the left edge of the stage, while _xmouse is the Flash operator representing the x (horizontal) position of the mouse cursor in pixels from the left edge of the stage. We just told Flash to make the horizontal position of the cursor object the same as the horizontal position of the mouse.


