Flash is throwing an uncatchable exception when using a URLLoader with no internet connection
To catch them, go with uncaughtErrorEvents
in LoaderInfo
. For example you could subscribe for the uncaught errors and manage them with some fallback logic:
//Somewhere, you could manage it globally, or declare before risky part
loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onUncaughtError);
private function onUncaughtError(e:UncaughtErrorEvent):void {
e.preventDefault();
trace("Scorpion: come here! - " + e.toString());
}