[Golist] Hydrotween Reverse Tween?

Gil Birman gil at allflashwebsite.com
Sat Sep 27 19:01:12 PDT 2008


I've noticed a nice little feature of TweenLite is TweenLite.from() which
essentially performs a reverse tween. If a DisplayObject's alpha is 100, and
you tween from 0, it starts the tween at 0 and goes to 100.

in HydroTween, I tried doing:

mc.alpha = 1;
HydroTween.go(mc, { alpha: 0 }, 0.5, 0, null, null, null, null, null, null,
{ cycles: 1, reverse: true} );

... but the mc seems to fade in, then out.

The following works as expected...

loader.alpha = 0;
HydroTween.go(loader, { alpha: 1 }, 1);

Am I using the repeater incorrectly? What is the expected result of the
first tween above?

Thanks
Gil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080927/8a603d02/attachment.html 


More information about the GoList mailing list