5 Replies Latest reply on Apr 25, 2008 12:58 PM by kglad

    Adding a URL button from XML file

    sandisi Level 1
      I'm making a photo slideshow that pulls info from an XML doc--including a URL. What is the code to add a link on a Flash button from an XML document?

      Here's my XML code for each photo: <url> http://www.yahoo.com</url>

      My Flash doc pulls all xml url's in an array like this:

      function loadXML(loaded) {
      if (loaded) {
      xmlNode = this.firstChild;
      image = [];
      description = [];
      url = [];
      delay = [];
      total = xmlNode.childNodes.length;
      for (i=0; i<total; i++) {
      image = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
      description = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
      url = xmlNode.childNodes.childNodes[2].firstChild.nodeValue;
      delay = xmlNode.childNodes.childNodes[3].firstChild.nodeValue;