Im doing the tutorial “playing sounds with actionscript” in the actionscript tutorials section.
My version works fine, but I seem unable to stop the sound.
I have 2 frames, both with “stop();” in the actions of one of the layers.
In the first frame there is the play button, with the actionscript:
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("coolsound");
kirupaSound.start(0, 99);
gotoAndStop(2);
}
In the second frame there is a stop button, with the actionscript:
on(release) {
kirupaSound.stop;
gotoAndStop(1);
}
But, “KirupaSound.stop;” does not stop the sound. How can I?