Tools.setcursor(), Tools.shiftisdown – Adobe Extending Flash Professional CS5 User Manual

Page 533

Advertising
background image

511

EXTENDING FLASH PROFESSIONAL

Tools object

Last updated 5/2/2011

tools.setCursor()

Availability
Flash MX 2004.

Usage

tools.setCursor(cursor)

Parameters

cursor

An integer that defines the pointer appearance, as described in the following list:

•

0 = Plus cursor (+)

•

1 = black arrow

•

2 = white arrow

•

3 = four-way arrow

•

4 = two-way horizontal arrow

•

5 = two-way vertical arrow

•

6 = X

•

7 = hand cursor

Returns
Nothing.

Description
Method; sets the pointer to a specified appearance.

Example
The following example sets the pointer to a black arrow.

fl.tools.setCursor(1);

tools.shiftIsDown

Availability
Flash MX 2004.

Usage

tools.shiftIsDown

Description
Read-only property; a Boolean value that is

true

if the Shift key is pressed;

false

otherwise.

Example
The following example determines whether the Shift key is being pressed.

Advertising
This manual is related to the following products: