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?
1 Correct answer
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
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
Copy link to clipboard
Copied
Yes. It worked.
Thank you so much that worked out just fine.
Copy link to clipboard
Copied
Awesome.
You're welcome.

