Alert(), Configuretool() – Adobe Extending Flash Professional CS5 User Manual
Page 37
15
EXTENDING FLASH PROFESSIONAL
Top-Level Functions and Methods
Last updated 5/2/2011
Description
Function; called when the extensible tool becomes active (that is, when the tool is selected in the Tools panel). Use this
function to perform any initialization tasks the tool requires.
Example
The following example sets the value of
when the extensible tool is selected in the Tools panel:
function activate() {
var theTool = fl.tools.activeTool
}
See also
alert()
Availability
Flash MX 2004.
Usage
alert ( alertText )
Parameters
alertText
A string that specifies the message you want to display in the Alert dialog box.
Returns
Nothing.
Description
Method; displays a string in a modal Alert dialog box, along with an OK button.
Example
The following example displays the message “Process Complete” in an Alert dialog box:
alert("Process Complete");
See also
,
configureTool()
Availability
Flash MX 2004.