AS Movement along a path
- Started
- Last post
- 4 Responses
- joyride0
I was looking into this a couple years ago. I could not find a way via AS to attach a movieClip to a specific path based on selection. Things may have changed since mx. It seems like something that should be possible.
- Anarchitect0
use the new AS2.0 tween/transition class.
http://www.macromedia.com/devnet…create a listener to your tween class object, add an onMotionFinished event and trigger a sequential function:
if the tween has finished the first motion, [x = targetx && y = targety], initate the second motion.
- doddster0
thanks for your responses - I'll let you know how it goes...
- joyride0
Anarchitect: That could work. you're going to need to get the target x, y; current x, y; do the math, then send it down the _x then onMotionFinished, send it to _y... that make sense?
Sometimes I think a dynamic path would be so easy. Have multiple path names. then if(x) attach the (mc) to pathName