Flash / AS

Blend / WPF
ASP.net / PHP

Photoshop

Forums
Blog

About

 


FlashComponents
  Galleries
  Slideshows
  Menus
  Design & Effects
  Audio & Video
  User Interface
  Templates

 

 

 

 


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.


 


kirupa.com's fast and reliable hosting provided by Media Temple. flash components
The Text Animation Component for Flash CS3
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.
Check out our high quality vector-based design packs! Flash Effect Components

Flash Templates
CSS Templates
Dreamweaver Templates

flash menus, buttons and components
Digicrafts Components The best flash components ever!
Entheos Flash Website Templates Free Flash Page Flip
flash components Buy and sell FLAs at Ultrashock!
Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com create flash slideshow as easy as 1,2,3
Learn how to advertise on kirupa.com