Removes all children from the specified scopes display list. Straight out of Colin Moock's Essential ActionScript 3 book.
- 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);
CommentsSubscribe to comments
You need to login to post a comment.