Flex tween fonts
I've been told several times, or read in various places (can't remember where exactly now), not to use the Tween classes from the Flex SDK, but instead use other animation libraries like Tweener, TweenMax, GTween, ...
What's wrong with using Flex tweens? Is this a performance issue?
If I want to do state transitions, should I create custom transitions with third party libraries?
a source to share
Depending on which blogs you read, they might make a difference to flash / actionscript. In this case, he might recommend something like tweenlight or similar.
If you are using flex and its libraries, then there is no reason not to use flex effects (which are based on the flexible version of Tween). Note that Flex Tween is different from Flash Tween. But you really don't have to worry about it if you want to move something, just use the move effect, if you want to fade something, just use the Fade effect.
Some people may recommend a different tween package because it reduces the overall size of the SWF, but depends on how you create the final SWF. You are deploying a SWF with a flex framework as RSL (recommended though Google can't search your SWF, but if you do, check this link ) then it would be better to use Flex effects. If you are not using a framework like RSL then it would be an example of testing your application to see which version came out as a larger SWF file.
I've never had any performance issues using flex effects. Some of the third party tweening packages do effects that are not part of the flex library, but other than that I can't think of any good reason not to use flex / tweens effects.
a source to share
For your reference, here are some useful things:
- Tween-Script performance comparison - Browser crash when using standard Flex 3 Tween classes.
- Mr. List of ActionScript Tween Doob Libraries .
If your goal is to make state transitions in skins, it is easiest to use the Flex Effect classes. Flex 4 is coming soon and has completely rewritten its effects library much faster than Flex 2/3. I ran a quick test with tweening 100 mx.controls.Button instances of 500ms each, one by one, using TweenMax and Flex Effects, and TweenMax was about twice as fast (which meant I could see 15 objects moving at the same time , not 7 or 8). So if you can, I would do all the animations with TweenMax. Definitely the most versatile / popular / modular / optimized. But for skins and because Flex Effects are ready to be skinned in MXML, use them.
Also check out the Tink Efflex Flex Effect Library for some nice Container / Viewstack effects (some in 3D).
a source to share