/ Published in: ActionScript 3
Removes all children from the specified scopes display list. Straight out of Colin Moock's Essential ActionScript 3 book.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var _scope:DisplayObjectContainer = this; // set the desired scope here, or below if you want to keep it to one line while(_scope.numChildren > 0) _scope.removeChildAt(_scope.numChildren-1);