Hello,
I’m using a loader on a portfolio website I’m making. I use it to load Images and put them in the displaylist etc.
the loader works perfectly, but I want to catch the error for if the URL isn’t correct.
I’ve got this:
try{
_loader.load(_location);
} catch(error:IOErrorEvent) {
trace("IOErrorEvent catch: " + error);
} catch(error:TypeError) {
trace("TypeError catch: " + error);
} catch(error:Error) {
trace("Error catch: " + error);
} finally {
trace("Finally!");
}
_location is the URL, tested and works fine if the url is correct, but if not the error comes ugly anyway, it isn’t ‘cought’.
anyone know how to fix it?