Wednesday, April 16, 2008
Wednesday, April 16, 2008    

I am personally a very big fan of TweenLite and TweenFilterLite for my AS3 projects that require an animation engine. They are easy to use, lightweight, and do what I generally need (make sure to uncomment the last two public methods in TweenLite).

Now, TweenMax has been released. Here is a detail statement from the site itself:

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. 

Added features:
Bezier tweening
  X
Bezier "through" tweening (define points to hit instead of just control points)
  X
Pause/Resume capability
  X
Easier sequencing
  X
Tween multiple objects with a single call, including a special "delayIncrement" property that staggers the starting time of each tween
  X
isTweening() function for easily determining if an object is currently tweening
  X
Jump to any point in the tween using the "progress" property
  X
Tween any number of hex color properties
  X
Get an array of all TweenMax (and TweenLite and TweenFilterLite) instances that are currently affecting a particular target object.


0 Comments:

Post comment

Links to this post:


Create a Link

gotoAndStop( topOfPage );