EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 756

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals