|
-
Banned
Hi,
I can think of a couple ways to do this. One would be place a MC inside the "picture" MC and set that MC's _x and _y position to the mouse position. To make it slide gradually, you will need to put in a delay of some kind...... something like "destination._x / 2" in an onEnterFrame. This will divide the distance traveled by 2 in every frame simulating a slow down effect as it reaches the final destination.
The other way you might want to explore would be with the locatToGlobal command to determine the x and y position of the picture(local) and the _x and _y position of the mouse(global). I dont have any good code examples handy but there should be some tutorials or demo's around about it.
HTH
NTD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|