beautypg.com

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

Page 37

background image

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

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.

This manual is related to the following products: