Skip to main content
Participant
Sep 12, 2023 6:13 PM UTC
Question

1120: Undefined Property Error even though I'm it's the correct instance name

stop();
 
start_btn.addEventListener(MouseEvent.CLICK, playGame);
function playGame (event:MouseEvent): void {
gotoAndStop ("gameplay");
 
}
 
Here is the code that I made for a true or false game. So, there is a button named start_btn, and its showing the error. I don't know how to move forward when I double-checked the instance name many times.
    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    kglad
    Community Expert
    Community Expert
    Sep 12, 2023 7:52 PM UTC

    copy your code name and paste into the instance name field of the object that must exist when that code executes.

    Translate
    JoãoCésar17023019
    Community Expert
    Community Expert
    Sep 12, 2023 7:20 PM UTC

    Hi.

     

    Can you show a picture of your instance selected on stage along with the Properties panel open?

     

    Regards,

    JC

    Translate