1 Reply Latest reply on Dec 10, 2006 4:41 AM by Newsgroup_User

    Problem loading External XML file

    Toiletfreak
      Hello,

      My purpose of loading an external XML file is to create a Blogger Atom-powered blog which has a Flash interface. I have done a very extensive but futile search to the abovementioned problem. I have read through the various articles addressing the issue, and found that it only affects Flash 7 and above. However, even though I use Flash 6 (MX) for coding, the XML document still refuses to load.

      My code in the first (and only) frame is:

      example_xml = new XML();
      example_xml.ignoreWhite = true;
      example_xml.load("getxml.php");

      example_xml.onLoad = function (success) {
      if (success) {
      hello.text = "hello"
      ciao.text = _root.example_xml
      trace(_root.example_xml)
      }
      };

      and it launches a PHP file. The code for the PHP file is shown below:

      <?PHP
      $line=file(" http://www.quotationspage.com/data/qotd.rss");
      foreach ($line as $line_num => $line) {
      echo $line;
      }
      ?>

      Question is, is there a problem with my Flash version (MX) that I am using, or have I left something out?

      Please lend a hand. Thanks! =)
      Joel