MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 513

Director scripting reference
Table of Contents

Advertisement

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

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents