Hi,
I have imported 5 images to my mc using “for loop” and have add an event listener for loading complete. I can able to know, in which movie clip it is complete. the code is below:
for (var a:Number=0; a<arr.length; a++) {
var tmc:MovieClip=new MovieClip();
thumbMc.addChild(tmc);
tmc.name="thumbmc"+a;
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbnail_load);
function thumbnail_load(e:Event):void {
trace(e.target.loader.parent.name)
}
loader.load(new URLRequest(arr[a][1]));
tmc.addChild(loader);
}
Now I need to know is, the name of the image which is loaded for each and every loading.
can any one help me out of this?