Treedataprovider.addtreenode() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Property summary for the TreeDataProvider interface
The following table lists the properties of the TreeDataProvider interface.
Property
TreeDataProvider.attributes.data
TreeDataProvider.attributes.label

TreeDataProvider.addTreeNode()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Usage 1:
someNode.addTreeNode(label, data)
Usage 2:
someNode.addTreeNode(child)
Parameters
A string that displays the node.
label
An object of any type that is associated with the node.
data
Any XMLNode object.
child
Returns
The added XML node.
Description
Method; adds a child node at the root of the tree. The node is constructed either from the
information supplied in the
node, which is an XMLNode object (Usage 2). Adding a preexisting node removes the node
from its previous location.
Calling this method refreshes the display of the tree.
1258
TreeDataProvider interface (Flash Professional only)
Description
Specifies the data to associate with a node.
Specifies the text to be displayed next to a node.
and
parameters (Usage 1), or from the prebuilt child
label
data

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents