User Guide
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