[Tweener] Noob Question: Animate Instances Only?
Michael Narciso
volcomjerk at gmail.com
Sun Aug 10 11:21:37 PDT 2008
On Aug 10, 2008, at 11:11 AM, Dave Mennenoh wrote:
>>> 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?
That is something I am looking for. Sounds like I'll be doing that
method, I just wasn't sure if there might be an easier way.
More information about the Tweener
mailing list