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 =) :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]