Tree.getisopen() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

See also
Tree.setIsBranch()

Tree.getIsOpen()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.getIsOpen(node)
Parameters
An XMLNode object.
node
Returns
A Boolean value that indicates whether the tree is open (
Description
Method; indicates whether the specified node is open or closed.
Display indices change every time nodes open and close.
Example
The following example adds two nodes to a Tree called
then calls
getIsOpen()
You must first add an instance of the Tree component to the Stage and name it
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);
1294
Tree component (Flash Professional only)
to display the state of the second node.
) or closed (
true
false
, opens the second node, and
my_tr
).
; then
my_tr

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents