I’m loading an external swf that is a button to close other loaded movies. I want it to stay above all the other movies at all times so that the user has a way to close them and go back to the main stage. There are buttons on the stage that load external movies and the close button movie loads automatically. All of the movies load in fine but once I load in a movie from a dynamically created movieclip button on the stage, it covers up the close button movie.
The following code is where I dynamically load movies from the dynamic movieclip buttons and then after that is where I load in the external swf for the close button.
//Dynamically assign external movies to load from
//the dynamic buttons
for (j=1; j<holderArray.length; j++) {
this["btn"+j].jValue = j;
//this["btn"+j].useHandCursor = false;
this["btn"+j].onRelease = function() {
movie = topics[holderArray[this.jValue]]+".swf";
loadMovieNum(movie, 100);
_root.movieloader.swapDepths(16000);
};//end of onRelease
}//end of j for loop
}//end of i for loop
//Start of new movieclip
var mc:MovieClip = _root.createEmptyMovieClip(“movieloader”, _root._level300);
mc._x = 665;
mc._y = 524;
var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
mcl.addListener(listener);
mcl.loadClip(“Close Button.swf”,mc);
listener.onLoadInit = function(theMC:MovieClip) {
theMC.onRelease = function() {
if (_root._level100 == Number(_root._level100)) {
unloadMovieNum(_root._level100);
} else {
_root._level100.unloadMovie();
}
};
};//end of new movieclip
Thank you in advance for any help!