Lingo Dictionary > L-N > mouseUpScript |  |

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 you've 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`.

Example

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"

Example

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"

Example

This statement sets `mouseUpScript` to`` the custom handler `myCustomHandler`. A Lingo custom handler must be enclosed in quotation marks when used with the `mouseUpScript` property.

    the mouseUpScript = "myCustomHandler"

See also

`stopEvent`, `mouseDownScript`, `on mouseDown (event handler)`, `on mouseUp (event handler)`