User Guide
26 Chapter 2: Top-level functions
activate()
Availability
Flash MX 2004.
Usage
function activate() {
// statements
}
Parameters
None.
Returns
Nothing.
Description
This function is called when the extensible tool becomes active (that is, when the tool is selected
in the Tools panel). Any setup the tool needs to do should be performed in this function.
Example
function activate() {
fl.trace( "Tool is active" );
}