/ Published in: ActionScript 3

The cleanest and most compact way I\'ve seen to empty out a display object.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private function removeAllChildren(target:DisplayObjectContainer):void { while(target.numChildren > 0) { target.removeChildAt(0); } }
Comments
