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

Advanced layers screwing up my code

Community Beginner ,
May 16, 2019 May 16, 2019

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?

4.3K
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 Beginner , May 21, 2019 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!

Translate
Valorous Hero ,
May 16, 2019 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
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 Beginner ,
May 20, 2019 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!

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 Beginner ,
May 21, 2019 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!

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 07, 2021 Jun 07, 2021

you. just. saved. MY LIFE!!

It's 4 AM, my friend and I lost all hope for our Final project on Animate, and this thread just SAVED US!!

Thank you so much, for real. You have no idea how happy you've made a complete stranger!!!!!!!

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 07, 2021 Jun 07, 2021

Dude thx so much, I'm literally crying, being at it for atlmost 12 hours with my friend and we couldn't solve this. Thx a lot really!

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 ,
Dec 02, 2023 Dec 02, 2023

MUHAMMADNAIM33981699eyb4_0-1701539727236.png

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

 

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 ,
Dec 02, 2023 Dec 02, 2023

@keumdong 

 

what error?

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 ,
Dec 02, 2023 Dec 02, 2023

MUHAMMADNAIM33981699eyb4_0-1701542033021.png

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

 

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 ,
Dec 03, 2023 Dec 03, 2023

what's your corrected code?

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 ,
Dec 03, 2023 Dec 03, 2023

MUHAMMADNAIM33981699eyb4_0-1701651835506.png

this is the latest code, it dont show any error anymore but the button(i set to graphic) is useless it suppose to navigate me to other (1,"Opening1") , the button is under the bottle refer to picture

MUHAMMADNAIM33981699eyb4_1-1701652022181.png

 

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 ,
Dec 03, 2023 Dec 03, 2023

i have the same problem with the original post above, after i did some changed it show no error anymore and the camera animation also okay, but the button is not functioning now, hope u can help me with this

 

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 ,
Dec 03, 2023 Dec 03, 2023

how is it that a non-main timeline movieclip has scenes?

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 ,
Dec 03, 2023 Dec 03, 2023

can you eloberate i dont really get it

 

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 ,
Dec 03, 2023 Dec 03, 2023

instead of your goto, use a trace("hi") so you can see your mouse action works.

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 ,
Dec 03, 2023 Dec 03, 2023

can u show me how to change it?

 

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 ,
Dec 03, 2023 Dec 03, 2023

comment out your goto or remove it

replace with my trace statement.

 

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 ,
Dec 03, 2023 Dec 03, 2023

like this ?

MUHAMMADNAIM33981699eyb4_0-1701655036644.png

 

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 ,
Dec 03, 2023 Dec 03, 2023

yes

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 ,
Dec 03, 2023 Dec 03, 2023

it still not working and how this trace can navigate me to the scene i want, since there no reference in the the code not like the one i made?

 

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 ,
Dec 03, 2023 Dec 03, 2023

click your movieclip.

check your output panel

do you see "hi"?

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 ,
Dec 03, 2023 Dec 03, 2023

MUHAMMADNAIM33981699eyb4_0-1701656591023.png

u mean here right? then there no hi here

 

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 ,
Dec 03, 2023 Dec 03, 2023

did you click that movieclip?

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 ,
Dec 03, 2023 Dec 03, 2023

yes, movie clip you mean the button right ?

 

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 ,
Dec 03, 2023 Dec 03, 2023

i mean

 

this.click.movieclip_9

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