Tagged: as3

Flash AS3 Set Mask Dynamically 2

Flash AS3 Set Mask Dynamically

You can set a mask in AS3 using the following actionscript. function init(){ container_mc.mask = mask_mc; } init();function init(){ container_mc.mask = mask_mc; } init(); If you have an alpha gradient mask, you will have...

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();...