var trDP_xml:XML = new XML("<node label='1st Local Folders'><node
label='Inbox' data='0'/><node label='Outbox' data='1'/></node><node
label='2nd Local Folders'><node label='Inbox' data='2'/><node
label='Outbox' data='3'/></node>");
my_tr.dataProvider = trDP_xml;
my_tr.setIsOpen(my_tr.getTreeNodeAt(1), true);
var isOpen:Boolean = my_tr.getIsOpen(my_tr.getTreeNodeAt(1));
trace("2nd node is a open: " + isOpen);
Tree.getNodeDisplayedAt()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.getNodeDisplayedAt(index)
Parameters
An integer representing the display position in the viewable area of the tree. This
index
number is zero-based; the node at the first position is 0, second position is 1, and so on.
Returns
The specified XMLNode object.
Description
Method; maps a display index of the tree onto the node that is displayed there. For example, if
the fifth row of the tree showed a node that is eight levels deep into the hierarchy, that node
would be returned by a call to
The display index is an array of items that can be viewed in the tree window. For example, any
children of a closed node are not in the display index. The display index starts with 0 and
proceeds through the visible items regardless of parent. In other words, the display index is the
row number, starting with 0, of the displayed rows.
Display indices change every time nodes open and close.
getNodeDisplayedAt(4)
.
Tree.getNodeDisplayedAt()
1295
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers