User Guide
Tree component (Flash Professional only) 785
Tree.setIcon()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myTree.setIcon(node, linkID [, linkID2])
Parameters
node
An XML node.
linkID The linkage identifier of a symbol to be used as an icon beside the node. This parameter
is used for leaf nodes and for the closed state of branch nodes.
linkID2 For a branch node, the linkage identifier of a symbol to be used as an icon that
represents the open state of the node. This parameter is optional.
Returns
Nothing.
Description
Method; specifies an icon for the specified node. This method takes one ID parameter (linkID)
for leaf nodes and two ID parameters (
linkID and linkID2) for branch nodes (the closed and
open icons). For leaf nodes, the second parameter is ignored. For branch nodes, if you omit
linkID2, the icon is used for both the closed and open states.
Example
The following code specifies that a symbol with the linkage identifier imageIcon be used beside
the second node of
myTree:
myTree.setIcon(myTree.getTreeNodeAt(1), "imageIcon");
Tree.setIsBranch()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myTree.setIsBranch(node, isBranch)
Parameters
node
An XML node.
isBranch A Boolean value indicating whether the node is (true) or is not (false) a branch.