-- Lingo syntax soundChannelObjRef.breakLoop() // JavaScript syntax soundChannelObjRef.breakLoop();
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.
None.
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();
}