include actionscript

Out of context: Reply #17

  • Started
  • Last post
  • 21 Responses
  • urban100

    if using unfit's format as your xml... you can pull in the xml data into flash using:

    function xmlParser (success) {
    listing = thisXML.firstChild.firstChild;
    if (listing.hasChildNodes) {
    if (listing.nodeName == "titles") {
    listing = listing.nextSibling;
    itemTitle = listing.attributes.title;
    }
    }
    }

    dataXML = new XML();
    dataXML.ignoreWhite = true;
    dataXML.onLoad = xmlParser;
    dataXML.load("data.xml");

View thread