231
field
Syntax
field
whichField
Description
Keyword; refers to the field cast member specified by
whichField
.
•
When
whichField
is a string, it is used as the cast member name.
•
When
whichField
is an integer, it is used as the cast member number.
Character strings and chunk expressions can be read from or placed in the field.
The term
field
was used in earlier versions of Director and is maintained for backward
compatibility. For new movies, use
member
to refer to field cast members.
Examples
This statement places the characters 5 through 10 of the field name entry in the variable
myKeyword
:
myKeyword = field("entry").char[5..10]
This statement checks whether the user entered the word desk and, if so, goes to the frame deskBid:
if member "bid" contains "desk" then go to "deskBid"
See also
char...of
,
item...of
,
line...of
,
word...of
fieldOfView
Syntax
sprite(
whichQTVRSprite
).fieldOfView
the fieldOfView of sprite
whichQTVRSprite
Description
QTVR sprite property; gives the specified sprite’s current field of view in degrees.
This property can be tested and set.
fieldOfView (3D)
Syntax
member(
whichCastmember
).camera(
whichCamera
).fieldOfView
sprite(
whichSprite
).camera{(
index
)}.fieldOfView
Description
3D camera property; indicates the angle formed by two rays: one drawn from the camera to the top
of the projection plane, and the other drawn from the camera to the bottom of the projection plane.
The images of the models in the 3D world are mapped onto the projection plane, which is
positioned in front of the camera like a screen in front of a movie projector. The projection plane
is what you see in the 3D sprite. The top and bottom of the projection plane are defined by the
fieldOfView
property. Note, however, that the sprite is not resized as the value of the
fieldOfView
property changes. Instead, the image of the projection plane is scaled to fit the rect
of the sprite.
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...