1 Reply Latest reply on Sep 6, 2011 7:42 AM by kglad

    Flash link(button) problem via xml link (Flash popup error)

    rajivroyssmr

      hi...

       

      I'm getting a problem when i run a swf file from HTML/Outside(i mean to say from folder) and click on the button (button calling xml file which has link in it), i get a adobe flash popup error/msg. As shown below....

       

      error.jpg

       

      my codes are as follows

      XML CODE:

       

      <?xml version="1.0" encoding="utf-8"?>

      <tree>

      <link>

      <port>http://www.marcomanie.com</port>

      <news>http://www.asdfmanie.com</news>

      <gallery>http://www.wesdmanie.com</gallery>

      </link>

      </tree>

       

       

      My flash codes are as follows

      LOADING AS

       

      function loadXML(loaded) {

      if (loaded) {

      _root.port = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;

      _root.news = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;

      _root.gallery = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;


      port.text = _root.port;

      news.text = _root.news;

      gallery.text = _root.gallery;


      } else {

        trace("file not loaded!");

      }

      }

      xmlData = new XML();

      xmlData.ignoreWhite = true;

      xmlData.onLoad = loadXML;

      xmlData.load("linker.xml");

       

      BUTTON AS

       

      on (release) {

      getURL(_root.port, "_self");

      }

      Pls let me know what i have to do, to get away with that error
      im very much new to these kind of errors, any fast help will be appreciated.
      thank u
      sunder