User Guide

770 Chapter 6: Components Dictionary
Tree class (Flash Professional only)
Inheritance MovieClip > UIObject class > UIComponent class > View > ScrollView >
ScrollSelectList > List component > Tree
ActionScript Class Name mx.controls.Tree
The methods, properties, and events of the Tree class allow you to manage and manipulate Tree
objects.
Method summary for the Tree class
The following table lists methods of the Tree class.
Methods inherited from the UIObject class
The following table lists the methods the Tree class inherits from the UIObject class. When
calling these methods from the Tree object, use the form
TreeInstance.methodName.
Method Description
Tree.addTreeNode() Adds a node to a Tree instance.
Tree.addTreeNodeAt() Adds a node at a specific location in a Tree instance.
Tree.getDisplayIndex() Returns the display index of a given node.
Tree.getIsBranch() Specifies whether the folder is a branch (has a folder icon and an
expander arrow).
Tree.getIsOpen() Indicates whether a node is open or closed.
Tree.getNodeDisplayedAt() Maps a display index of the tree onto the node that is displayed
there.
Tree.getTreeNodeAt() Returns a node on the root of the tree.
Tree.refresh() Updates the tree.
Tree.removeAll() Removes all nodes from a Tree instance and refreshes the tree.
Tree.removeTreeNodeAt() Removes a node at a specified position and refreshes the tree.
Tree.setIcon() Specifies an icon for the specified node.
Tree.setIsBranch() Specifies whether a node is a branch (has a folder icon and
expander arrow).
Tree.setIsOpen() Opens or closes a node.
Method Description
UIObject.createClassObject() Creates an object on the specified class.
UIObject.createObject() Creates a subobject on an object.
UIObject.destroyObject() Destroys a component instance.
UIObject.doLater() Calls a function when parameters have been set in the Property and
Component inspectors.