MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1291

Components language reference
Table of Contents

Advertisement

Parameters
The zero-based index position (among the child nodes) at which the node should be
index
added.
A string that contains the name of the node to add.
label
An object of any type that is associated with the node. This parameter is optional.
data
Any XMLNode object.
child
Returns
The added XML node.
Description
Method; adds a node at the specified location in the tree. The node is constructed either from
the information supplied in the
XMLNode object (Usage 2). Adding a preexisting node removes the node from its previous
location.
Calling this method refreshes the view.
Example
The following example creates two Tree components with a node for each one:
and
Folders
2nd Local Folders
add a new node,
Inbox
to add the 1st node ((
You must first add the component to the document library by dragging a Tree component to
the Stage and then deleting it; then add the following code to Frame 1.
First try this example without the two addTreeNodeAt() statements at the end; then try
the full example.
and
label
, respectively. It uses the first usage of
, to the first Tree. It then uses the second usage of
) from the second Tree to the first Tree.
getTreeNodeAt(0)
parameters (Usage 1), or from the prebuilt
data
1st Local
addTreeNodeAt()
addTreeNodeAt()
Tree.addTreeNodeAt()
to
1287

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents