[Tweener] Tweens group current state

Zeh Fernando zeh at zehfernando.com
Fri Aug 1 06:30:40 PDT 2008


> I create my tweens in that for loop, and when the last literation is 
> running, 
> i add onComplete to the last child in the holder's displaylist [and it's 
> tweening will finish last in the "sequence"]
> How you guys solve such problem? My as3 knowledge is not that huge, 
> maybe im missing something really simple in the first place
> I wanted to ask you, tweener pro's how you manage those tasks :)

Personally, I usually do the same thing (although the comparison has to 
be made to numChildren-1, not numChildren), or simply create one last 
Tween with no tweening (just a delay and the onComplete function) after 
the loop is ran. I always create these empty tweens when I need to delay 
functions. There are better native ways to do so, but I do it with 
Tweener just because it's simple and keeps the syntax consistent with 
the rest of the animation process I guess.

Zeh


More information about the Tweener mailing list