557
rightMouseUp (system property)
Syntax
the rightMouseUp
Description
System property; indicates whether the right mouse button (Windows) or the mouse button
and Control key (Macintosh) are currently not being pressed (
TRUE
) or are currently being
pressed (
FALSE
).
On the Macintosh,
rightMouseUp
is
TRUE
only if the
emulateMultiButtonMouse
property is
TRUE.
Example
This statement checks whether the right mouse button in Windows is released and plays the
sound Click Me if it is:
if the rightMouseUp then puppetSound 2, "Click Me"
See also
emulateMultiButtonMouse
rollOver()
Syntax
rollOver(
whichSprite
)
the rollOver
Description
Function; indicates whether the pointer (cursor) is currently over the bounding rectangle of the
sprite specified by
whichSprite
(
TRUE
or 1) or not (
FALSE
or 0).
This function has two possible syntax formats:
•
When
rollOver
isn’t preceded by
the
, include parentheses.
•
When
rollOver
is preceded by
the
, don’t include parentheses.
The
rollOver
function is typically used in frame scripts and is useful for creating handlers that
perform an action when the user places the pointer over a specific sprite. It can also simulate
additional sprite channels by splitting the Stage into regions that each send the playhead to a
different frame that subdivides the region for the available sprite channels.
If the user continues to roll the mouse, the value of
rollOver
can change while Lingo is running a
handler. You can make sure that a handler uses a consistent rollover value by assigning
rollOver
to
a variable when the handler starts.
When the pointer is over the location of a sprite that no longer appears in the Score in the current
section,
rollOver
still occurs and reports the sprite as being there. Avoid this problem by not
performing rollovers over these locations or by moving the sprite above the menu bar before
removing it.
Examples
This statement changes the content of the field cast member Message to “This is the place.” when
the pointer is over sprite 6:
if rollover(6) then member("Message").text = "This is the place.""
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...