# Problems using the movie clip loader

**URL:** <https://forum.kirupa.com/t/problems-using-the-movie-clip-loader/190618>\
**Category:** Uncategorized\
**Created:** [June 13, 2006, 3:19pm UTC](https://forum.kirupa.com/t/problems-using-the-movie-clip-loader/190618 "2006-06-13T15:19:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sargentsurg](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@sargentsurg](https://forum.kirupa.com/u/sargentsurg)\
**Post date:** [June 13, 2006, 3:19pm UTC](https://forum.kirupa.com/t/problems-using-the-movie-clip-loader/190618/1 "2006-06-13T15:19:58Z")

</div>

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]
