I'm trying to have a button press save a scene name to a variable and then go to that scene later.
I establish a global variable in the HTML:
window.linkTarget = "";
So then in the timeline, I pause for a user selection. When they click, the buttons call individual functions to set the variable with a scene name and playback resumes.
window.linkTarget = "Call to Action"; // Scene name
At the end of the animation it runs and the button invokes a function to go to the selected scene name:
hypeDocument.showSceneNamed(linkTarget, hypeDocument.kSceneTransitionCrossfade, 1.1);
However, this isn't working. I know it's not the most efficient way to do it, but I can't even get this method to work. What am I doing wrong?