User Guide

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.