User Guide
778 Chapter 6: Components Dictionary
Parameters
node
An XMLNode object.
Returns
The index of the specified node, or undefined if the node is not currently displayed.
Description
Method; returns the display index of the node specified in the node parameter.
The display index indicates the item’s position in the list of items that are visible in the tree
window. For example, any children of a closed node are not in the display index. The list of
display indices starts with 0 and proceeds through the visible items regardless of parent. In other
words, the index is the row number, starting with 0, of the displayed rows.
Example
The following code gets the display index of myNode:
var x = myTree.getDisplayIndex(myNode);
Tree.getIsBranch()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myTree.getIsBranch(node)
Parameters
node
An XMLNode object.
Returns
A Boolean value that indicates whether the node is a branch (true) or not (false).
Description
Method; indicates whether the specified node has a folder icon and expander arrow (and is
therefore a branch). This is set automatically when children are added to the node. You only need
to call
Tree.setIsBranch() to create empty folders.
Example
The following code assigns the node state to a variable:
var open = myTree.getIsBranch(myTree.getTreeNodeAt(1));
See also
Tree.setIsBranch()