Director Help

rewind() (Sound Channel)

Usage

-- Lingo syntax
soundChannelObjRef.rewind()

// JavaScript syntax
soundChannelObjRef.rewind();

Description

Sound Channel method; interrupts the playback of the current sound in a sound channel and restarts it at its startTime.

If the sound is paused, it remains paused, with the currentTime set to the startTime.

Parameters

None.

Example

This statement restarts playback of the sound cast member playing in sound channel 1 from the beginning:

-- Lingo syntax
sound(1).rewind()

// JavaScript syntax
sound(1).rewind();

See also

Sound Channel, startTime