/ Published in: ActionScript 3
The cleanest and most compact way I\'ve seen to empty out a display object.
Expand |
Embed | Plain Text
private function removeAllChildren(target:DisplayObjectContainer):void { while(target.numChildren > 0) { target.removeChildAt(0); } }
You need to login to post a comment.
