Director Help

breakLoop()

Usage

-- Lingo syntax
soundChannelObjRef.breakLoop()

// JavaScript syntax
soundChannelObjRef.breakLoop();

Description

Sound Channel method; causes the currently looping sound in channel soundChannelObjRef to stop looping and play through to its endTime.

If there is no current loop, this method has no effect.

Parameters

None.

Example

This handler causes the background music looping in sound channel 2 to stop looping and play through to its end:

-- Lingo syntax
on continueBackgroundMusic
    sound(2).breakLoop()
end

// JavaScript syntax
function continueBackgroundMusic() {
    sound(2).breakLoop();
}

See also

endTime, Sound Channel