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
Содержание DIRECTOR MX 2004
Страница 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...