Return to Snippet

Revision: 10410
at December 27, 2008 17:19 by jpdevries


Initial Code
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);

Initial URL

                                

Initial Description
Removes all children from the specified scopes display list. Straight out of Colin Moock's Essential ActionScript 3 book.

Initial Title
Clear DisplayList

Initial Tags
list

Initial Language
ActionScript 3