// JavaScript syntax
function mouseDown() {
put(_mouse.clickLoc);
}
If the click were 50 pixels from the left end of the Stage and 100 pixels from the top of the Stage,
the Message window would display the following:
point(50, 100)
See also
clickOn,
Mouse
clickMode
Usage
-- Lingo syntax
memberOrSpriteObjRef.clickMode
// JavaScript syntax
memberOrSpriteObjRef.clickMode;
Description
Flash cast member and sprite property; controls when the Flash movie sprite detects mouse click
events (
mouseUp
). The
mouseLeave
•
#boundingBox
and detects rollovers at the sprite's boundaries.
•
(default)—Detects mouse click events only when the pointer is over an opaque
#opaque
portion of the sprite and detects rollovers at the boundaries of the opaque portions of the sprite
if the sprite's ink effect is set to Background Transparent. If the sprite's ink effect is not set to
Background Transparent, this setting has the same effect as
•
—Detects mouse click events when the mouse pointer is over any filled
#object
(nonbackground) area of the sprite and detects rollovers at the boundaries of any filled area.
This setting works regardless of the sprite's ink effect.
This property can be tested and set.
690
Chapter 14: Properties
and
) and when it detects rollovers (
mouseDown
property can have these values:
clickMode
—Detects mouse click events anywhere within the sprite's bounding rectangle
,
mouseEnter
mouseWithin
.
#boundingBox
, and
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers