Director Help

channel() (Top level)

Usage

-- Lingo syntax
channel(soundChannelNameOrNum)

// JavaScript syntax
channel(soundChannelNameOrNum);

Description

Top level function; returns a reference to a Sound Channel object.

Parameters

soundChannelNameOrNum Required. A string that specifies the name of a sound channel, or an integer that specifies the index position of a sound channel.

Example

This statement sets the variable newChannel to sound channel 9:

-- Lingo syntax
newChannel = channel(9)

// JavaScript syntax
var newChannel = channel(9);

See also

Sound Channel