Tree class (Flash Professional only)
Inheritance
MovieClip >
ScrollSelectList >
ActionScript Class Name
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.
Method
Tree.addTreeNode()
Tree.addTreeNodeAt()
Tree.getDisplayIndex()
Tree.getIsBranch()
Tree.getIsOpen()
Tree.getNodeDisplayedAt()
Tree.getTreeNodeAt()
Tree.refresh()
Tree.removeAll()
Tree.removeTreeNodeAt()
Tree.setIcon()
Tree.setIsBranch()
Tree.setIsOpen()
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
Method
UIObject.createClassObject()
UIObject.createObject()
UIObject.destroyObject()
UIObject.doLater()
770
Chapter 6: Components Dictionary
UIObject class
List component
> Tree
mx.controls.Tree
Description
Adds a node to a Tree instance.
Adds a node at a specific location in a Tree instance.
Returns the display index of a given node.
Specifies whether the folder is a branch (has a folder icon and an
expander arrow).
Indicates whether a node is open or closed.
Maps a display index of the tree onto the node that is displayed
there.
Returns a node on the root of the tree.
Updates the tree.
Removes all nodes from a Tree instance and refreshes the tree.
Removes a node at a specified position and refreshes the tree.
Specifies an icon for the specified node.
Specifies whether a node is a branch (has a folder icon and
expander arrow).
Opens or closes a node.
Description
Creates an object on the specified class.
Creates a subobject on an object.
Destroys a component instance.
Calls a function when parameters have been set in the Property and
Component inspectors.
>
UIComponent class
TreeInstance.methodName
> View > ScrollView >
.
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?