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

Components language reference
Table of Contents

Advertisement

Tree.setIsBranch()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.setIsBranch(node, isBranch)
Parameters
An XML node.
node
A Boolean value indicating whether the node is (
) or is not (
)
isBranch
true
false
a branch.
Returns
Nothing.
Description
Method; specifies whether the node has a folder icon and expander arrow and either has
children or can have children. A node is automatically set as a branch when it has children;
you only need to call
when you want to create an empty folder. You may
setIsBranch()
want to create branches that don't yet have children if, for example, you only want child nodes
to load when a user opens a folder.
Calling
refreshes any views.
setIsBranch()
Example
The following example adds a single node to a Tree instance called
and calls
my_tr
to make it a branch without children.
setIsBranch()
1308
Tree component (Flash Professional only)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents