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

Quiz - 1120 Error with Button!

Community Beginner ,
Apr 23, 2019 Apr 23, 2019

Copy link to clipboard

Copied

Hi, I want help with error 1120 in Animate 2019!

I create one Quiz! I create a Symbol with name 'Start' and Type "Button". After i create the Oval in Symbol and i change after the Instance Name of Button in start_btn.

I put the code to stop in 61 Frame from Frame 1 and it show me this "Scene 1, Layer 'Actions', Frame 1, Line 1, Column 1 1120: Access of undefined property start_btn." What's the problem??

My code:

start_btn.addEventListener(MouseEvent.CLICK, startnow);

function startnow(event:MouseEvent):void

{

     gotoAndStop(61);

}

stop();


When i click it, i must go another background.

Views

551

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

correct answers 1 Correct answer

Enthusiast , Apr 24, 2019 Apr 24, 2019

Check if Advanced Layers is on, and if so, toggle it off. You’ll find it under Properties > Advanced settings.

Votes

Translate

Translate
Enthusiast ,
Apr 23, 2019 Apr 23, 2019

Copy link to clipboard

Copied

It says your button does not exist on frame 1.

Be sure to check if your button does indeed have instance name start_btn, and is present on the first frame.

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 Beginner ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Our professor in exercise that he send me it say:

I create new Layer 'Actions'.

I choose the Start button and I give a name to the Instance Name field from Properties 'start_btn'.

I choose Layer 'Actions' and I enter code using the Actions Window (F9).

Note: frame 61 should start the quiz (1st question)


It didn't work again, it show me again the same errror!

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
Enthusiast ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Check if Advanced Layers is on, and if so, toggle it off. You’ll find it under Properties > Advanced settings.

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 Beginner ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

LATEST

Thank you so much!!! Run correctly now!

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