, TweenLite (http://blog.greensock.com/tweenliteas3/), 3 , TweenMax, , , 11kb. . -, "" . , AS3 1500 TweenLite, 20 , , Tweener, 9 fps http://blog.greensock.com/tweening-speed-test/. , .
//Make sure you have a class path pointed at a folder that contains the following.
import gs.TweenLite;
import gs.easing.*;
var ball_mc:MovieClip = new MovieClip();
var g:Graphics = ball_mc.graphics;
g.beginFill(0xFF0000,1);
g.drawCircle(0,0,10);
g.endFill();
//Now we animate ball_mc
//Example: TweenLite.to(displayObjectName, totalTweeningTime, {someProperty:someValue,anotherProperty:anotherValue,onComplete:aFunctionCalledWhenComplete});
TweenLite.to(ball_mc, 1,{x:400,alpha:0.5});
, ball_mc 400 x, Tween 0,5.
1 , . , , , - Expo.easeOut(Strong easeOut). , , .
TweenLite.to(ball_mc, 1,{x:400,alpha:0.5,ease:Bounce.easeOut});
TweenLite.to(ball_mc, 1,{x:400,alpha:0.5,ease:Elastic.easeOut});
gs.easing. * import, , , Penner Easing Equations, TweenLite.
, (Open Loops) , Timer, , .
It is also important to note that TweenLite and TweenMax offer much more than I showed here, and it is safe to say that I use one of two classes in each individual project. Animations are common, they have functionality attached to them (onComplete: functionCall), and again they are optimal and resource-friendly.