User Guide

792 Chapter 6: Components Dictionary
Example
The following code removes a node:
myTreeDP.firstChild.removeTreeNode();
TreeDataProvider.removeTreeNodeAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
someNode.removeTreeNodeAt(index)
Parameters
index
An integer indicating the position of the node to be removed.
Returns
The removed XML node, or undefined if an error occurs.
Description
Method; removes a node (and all of its descendants) specified by the current node and index
position of the child node. Calling this method refreshes the view.
Example
The following code removes the fourth child of the myTreeDP.firstChild node:
myTreeDP.firstChild.removeTreeNodeAt(3);