# How can i remove all children like in AS3?

**URL:** <https://forum.kirupa.com/t/how-can-i-remove-all-children-like-in-as3/253314>\
**Category:** flash\
**Created:** [February 29, 2008, 12:44am UTC](https://forum.kirupa.com/t/how-can-i-remove-all-children-like-in-as3/253314 "2008-02-29T00:44:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geodeath](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@geodeath](https://forum.kirupa.com/u/geodeath)\
**Post date:** [February 29, 2008, 12:44am UTC](https://forum.kirupa.com/t/how-can-i-remove-all-children-like-in-as3/253314/1 "2008-02-29T00:44:01Z")

</div>

Hi all,

is there a way to remove all children mcs from a movie clip in a way similar to

if (mc.numChildren) mc.removeChildAt(0);

(which is AS3 by the way) but for AS2?  
I need to “empty” a container movie clip from movie clips duplicated in it through attachMovie, so i can load other stuff AFTER its emptied 🙂  
Any suggestions?

George:pope:
