Skip to main content
Kaye S
Inspiring
May 16, 2019 9:38 AM UTC
Answered

Advanced layers screwing up my code

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 is closed to new replies. Start a new post to keep the conversation going.
Kaye S
Kaye SCorrect answer
Inspiring
May 21, 2019 10:15 AM UTC

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!

31 replies

Participating Frequently
Dec 2, 2023 5:56 PM UTC

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

 

Translate
kglad
Community Expert
Community Expert
Dec 2, 2023 6:27 PM UTC

@keumdong 

 

what error?

Translate
Participating Frequently
Dec 2, 2023 6:34 PM UTC

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

 

Translate
n. tilcheff
Legend
May 16, 2019 12:33 PM UTC

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!

Translate
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 7:32 AM UTC

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!

Translate
Kaye S
Kaye SAuthorCorrect answer
Inspiring
May 21, 2019 10:15 AM UTC

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!

Translate