mApplication.getMousePosition()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector 2.0;

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 2.0; replacing mProjector 1.2 async

Usage

mApplication.getMousePosition() : Object

Parameters

None.

Returns

An object with the following properties:

Description

Method; Retrieves the position of the mouse pointer. The position returned is relative to the top-left corner of the screen, and is returned even when the mouse pointer is outside of the application window.

Example

The following example moves the application to the current mouse position (i.e. application follows the mouse pointer).

var Mouse = mApplication.getMousePosition();
mWindow.setPosition(Mouse.x,Mouse.y);