User Guide
1290 Tree component (Flash Professional only)
Tree.firstVisibleNode
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.firstVisibleNode = someNode
Description
Property; indicates the first node that is visible at the top of the tree display. Use this property
to scroll the tree display to a desired position. If the specified node
someNode is within a node
that hasn’t been expanded, setting
firstVisibleNode has no effect. The default value is the
first visible node or
undefined if there is no visible node. The value of this property is an
XMLNode object.
This property is an analogue to the
List.vPosition property.
Example
The following example populates a Tree component called my_tr with six nodes that it creates
from a string of XML text. It makes the last node visible in the Tree by assigning the last node
(relative position 5) to the
firstVisibleNode property. You can make other nodes visible by
changing 5 to other values from 0 to 4.