rendered paste bodystop();
ImageCount = 6; // loading images i0.jpg, i1.jpg ... i5.jpg
var mclListener:Object = new Object();
// event fires every time the load status is updated
mclListener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
trace(target + ".onLoadProgress loaded " + bytesLoaded + " bytes of " + bytesTotal);
var percent:Number = Math.ceil((bytesLoaded*100)/bytesTotal);
// update text or animation progress indicator here
};
// fires when file has finished completely loading
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace("Finished Loading?")
};
var image_mcl:MovieClipLoader = new MovieClipLoader();
for (i=0; i<ImageCount; i++){
this.createEmptyMovieClip("imgclip_mc"+i, this.getNextHighestDepth());
image_mcl.addListener(mclListener);
image_mcl.loadClip("i"+i+".jpg", this["imgclip_mc"+i]);
this["imgclip_mc"+i]._x = 0;
this["imgclip_mc"+i]._y = 0;
this["imgclip_mc"+i]._visible = false;
var obj = this["imgclip_mc"+i];
for(var index:String in obj) {
trace(index+" = "+obj[index]);
}
}