# Remove MovieClipLoader

**URL:** <https://forum.kirupa.com/t/remove-moviecliploader/233887>\
**Category:** Uncategorized\
**Created:** [July 27, 2007, 6:47pm UTC](https://forum.kirupa.com/t/remove-moviecliploader/233887 "2007-07-27T18:47:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slauz](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@slauz](https://forum.kirupa.com/u/slauz)\
**Post date:** [July 27, 2007, 6:47pm UTC](https://forum.kirupa.com/t/remove-moviecliploader/233887/1 "2007-07-27T18:47:21Z")

</div>

Hello I’m new here and it’s like 3hrs that i search for an answer for my problem , so I decide to put a message on this forum and I hope that someone can help me!!

I use the tutorial : «Reusable Preloader Using MovieClipLoader» for loading my image on my portfolio website. I have 4 scenes (intro, design, illustration and CV) , in the design scene i begin a short anim with text and image and i invite people to click for watching my work. It’s where i use the tutorial for showing my work. I put the empty movie clip container to show my work. I have 15 buttons who all load in the same container. In this scene, i have a button for go back to intro or go to illustration, CV. When i click on it, i have a short animation and i change of scene.

My problem is when a click after viewing and loading my work, it’s stay in place. The container continue to show me the last picture that i load. It’s not cool!!

How can i remove the container, to remove it from the scene after view my picture???  
Do i have to put another code after this below?? Or on another key frame??

Thanks for your help , i’m not a pro and i really need help!!

This the code that i use (from the tutorial) :  
MovieClip.prototype.fadeIn = function() {  
this.onEnterFrame = function() {  
if (this.\_alpha\<100) {  
this.\_alpha += 10;  
} else {  
delete this.onEnterFrame;  
}  
};  
};  
bar.\_visible = false;  
border.\_visible = false;  
var empty = this.createEmptyMovieClip(“container”, “600”);  
empty.\_x = 100;  
empty.\_y = 40;  
my\_mc = new MovieClipLoader();  
preload = new Object();  
my\_mc.addListener(preload);  
preload.onLoadStart = function(targetMC) {  
trace("started loading “+targetMC);  
container.\_alpha = 0;  
bar.\_visible = true;  
border.\_visible = true;  
pText.\_visible = true;  
};  
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {  
bar.\_width = (lBytes/tBytes)_100;  
pText.text = "% "+Math.round((lBytes/tBytes)100);  
};  
preload.onLoadComplete = function(targetMC) {  
container.fadeIn();  
border.\_visible = false;  
bar.\_visible = false;  
dText.visible = false;  
trace(targetMC+" finished");  
};  
//default image  
my\_mc.loadClip("Aff_\*\*.jpg”, “container”);  
//buttons  
button1.onPress = function() {  
my\_mc.loadClip(“Jackalope.swf”, “container”);  
};  
button2.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button3.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button4.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button5.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button6.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button7.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button8.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button9.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button10.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button11.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button12.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button13.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button14.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};  
button15.onPress = function() {  
my\_mc.loadClip(“Aff\_Jackalope.jpg”, “container”);  
};
