soundChannel (SWA)
995
sound (Player)
Usage
-- Lingo syntax
_player.sound[
intSoundChannelNum
]
// JavaScript syntax
_player.sound[
intSoundChannelNum
];
Description
Player property; provides indexed access to a Sound Channel object by using a Player property.
Read-only.
The
intSoundChannelNum
argument is an integer that specifies the number of the sound channel
to access.
The functionality of this property is identical to the top level
sound()
method.
Example
This statement sets the variable
mySound
to the sound in sound channel 3:
-- Lingo syntax
mySound = _player.sound[3]
// JavaScript syntax
var mySound = _player.sound[3];
See also
Player
,
sound()
,
Sound Channel
soundChannel (SWA)
Usage
-- Lingo syntax
memberObjRef
.soundChannel
// JavaScript syntax
memberObjRef
.soundChannel;
Description
Shockwave Audio (SWA) cast member property; specifies the sound channel in which the SWA
sound plays.
If no channel number or channel 0 is specified, the SWA streaming cast member assigns the
sound to the highest numbered sound channel that is unused.
Shockwave Audio streaming sounds can appear as sprites in sprite channels, but they play sound
in a sound channel. Refer to SWA sound sprites by their sprite channel number, not their sound
channel number.
This property can be tested and set.
Содержание DIRECTOR MX 2004
Страница 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...