Tagged: loop

Flash AS3 onEnterFrame event changed 2

Flash AS3 onEnterFrame event changed

Actionscript 3.0 onEnterFrame has changed a bit from the old classic AS2 onEnterFrame event function. I’ll illustrart the old and new way of preforming animations using the Enter Frame event.

Loop through child movie clips in AS3 and AS2 3

Loop through child movie clips in AS3 and AS2

To iterate through all children in a display object container… ActionScript 3 Code Sample: for(var i=0; i<mcContainer.numChildren-1; i++) { var mc:MovieClip = MovieClip(mcContainer.getChildAt(i)); mc.doStuff(); }for(var i=0; i<mcContainer.numChildren-1; i++) { var mc:MovieClip = MovieClip(mcContainer.getChildAt(i)); mc.doStuff();...