This content has been marked as final. Show 5 replies
Hi - I came up with something similar a few years ago, if you download the zip from the link below it contains the fla which you can alter to your needs.
Some changes to the AS to include a _y value will be needed but it will point you in the right direction. Hope it helps!
I'm also trying to find a way to link movement to a mouse but not quite what you're doing. I'd like to click and drag an object over the top of another object. When I release the mouse button, it triggers an event.
Hi bigmac - try this tutorial:
It's got the basics for drag and drop, you may need to add an event when the mouse is released or when the object is dropped within a hit area.
Hope it helps.
All you need to do is stick a mouse listener on the root timeline and move
the image based on the mouse's offset from the stage center. If you look up
the Mouse class in Help, and see the addListener method, it shows you in the
example how to react whenever the mouse moves.
Adobe Community Expert