User Guide

401
on mouseUpOutside
Syntax
on mouseUpOutside me
statement(s)
end
Description
System message and event handler; sent when the user presses the mouse button on a sprite but
releases it (away from) the sprite.
Example
This statement plays a sound when the user clicks the mouse button over a sprite and then
releases it outside the bounding rectangle of the sprite:
on mouseUpOutside me
puppetSound "Professor Long Hair"
end
See also
on mouseEnter, on mouseLeave, on mouseWithin
mouseUpScript
Syntax
the mouseUpScript
Description
System property; determines the Lingo that is executed when the mouse button is released. The
Lingo is written as a string, surrounded by quotation marks, and can be a simple statement or a
calling script for a handler.
When the mouse button is released and the
mouseUpScript property is defined, Lingo executes
the instructions specified for the
mouseUpScript property first. Unless the instructions include
the pass command so that the mouseUp message can be passed on to other objects in the movie,
no other
on mouseUp handlers are executed.
When the instructions youve specified for the mouseUpScript property are no longer
appropriate, turn them off by using the statement
set the mouseUpScript to empty.
Setting the
mouseUpScript property accomplishes the same thing as using the when mouseUp
then
command that appeared in earlier versions of Director.
This property can be tested and set. The default value is
EMPTY.
Examples
When this statement is in effect and the movie is paused, the movie always continues whenever
the user releases the mouse button:
the mouseUpScript = "go to the frame +1"
With this statement, when the user releases the mouse button after clicking anywhere on the
Stage, the movie beeps:
the mouseUpScript = "if the clickOn = 0 then beep"