Example
This statement displays the pathname for the folder that contains the Director application.
-- Lingo syntax
put(_player.applicationPath)
// JavaScript syntax
put(_player.applicationPath);
This statement opens the movie Sunset Boulevard in a window (on a Windows machine):
-- Lingo syntax
window(_player.applicationPath & "\Film Noir\Sunset Boulevard").open()
// JavaScript syntax
window(_player.applicationPath + "\Film Noir\\Sunset Boulevard").open();
See also
applicationName,
aspectRatio
Usage
-- Lingo syntax
dvdObjRef.aspectRatio
// JavaScript syntax
dvdObjRef.aspectRatio;
Description
DVD property. Returns a property list that specifies the width and height of the DVD cast
member. Read-only.
Both the width and height are returned as integers.
Example
This statement returns the
-- Lingo syntax
trace(member(1).aspectRatio) -- [#width: 16, #height:9]
// JavaScript syntax
trace(member(1).aspectRatio); // ["width": 16, "height":9];
See also
DVD
attenuation
Usage
member(whichCastMember).light(whichLight).attenuation
Description
3D light property; indicates the constant, linear, and quadratic attenuation factors for spotlights
and point lights.
Player
of member 1:
aspectRatio
attenuation
639
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