Ultrashock Forums > Flash > ActionScript
AS3; problem loading xml in IE6

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS3; problem loading xml in IE6
Old 2008-07-09

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/
postbit arrow 4 comments | 824 views postbit arrow Reply: with Quote   
Registered User
felisan is offline
seperator
Posts: 234
2005-02-18
Age: 33
felisan lives in Denmark
seperator

Ultrashock Member Comments:
Isocase's Avatar Isocase Isocase is offline Isocase lives in United States 2008-07-09 #2 Old  
Not sure what is going on, but you don't have to set the dataFormat since the default format is already URLLoaderDataFormat.TEXT. I did try viewing the url to the xml file that you have above and I am getting a "Page Load Error"?
Reply With Quote  
felisan felisan is offline felisan lives in Denmark 2008-07-09 #3 Old  
sorry, this correct URL is: http://www.bigaconcept.dk/Default.as...744&Purge=True
Reply With Quote  
Isocase's Avatar Isocase Isocase is offline Isocase lives in United States 2008-07-09 #4 Old  
Are you by any chance trying to load the xml file from outside the security sandbox? But thinking about that if that were the case you shouldn't be able to load in any browser.
Reply With Quote  
felisan felisan is offline felisan lives in Denmark 2008-07-09 #5 Old  
no, I dont think so...
the .swf is placed at:
http://www.bigaconcept.dk/Files/Bill...h/loadTest.swf

and the page containing xml at:
http://www.bigaconcept.dk/Default.as...744&Purge=True

is there any security sandbox violation in this?
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: