beautypg.com

Alert(), Configuretool() – Adobe Extending Flash Professional CS4 User Manual

Page 38

background image

16

EXTENDING FLASH CS4 PROFESSIONAL

Top-Level Functions and Methods

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

tools.activeTool

when the extensible tool is selected in the Tools panel:

function activate() {

var theTool = fl.tools.activeTool

}

See also

tools.activeTool

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

confirm()

,

prompt()

configureTool()

Availability
Flash MX 2004.