MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 631

Director scripting reference
Table of Contents

Advertisement

For example, if the color of the ambient light is
property of the shader is
ambient
component of the light that the shader's colors can reflect. However, it will reflect none of the
blue and green components of the light, regardless of the colors of the shader. In this case, if there
are no other lights in the scene, the blue and green colors of the shader will reflect no light, and
will appear black.
The default value of this property is
Example
This statement sets the
Chair will fully reflect the red and green components of the ambient light in the scene and
completely ignore its blue component.
member("Room").model("Chair").shader.ambient = rgb(255, 0, 0)
See also
ambientColor, newLight,
ambientColor
Usage
member(whichCastmember).ambientColor
Description
3D cast member property; indicates the RGB color of the default ambient light of the
cast member.
The default value for this property is rgb(0, 0, 0). This adds no light to the scene.
Example
This statement sets the
0). The default ambient light of the cast member will be red. This property can also be set in the
Property inspector.
member("Room").ambientColor = rgb(255, 0, 0)
See also
directionalColor, directionalPreset,
ancestor
Usage
property {optionalProperties} ancestor
Description
Object property; allows child objects and behaviors to use handlers that are not contained within
the parent script or behavior.
The
property is typically used with two or more parent scripts. You can use this
ancestor
property when you want child objects and behaviors to share certain behaviors that are inherited
from an ancestor, while differing in other behaviors that are inherited from the parents.
rgb(255, 0, 0)
rgb(63,63,63)
property of the model named Chair to
ambient
type
(light), diffuse,
property of the cast member named Room to rgb(255, 0,
ambientColor
rgb(255, 255, 255)
, the shader will reflect all of the red
.
specular (shader)
ambient
and the value of the
.
rgb(255, 255, 0)
ancestor
631

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents