EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 508

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
508 Chapter 12: Methods
restore()
Usage
-- Lingo syntax
windowObjRef.restore()
// JavaScript syntax
windowObjRef.restore();
Description
Window method; restores a window after it has been maximized.
Use this method when making custom titlebars for movies in a window (MIAW).
Parameters
None.
Example
This statement restores the maximized window named Control Panel:
-- Lingo syntax
window("Control Panel").restore()
// JavaScript syntax
window("Control Panel").restore();
See also
maximize(), Window
result
Usage
the result
Description
Function; displays the value of the return expression from the last handler executed.
The
result function is useful for obtaining values from movies that are playing in windows
and tracking Lingo’s progress by displaying results of handlers in the Message window as
the movie plays.
To return a result from a handler, assign the result to a variable and then check the variable’s
value. Use a statement such as
set myVariable = function(), where function() is the name
of a specific function.
Parameters
None.
Example
This handler returns a random roll for two dice:
on diceRoll
return random(6) + random(6)
end