MINI SUPPORTERS:

 

 

 

 


Introduction to XML in Flash
       by senocular

What about Attributes?
Attributes are not forgotten. They are just more "manual". The attributes object can be manually edited just as any other object in Flash and does not require methods to alter it. This makes them easy to work with as you don't necessarily have to deal with potentially confusing XML methods. Example:

var my_xml = new XML("<friends><friend /></friends>");
my_xml.firstChild.firstChild.attributes.girlfriend = "Julie"
trace(my_xml); // traces "<friends><friend girlfriend="Julie" /></friends>"
 
delete my_xml.firstChild.firstChild.attributes.girlfriend;
trace(my_xml); // traces "<friends><friend /></friends>"

Working with attributes is probably more easy than anything else. Because of this, people like to stick everything into attributes, but, as I said before, you should keep it simple.


 

SUPPORTERS:

cloud storage
cloud storage
kirupa.com's fast and reliable hosting provided by Media Temple. Creative web apps. Make your own free flash banners and photo slideshows.
HTML5 CSS3 Mobile Gallery for iPhone, iPad Flash effects. Art without coding.
Flipping Book - page flip flash component. Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery
X-Platform Application Development for Flash Free Flash Components Download - XML Templates, Players and Galleries.

two computer monitors

US Direct

Learn how to advertise on kirupa.com  
 
SHARE:



MINI SUPPORTERS: