title: problem taking data from only one print function in a php page and passing to flash
body: <p>I'm trying to take a variable from a php page and send it to flash to then use in a link.</p>
  
  <p>I'm having problems just selecting ONE variable from the print function, the code will help explain:</p>
  
  <p><strong>PHP page</strong></p>
  
  <pre><code>&lt;?
  print"fbook=facebook";
  print"tweet=twitter-test";
  print"utube=youtube-test";
  ?&gt;
  </code></pre>
  
  <p><strong>Flash code</strong></p>
  
  <pre><code>var loader:URLLoader = new URLLoader();
  loader.addEventListener(Event.COMPLETE,onLoaded);
  loader.load(new URLRequest("../SC/FLA_tools-btn.php"));
  var variables:URLVariables = new URLVariables();
  fbook.addEventListener(MouseEvent.MOUSE_DOWN, mouseClickfbook);
  tweet.addEventListener(MouseEvent.MOUSE_DOWN, mouseClicktweet);
  youtube.addEventListener(MouseEvent.MOUSE_DOWN, mouseClickyoutube);
  
  function onLoaded(evt:Event):void
  {
  var data:URLVariables = new URLVariables(evt.target.data);
  variables.fbook = data.fbook;
  variables.twitter = data.tweet;
  variables.utube = data.utube;
  }
  
  function mouseClicktweet(event:MouseEvent):void
  {
  navigateToURL(new URLRequest('http://www.twitter.com/'+variables.twitter),"_Self");
  
  }
  
  function mouseClickfbook(event:MouseEvent):void
  {
  navigateToURL(new URLRequest('http://www.facebook.com/'+variables.fbook),"_Self");
  
  }
  
  function mouseClickyoutube(event:MouseEvent):void
  {
  navigateToURL(new URLRequest('http://www.youtube.com/'+variables.utube),"_Self");
  
  }
  </code></pre>
  
  <p>It collects all the data fine but it does not print it out correctly, it prints out all the variables in the php in one link. For example:</p>
  
  <p>If i click the facebook icon, i will be taken to <code>http://www.facebook.com/facebooktweet=twitter-testutube=youtube-test</code> This also happens with the other icons (Youtube and Twitter).</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>