MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1272

Components language reference
Table of Contents

Advertisement

Flash Player wraps the XML nodes in an extra document node, which is passed to the tree.
When the tree tries to display the XML, it tries to display
so it doesn't display correctly.
To avoid this problem, the data provider for the Tree component should point at the
XMLDocumentObject's first child, as shown here:
myTree.dataProvider = myXML.firstChild;
Tree parameters
You can set the following authoring parameters for each Tree component instance in the
Property inspector or the Component inspector:
multipleSelection
is a Boolean value that indicates whether a user can select multiple items
(
) or not (
true
false
rowHeight
indicates the height of each row, in pixels. The default value is 20.
You can write ActionScript to control these and additional options for the Tree component
using its properties, methods, and events. For more information, see
Professional only)" on page
You cannot enter data parameters in the Property inspector or the Component inspector for
the Tree component as you can with other components. For more information, see
Tree component (Flash Professional only)" on page 1266
the Tree component" on page
Creating an application with the Tree component
The following procedures show how to use a Tree component to display mailboxes in an e-
mail application.
The Tree component does not allow you to enter data parameters in the Property inspector or
Component inspector. Because of the complexity of a Tree component's data structure, you
must either import an XML object at runtime or build one in Flash while authoring. To
create XML in Flash, you can use the TreeDataProvider interface, use the ActionScript XML
object, or build an XML string. Each of these options is explained in the following
procedures.
To add a Tree component to an application and load XML:
1.
In Flash, select File > New and select Flash Document.
2.
Save the document as treeMenu.fla.
3.
In the Components panel, double-click the Tree component to add it to the Stage.
1268
Tree component (Flash Professional only)
). The default value is
1278.
1268.
<node>
.
false
and
"Creating an application with
, which doesn't have a label,
"Tree class (Flash
"Using the

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents