1016
Chapter 14: Properties
stillDown
Usage
-- Lingo syntax
_mouse.stillDown
// JavaScript syntax
_mouse.stillDown;
Description
Mouse property; indicates whether the user is pressing the mouse button (
TRUE
) or not (
FALSE
).
Read-only.
This function is useful within a
mouseDown
script to trigger certain events only after the
mouseUp
function.
Script cannot test
stillDown
when it is used inside a loop. Use the
mouseDown
function inside
loops instead.
Example
This statement checks whether the mouse button is being pressed and calls the handler
dragProcedure
if it is:
-- Lingo syntax
if (_mouse.stillDown) then
dragProcedure
end if
// JavaScript syntax
if (_mouse.stillDown) {
dragProcedure();
}
See also
Mouse
,
mouseDown
,
mouseUp
stopTime
Usage
sprite(
whichSprite
).stopTime
the stopTime of sprite
whichSprite
Description
Sprite property; determines when the specified digital video sprite stops. The value of
stopTime
is measured in ticks.
This property can be tested and set.
Example
This statement stops the digital video sprite in channel 5 at 100 ticks into the digital video:
sprite(5).stopTime = 100
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...