Chapter 12
328
•
To stop a streaming sound file, use the
stop member
command.
•
To determine the state of a streaming sound file, test the
state
cast member property.
•
To determine whether an error occurred when streaming a sound file, use the
getError()
function.
•
To obtain a string describing an error that occurred when streaming a sound file, use the
getErrorString()
function.
•
To determine the length of a streaming sound file, use the
duration
cast member
command.
•
To determine the bit rate of a streaming sound cast member, test the
bitRate
cast member
property.
•
To determine the original bit depth of a streaming sound, test the
bitsPerSample
property.
•
To determine the sample rate of the original sound used for a streaming cast member, test the
sampleRate
cast member property.
•
To determine the number of channels in a streaming sound, test the
numChannels
streaming
cast member property.
•
To specify a streaming sound’s volume, specify the
volume
streaming cast member property.
•
To specify a streaming sound file’s URL, set the
URL
cast member property.
•
To obtain or set the copyright text in a streaming sound file, test or set the
copyrightInfo
cast
member property.
Synchronizing media
To pause the playhead until a specified cue point in a sound or digital video is reached, you can
use the Wait for Cue Point option in the Tempo dialog box. You can also use this function to wait
for the end of the sound or digital video, even if it has no cue points. Cue points can also be used
to trigger events that Lingo can interpret. See “Synchronizing sound with Lingo” on page 329.
Note:
The methods discussed in this section for synchronizing media apply to sound and digital video. For more
information on using video in Director MX see “Using Video” on page 331.
For example, you can use cue points to make text appear in time with narration. First, use a
program such as Peak LE 2 to place cue points in the sound file that correspond to the times when
you want the text to appear on Stage. In Director, use the Tempo dialog box to pause the
playhead at the frame where the corresponding text appears until the voice-over reaches the
proper cue point.
In Windows, use Sound Forge 4.0 or later or Cool Edit 96 or later to define cue points (called
markers or regions within these programs). For instructions, see the Readme Windows Sound
Loop-Cue.txt file in the Director application folder.
On the Macintosh, use Sound Edit 16 2.07 or later, or Peak LE 2 or later, to define cue points in
AIFF and Shockwave Audio sounds and in QuickTime digital videos.
Note:
You can insert cue points into QuickTime files only on the Macintosh; however, the cue points can be used on
both platforms.
AVI digital video does not support cue points.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...