User Guide

406 Chapter 17: Controlling the 3D World
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 308.
Use the following properties to work with 3D cast members in script:
Property Access Description Default
preload
Get and set TRUE (1) or FALSE (0) specification of
whether the member is preloaded before
display and playback or streamed in during
playback. This property is only available for
linked cast members.
None
animation
Enabled
Get and set TRUE (1) or FALSE (0) specification of
whether animation, if any, will play.
TRUE (1)
loop
Get and set TRUE (1) or FALSE (0) specification of
whether animation loops or not.
TRUE (1)
directTo
Stage
Get and set TRUE (1) or FALSE (0) specification of
whether rendering occurs directly to the
Stage or to the Director offscreen buffer. If
TRUE (1), other sprites that intersect with this
sprite may flicker. If
FALSE (0), rendering
layers well, but speed declines.
TRUE (1):
rendering
occurs directly
to the Stage
camera
Position
Get and set Independent x,y,z translation for the default
camera with values ranging from
Float_Min
to
Float_Max.
vector
(0.0, 0.0,
250.0)
camera
Rotation
Get and set Independent x,y,z rotation transforms for the
default camera with values ranging from
Float_Min to Float_Max.
vector
(0.0, 0.0,
0.0)
ambient
Color
Get and set Light applied to entire scene.
rgb(0,0,0)
bgColor
Get and set Background color in all views.
rgb(0,0,0)
directional
Color
Get and set Color of single “default” directional light.
rgb(255,
255,255)
directional
Preset
Get and set Absolute position of the single “default”
directional light:
#None
#TopLeft
#TopCenter
#TopRight
#MiddleLeft
#MiddleCenter
#MiddleRight
#BottomLeft
#BottomCenter
#BottomRight
#TopCenter
specularColor
Get and set Specular color of first shader: the color of
reflections from the shader.
rgb(255,
255,255)
reflectivity
Get and set Reflectivity of first shader, with values from
0.0 to 100.0.
0.0