Description
Method; opens or closes a node.
Example
The following example creates two nodes in a Tree instance called
method to open the second node.
setIsOpen()
/**
Requires:
- Tree component on Stage (instance name: my_tr)
*/
var my_tr:mx.controls.Tree;
my_tr.setSize(200, 100);
var trDP_xml:XML = new XML("<node label='1st Local Folders'><node
label='Inbox' data='0'/><node label='Outbox' data='1'/></node><node
label='2nd Local Folders'><node label='Inbox' data='2'/><node
label='Outbox' data='3'/></node>");
my_tr.dataProvider = trDP_xml;
// Set 2nd node open.
my_tr.setIsOpen(my_tr.getTreeNodeAt(1), true);
1310
Tree component (Flash Professional only)
and calls the
my_tr
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers