Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
you need to explicitly "scope" all methods and properties in canvas:
this.gotoAndPlay(437);
and
this.stop();