the third part in the flash and xml series. part 4 coming soon.
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.onLoad = function(sucess) {
if(sucess) {
subjectTXT = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
fromTXT = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
toTXT = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
messageTXT = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
xmlBox.text = messageTXT;
toBox.text = toTXT;
fromBox.text = fromTXT;
subjectBox.text = subjectTXT;
}
}
myXML.load(”xml/tutex.xml”);Duration : 0:10:31
|
part 2 how to read xml into flashDuration : 0:5:28
|
How to create an xml file fo use in flash.
XML tutorials-
http://w3schools.com/xml/xml_whatis.aspDuration : 0:6:30
|
|