# Manage Multiple Sounds with one function

**URL:** https://forum.kirupa.com/t/manage-multiple-sounds-with-one-function/172790
**Category:** flash
**Created:** [December 18, 2005, 12:13am UTC](https://forum.kirupa.com/t/manage-multiple-sounds-with-one-function/172790 "2005-12-18T00:13:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dmassive](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dmassive](https://forum.kirupa.com/u/dmassive)
#### Post date: [December 18, 2005, 12:13am UTC](https://forum.kirupa.com/t/manage-multiple-sounds-with-one-function/172790/1 "2005-12-18T00:13:19Z")

</div>

I have set this:

```auto

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:

```auto

killsound("mp3_1");

```

I want that “thatmp3” be the sound, so I can use the same function with many sounds.

Any suggestions?

Thanks.
