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

Stop main timeline from symbol

Community Beginner ,
Dec 19, 2018 Dec 19, 2018

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?

644
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 Expert , Dec 19, 2018 Dec 19, 2018

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

Translate
Community Expert ,
Dec 19, 2018 Dec 19, 2018

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

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 ,
Dec 19, 2018 Dec 19, 2018

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?

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 19, 2018 Dec 19, 2018

Hi.

Don't use this.

ExportRoot is a global variable so from anywhere just write:

exportRoot.stop();

Regards,

JC

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 ,
Dec 19, 2018 Dec 19, 2018

Thanks a lot!

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 19, 2018 Dec 19, 2018
LATEST

You're welcome!

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