[Tweener] Tweens group current state

Patrick J. Jankun p at jankun.org
Fri Aug 1 06:16:52 PDT 2008


Hi once again,

I begin to luv tweener :-) hence i got some questions, as im not that  
super as3 pro
that i want to be [in the near future i hope], what would be the best  
method for watching
an group of tweens?

What i do now is kind [from my point of view] inefficient, and  
probably dumb:

for (var j : int = 0;j < this.container.numChildren;j++) {
	trace(this.container.getChildAt(i));
	if(this.container.numChildren==i) {
		Tweener.addTween(this.container.getChildAt(i), {useFrames:true,  
x:startX, alpha:0, time:20, delay:3 * i, onComplete:fadeDone});
	} else if (this.container.numChildren<i) {
		Tweener.addTween(this.container.getChildAt(i), {useFrames:true,  
x:startX, alpha:0, time:20, delay:3 * i});
	}
}	

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 :)

thanks in advance!

Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080801/1b39e964/attachment.htm>


More information about the Tweener mailing list