flash relative paths

Out of context: Reply #4

  • Started
  • Last post
  • 6 Responses
  • enjine0

    it's like this...

    //declare a new xml object on any timeline:
    var xmlHolder = new XML()

    //then declare an event handler to trigger whatever you want to happen after it's loaded... maybe even just to let the rest of the movie know it is loaded:
    xmlHolder.onLoad = function(){
    //do whatever
    }

    //then finally load your external XML file into that object:
    xmlHolder.load("yourXMLfile.xml...

    then just access the xml node tree through the xmlHolder object:

    _root.someMC.someMC.xmlHolder.fi...

    word?

View thread