[Tweener] Noob Question: Animate Instances Only?

Dave Mennenoh dave at blurredistinction.com
Sun Aug 10 11:11:12 PDT 2008


>>I know the description of Tweener says that it animates  instances but is 
>>there a way to do this dynamically so I don't have to  type in the 
>>instance names all the time?

You can use the normal Flash method of using array notation to dynamically 
reference instances:

for(var i = 0; i < 10; i++){
    var inst = this["red" + i];
    Tweener.addTween(inst, ...);
}

this would use instances red0 - red9. Is that what you're looking for?




Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 



More information about the Tweener mailing list