This is driving me crazy.
I have a small piece of test code for accessing data on a server using URLLoader.
var loader:URLLoader = new URLLoader();
configureListeners(loader);
var request:URLRequest = new URLRequest("http://somedomain.com");
try {
label.text = "Loading XML...";
loader.load(request);
} catch (error:Error) {
label.text = "Unable to load requested document.";
}
In IE, if I change “http://somedomain.com” to an invalid domain, a security error event fires within seconds; but in Firefox, no events ever fire and my textbox always just says “Loading XML…”. It never times out.
I saw this in Flash MX 2004 and Flash 8 with the XML.load() method as well. It will fail in IE but not in Firefox.
In previous versions of flash I have built a routine which monitors the XML.load() and if it hasn’t fired any events in a long time, I would stop it manually, but that just seems to hacky when this clearly a Firefox only issue.
Anyone run into this before, or have any suggestions for how to better deal with it?
Thanks!