1000
Chapter 14: Properties
These values correspond to the settings in the Macintosh Sound control panel. Using this
property, script can change the sound volume directly or perform some other action when the
sound is at a specified level.
To see an example of
soundLevel
used in a completed movie, see the Sound Control movie in
the Learning/Lingo Examples folder inside the Director application folder.
Example
This statement sets the variable
oldSound
equal to the current sound level:
-- Lingo syntax
oldSound = _sound.soundLevel
// JavaScript syntax
var oldSound = _sound.soundLevel;
This statement sets the sound level to 5:
-- Lingo syntax
_sound.soundLevel = 5
// JavaScript syntax
_sound.soundLevel = 5;
See also
Sound
,
volume (Windows Media)
soundMixMedia
Usage
-- Lingo syntax
_sound.soundMixMedia
// JavaScript syntax
_sound.soundMixMedia;
Description
Sound property; determines whether Flash cast members will mix their sound with sounds in the
Score sound channels. Read/write.
This property defaults to
TRUE
for movies made with Director 7 and later and
FALSE
for
earlier ones. It is also valid only on Windows.
When this property is
TRUE
, Flash cast members will mix their sound with sounds in the Score
sound channels. Director takes over the mixing and playback of sounds from Flash cast members.
It is possible that slight differences may occur in the way Flash sounds play back. To hear the
Flash sounds exactly they would be rendered in Flash, set this property to
FALSE
.
When this property is set to
FALSE
, Flash sounds will not be mixed and must be played at
separate times.
See also
Sound
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...