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

Help with getting a button to escape a loop

New Here ,
Jan 08, 2022 Jan 08, 2022

I have an animation that is 448 frames long and I have the following actions:

FRAME 365

this.button.on("click", function(a) {
window.open("http://www.adobe.com", "_blank");
gotoAndPlay(437);
});

 

FRAME 436

this.gotoAndPlay(365);

 

FRAME 448

stop();

 

I cannot seem to get the button, labled 'button', to escape the loop created in frame 436.  I added the 'window.open("http://www.adobe.com", "_blank");' bit as just a sanity check to make sure the button is working. It is.

 

Does anyone know how to get this to work? 

Thanks

TOPICS
How to
110
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 ,
Jan 09, 2022 Jan 09, 2022
LATEST

you need to explicitly "scope" all methods and properties in canvas:

 

this.gotoAndPlay(437);

 

and

 

this.stop();

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