最近总有人问起这个,有很多方法都可以做到,其实非常简单:

while(displayObject.numChildren) displayObject.removeChildAt(0);

一句话就可以了。

Still looking for something?

: http://as3blog.com/as3/removing-all-the-children-using-as3/

Post a comment now » Sorry, the comments are closed.

No comments yet.

Sorry, the comment form is closed at this time.