User Guide

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