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

Error 1120 Access of undefined property for Restart button

New Here ,
Jun 10, 2024 Jun 10, 2024

Copy link to clipboard

Copied

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

Views

130

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

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

Votes

Translate

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

Yes. It worked.

Thank you so much that worked out just fine.

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

Copy link to clipboard

Copied

LATEST

Awesome.

 

You're welcome.

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