From Wikicliki
Jump to: navigation, search

Using a well-documented tween class library like Tweener is thus quite useful at times. I began by using Tweener in AS2, which originally started as mctween so this just happens to be what I've always used. You may have looked at the code of other people's projects and seen either the caurina (tweener) or greensock (tweenlite/tweenmax) folders inside; its used in many flash things!

For AS2 and AS3. From their website: "TweenLite is an extremely fast, lightweight, and flexible tweening engine that serves as the foundation of the GreenSock Tweening Platform."
For AS2 and AS3. From their website: "TweenMax extends the extremely lightweight, fast TweenLite engine, adding many useful features like timeScale, AS3 event dispatching, updateTo(), yoyo, repeat, repeatDelay, rounding, and more. It also activates many extra plugins by default, making it extremely full-featured."
import com.greensock.plugins.*;
TweenPlugin.activate([FrameLabelPlugin, ColorTransformPlugin]);, 1, {colorTransform:{tint:0xff0000, tintAmount:0.5}});
import com.greensock.plugins.*;
TweenPlugin.activate([TintPlugin, ColorTransformPlugin]);, 0.3, {colorTransform:{tint:0xCDC8C2, tintAmount:1}});, 0.3, {colorTransform:{tint:0xCDC8C2, tintAmount:1}});<pre>