• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Sep 12, 2023 Sep 12, 2023

Copy link to clipboard

Copied

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.

Views

74

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 12, 2023 Sep 12, 2023

Copy link to clipboard

Copied

Hi.

 

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

 

Regards,

JC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 12, 2023 Sep 12, 2023

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines