mouseV
879
See also
Mouse
,
mouseDown
,
mouseH
,
mouseV
mouseUpScript
Usage
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"
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"
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)
mouseV
Usage
-- Lingo syntax
_mouse.mouseV
// JavaScript syntax
_mouse.mouseV;
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...