PDA

View Full Version : URLLoader error.


jimioh
03-23-2009, 03:44 AM
I am having the following error:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: app:/Users/james/Documents/tentacle/player/trunk/bin-debug/player-config.xml

with the following code:

private function parseConfiguration():void {
XML.ignoreWhitespace = true;
//var configXML:XML = new XML();
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, processXML);
trace(fileName);
urlLoader.load(new URLRequest(File.applicationDirectory.nativePath + "/player-config.xml"));
}

File.applicationDirectory.nativePath contains a file player-config.xml.

I can't figure out what is happening. Does anyone have an ideas?

fx.barrett
03-23-2009, 08:15 AM
That error is usually thrown when the path is not correct. Double check your path and see if your file is actually named like that ( since a bad typo would trigger the same error too ).