how to load xml into flash using actionscript 2

Create an xml object:

var myXmlObject = new XML();

Perform action when xml file has been loaded:

myXmlObject.onLoad = function(success) {
  if (success) trace("XML File has been read.");
}

Load the xml file into the object:

myXmlObject.load("myXmlFile.xml");

Leave a Reply

Your email address will not be published.