Hi, I am loading in images in a loop as follows:

imgs[j] = new Image();
pict = new Loader();
url = "http://mydomain.com/images/test"; + j + ".jpg";
preq = new URLRequest(url);     
pict.load(preq);
imgs[j].addChild(pict);

and if I close my browser or navigate away during a load, I get a
popup from Flash saying "Error #2044: Unhandled IOErrorEvent:.
text=Error #2036: Load Never Completed."

Now, I read another thread and tried using try-catch and also:
pict.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
but these do not help. Also, I think the IOErrorEvent is for
URLLoader, NOT just the standard Loader. The problem there is that
URLLoader doesn't return something I can use as an image and causes a
fault when adding it as a child to an "Image".

So, can someone tell me how to use URLLoader to load an image so that
I can properly use IOErrorEvent?

Thanks!!!


Reply via email to