Hi,
I am loading 5 images using “for loop” and I have created the listener and if the images completes the loading, the function is called. Now, I need is the name of the “image” which is loaded on each five images gets completed.
for (var a:Number=0; a<5; 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.load(new URLRequest(myarray[a]));
tmc.addChild(loader);
}
in the output it is throwing as “[object LoaderInfo]”.
Now i need is the name of the “Image”, inside the thumbnail_load function, that means, which image loading is completed.
can anyone help me
Thanks in advance.