IOErrorEvent.IO_ERROR raised when loading an XML file in IE6
Posted by Dennis on Jul 25, 2008 in ActionScript, Flash • 1 commentAn IOErrorEvent.IO_ERROR was raised when I tried to load an XML file (ActionScript 3.0). This only happened in IE6 on a specific server. The strange thing was that I got a HTTP/1.0 200 OK message in my HTTP sniffer. It turns out that IE6 can’t handle a specific combination of http headers:
- Cache-Control: no-cache
- Content-Encoding: gzip
There’s a fix and more information here: More Flash and IE 6 Gotchas (2032 Error)




is there any expert?
for (i=0; i<4; i++) {
var loader:Loader = new Loader();
addChild(loader);
loader.x =loader.y = i*100;
loader.load(new URLRequest(”img”+i));
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, imageNotFound);
}
function imageNotFound(e:IOErrorEvent) {
//Here, what code I have to write for load default Image?
}