Tree component (Flash Professional only)
The Tree component allows a user to view hierarchical data. The tree appears in a box like the List
component, but each item in a tree is called a node and can be either a leaf or a branch. By default,
a leaf is represented by a text label beside a file icon, and a branch is represented by a text label
beside a folder icon with an expander arrow (disclosure triangle) that a user can open to expose
children. The children of a branch can be leaves or branches.
The data of a tree component must be provided from an XML data source. For more
information, see
When a Tree instance has focus either from clicking or tabbing, you can use the following keys to
control it:
Key
Description
Down Arrow
Moves selection down one item.
Up Arrow
Moves selection up one item.
Right Arrow
Opens a selected branch node. If a branch is already open, moves to first child node.
Left Arrow
Closes a selected branch node. If on a leaf node of a closed branch node, moves to
parent node.
Space
Opens or closes a selected branch node.
End
Moves selection to the bottom of the list.
Home
Moves selection to the top of the list.
Page Down
Moves selection down one page.
Page Up
Moves selection up one page.
Control
Allows multiple noncontiguous selections.
Shift
Allows multiple contiguous selections.
The Tree component cannot be made accessible to screen readers.
Using the Tree component (Flash Professional only)
The Tree component can be used to represent hierarchical data such as e-mail client folders, file
browser panes, or category browsing systems for inventory. Most often, the data for a tree is
retrieved from a server in the form of XML, but it can also be well-formed XML that is created
during authoring in Flash. The best way to create XML for the tree is to use the TreeDataProvider
interface. You can also use the ActionScript XML class or build an XML string. After you create
an XML data source (or load one from an external source), you assign it to
"Using the Tree component (Flash Professional only)" on page
Components Dictionary
Tree component (Flash Professional only)
CHAPTER 6
759.
.
Tree.dataProvider
759
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?