Example
This statement changes the content of the field cast member Message to "This is the place." when
the pointer is over sprite 6:
-- Lingo syntax
if (_movie.rollOver(6)) then
member("Message").text = "This is the place."
end if
// JavaScript syntax
if (_movie.rollOver(6)) {
member("Message").text = "This is the place.";
}
The following handler sends the playhead to different frames when the pointer is over certain
sprites on the Stage. It first assigns the
value that was in effect when the rollover started, regardless of whether the user
rollOver
continues to move the mouse.
-- Lingo syntax
on exitFrame
currentSprite = _movie.rollOver()
case currentSprite of
1: _movie.go("Left")
2: _movie.go("Middle")
3: _movie.go("Right")
end case
end exitFrame
// JavaScript syntax
function exitFrame() {
var currentSprite = _movie.rollOver();
switch (currentSprite) {
case 1: _movie.go("Left");
break;
case 2: _movie.go("Middle");
break;
case 3: _movie.go("Right");
break;
}
}
See also
Movie
rootMenu()
Usage
-- Lingo syntax
dvdObjRef.rootMenu()
// JavaScript syntax
dvdObjRef.rootMenu();
Description
DVD method; displays the root menu.
value to a variable. This lets the handler use the
rollOver
rootMenu()
513
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