Buttons to Scene
I have a scene in which I have 11 buttons all of which I would like to point to diffrent individual scenes. When placing the following code for the first button it works fine:
stop();
btn1892.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "1892");
}
But then I add the following in for the second button and I get and error (1021 - duplicate function) and neither the first previously working button is functional nor the new one:
btn1904.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(1, "1904");
}
Being so new to Action Script and Flash I'm not sure where to even start troubleshooting. Could someone lead me in the right direction?
Thanks!