User Guide

1308 Tree component (Flash Professional only)
Tree.setIsBranch()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.setIsBranch(node, isBranch)
Parameters
node An XML node.
isBranch A Boolean value indicating whether the node is (true) or is not (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
setIsBranch() when you want to create an empty folder. You may
want to create branches that dont yet have children if, for example, you only want child nodes
to load when a user opens a folder.
Calling
setIsBranch() refreshes any views.
Example
The following example adds a single node to a Tree instance called my_tr and calls
setIsBranch() to make it a branch without children.