MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 191

Director scripting reference
Table of Contents

Advertisement

Example
This handler moves sprite 3 to the coordinates stored in the variable
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
to
; if this property is set to
TRUE
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();
}
emulateMultiButtonMouse
, this event handler has no effect on the Macintosh.
FALSE
centerPlace
on rightMouseDown (event handler)
when the
property is set
191

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