MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 871

Director scripting reference
Table of Contents

Advertisement

// JavaScript syntax
function mouseEnter() {
if (_mouse.mouseDown) {
runMouseDownScript();
}
else {
runMouseUpScript();
}
}
See also
Mouse,
on mouseDown (event
handler),
mouseV
mouseDownScript
Usage
the mouseDownScript
Description
System property; specifies the Lingo that is executed when the mouse button is pressed. The
Lingo is written as a string, surrounded by quotation marks and can be a simple statement or a
calling script for a handler. The default value is
property has no Lingo assigned to it.
When the mouse button is pressed and the
the instructions specified for the
handlers are executed, unless the instructions include the
message can be passed to other objects in the movie.
Setting the
mouseDownScript
command in earlier versions of Director.
To turn off the instructions you've specified for the
set the mouseDownScript to empty
This property can be tested and set.
Example
In this statement, when the user clicks the mouse button, the playhead always branches to the
next marker in the movie:
the mouseDownScript = "go next"
In this statement, when the user clicks anywhere on the Stage, the computer beeps:
the mouseDownScript = "if the clickOn = 0 then beep"
The following statement sets
Lingo custom handler must be enclosed in quotation marks when used with the
mouseDownScript
the mouseDownScript = "myCustomHandler"
See also
stopEvent(), mouseUpScript,
handler)
handler), mouseH, mouseUp,
mouseDownScript
property performs the same function as the
.
mouseDownScript
property.
on mouseDown (event
, which means that the
EMPTY
property is defined, Lingo executes
mouseDownScript
property first. No other
command so that the
pass
mouseDownScript
to the custom handler
handler),
on mouseUp (event
mouseDownScript
on mouseDown
mouseDown
when keyDown then
property, use the statement
myCustomHandler
on mouseUp (event
mouseDownScript
. A
871

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents