
996
Chapter 14: Properties
Example
This statement tells the SWA streaming cast member Frank Zappa to play in sound channel 3:
-- Lingo syntax
member("Frank Zappa").soundChannel = 3
// JavaScript syntax
member("Frank Zappa").soundChannel = 3;
soundChannel (RealMedia)
Usage
-- Lingo syntax
memberOrSpriteObjRef
.soundChannel
// JavaScript syntax
memberOrSpriteObjRef
.soundChannel;
Description
RealMedia sprite or cast member property; allows you to get or set the sound channel used to play
the audio in the RealMedia stream. Setting this property allows you to control the audio of a
RealMedia stream using the Lingo sound methods and properties. Setting this property to a value
outside the range 0–8 causes a Lingo error. This property has no effect if
realPlayerNativeAudio()
is set to
TRUE
.
The default setting for this property is 0, which means that the RealMedia audio will play in the
highest sound channel available, and the property’s value changes during playback depending on
which channel is being used. When the RealMedia cast member is playing, this property reflects
the sound channel currently in use. When the RealMedia cast member is stopped, this property
reverts to 0.
If you specify a channel (1–8) for this property and there are sounds currently playing in that
channel (from other parts of the movie), they will be stopped and the RealMedia audio will play
in the channel instead.
Concurrently playing RealMedia cast members are not supported; if your movie contains
RealMedia cast members that play concurrently, their sounds are played simultaneously in the
same sound channel.
Example
The following examples show that the sound in the RealMedia stream in sprite 2 and the cast
member Real will be played in sound channel 2.
-- Lingo syntax
put(sprite(2).soundChannel) -- 2
put(member("Real").soundChannel) -- 2
// JavaScript syntax
put(sprite(2).soundChannel); // 2
put(member("Real").soundChannel); // 2
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...