User Guide
1294 Tree component (Flash Professional only)
See also
Tree.setIsBranch()
Tree.getIsOpen()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.getIsOpen(node)
Parameters
node An XMLNode object.
Returns
A Boolean value that indicates whether the tree is open (true) or closed (false).
Description
Method; indicates whether the specified node is open or closed.
Example
The following example adds two nodes to a Tree called my_tr, opens the second node, and
then calls
getIsOpen() to display the state of the second node.
You must first add an instance of the Tree component to the Stage and name it my_tr; then
add the following code to Frame 1.
/**
Requires:
- Tree component on Stage (instance name: my_tr)
*/
var my_tr:mx.controls.Tree;
my_tr.setSize(200, 100);
NOTE
Display indices change every time nodes open and close.