I am probably the only person that does this, I use a few different
kind of tween engines in flex.  I got into TweenLite, and for most of
my needs, I find TweenLite works great with Flex and it's simple to
use.  I know some people like to code tweening in MXML, which
personally I think is obtuse and, difficult to use than actionscript,
especially for really complicated tween needs.

In future releases, has adobe thought about making other tween engines
more adaptable to Flex, I've written wrappers to dispatch Flex
tweenEvents for tweenLite to Flex, and it works like a charm.

Just a suggestion, here is why I use tweenLite for most of my tweening
needs in flex

http://blog.greensock.com/tweening-speed-test/

Anybody else, doing non-conventional stuff like me?  I know that the
adobe tween stuff is being rewritten.  I think tweenlite is great
because it allows you to tween any property of any object.  So, for
instance if it's a style, here's an example of what I do with
tweenLite, so I can tween a style of an object, just create a setter
for the action.

public function set backgroundAlpha(n:Number):void
{
   this.setStyle("backgroundAlpha",n);
}

var tween:TweenLite = new
TeeenLite(this,.5,{alpha:1,onComplete:onCompleteTween};

(the constructor takes the object you are performing a tween on, the
duration of the tween, and an object with name/values of the property
and the conclusion value of the tween.

This works like a charm for me.

Food for thought,
Patrick


------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to