# removeChildAt

**URL:** <https://forum.kirupa.com/t/removechildat/276718>\
**Category:** flash\
**Created:** [December 2, 2008, 11:10pm UTC](https://forum.kirupa.com/t/removechildat/276718 "2008-12-02T23:10:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemieux34](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Post date:** [December 2, 2008, 11:10pm UTC](https://forum.kirupa.com/t/removechildat/276718/1 "2008-12-02T23:10:29Z")

</div>

I have a movie that loads other movies into a placeholder movieclip. I noticed that the movies continue to build over each other instead of replacing the previous one. I wanted to do something with removeChildAt() to prevent this. I tried:

if (holder.content != null) {  
holder.removeChildAt(0);  
}

but that didn’t work. How can I remove the previous movie?
