Copy link to clipboard
Copied
Hello, I got this simple question - need to add code (HTML5 canvas) inside symbol so when it does pass that frame to stop the main timeline? AS2 code was _root.stop() how about here with JS?
Hi.
Animate CC automatically creates a reference to the main timeline called exportRoot.
So all you have to do is to call exportRoot.stop() from anywhere to stop the main timeline.
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
Hi.
Animate CC automatically creates a reference to the main timeline called exportRoot.
So all you have to do is to call exportRoot.stop() from anywhere to stop the main timeline.
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
Hello, I did place it and it does nothing. if I put "this." in console pop up that "exportRoot" is not defined. I quess that the function should be different or I make something wrong?
Copy link to clipboard
Copied
Hi.
Don't use this.
ExportRoot is a global variable so from anywhere just write:
exportRoot.stop();
Regards,
JC
Copy link to clipboard
Copied
Thanks a lot!
Copy link to clipboard
Copied
You're welcome!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now