How to load xml into flash using actionscript 2

Create an xml object:

var myXmlObject = new XML();
Code language: JavaScript (javascript)

Perform action when xml file has been loaded:

myXmlObject.onLoad = function(success) { if (success) trace("XML File has been read."); }
Code language: JavaScript (javascript)

Load the xml file into the object:

myXmlObject.load("myXmlFile.xml");
Code language: CSS (css)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments