title: AS3 load variables from a txt file which has && formatting
body: <p>I'm trying to load a txt file of variables into my AS3 project. The problem I have though seems to be down to the fact that the txt file (which is pre formatted and cannot be changed) is formatted using double amphersands... e.g.</p>
  
  <p>&amp;name=mark&amp;<br>
  &amp;address=here&amp;<br>
  &amp;tel=12345&amp;</p>
  
  <p>I'm using the following code to load the txt file</p>
  
  <pre><code>myLoader.addEventListener(Event.COMPLETE, onLoaded, false, 0, true);
  myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
  urlRqSend = new URLRequest(addressToTxt.txt);
  
  public function onLoaded(e:Event):void {
  trace(myLoader.data);
  }
  </code></pre>
  
  <p>Using URLLoaderDataFormat.VARIABLES generates the following error:</p>
  
  <pre><code>Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
  </code></pre>
  
  <p>If I use URLLoaderDataFormat.TEXT I can load the data successfully but I'm not able (or don't know how to) access the variables.</p>
  
  <p>Would anyone have any ideas or work arounds to this please.</p>
  
  <p>Thanks,</p>
  
  <p>Mark</p>