I need to figure out what instance of a LoaderInfo object called an IOError. Basically, I’m attaching like 100 thumbnail frames and if there is an error on one of them I pop in a default image.
The issue I’m having is that although I can detect an error, I’m not sure which of the 100 thumbnails threw it, does that make sense?
for (var z = 0; z < xL; z++)
{
var item:ItemTemplate = new ItemTemplate();
holderMC.addChild(item);
itemA.push(item);
item.y = objHeight;
var imgPath:String = new String("thumbnails/" + imgList[z] + ".jpg");
imgRequest = new URLRequest(imgPath);
imgLoader = new Loader();
configureListeners(imgLoader.contentLoaderInfo)
item.addChild(imgLoader);
imgLoader.load(imgRequest);
}
and then the error handling:
function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
function ioErrorHandler(event:IOErrorEvent):void
{
trace (event.target)
}
I need to trace the item that contains the imgLoader that threw the error, so I can turn the invisible hidden thumbnail on, if that made any sense at all… :cross-eye