User Guide
192 Chapter 10: Events and Messages
on rightMouseUp (event handler)
Usage
-- Lingo syntax
on rightMouseUp
statement(s)
end
// JavaScript syntax
function rightMouseUp() {
statement(s);
}
Description
System message and event handler; in Windows, specifies statements that run when the right
mouse button is released. On Macintosh computers, the statements run if the mouse button is
released while the Control key is pressed 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 Help window when the user releases the right mouse button in Windows:
-- Lingo syntax
on rightMouseUp
window("Help").open()
end
// JavaScript syntax
function rightMouseUp() {
window("Help").open();
}
on runPropertyDialog
Usage
-- Lingo syntax
on runPropertyDialog me, currentInitializerList
statement(s)
end
// JavaScript syntax
function runPropertyDialog(currentInitializerList) {
statement(s);
}
Description
System message and event handler; contains Lingo that defines specific values for a behavior’s
parameters in the Parameters dialog box. The runPropertyDialog message is sent whenever
the behavior is attached to a sprite, or when the user changes the initial property values of a
sprite’s behavior.
The current settings for a behavior’s initial properties are passed to the handler as a property list. If
the
on runPropertyDialog handler is not defined within the behavior, Director runs a behavior
customization dialog box based on the property list returned by the on
getPropertyDescriptionList
handler.