Director Help

playNext() (Sound Channel)

Usage

-- Lingo syntax
soundChannelObjRef.playNext()

// JavaScript syntax
soundChannelObjRef.playNext();

Description

Sound Channel method; immediately interrupts playback of the current sound playing in a sound channel and begins playing the next queued sound.

If no more sounds are queued in the given channel, the sound simply stops playing.

Parameters

None.

Example

This statement plays the next queued sound in sound channel 2:

-- Lingo syntax
sound(2).playNext()

// JavaScript syntax
sound(2).playNext();

See also

pause() (Sound Channel), play() (Sound Channel), Sound Channel,stop() (Sound Channel)