Copy link to clipboard
Copied
Hi Everyone,
I have several buttons in my project which I have coded like the one below, I had them all working but have come back to my project and are receiving the error:1021 Duplicate Function Definition
stop();
btn_start_session.addEventListener(MouseEvent.MOUSE_DOWN, myBtnHandler13);
function myBtnHandler13(event:MouseEvent):void {
gotoAndStop(1, "Open_Live");
}
I also have multiple scenes within the project some with multiple buttons per page.
Somewhere you are using the same function name for more than one function.
Copy link to clipboard
Copied
Somewhere you are using the same function name for more than one function.
Copy link to clipboard
Copied
In someother frames or scenes you have the same function name. Ctrl+F to find with the name "myBtnHandler13"
Copy link to clipboard
Copied
If you are 100% sure you have no duplications, it may just be your Actionscript 3 file. I had this same thing happen to me last night, I spent HOURS trying to figure out the issue...I knew there were NO duplications in my actionscript files. SO I created a new Actionscript 3 file and reinputted all my include files and everything worked again.