878
Chapter 14: Properties
_movie.updatestage()
end
// JavaScript syntax
function enterFrame() {
switch(sprite(3).mouseOverButton)
case 1:
member("Message Line").text = "Click here to go to the next page.";
break;
case 0:
member("Message Line").text = " ";
break;
}
_movie.updatestage();
}
mouseUp
Usage
-- Lingo syntax
_mouse.mouseUp
// JavaScript syntax
_mouse.mouseUp;
Description
Mouse property; indicates whether the mouse button is released (
TRUE
) or is being pressed
(
FALSE
). Read-only.
Example
This handler causes the movie to run as long as the user presses the mouse button. The playhead
stops when the user releases the mouse button.
-- Lingo syntax
on exitFrame me
if (_mouse.mouseUp) then
_movie.go(_movie.frame)
end if
end
// JavaScript syntax
function exitFrame() {
if (_mouse.mouseUp) {
_movie.go(_movie.frame);
}
}
This statement instructs Lingo to exit the repeat loop or handler it is in when the user releases the
mouse button:
-- Lingo syntax
if (_mouse.mouseUp) then exit
// JavaScript syntax
if (_mouse.mouseUp) {
return;
}
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...