you need to create your sound objects with a numerical sequence
you can then loop through the numbers to stop the sounds
here i've used s1 - s4 as the sound object names
Code:
this.createEmptyMovieClip("background_sound",100);
bg = new Sound(background_sound);
bg.attachSound("songa");
bg.start();
this.createEmptyMovieClip("sb1",101);
s1 = new Sound(sb1);
s1.attachSound("songb");
s1.start();
this.createEmptyMovieClip("sb2",102);
s2 = new Sound(sb2);
s2.attachSound("songc");
s2.start();
this.createEmptyMovieClip("sb3",103);
s3 = new Sound(sb3);
s3.attachSound("songd");
s3.start();
this.createEmptyMovieClip("sb4",104);
s4 = new Sound(sb4);
s4.attachSound("songe");
s4.start();
stop_btn.onRelease = function(){
for (var n=1; n!=5; n++){
_root["s"+n].stop();
}
};
ps .. it'll help all if you post in Plain English
i have this theory that if you can't write properly,
you probably can't read that well either and i tend
to avoid posting answers as i like to avoid those -
it dun wk 4 me, cn u fx plz kind of replies