This content has been marked as final. Show 4 replies
U can Animate as u wish.
For this u have to Correct your code
u have to use the index value to get an element from an array. u missed to use index.
see the below code
There's nothing wrong with your code, you can certainly place references to
clips in an array and iterate through them. Are you sure your array contains
references to movie clips and not strings? That'd be my guess as to your
problem. If you trace(aMyArray ); within the for loop you should see
something like "_level0:mc1" and not simply "mc1".
Adobe Community Expert
...and make sure each nAlpha[ i ] is initialized. (and you will need to use a different nAlpha for each array element or the effect will probably not be what you want.)
Oh you're right, I was inputing strings instead of instance names.
Seems to be working now. Thanks!