Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

XML in Flashh Part 3

Loading...

Sign in or sign up now!
25,236
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 4, 2007

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");

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (26)

Sign In or Sign Up now to post a comment!
  • plutoamun: you need test data input of txt, you can write your code on here, then i can fix it,hj

  • You guys: it's safe to skip 40 - 3:20, probably.

  • I'm getting an 'undefined' message, how can I fix this?

  • why you didn'y use align command so you didn't wate time aligning

  • MOOOAAAAR! Part 4! Part 4! Part 4!

  • where is part4, i like you tutorial excellent

  • Hey Brother tienes buenos Tutorials

  • Hey in your next video can you include a way to make a loop to find how many messages you have? Because you won't only have two messages in a real application. Thanks and I hope you consider. =D

  • LOL

  • great tuts, but please could you finish the next tuts to xml in flash as i have been waiting for months for the next installment.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more