User Guide
786 Chapter 6: Components Dictionary
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 don’t 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 code makes a node of myTree a branch:
myTree.setIsBranch(myTree.getTreeNodeAt(1), true);
Tree.setIsOpen()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myTree.setIsOpen(node, open [, animate])
Parameters
node
An XML node.
open A Boolean value that opens a node (true) or closes it (false).
animate A Boolean value that determines whether the opening transition is animated (true) or
not (
false). This parameter is optional.
Returns
Nothing.
Description
Method; opens or closes a node.
Example
The following code opens a node of myTree:
myTree.setIsOpen(myTree.getTreeNodeAt(1), true);










