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

Components language reference
Table of Contents

Advertisement

Tree.removeAll()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
treeInstance.removeAll()
Parameters
None.
Returns
Nothing.
Description
Method; removes all nodes and refreshes the tree.
Example
The following example adds a node to a Tree instance called my_tr and creates a listener for a
Remove All button. When the user clicks the Remove All button, the code calls the
method to remove all nodes from the tree.
removeAll()
You first add an instance of the Tree component to the Stage and name it
button called
removeAll_button
/**
Requires:
- Tree component on Stage (instance name: my_tr)
- Button component on Stage (instance name: refresh_button)
- Button component on Stage (instance name: removeAll_button)
*/
var my_tr:mx.controls.Tree;
var removeAll_button:mx.controls.Button;
my_tr.setSize(200, 100);
1302
Tree component (Flash Professional only)
; then add the following code to Frame 1.
and add a
my_tr

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents