MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 32

Extending flash
Table of Contents

Advertisement

mouseDown()
Availability
Flash MX 2004.
Usage
function mouseDown( [ pt ] ) {
// statements
}
Parameters
A point that specifies the location of the mouse when the button is pressed. It is passed to
pt
the function when the mouse button is pressed. This parameter is optional.
Returns
Nothing.
Description
Function; called when the extensible tool is active and the mouse button is pressed while the
pointer is over the Stage.
Example
The following examples show how this function can be used when the extensible tool is active.
The first example displays a message in the Output panel that the mouse button was pressed.
The second example displays the x and y coordinates of the mouse's location when the button
was pressed.
function mouseDown() {
fl.trace("Mouse button has been pressed");
}
function mouseDown(pt) {
fl.trace("x = "+ pt.x+" :: y = "+pt.y);
}
32
Top-Level Functions and Methods

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents