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.
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.
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!
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.
Copy link to clipboard
Copied
Thank you so much!!! Run correctly now!