Tree.gettreenodeat() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example adds a node to a Tree instance called
and then calls the
my_tr
method to retrieve the node at display position 0 (zero). The
getNodeDisplayedAt()
example calls the trace() function to display the node.
You must first add an instance of the Tree component to the Stage and name it
; then
my_tr
add the following code to Frame 1.
/**
Requires:
- Tree component on Stage (instance name: my_tr)
*/
var my_tr:mx.controls.Tree;
my_tr.setSize(200, 100);
var trDP_xml:XML = new XML("<node label=\"1st Local Folders\"><node
label=\"Inbox\" data=\"0\" />");
my_tr.dataProvider = trDP_xml;
trace(my_tr.getNodeDisplayedAt(0));

Tree.getTreeNodeAt()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.getTreeNodeAt(index)
Parameters
The index number of a node.
index
Returns
An XMLNode object.
Description
Method; returns the specified node on the root of
.
myTree
1296
Tree component (Flash Professional only)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents