EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 639

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...
attenuation 639
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, Player
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 aspectRatio of member 1:
-- 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.