Playing Shockwave Audio, Windows Media Audio, And Mp3 Audio With Lingo Or Javascript Syntax - MACROMEDIA DIRECTOR MX 2004-USING DIRECTOR Use Manual

Hide thumbs Also See for DIRECTOR MX 2004-USING DIRECTOR:
Table of Contents

Advertisement

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. For more information, see
"Synchronizing media" on page
You can't place streaming audio cast members in the sound channels. The sound streams from
the source location when the movie plays.
Playing Shockwave Audio, Windows Media Audio, and MP3
audio with Lingo or JavaScript syntax
Use SWA script to preload and control SWA and MP3 sounds and to determine how much
sound has streamed over the Internet.
Script 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 about the
following methods and properties, see the Scripting Reference topics in the Director Help Panel.
To preload part of a streaming sound file into memory, use the
method.
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
To stop a streaming sound file, use the
To determine the state of a streaming sound file, test the
To determine whether an error occurred when streaming a sound file, use the
method.
To obtain a string describing an error that occurred when streaming a sound file, use the
getErrorString()
To determine the length of a streaming sound file, use the
To determine the bit rate of a streaming sound cast member, test the
property.
To determine the original bit depth of a streaming sound, test the
To determine the sample rate of the original sound used for a streaming cast member, test the
cast member property.
sampleRate
To determine the number of channels in a streaming sound, test the
cast member property.
To specify a streaming sound's volume, specify the
To specify a streaming sound file's URL, set the
To obtain or set the copyright text in a streaming sound file, test or set the
member property.

Playing Shockwave Audio, Windows Media Audio, and MP3 audio with Lingo or JavaScript syntax

240.
cast member property.
cast member property.
method.
play member
method.
pause member
method.
stop member
state
duration
streaming cast member property.
volume
cast member property.
URL
preLoadBuffer member
percentPlayed
soundChannel
method.
cast member property.
getError()
cast member property.
cast member
bitRate
property.
bitsPerSample
streaming
numChannels
copyrightInfo
cast
239

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents