hello everyone.
I've run into a problem, my loading xml works fine in Firefox1.5 and up and in IE7, but in IE6 it doesn't.
here's my actionscript:
Code:
var xmlloader:URLLoader = new URLLoader();
var xml:XML;
xmlloader.addEventListener(Event.COMPLETE, onXMLComplete, false, 0, true);
xmlloader.addEventListener(IOErrorEvent.IO_ERROR, onXMLIOError, false, 0, true);
xmlloader.dataFormat = URLLoaderDataFormat.TEXT; //Cookbook 20.11 - load the data as plain text
xmlloader.load(new URLRequest("http://www.bigaconcept.dk/Default.aspx?ID=2744&Purge=True"));
function onXMLIOError(e:IOErrorEvent) {
outputText.htmlText += "An Error Occured and it looked like this."+e.text+"<br>";
}
function onXMLComplete(e:Event):void {
xml = new XML(e.target.data);
outputText.htmlText += xml;
}
this works in the Flash IDE, I get the XML when I try loading it... and I get this Error #2032 if I make up a domain that doesn't exist.
perfectly.. both functions work:
Error opening URL 'http://www.thisdoesntexist.dk/Default.aspx?ID=2744&Purge=True'
An Error Occured and it looked like this. Error #2032: Stream Error. URL: http://www.thisdoesntexist.dk/Defaul...744&Purge=True
I've put the file online too:
http://www.bigaconcept.dk/Files/Billeder/BC2008/Flash/loadTest.swf
when I test it live I get the Error #2032 when testing in IE6... any ideas what is going on?
thanks
---------------------------------------------
http://www.campjohn.dk/wp/