756 Chapter 12: ActionScript Dictionary
XML.attributes
Availability
Flash Player 5.
Usage
my_xml.attributes
Parameters
None.
Returns
An array.
Description
Property; an associative array containing all attributes of the specified XML object.
Example
The following example writes the names of the XML attributes to the Output window.
str = "<mytag name=\"Val\"> intem </mytag>";
doc = new XML(str);
y = doc.firstChild.attributes.name;
trace (y);
doc.firstChild.attributes.order = "first";
z = doc.firstChild.attributes.order
trace(z);
The following is written to the Output panel:
Val
first