|
Using "onPress" event haneler the movie clip
can detect when the left mouse button is pressed
while the cursor is over the movie clip. When this
is true the event handeler calls a function.
ball_mc.onPress
= function(){
In the function
the "startDrag()" command is used to make the
movie clip move to the current cursor position.
ball_mc.startDrag();
}
|