MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual page 324

Table of Contents

Advertisement

These statements queue the sound members Explosion and Siren and play them in succession in
sound channel 2:
sound(2).queue(member("Explosion"))
sound(2).queue(member("Siren"))
sound(2).play()
To control how a queued sound plays:
Include optional parameters in a property list within the
Lingo Dictionary.
When you use
setPlayList()
new playlist.
After queuing sounds, you can still control whether the queue is obeyed. You can select to
interrupt loops with the
function. The
playNext()
For more information on sound commands, see the Lingo Dictionary.
Playing external sound files
In addition to playing sounds you have imported as cast members, you can also play external
sound files that have not been imported.
To play external sound files that aren't cast members:
Use the
sound playFile
Playing external sound files from disk minimizes the amount of RAM that is used to play sounds.
However, because the computer can read only one item from disk at a time, loading cast members
or playing more than one sound from disk can cause unacceptable pauses when you use the
command.
playFile
Controlling sound channels
You can use Lingo to make actions in a movie dependent on whether a sound is playing. Lingo
lets you determine whether a sound is playing in a particular sound channel and control how a
channel plays sound. For more information on each of these commands, functions, and
properties, see the Lingo Dictionary.
To determine whether a specific channel is playing a sound, use the
To turn off the current sound in a specific channel, use the
as the new play list. This deletes the entire sound queue and leaves the current sound
[ ]
playing. Use the
To fade a specific channel's sound in and out, use the
To control a specific sound channel's volume, specify the
To control the left-to-right panning of a sound, specify the
324
Chapter 12
, any previously set queue of sounds is replaced by the
command or to pause playback with the
breakLoop()
command lets you skip immediately to the next sound in the queue.
command. See
command to stop the currently playing sound.
stop()
queue()
in the Lingo Dictionary.
sound playFile
setPlayList()
function.
fadeTo()
volume
property.
pan
function. See
queue()
pause()
sound
function.
isBusy()
command with
property.
in the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx

Table of Contents