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



3 Responses to “XML in Flashh Part 3”

  1. haterdesaint Says:

    thanks!
    thanks!

  2. MouthofSaurons Says:

    you use windows …
    you use windows vista! i do also and i got adobe flash 9 cs3 pro too!
    This is so easy to understand for me :)

  3. bbpzone Says:

    Where is part 4? I …
    Where is part 4? I can’t found it anywhere

Leave a Reply

Posted on December 4th, 2007 by admin

Filed under XML |

|