Hi,
I want to read an xml file placed in the same folder as the swf. Note however there is no webserver running.
<![CDATA[
private var my_req:URLRequest = new URLRequest("assets/GmetadOutput.xml");
private var loader:URLLoader;
public function startup():void {
output.text="CheckPoint1"; //This is the only output that displays!
loader = new URLLoader(my_req);
output.text="CheckPoint2";
loader.addEventListener(Event.COMPLETE,eventhandler);
output.text="CheckPoint3";
}
public function eventhandler(ev:Event):void {
output.text="CheckPoint4";
output.text= XML(loader.data).string;
}
]]>
So on the on CreationComplete event i call startup(); The Checkpoint1 output displays but none of the other checkpoints are reached?
Can anyone tell me what iam doing wrong or better yet tell me how to read a file placed in the same folder as the swf file!
Thanks