MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1314

Components language reference
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents