396
on mouseLeave
Syntax
on mouseLeave
statement
(
s
)
end
Description
System message and event handler; contains statements that run when the mouse leaves the active
area of the sprite. The mouse button does not have to be pressed.
If the sprite is a bitmap cast member with the matte ink applied, the active area is the portion of
the image that is displayed; otherwise, the active area is the sprite’s bounding rectangle.
If used in a behavior, this event is passed the sprite script or frame script reference
me
.
Example
This statement shows a simple button behavior that switches the bitmap of the button when the
mouse pointer rolls over and then back off the button:
property spriteNum
on mouseEnter me
-- Determine current cast member and switch to next in cast
currentMember = sprite(spritenum).member.number
sprite(spritenum).member = current 1
end
on mouseLeave me
-- Determine current cast member and switch to previous in cast
currentMember = sprite(spritenum).member.number
sprite(spritenum).member = currentMember - 1
end
See also
on mouseEnter
,
on mouseWithin
mouseLevel
Syntax
sprite(
whichQuickTimeSprite
).mouseLevel
the mouseLevel of sprite
whichQuickTimeSprite
Description
QuickTime sprite property; controls how Director passes mouse clicks on a QuickTime sprite to
QuickTime. The ability to pass mouse clicks within the sprite’s bounding rectangle can be useful for
interactive media such as QuickTime VR. The
mouseLevel
sprite property can have these values:
•
#controller
—Passes clicks only on the movie controller to QuickTime. Director responds
only to mouse clicks that occur outside the controller. This is the standard behavior for
QuickTime sprites other than QuickTime VR.
•
#all
—Passes all mouse clicks within the sprite’s bounding rectangle to QuickTime. No clicks
pass to other Lingo handlers.
•
#none
—Does not pass any mouse clicks to QuickTime. Director responds to all mouse clicks.
•
#shared
—Passes all mouse clicks within a QuickTime VR sprite’s bounding rectangle to
QuickTime and then passes these events to Lingo handlers. This is the default value for
QuickTime VR.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...