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.
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();
}