Thursday, April 17, 2008

TweenMax

Here is the new set of Tween classes for Action Script 2 & 3, called TweenMax.

TweenMax builds on top of the TweenLite core class and its big brother, TweenFilterLite, to round out the tweening family with popular (though not essential) features like bezier tweening, pause/resume capabilities, easier sequencing, hex color tweening, and more. TweenMax uses the same easy-to-learn syntax as its siblings. In fact, since it extends them, TweenMax can do anything TweenLite and/or TweenFilterLite can do, plus more. So why build 3 classes instead of one? Good question. The goal was to maximize efficiency and minimize file size. Frankly, TweenLite is probably all most developers will need for 90% of their projects, and it only takes up 3k. It's extremely efficient and compact considering its features. But if you need to tween filters or rich imaging effects like saturation, contrast, hue, colorization, etc., step up to TweenFilterLite at 6k (total). Still need more? No problem - snag TweenMax to add extra features jam-packed into 8k (total). See below for a chart describing the differences between the classes. TweenMax introduces an innovative feature called "bezierThrough" that allows you to define points through which you want the bezier curve to travel (instead of normal control points that simply attract the curve). Or use regular bezier curves - whichever you prefer.

To know more on this, reg. the performance, feature comparison and usage check here

No comments: