Link to home
Start Free TrialLog in
Avatar of crittle1
crittle1Flag for United States of America

asked on

Actionscript AS3 tween movieclip on guide

I'm writing in as3.
I want to tween a movieclip along a guide. I have the guide drawn out and made into a guide layer. I have the movieclip linked to the layer beneath it. I want to tween the movieclip via actionscript so I can ease it, and also because it's smoother.

How can I make the movieclip move along the guides? I've snapped it to the guide, but it just moves in a straight line.

Here is the code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
 
var ball1:Tween = new Tween(tape_mc, "x", Strong.easeOut, 0, 1000, 3, true);

Open in new window

SOLUTION
Avatar of scooby_56
scooby_56
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of crittle1

ASKER

would this tutorial also apply to CS3?
I know there are better features in CS4 and I want to be sure before I jump in.
Thanks for the link, I looked at the page and yes I can apply some of it to CS3.
Unfortunately, they use keyframes to make the motion tween and I don't want to do this because the animation is choppy.
I want to create the motion tween via actionscript, then attach it to a guide on the stage but I don't know how to connect the two.

Any other ideas?
bump....


Anyone know if I can do this or not?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the responses. I went ahead and tweened via a motion guide and the tween class. Took longer, but I ended up with the results I wanted. I will check into the greensocks' tweenLite. Thanks!