Skip to main content
Kaye S
Inspiring
May 16, 2019
Answered

Advanced layers screwing up my code

  • May 16, 2019
  • 2 replies
  • 4536 views

Last year I made an animation. It worked fine with code and using the camera layer/tool. Ive reopened the file this year to make some changes. The "Do you want to turn on advanced layers" box appears. If I say "yes" to this, then all the references in my scrips to my movieclips stop working and throw up an error

Access of undefined property xxxx

If I turn off the Advanced layers function, my scripts work but then I can no longer use the Camera tool. Is there anyway to install last years version of Animate CC? Or how do I reference all my movie clips in my code with advanced layers turned on? I don't really need advanced layers...just the camera feature.

This is really frustrating.

Any ideas?

This topic has been closed for replies.
Correct answer Kaye S

I've just solved the problem. If anyone else is really confused by the example given by Adobe like I was, here's a basic explanation of how the script will change:

Without Advanced Layers: MovieClipInstanceName.gotoAndStop(5);

WITH Advanced Layers: nameOfYourLayer.MovieClipInstanceName.gotoAndStop(5);

So easy!

2 replies

Participating Frequently
December 2, 2023

i having some issue but i tried your code but still the error is the same, anyone help

 

kglad
Community Expert
December 2, 2023

@keumdong 

 

what error?

Participating Frequently
December 2, 2023

same as the original post, i tried correcting using the given solving but it still error

 

n. tilcheff
Brainiac
May 16, 2019

Hi mate,

Scroll down to the middle of this page Create timeline layers with Animate

You'll see a section called "Using Advanced Layers"

It should answer your question how to reference them

Hope this helps!

Nick - Character Designer and Animator, Flash user since 1998 | Member of the Flanimate Power Tools team - extensions for character animation
Kaye S
Kaye SAuthor
Inspiring
May 20, 2019

Thank you!

I have tried to implement the script using the example from the link however I havent been too successful and keep getting different error codes.

In a normal Actionscript, a person could type the following, for example:

symbol_Instance_name.gotoAndStop("frameLabelName");

I would love it if someone could help me change this code to make it work With Advanced layers.

Thanks in Advanced!

Kaye S
Kaye SAuthorCorrect answer
Inspiring
May 21, 2019

I've just solved the problem. If anyone else is really confused by the example given by Adobe like I was, here's a basic explanation of how the script will change:

Without Advanced Layers: MovieClipInstanceName.gotoAndStop(5);

WITH Advanced Layers: nameOfYourLayer.MovieClipInstanceName.gotoAndStop(5);

So easy!