Flash Player 5.
my_xml
.attributes
None.
An array.
Collection (read-write); returns an associative array containing all attributes of the specified XML object.
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 window:
Val first