# MovieClipLoader();

**URL:** <https://forum.kirupa.com/t/moviecliploader/155273>\
**Category:** flash\
**Created:** [July 15, 2005, 10:35pm UTC](https://forum.kirupa.com/t/moviecliploader/155273 "2005-07-15T22:35:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noleftturn003](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@noleftturn003](https://forum.kirupa.com/u/noleftturn003)\
**Post date:** [July 15, 2005, 10:35pm UTC](https://forum.kirupa.com/t/moviecliploader/155273/1 "2005-07-15T22:35:18Z")

</div>

Hi all:

Thanks for this great tutorial on MovieClipLoader();  
[http://www.kirupa.com/developer/actionscript/moviecliploader.htm](http://www.kirupa.com/developer/actionscript/moviecliploader.htm)

Everything works great and I changed the script around so it loads one external file as soon as the movie starts. Now it looks like this:

\*\*bar.\_visible = false;  
border.\_visible = false;  
this.createEmptyMovieClip(“container”, “100”);  
my\_mc = new MovieClipLoader();  
preload = new Object();  
my\_mc.addListener(preload);  
preload.onLoadStart = function(targetMC) {

trace("started loading "+targetMC);  
container.\_visible = false;  
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.\_visible = true;  
border.\_visible = false;  
bar.\_visible = false;  
pText.\_visible = false;  
trace(targetMC+" finished");

};

my\_mc.loadClip(“0053-Frames23.swf”, “container”);\*\*

How do I tell the script so when it loads this first movie, it starts loading the second one and so forth.

I was thinking of re-creating the script on every 5th frame and telling the script to go to that frame where the next actionscript is nested — but it didn’t work like that.

If you could help me out that would be great. I am doing a website and I am a week past due.

Thanks tons.
