title: How to load a .xml file with URLVariables
body: <p>How to load a .xml file with URLVariables using AS3</p>
  
  <p>example:  file<br>
  example.xml?varsHere</p>
  
  <pre><code>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
  </code></pre>