Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Flash XML


Balaji_iska
2/21/2004 6:12:05 PM
Dear Friends,

Please tell me how to execute an Flash/swf + XML file. What software do i require to see the flash xml file

Please suggest

regards
ShadowKnyte
2/23/2004 12:00:23 AM
Construct your XML file and call it something like '[b]input.xml[/b], then in
flash use this actionscript code to load it:

[b]// Actionscript to load XML file
objectXML = new XML();
objectXML.onLoad = loadXMLinformation;
objectXML.load("input.xml");

// Function to run when objectXML has an XML file loaded
function loadXMLinformation(blnFileLoaded) {
if (blnFileLoaded) {
if (this.firstChild.nodeName.toUpperCase() == "INPUT") {
// Found the root node 'INPUT', so parse the contained XML and do stuff
here...
}
}
}
}[/b]

That is enough to start you on your way...
AddThis Social Bookmark Button