Sound and Synchronization
327
To stream a linked Shockwave Audio or MP3 sound:
1
Select Insert > Media Element > Shockwave Audio.
This process creates a cast member that controls the streaming Shockwave Audio.
2
In the SWA Cast Member Properties dialog box that appears, click Browse and select a
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.
3
Set the remaining cast member properties in the Property inspector, as described in the
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.
4
Drag the Shockwave Audio cast member to a sprite channel (not one of the sound channels) to
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
preLoadBuffer member
command.
•
To specify the amount of a streaming cast member to download before playback begins, set the
preLoadTime
cast member property.
•
To determine what percentage of a streaming sound file has played, test the
percentPlayed
cast member property.
•
To determine the percent of a streaming file that has streamed from an Internet server, test the
percentStreamed
cast member property.
•
To specify the sound channel in which a streaming sound plays, set the
soundChannel
property.
•
To begin playback of a streaming cast member, use the
play member
command.
•
To pause a streaming sound file, use the
pause member
command.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...