1 Reply Latest reply on Nov 11, 2006 12:28 AM by arunbe

    Creating xml lists with links

    Level 7
      I was able to create a list component in Flash 8 and load the items from an
      xml file, but I can't figure out how to make each line clickable in order to
      work as a link. The code used to populate the list is:

      form = new Object();
      form.load=xmlConn.trigger();

      The xml file is something like:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <articles>
      <articles_items>
      <title>Link text 2
      </title>
      <urlstring>article2.htm
      </urlstring>
      </articles_items>
      <articles_items>
      <title>Link text 1
      </title>
      <urlstring>article1.htm
      </urlstring>
      </articles_items>
      </articles>

      I intended to use the second field of each "articles_items", the "urlstring"
      field, to associate with each "title" listing on the list component, so that
      when "Link text 1" gets clicked it takes to "article1.htm". The instances
      created are named articlesList, xmlConn, articles_ds.