# MovieclipLoader, Several Thumbnails

**URL:** <https://forum.kirupa.com/t/moviecliploader-several-thumbnails/207621>\
**Category:** flash\
**Created:** [November 20, 2006, 3:07am UTC](https://forum.kirupa.com/t/moviecliploader-several-thumbnails/207621 "2006-11-20T03:07:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nineteen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nineteen/32/2679_2.png) [@Nineteen](https://forum.kirupa.com/u/Nineteen)\
**Post date:** [November 20, 2006, 3:07am UTC](https://forum.kirupa.com/t/moviecliploader-several-thumbnails/207621/1 "2006-11-20T03:07:16Z")

</div>

```auto

// Create listener object:
var mclListener:Object = new Object();
mclListener.onLoadError = function(target_mc:MovieClip, errorCode:String, status:Number) {
    trace("Error loading image: " + errorCode + " [" + status + "]");
};
mclListener.onLoadStart = function(target_mc:MovieClip):Void {
    trace("onLoadStart: " + target_mc);
};
mclListener.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void {
    var numPercentLoaded:Number = numBytesLoaded / numBytesTotal * 100;
    trace("onLoadProgress: " + target_mc + " is " + numPercentLoaded + "% loaded");
};
mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void {
    trace("onLoadComplete: " + target_mc);
};
my_mcl.addListener(mclListener);

```

Using this code, how can I setup the Listener so I can get it to preload 8 different image files? Whilst waiting on the same Frame.  
Eg:  
I would like to achieve this, but for it to wait for each one to be loaded completely first. I dun mind if its a loop or whatever you think is best, as long as it stays on the same Frame, loads it all - Then moves on.

```auto

my_mcl.loadClip("image1.jpg", img_mc);
my_mcl.loadClip("image2.jpg", img_mc);
my_mcl.loadClip("image3.jpg", img_mc);
my_mcl.loadClip("image4.jpg", img_mc);
my_mcl.loadClip("image5.jpg", img_mc);
my_mcl.loadClip("image6.jpg", img_mc);
my_mcl.loadClip("image7.jpg", img_mc);
my_mcl.loadClip("image8.jpg", img_mc);

```
