User Guide

Tree component (Flash Professional only) 777
Example
The following example imports an XML file and assigns it to the myTree instance of the
Tree component:
myTreeDP = new XML();
myTreeDP.ignoreWhite = true;
myTreeDP.load("http://myServer.myDomain.com/source.xml");
myTreeDP.onLoad = function(){
myTree.dataProvider = myTreeDP;
}
Note: Most XML files contain white space. To make Flash ignore white space, you must set the
XML.ignoreWhite property to true.
Tree.firstVisibleNode
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myTree.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
hasnt 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 sets the scroll position to the top of the display:
myTree.firstVisibleNode = myTree.getTreeNodeAt(0);
Tree.getDisplayIndex()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myTree.getDisplayIndex(node)