crittle1
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:
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);
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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?
ASKER
bump....
Anyone know if I can do this or not?
Anyone know if I can do this or not?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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!
ASKER
I know there are better features in CS4 and I want to be sure before I jump in.