230
To see an example of
fadeTo()
used in a completed movie, see the Sound Control movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
The following statement changes the volume of sound channel 4 to 150 over a period of 2
seconds. It can be a fade up or a fade down, depending on the original volume of sound channel 4
when the fade begins.
sound(4).fadeTo(150, 2000)
See also
fadeIn()
,
fadeOut()
,
pan (sound property)
,
volume (sound channel)
FALSE
Syntax
FALSE
Description
Constant; applies to an expression that is logically
FALSE
, such as 2 > 3. When treated as a
number value,
FALSE
has the numerical value of 0. Conversely, 0 is treated as
FALSE
.
Example
This statement turns off the
soundEnabled
property by setting it to
FALSE
:
the soundEnabled = FALSE
See also
if
,
not
,
TRUE
far (fog)
Syntax
member(
whichCastmember
).camera(
whichCamera
).fog.far
sprite(
whichSprite
).camera{(
index
)}.fog.far
Description
3D camera property; indicates the distance from the camera, in world units, where the fog reaches
its maximum density when the camera’s
fog.enabled
property is set to
TRUE
.
The default value for this property is 1000.
Example
The following statement sets the
far
property of the fog of the camera named BayView to 5000.
If the fog’s
enabled
property is set to
TRUE
, the fog will be densest 5000 world units in front of
the camera.
member("MyYard").camera("BayView").fog.far = 5000
See also
fog
,
near (fog)
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...