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: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑