PDA

View Full Version : Help stopping a sound!!!!!!!



arianna
August 29th, 2003, 08:43 PM
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 ;) :smirk: =) :beam:

claudio
August 30th, 2003, 11:07 PM
If you have this code on the play button:on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("coolsound");
kirupaSound.start(0, 99);
}Your stop button should have the following code:on (release) {
kirupaSound.stop();
}

flash_legend
September 3rd, 2003, 09:23 AM
please see this link
hope it will satisfy you
http://geocities.com/alostorah2006/sound.swf

if the page did not show

remove http://

and it will work so good


good luck