# Unloading a movie / removeChild

**URL:** <https://forum.kirupa.com/t/unloading-a-movie-removechild/249651>\
**Category:** flash\
**Created:** [January 21, 2008, 12:23pm UTC](https://forum.kirupa.com/t/unloading-a-movie-removechild/249651 "2008-01-21T12:23:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grayhammy](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@Grayhammy](https://forum.kirupa.com/u/Grayhammy)\
**Post date:** [January 21, 2008, 12:23pm UTC](https://forum.kirupa.com/t/unloading-a-movie-removechild/249651/1 "2008-01-21T12:23:59Z")

</div>

I’m having some problems with loading and unloading external swf’s into a movieclip. I can load them in fine using the same variable and function, but when I load in the next one, instead of replacing the current content, it just overlays the new swf.

I have tried using removeChild, but am having problems.

Files can be found here:

[[COLOR=#333333]http://dev.nbat.co.uk/Klober/CPD/parent.fla[/COLOR]](http://dev.nbat.co.uk/Klober/CPD/parent.fla)  
[[COLOR=#333333]http://dev.nbat.co.uk/Klober/CPD/index\_1.fla[/COLOR]](http://dev.nbat.co.uk/Klober/CPD/index_1.fla)  
[[COLOR=#333333]http://dev.nbat.co.uk/Klober/CPD/index\_2.fla[/COLOR]](http://dev.nbat.co.uk/Klober/CPD/index_2.fla)

Any assistance would be most appreciated! I’m pretty sure it is very simple…
