Highlighted

Quiz - 1120 Error with Button!

Community Beginner ,
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.

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

Views

302

Likes

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

Quiz - 1120 Error with Button!

Community Beginner ,
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.

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

Views

303

Likes

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
Apr 23, 2019 0
Enthusiast ,
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.

Likes

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
Reply
Loading...
Apr 23, 2019 2
Community Beginner ,
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!

Likes

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
Reply
Loading...
Apr 24, 2019 0
Enthusiast ,
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.

Likes

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
Reply
Loading...
Apr 24, 2019 2
Community Beginner ,
Apr 24, 2019

Copy link to clipboard

Copied

Thank you so much!!! Run correctly now!

Likes

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
Reply
Loading...
Apr 24, 2019 0