
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
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...