beautypg.com

Tools.penloc, Tools.setcreatingbbox() – Adobe Extending Flash Professional CS5 User Manual

Page 532

background image

510

EXTENDING FLASH PROFESSIONAL

Tools object

Last updated 5/2/2011

tools.penLoc

Availability
Flash MX 2004.

Usage

tools.penLoc

Description
Read-only property; a point that represents the current location of the mouse pointer. The

tools.penLoc

property

comprises two properties, x and y, corresponding to the x,y location of the mouse pointer.

Example
The following example determines the current location of the mouse:

var tempPt = fl.tools.penLoc;

See also

tools.penDownLoc

tools.setCreatingBbox()

Availability
Flash 11.

Usage

tools.setCreatingBbox()

Parameters

Placeholder

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

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);

This manual is related to the following products: