User Guide

790 Chapter 6: Components Dictionary
TreeDataProvider.attributes.data
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
someNode.attributes.data
Description
Property; specifies the data to associate with the node. This adds the value as an attribute in the
XMLNode object. Setting this property does not refresh any tree displays. This property can be of
any data type.
Example
The following code locates the node to adjust and sets its data property:
var myTreeNode = myTreeDP.firstChild.firstChild;
myTreeNode.attributes.data = "hi"; // results in <node data = "hi">;
See also
TreeDataProvider.attributes.label
TreeDataProvider.attributes.label
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
someNode.attributes.label
Description
Property; a string that specifies the text displayed for the node. This is written to an attribute of
the XMLNode object. Setting this property does not refresh any tree displays.
Example
The following code locates the node to adjust and sets its label property. The result of the
following code is
<node label="Mail">.
var myTreeNode = myTreeDP.firstChild.firstChild;
myTreeNode.attributes.label = "Mail";
See also
TreeDataProvider.attributes.data