How to load a .xml file with URLVariables

109 Views Asked by At

How to load a .xml file with URLVariables using AS3

example: file
example.xml?varsHere

var loa:URLLoader = new URLLoader();
loa.addEventListener(Event.COMPLETE, gocom);
loa.addEventListener(IOErrorEvent.IO_ERROR, gotError);
loa.load(new URLRequest("example.xml"));


function gotError(event:IOErrorEvent):void{
    trace("INVALID");
}//  function gotError


function gocom(event:Event){

    var userxml:XML = new XML(loa.data);
    XML.ignoreProcessingInstructions = false;
    userxml = new XML(loa.data);

}


//   INVALID
0

There are 0 best solutions below