
550
resource
Syntax
member(
whichCastmember
).model(
whichModel
).resource
Description
3D property; allows you to get or set the resource property that defines the geometry of the
referenced model resource. This property also allows access to the referenced model’s resource
object and its associated properties.
Example
The following statement sets the model resource used by the model named NewBox. It will now
have the same geometry as the model named box.
member("3d World").model("NewBox").resource = member\
("3d World").model("box").resource
This statement displays the resolution property of the model resource used by the model named
Cylinder.
put member("3d World").model("Cylinger").resource.resolution
-- 20
restart
Syntax
restart
Description
Command; closes all open applications and restarts the computer.
Example
This statement restarts the computer when the user presses R (Macintosh) or
R (Windows):
if the key = "r" and the commandDown then restart
See also
quit
,
shutDown
result
Syntax
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.
This function has no effect in the Director player for Java.
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.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...