I am trying to know when i try to request a file and there is no responce. I assumed that when it tried to get the file and could not it would throw an error but this code does not work when i make the file unavaliable to get..
var loader:Loader = new Loader();
loader.load( new URLRequest('http://get_my_file/image.jpg' ) );
private function uncaughtErrorHandler(event:UncaughtErrorEvent):void
if (event.error is Error)
else if (event.error is ErrorEvent)
What happens instead?
Nothing at all. I would have expected at least after a couple minutes it would have given up and said hey i cannot get this file so i give up.
The handler cannot run since the error is caught. In this case you would get a runtime error (so it is caught) while your handler will only run when an error is not caught.