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);
}