Cast member properties
You can control most cast member properties using the Property inspector. For more information,
see
"Using the Property inspector for 3D" on page
Use the following properties to work with 3D cast members in script:
Property
preload
animation
Enabled
loop
directTo
Stage
camera
Position
camera
Rotation
ambient
Color
bgColor
directional
Color
directional
Preset
specularColor
reflectivity
406
Chapter 17: Controlling the 3D World
Access
Description
Get and set
TRUE (1)
whether the member is preloaded before
display and playback or streamed in during
playback. This property is only available for
linked cast members.
Get and set
TRUE (1)
whether animation, if any, will play.
Get and set
TRUE (1)
whether animation loops or not.
Get and set
TRUE (1)
whether rendering occurs directly to the
Stage or to the Director offscreen buffer. If
TRUE (1)
sprite may flicker. If
layers well, but speed declines.
Get and set
Independent
camera with values ranging from
to
Float_Max
Get and set
Independent
default camera with values ranging from
Float_Min
Get and set
Light applied to entire scene.
Get and set
Background color in all views.
Get and set
Color of single "default" directional light.
Get and set
Absolute position of the single "default"
directional light:
#None
#TopLeft
#TopCenter
#TopRight
#MiddleLeft
#MiddleCenter
#MiddleRight
#BottomLeft
#BottomCenter
#BottomRight
Get and set
Specular color of first shader: the color of
reflections from the shader.
Get and set
Reflectivity of first shader, with values from
to
0.0
308.
or
specification of
FALSE (0)
or
specification of
FALSE (0)
or
specification of
FALSE (0)
or
specification of
FALSE (0)
, other sprites that intersect with this
FALSE (0)
,
,
translation for the default
x
y
z
.
,
,
rotation transforms for the
x
y
z
to
.
Float_Max
.
100.0
Default
None
TRUE (1)
TRUE (1)
TRUE (1)
rendering
occurs directly
to the Stage
, rendering
vector
(0.0, 0.0,
Float_Min
250.0)
vector
(0.0, 0.0,
0.0)
rgb(0,0,0)
rgb(0,0,0)
rgb(255,
255,255)
#TopCenter
rgb(255,
255,255)
0.0
:
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers