I am inexperienced so please be patient with my mistakes. Ive never worked with XML before. In my Air app I am trying to load a test XML and display some data in my app.
The xml is simply:
<player>
<highscore>Over9000</highscore>
</player>
My code is:
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("https://www.dropbox.com/s/0lx69pd73cmboh9/Leaderboard.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void {
myXML = new XML(e.target.data);
trace(myXML.highscore);
}
This works fine when I am simply loading the XML from the source folder of my project, but as soon as I try and use the URL I get this error:
Error #1083: The prefix "form" for element "error" is not bound.