User Guide
on rightMouseDown (event handler) 191
Example
This handler moves sprite 3 to the coordinates stored in the variable centerPlace when the
window that the movie is playing in is resized:
-- Lingo syntax
on resizeWindow centerPlace
sprite(3).loc = centerPlace
end
// JavaScript syntax
function resizeWindow(centerPlace) {
sprite(3).loc = centerPlace;
}
See also
drawRect, sourceRect
on rightMouseDown (event handler)
Usage
-- Lingo syntax
on rightMousedown
statement(s)
end
// JavaScript syntax
function rightMouseDown() {
statement(s);
}
Description
System message and event handler; in Windows, specifies statements that run when the right
mouse button is pressed. On Macintosh computers, the statements run when the mouse button
and Control key are pressed simultaneously and the
emulateMultiButtonMouse property is set
to
TRUE; if this property is set to FALSE, this event handler has no effect on the Macintosh.
Example
This handler opens the window Help when the user clicks the right mouse button in Windows:
-- Lingo syntax
on rightMousedown
window("Help").open()
end
// JavaScript syntax
function rightMouseDown() {
window("Help").open();
}