# Multiple sounds on single frame problem

**URL:** <https://forum.kirupa.com/t/multiple-sounds-on-single-frame-problem/313070>\
**Category:** flash\
**Created:** [August 19, 2010, 3:10am UTC](https://forum.kirupa.com/t/multiple-sounds-on-single-frame-problem/313070 "2010-08-19T03:10:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SincerestApathy](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@SincerestApathy](https://forum.kirupa.com/u/SincerestApathy)\
**Post date:** [August 19, 2010, 3:10am UTC](https://forum.kirupa.com/t/multiple-sounds-on-single-frame-problem/313070/1 "2010-08-19T03:10:45Z")

</div>

I have two buttons on a single frame that each play seperate sounds when clicked though actionscript is throwing up this error and I have no idea how to fix it.

Can anyone help?

1151: A conflict exists with definition snd in namespace internal.  
1021: Duplicate function definition.  
Warning: 3596: Duplicate variable definition.

```auto
stop();

var snd:Sound2= new Sound2();

Clock_btn.addEventListener (MouseEvent.CLICK, soundbutton_Handler);

function soundbutton_Handler (e:MouseEvent):void 
{
snd.play();
}

stop();

var snd:Mysound3= new Mysound3();

Stamina_btn.addEventListener (MouseEvent.CLICK, soundbutton_Handler);

function soundbutton_Handler (e:MouseEvent):void 
{
snd.play();
}

```
