Idk how to load swf into another movie but once im done with it make it disappear. for example i loaded a swf into my master(index) and in that swf i put butons to with the action script to load a 2nd swf. how do i take off the swf when the 1st movie is taken away?
MASTER Actionscript
[COLOR=Blue]stop();
//-------------------------------------------\
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
}
myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}
//-------------------------------------------\
// trigger the MCL to load these assets:
myMCL.loadClip(“header.swf”, 5);
myMCL.loadClip(“home.swf”, 6)[/COLOR];
2nd swf that loads the movie that wont leave
[COLOR=“Blue”]ninBtn.onRelease = function () {
reActivateBtns();
this.enabled = false;
_level0.myMCL.loadClip(“niños.swf”, 7);
}[/COLOR]