mouseMove()
Availability
Flash MX 2004.
Usage
function mouseMove( [ pt ] ) {
// statements
}
Parameters
A point that specifies the current location of the mouse. It is passed to the function
pt
whenever the mouse moves, which tracks the mouse location. If the Stage is in edit or
edit-in-place mode, the point coordinates are relative to the object being edited. Otherwise,
the point coordinates are relative to the Stage. This parameter is optional.
Returns
Nothing.
Description
Function; called whenever the extensible tool is active and the mouse moves over a specified
point on the Stage. The mouse button can be down or up.
Example
The following examples show how this function can be used. The first example displays a
message in the Output panel that the mouse is being moved. The second example displays
the x and y coordinates of the mouse's location as it moves.
function mouseMove() {
fl.trace("moving");
}
function mouseMove(pt) {
fl.trace("x = "+ pt.x + " :: y = " + pt.y);
}
mouseMove()
33
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers