654
Chapter 14: Properties
// JavaScript syntax
window("Animals").bgColor = color(255, 153, 0);
See also
Window
bgColor (Sprite, 3D Member)
Usage
sprite(
whichSpriteNumber
).bgColor
the bgColor of sprite
whichSpriteNumber
the bgColor of the stage
(the stage).bgColor
member(
which3dMember
).bgcolor
Description
Sprite property, system property, and 3D cast member property; determines the background color
of the sprite specified by
whichSprite
, the color of the Stage, or the background color of the 3D
cast member. Setting the
bgColor
sprite property is equivalent to choosing the background color
from the Tools window when the sprite is selected on the Stage. Setting the
bgColor
property for
the Stage is equivalent to setting the color in the Movie Properties dialog box.
The sprite property has the equivalent functionality of the
backColor
sprite property, but the
color value returned is a color object of whatever type has been set for that sprite.
This property can be tested and set.
Example
This example sets the color of the Stage to an RGB value.
Dot syntax:
(the stage).bgColor = rgb(255, 153, 0)
Verbose Lingo syntax:
set the bgColor of the stage = rgb(255, 153, 0)
See also
color()
,
backColor
,
backgroundColor
bias
Usage
member(
whichCastmember
).model(
whichModel
).lod.bias
Description
3D
lod
modifier property; indicates how aggressively the modifier removes detail from the model
when its
auto
property is set to
TRUE
. This property has no effect when the modifier’s
auto
property is set to
FALSE.
The range for this property is from 0.0 (removes all polygons) to +100.0 (removes no polygons).
The default setting is 100.0.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...