Duplicate function on Menu
Hi,
I've made a menu which currently has 2 buttons to go to different frames.
In my actions I have `stop();` on each frame so it doesn't repeatedly loop.
I have added code for 2 buttons which is;
stop();
//click btnTests and go to revision tools
instTest.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
{
gotoAndStop(4);
}
//click btnResources and go to resources
instResources.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
{
gotoAndStop(3);
}
The error I get is 'duplicate function', but I don't know of a way to not have the same function twice.
What do I need to do to have 2 clickable buttons to go to different frames?
Thanks,
Jack
