Help stopping a sound!

HI kirupa members!

I have followed your tutorial on “Playing Sounds using Actionscript”
great its working but I created another button to “STOP” the sound.
Please advise what the action script would be right using the same linkage
“coolsound” thanx :wink: :smirk: =) :beam:

If you have this code on the play button:[AS]on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound(“coolsound”);
kirupaSound.start(0, 99);
}[/AS]Your stop button should have the following code:[AS]on (release) {
kirupaSound.stop();
}
[/AS]

please see this link
hope it will satisfy you

if the page did not show

remove http://

and it will work so good

good luck