Copy link to clipboard
Copied
Hello all.
I have created a HTML5 Canvas movie and looking for a way to have the user taken to a specific frame on the main timeline from a href click.
I recall doing this with flash and actionscript quite a few years back. It was just doing by passing parameters in a string.
What is the best way to acomplish this in HTML5 Canvas?
Here is the live file.. I'm looking to be able to have a user click a html button to get to a frame number(or label) on the main timeline.
https://www.xblu.com/roadmap/mubex-roadmap.html
Any help would be much appreciated.
Thanks!
Charlie
Hi.
Use the exportRoot global reference to access anything in the main timeline from anywhere in the same document.
Like this:
Copy link to clipboard
Copied
Hi.
Use the exportRoot global reference to access anything in the main timeline from anywhere in the same document.
Like this:
Please notice that I'm using a bit of ES6 syntax. So you're gonna have to convert to ES5 if you want to support older browsers.
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
Hey JC,
You rock!
Let me give this a shot.
Thanks!
Charlie
Copy link to clipboard
Copied
Hi JC,
Thanks again for your solution.
Working like a charm.
Have a great day!
Charlie