The display index is an array of items that can be viewed in the tree window. For example, any
children of a closed node are not in the display index. The display index starts with 0 and
proceeds through the visible items regardless of parent. In other words, the display index is the
row number, starting with 0, of the displayed rows.
Note: Display indices change every time nodes open and close.
Example
The following code gets a reference to the XML node that is the second row displayed in
myTree.getNodeDisplayedAt(1);
Tree.getTreeNodeAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myTree.getTreeNodeAt(index)
Parameters
The index number of a node.
index
Returns
An XMLNode object.
Description
Method; returns the specified node on the root of
Example
The following code gets the second node on the first level in the tree
myTree.getTreeNodeAt(1);
Tree.nodeClose
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.nodeClose = function(eventObject){
// insert your code here
780
Chapter 6: Components Dictionary
.
myTree
myTree
:
myTree
:
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?