
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;
}
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...