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

Error 1120 Access of undefined property for Restart button

New Here ,
Jun 10, 2024 Jun 10, 2024

Hi everyone,

I'm new to Adobe Animate and I'm making a stickman movie project, and I have gotten this error with a button.

I've checked the script and the button's instance names all match up but the error keeps showing up.

I tried turning off advanced layers and it works but I need the advanced layers for camera.

Can anyone please help?

TOPICS
Error , Import and export
546
Translate
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

Community Expert , Jun 11, 2024 Jun 11, 2024

Hi.

 

When advanced layers are on and some of their features are being used in a scene other than the first one - in your case the Camera tool -, you need to prefix the layer's name first. So instead of Replay.addEventListener it would be something like Layer_1.Replay.addEventListener.

Please give it a try and let us know.

 

Regards,

JC

Translate
Community Expert ,
Jun 11, 2024 Jun 11, 2024

Hi.

 

When advanced layers are on and some of their features are being used in a scene other than the first one - in your case the Camera tool -, you need to prefix the layer's name first. So instead of Replay.addEventListener it would be something like Layer_1.Replay.addEventListener.

Please give it a try and let us know.

 

Regards,

JC

Translate
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
New Here ,
Jun 11, 2024 Jun 11, 2024

Yes. It worked.

Thank you so much that worked out just fine.

Translate
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 ,
Jun 12, 2024 Jun 12, 2024
LATEST

Awesome.

 

You're welcome.

Translate
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