Director Help

channel() (Sound)

Usage

-- Lingo syntax
_sound.channel(intChannelNum)

// JavaScript syntax
_sound.channel(intChannelNum);

Description

Sound method; returns a reference to a specified sound channel.

The functionality of this method is identical to the top level sound() method.

Parameters

intChannelNum Required. An integer that specifies the sound channel to reference.

Example

This statement sets the variable named myChannel to sound channel 2:

-- Lingo syntax
myChannel = _sound.channel(2)

// JavaScript syntax
var myChannel = _sound.channel(2);

See also

Sound, sound(), Sound Channel