/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function removeChildrenFrom(mc:MovieClip):void { if(mc.numChildren!=0) { var i:int = mc.numChildren; while(i --) { mc.removeChildAt(i); } } }