232
The value of this property is meaningful only when the value of the camera’s
projection
property is set to
#perspective
. When the
projection
property is set to
#orthographic
, use
the camera’s
orthoHeight
property to define the top and bottom of the projection plane.
The default setting for this property is 30.0.
Example
This statement sets the
fieldOfView
property of camera 1 to 90:
member("3d world").camera[1].fieldOfView = 90
See also
orthoHeight
fileName (cast property)
Syntax
castLib(
whichCast
)
.
fileName
the fileName of castLib
whichCast
Description
Property; specifies the filename of the specified cast.
•
For an external cast,
fileName
gives the cast’s full pathname and filename.
•
For an internal cast, the
fileName castLib
property depends on which internal cast is
specified. For the first internal cast library, the
fileName castLib
property specifies the name
of the movie. For remaining internal casts,
fileName
is an empty string.
The
fileName of castLib
property accepts URLs as references. However, to use a cast from the
Internet and minimize download time, use the
downloadNetThing
or
preloadNetThing
command to download the cast’s file to a local disk first and then set
fileName castLib
to the
file on the disk.
If a movie sets the filename of an external cast, don’t use the Duplicate Cast Members for Faster
Loading option in the Projector Options dialog box.
This property can be tested and set for external casts. It can be tested only for internal casts.
Note:
Director for Java does not support the downloadNetThing command.
Examples
This statement displays the pathname and filename of the Buttons external cast in the
Message window:
put castLib("Buttons").fileName
This statement sets the filename of the Buttons external cast to Content.cst:
castLib("Buttons").fileName = the moviePath & "Content.cst"
The movie then uses the external cast file Content.cst as the Buttons cast.
These statements download an external cast from a URL to the Director application folder and
then make that file the external cast named Cast of Thousands:
downLoadNetThing("http://www.cbDeMille.com Thousands.cst", the \
applicationPath&"Thousands.cst")
castLib("Cast of Thousands").fileName = the applicationPath & "Thousands.cst"
See also
downloadNetThing
,
preloadNetThing()
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...