400
Where you place an
on mouseUp
handler can affect when it runs, as follows:
•
To apply the handler to a specific sprite, put it in a sprite script.
•
To apply the handler to a cast member in general, put it in a cast member script.
•
To apply the handler to an entire frame, put it in a frame script.
•
To apply the handler throughout the entire movie, put it in a movie script.
You can override an
on mouseUp
handler by placing an alternative
on mouseUp
handler in a
location that Lingo checks before it gets to the handler you want to override. For example, you
can override an
on mouseUp
handler assigned to a cast member by placing an
on mouseUp
handler in a sprite script.
If used in a behavior, this event is passed the sprite script or frame script reference
me
.
Example
This handler, assigned to sprite 10, switches the cast member assigned to sprite 10 when the user
releases the mouse button after clicking the sprite:
on mouseUp
sprite(10).member = member "Dimmed"
end
See also
on mouseDown (event handler)
the mouseUp (system property)
Syntax
the mouseUp
Description
System property; indicates whether the mouse button is released (
TRUE
) or is being pressed
(
FALSE
).
The Director player for Java doesn’t update the
mouseUp
property when Lingo is in a repeat loop.
Examples
This handler causes the movie to run as long as the user presses the mouse button. The playhead
stops when the user releases the mouse button.
on exitFrame me
if the mouseUp then
go the frame
end if
end
This statement instructs Lingo to exit the repeat loop or handler it is in when the user releases the
mouse button:
if the mouseUp then exit
See also
the mouseDown (system property)
,
mouseH
,
mouseV
,
the mouseUp (system property)
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...