stop looping sound when i say

how can i stop a looping sound when i want?
i tried sending messages but it doesnt stop.

if you have a sound set to loop in the sound buttons, and are using in the sound actuator play-end or loop-end, or anything else that ends in end. the sound will play forever because it doesn’t have an end. Use play-stop, or loop-stop, in your sound actuator.

i know but i want to play it forever until i say not just once.

Use a prop. Set an int prop “playsound” to 0 at first. Instead of using al always sensor to trigger the sound, use a property sensor. Make it “playsound” equals 1. When you want the sound to play, use an actuator that sets “playsound” to 1. When you want the sound to stop, use an actuator that sets “playsound” to 0.

thanks saluk.