Difference between revisions of "Tweenlite"

From Wikicliki
Jump to: navigation, search
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
* [http://www.greensock.com/tweenlite/ TweenLite - "A Lightweight, FAST Tweening Engine"]
 
* [http://www.greensock.com/tweenlite/ TweenLite - "A Lightweight, FAST Tweening Engine"]
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: "TweenLite is an extremely fast, lightweight, and flexible tweening engine that serves as the foundation of the GreenSock Tweening Platform."  
  
 
* [http://www.greensock.com/tweenmax/ TweenMax – "TweenLite on Steroids"]
 
* [http://www.greensock.com/tweenmax/ TweenMax – "TweenLite on Steroids"]
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."  
+
: 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."  
  
 
<pre>import com.greensock.plugins.*;
 
<pre>import com.greensock.plugins.*;
 
TweenPlugin.activate([FrameLabelPlugin, ColorTransformPlugin]);
 
TweenPlugin.activate([FrameLabelPlugin, ColorTransformPlugin]);
TweenMax.to(mc, 1, {colorTransform:{tint:0xff0000, tintAmount:0.5}});<pre>
+
TweenMax.to(mc, 1, {colorTransform:{tint:0xff0000, tintAmount:0.5}});</pre>
  
 
<pre>import com.greensock.plugins.*;
 
<pre>import com.greensock.plugins.*;

Latest revision as of 13:18, 20 December 2012

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]);
TweenMax.to(mc, 1, {colorTransform:{tint:0xff0000, tintAmount:0.5}});
import com.greensock.plugins.*;
TweenPlugin.activate([TintPlugin, ColorTransformPlugin]);
TweenMax.to(back_btn, 0.3, {colorTransform:{tint:0xCDC8C2, tintAmount:1}});
TweenMax.to(next_btn, 0.3, {colorTransform:{tint:0xCDC8C2, tintAmount:1}});<pre>