Playing Shockwave Audio And Mp3 Audio With Lingo - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

To stream a linked Shockwave Audio or MP3 sound:
Select Insert > Media Element > Shockwave Audio.
1
This process creates a cast member that controls the streaming Shockwave Audio.
In the SWA Cast Member Properties dialog box that appears, click Browse and select a
2
Shockwave Audio file on a local disk, or enter a URL in the Link Address box.
Unless you select a file in the same folder as the movie, the movie always links to the exact
location that you specify. Be sure to link to the correct location.
Set the remaining cast member properties in the Property inspector, as described in the
3
following list:
To set the volume of the sound, use the Volume slider in the SWA tab in the Property
inspector.
To select the sound channel for the sound, select a number from the Channel pop-up menu in
the SWA tab. To avoid potential conflicts, select Any, which causes the sound to play in the
highest numbered available sound channel.
To specify the size of the stream buffer, use the Preload option in the SWA tab. Director
attempts to load enough sound data to play for the specified time in seconds. This prevents
gaps in sounds that play over slow or interruption-prone Internet connections.
Drag the Shockwave Audio cast member to a sprite channel (not one of the sound channels) to
4
create a sprite. Extend the sprite through all frames in which the sound should play, or use the
tempo channel to make the movie wait for the end of the sound. See "Synchronizing media"
on page 328.
You cannot place streaming audio cast members in the sound channels. The sound streams
from the source location when the movie plays.

Playing Shockwave Audio and MP3 audio with Lingo

Use SWA Lingo to preload and control SWA and MP3 sounds and to determine how much
sound has streamed over the Internet.
Lingo that controls other types of sounds can also control streaming SWA and MP3 sounds by
controlling the sound channel in which the sound plays. For more information on each of these
commands, functions, and properties, see the Lingo Dictionary.
To preload part of a streaming sound file into memory, use the
command.
To specify the amount of a streaming cast member to download before playback begins, set the
preLoadTime
To determine what percentage of a streaming sound file has played, test the
cast member property.
To determine the percent of a streaming file that has streamed from an Internet server, test the
percentStreamed
To specify the sound channel in which a streaming sound plays, set the
property.
To begin playback of a streaming cast member, use the
To pause a streaming sound file, use the
cast member property.
cast member property.
play member
command.
pause member
preLoadBuffer member
percentPlayed
soundChannel
command.
Sound and Synchronization 327

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents