Lingo Dictionary > A-C > breakLoop()

 

breakLoop()

Syntax

sound(channelNum).breakLoop()

Description

This function causes the currently looping sound in channel channelNum to stop looping and play through to its endTime. If there is no current loop, this function has no effect.

Example

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

on continueBackgroundMusic
	sound(2).breakLoop()
end

See also

loopCount, loopEndTime, loopsRemaining, loopStartTime