Example
The following example imports an XML file and assigns it to 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
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
hasn't been expanded, setting
visible node or
undefined
object.
This property is an analogue to the
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)
property to
.
true
firstVisibleNode
if there is no visible node. The value of this property is an XMLNode
List.vPosition
myTree
someNode
has no effect. The default value is the first
property.
Tree component (Flash Professional only)
instance of the
is within a node that
777
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers