NAVIGATION:

 

SUPPORTERS:

FlashComponents
  Flash Templates
  Flash Gallery
  Flash Slideshow
  Flash Menu
  Flash Design
  Flash Video
  User Interface

 

FOLLOW:

RSS it down! Twitter it up! Facebook it like a fiend!

 

 

 

 


Introduction to XML in Flash
       by senocular

Editing Text Nodes and Element Names
If you'll remember, the nodeValue (text nodes) and nodeName (elements) properties for XML nodes were not read-only as many of the other properties like firstChild and nextSibling were. This means that, like attribute values, they too can be edited directly. Example:

var my_xml = new XML("<loss>We cannot perform well.</loss>");
trace(my_xml); // traces "<loss>We cannot perform well.</loss>"
 
my_xml.firstChild.nodeName = "victory";
my_xml.firstChild.firstChild.nodeValue = "We dominate!";
trace(my_xml); // traces "<victory>We dominate!</victory>"

And much like createTextNode, setting nodeValue will transform undesirables into character entity references.


 

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components Flash effects. Art without coding.
Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Citrus Engine: Flash platformer and sidescrolling game engine
Learn how to advertise on kirupa.com

cdn
content delivery network (cdn)