title: Flash getting data from a remote server with PHP and MySQL
body: <p>I'm currently trying to load a bunch of rows of highscores from my website's database to my flash application. I'm using PHP to retrieve the data from MySQL database and return it back to flash. Everything works fine and the data is returned when I'm debugging my application in my Flash Pro.</p>
  
  <p>However, When I published the swf and double click it, it only shows blank screen and nothing happens. When I removed the code which access the PHP script, it works, but no data retrieved.</p>
  
  <p>I've added a crossdomain.xml in my htdocs folder. Here's the content of the xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"&gt;
  &lt;cross-domain-policy&gt;
    &lt;site-control permitted-cross-domain-policies="master-only"/&gt;
    &lt;allow-access-from domain="*"/&gt;
    &lt;allow-http-request-headers-from domain="*" headers="*"/&gt;
  &lt;/cross-domain-policy&gt;
  </code></pre>
  
  <p>but it's still not working....</p>
  
  <p>any help is appreciated. THX b4</p>