I have a simple animation in which a character moves from left to right and stops. I would like to make it ease in manually, just using calculations, opposed to using the Tween method.In Actionscript 3.0 how would i make a simple ease in without using the Tween method?
import fl.transitions.Tween;
import fl.transitions.easing.*;
var moveMe:MovieClip; %26lt;-- the object you want to tween
var aTween:Tween;
function tweenMe(e:event) {
aTween = new Tween(moveMe, ';x';, Regular.easeIn, 800, 200, 2, true);
}
try the Adobe Documentation for more help about tweens and programming them.
tweens work like this... myTween = new Tween(instance name on the stage, 鈥渢ext string of the property to animate鈥?easing class,starting value,ending value,time in seconds,boolean to say seconds rather than milliseconds);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment