I have set this:
mp3_1 = new Sound();
mp3_1.loadSound("1.mp3", true);
mp3_2 = new Sound();
mp3_2.loadSound("2.mp3", true);
killsound = function(thatmp3) {
thatmp3.stop();
}
In somewhere I set this:
killsound("mp3_1");
I want that “thatmp3” be the sound, so I can use the same function with many sounds.
Any suggestions?
Thanks.