Hey all,
I have coded a small applet that works well, however, if the users connection drops, it can no longer communicate with the server and throws a very nasty looking error message like so:
Error opening URL 'http://urlhere.com'
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://urlhere.com
at Gallery/::switchImages()
Here are the lines that break it
var request:URLRequest = new URLRequest("http://urlhere.com");
loader = new URLLoader(request);
loader.addEventListener(Event.COMPLETE, nextInfoLoaded);
I think it is the URLLoader than actually breaks it and throws the error message, I am new to AS3, a book I am using has a whole section dedicated to Error Handling but I have tried and failed to handle this error, can anybody tell me if it is possible to handle this error? As in, if it fails to load the URL, execute another function?