beautypg.com

Chapter 2: top-level functions and methods, Activate(), Top-level functions and methods – Adobe Extending Flash Professional CS5 User Manual

Page 36

background image

14

Last updated 5/2/2011

Chapter 2: Top-Level Functions and
Methods

About this section
This section describes the top-level functions and methods that are available when you use the Adobe Flash JavaScript
application programming interface (JavaScript API). For information about where to store JavaScript API files, see

Saving JSFL files

” on page 2.

Global methods
The following methods can be called from any JavaScript API script:

alert()

confirm()

prompt()

Extensible tools
The following functions are available in scripts that create extensible tools:

activate()

configureTool()

deactivate()

keyDown()

keyUp()

mouseDoubleClick()

mouseDown()

mouseMove()

mouseUp()

notifySettingsChanged()

setCursor()

activate()

Availability
Flash MX 2004.

Usage

function activate() {

// statements

}

Parameters
None.

Returns
Nothing.

This manual is related to the following products: