• flickr
  • linkedin
  • twitter
  • rss
Retrieving attributes from XML in AS3

Retrieving attributes from XML in AS3

To return specific attributes of an xml node, you can use the @[attribute] reference – pretty handy.

Eg, with this xml:

<question  file="test_file.swf">

You can call that file attribute using the below:

myXMLList.question[0].@file; // returns test_file.swf
Tech Reference: ,

Larry's a 30-something chap interested in travel, being a dork and changing the world via less boring training.

Leave a reply