Copy link to clipboard
Copied
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?
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!
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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!!!!!!!
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
i having some issue but i tried your code but still the error is the same, anyone help
Copy link to clipboard
Copied
Copy link to clipboard
Copied
same as the original post, i tried correcting using the given solving but it still error
Copy link to clipboard
Copied
what's your corrected code?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
how is it that a non-main timeline movieclip has scenes?
Copy link to clipboard
Copied
can you eloberate i dont really get it
Copy link to clipboard
Copied
instead of your goto, use a trace("hi") so you can see your mouse action works.
Copy link to clipboard
Copied
can u show me how to change it?
Copy link to clipboard
Copied
comment out your goto or remove it
replace with my trace statement.
Copy link to clipboard
Copied
like this ?
Copy link to clipboard
Copied
yes
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
click your movieclip.
check your output panel
do you see "hi"?
Copy link to clipboard
Copied
u mean here right? then there no hi here
Copy link to clipboard
Copied
did you click that movieclip?
Copy link to clipboard
Copied
yes, movie clip you mean the button right ?
Copy link to clipboard
Copied
i mean
this.click.movieclip_9
Find more inspiration, events, and resources on the new Adobe Community
Explore Now