Why can i not get this to work, it plays the music but does not stop it. I am using Flash MX
on (press) {
set (counter, counter = couter + 1);
if (counter >=1)
song = new Sound();
song.attachSound("Tonic"
;
song.start("Tonic"
;
_root.speaker.play();
if (counter < 1)
song.stop("Tonic"
;
_root.speaker.stop();
}
on (press) {
set (counter, counter = couter + 1);
if (counter >=1)
song = new Sound();
song.attachSound("Tonic"
song.start("Tonic"
_root.speaker.play();
if (counter < 1)
song.stop("Tonic"
_root.speaker.stop();
}