613
This property can be tested and set.
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.
Examples
This statement sets the variable
oldSound
equal to the current sound level:
oldSound = the soundLevel
This statement sets the sound level to 5:
the soundLevel = 5
See also
soundEnabled
,
volume (sound channel)
the soundMixMedia
Syntax
the soundMixMedia
Description
This global property enables Flash cast members to mix their sound with sounds in the score
sound channels when it is set to
TRUE
. When it is set to
FALSE
, these sounds will not be mixed and
must be played at separate times. This property defaults to TRUE for movies made with Director
7 and later and false for earlier ones.
This property is valid only on Windows. When
the soundMixMedia
is
TRUE
, 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
.
sound playFile
Syntax
sound playFile
whichChannel
,
whichFile
Description
Command; plays the AIFF, SWA, AU, or WAV sound located at
whichFile
in the sound channel
specified by
whichChannel
. For the sound to be played properly, the correct MIX Xtra must be
available to the movie, usually in the Xtras folder of the application.
When the sound file is in a different folder than the movie,
whichFile
must specify the full path
to the file.
To play sounds obtained from a URL, it’s usually a good idea to use
downloadNetThing
or
preloadNetThing()
to download the file to a local disk first. This approach can minimize problems
that may occur while the file is downloading.
The
sound playFile
command streams files from disk rather than playing them from RAM. As
a result, using the
sound
playFile
command when playing digital video or when loading cast
members into memory can cause conflicts when the computer tries to read the disk in two
places at once.
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...