actionscript 3 - As3 - Target all MovieClips? -


i wondering if there way target movieclips, can example add effects of them.. would

for each(mc:movieclip in stage){ //do sth } 

work?

i wish simple suggestion, make more sense. unfortunately, need more following:

for(var i:int = 0; < numchildren; i++) {     var m:displayobject = getchildat(i);     if(m movieclip)     {         // stuff     } } 

this loop through children check if movieclip, can stuff.

alternately track every movieclip it's added stage in array, reference that. possibly overkill. depends on use case.


Comments