# Problem with MovieClipLoader

**URL:** <https://forum.kirupa.com/t/problem-with-moviecliploader/228172>\
**Category:** Uncategorized\
**Created:** [June 5, 2007, 8:56pm UTC](https://forum.kirupa.com/t/problem-with-moviecliploader/228172 "2007-06-05T20:56:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nwglow](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@nwglow](https://forum.kirupa.com/u/nwglow)\
**Post date:** [June 5, 2007, 8:56pm UTC](https://forum.kirupa.com/t/problem-with-moviecliploader/228172/1 "2007-06-05T20:56:38Z")

</div>

When I click on a movieClip in a horizontal navigation menu, it uploads a page on top of another instead REMOVE the previous page and upload the new page. What code should I use?

For function clearPage(), I have tried the following and they don’t work  
menuMC.unloadClip(“mcHolder”); or  
this.removeMovieClip(“mcHolder”); or  
removeMovieClip(“mcHolder”); or

//------------------\<navigation menu\>-------------------\  
var menuMC:MovieClipLoader = new MovieClipLoader();

function clearPage(){  
menuMC.unloadClip(“mcHolder”);  
}

homeMC.onRelease = function() {  
clearPage();  
menuMC.loadClip(“home.swf”, mcHolder);  
}

designMC.onRelease = function() {  
clearPage();  
menuMC.loadClip(“design.swf”, mcHolder);  
}
