0 Replies Latest reply on Feb 4, 2008 4:31 AM by edzillion

    loading data across domains using proxy file

    edzillion
      I am trying to get some XML data into my flex app. This article explains how to do this with a proxy.php file. Here is the proxy.php example provided:

      <?php
      $dataURL = " http://www.macromedia.com/desdev/resources/macromedia_resources.xml";
      //note that this will not follow redirects
      readfile($dataURL);
      ?>

      So can I just call this proxy.php file using httpservice?

      <mx:HTTPService id="getdata"
      url="proxy.php"
      resultFormat="xml"
      showBusyCursor="true"
      result="handleResult(event)"
      />


      Can anyone provide a working example of this? thanks.

      PS. What is the story with trying to post code on this forum? I see no such 'attach code' link, and it seems the code is garbled when posted...