User Guide
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;
}