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
to access.
The functionality of this property is identical to the top level
Example
This statement sets the variable
-- Lingo syntax
mySound = _player.sound[3]
// JavaScript syntax
var mySound = _player.sound[3];
See also
Player, sound(),
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.
argument is an integer that specifies the number of the sound channel
to the sound in sound channel 3:
mySound
Sound Channel
method.
sound()
soundChannel (SWA)
995
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers