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

Components language reference
Table of Contents

Advertisement

var trDP_xml:XML = new XML();
trDP_xml.ignoreWhite = true;
trDP_xml.onLoad = function() {
my_tr.dataProvider = this.firstChild;
};
trDP_xml.load("http://www.flash-mx.com/mm/xml/tree.xml");
function removeAllListener(evt_obj:Object):Void {
my_tr.removeAll();
}
removeAll_button.addEventListener("click", removeAllListener);

Tree.removeTreeNodeAt()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.removeTreeNodeAt(index)
Parameters
The index number of a tree child. Each child of a tree is assigned a zero-based index
index
in the order in which it was created.
Returns
An XMLNode object, or
Description
Method; removes a node (specified by its index position) on the root of the tree and refreshes
the tree.
Example
The following example adds two nodes to a Tree instance and creates a listener for a change
event on the tree. When a change event occurs, the listener functions call the
removeTreeNodeAt()
if an error occurs.
undefined
method to delete the selected node from the tree.
Tree.removeTreeNodeAt()
1303

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents