User Guide

TreeDataProvider.addTreeNodeAt() 1259
Example
The first line of code in the following example locates the node to which to add a child. The
second line adds a new node to a specified node.
var myTreeNode = myTreeDP.firstChild.firstChild;
myTreeNode.addTreeNode("Inbox", 3);
The following code moves a node from one tree to the root of another tree:
myTreeNode.addTreeNode(mySecondTree.getTreeNodeAt(3));
TreeDataProvider.addTreeNodeAt()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Usage 1:
someNode.addTreeNodeAt(index, label, data)
Usage 2:
someNode.addTreeNodeAt(index, child)
Parameters
index An integer that indicates the index position (among the child nodes) at which the
node should be added.
label A string that displays the node.
data An object of any type that is associated with the node.
child Any XMLNode object.
Returns
The added XML node.