XML in Flashh Part 3

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

Posted on December 4th, 2007 by admin

Filed under XML | 3 Comments »

XML in Flash Part 2 (reading XML in flash)

part 2 how to read xml into flashDuration : 0:5:28

Posted on October 5th, 2007 by admin

Filed under XML | 3 Comments »

XML in Flash Part 1 (basic structure of XML)

How to create an xml file fo use in flash.

XML tutorials-
http://w3schools.com/xml/xml_whatis.aspDuration : 0:6:30

Posted on October 5th, 2007 by admin

Filed under XML | 2 Comments »

|