[Tweener] reset and loop a tween

Jarryd (hotmail) yaheed at hotmail.com
Wed May 28 00:27:02 PDT 2008


Is there a way to easily loop a tween? For example I have text that I want a 'shine' to continuously run across the text at set intervals.

Code (AS3):

  Tweener.addTween(ref, {x:ref.x + 450, time:1, delay:5, transition:"easeinoutexpo"});

The delay is there for the tweens in front of it to finish. So now all I need to do is reset it back to 'ref.x' (let's say 0), and then repeat it at say every 10 seconds.

I know this is easy to do via the timeline, but I'm curious as to if this is possible with Tweener.

Thanks for any help =).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080528/0d2f86b3/attachment.htm>


More information about the Tweener mailing list