Best way to approach this Interactive HTML graphic
Hi everyone, there are so many ways to do this, but don't want to invest my time into the wrong approach.
Here is the prototype - Interactive Graphic
Please help! I am very new to Adobe Animate.
Hi everyone, there are so many ways to do this, but don't want to invest my time into the wrong approach.
Here is the prototype - Interactive Graphic
Please help! I am very new to Adobe Animate.
Nice.
Here is a sample:
JS code:
var root = this;
root.changeFrame = function(e)
{
if (e.currentTarget === root.prevButton)
root.gotoAndStop(root.currentFrame - 1);
else if (e.currentTarget === root.nextButton)
root.gotoAndStop(root.currentFrame + 1);
};
if (!root.started) // prevents the buttons from receiving multiple listeners when this frame is revisited
{
root.started = true;
root.loop = false; // set to true or just remove this line if you want the navigation to loop when advancing
root.stop();
root.prevButton.on("click", root.changeFrame);
root.nextButton.on("click", root.changeFrame);
}
FLA download:
animate_cc_html5_simple_navigation.zip - Google Drive
If you want more info about working with HTML5 in Animate CC, please visit the official help and also check the comment #3 from this thread. I also got some stuff on this GitHub repo and on my YouTube channel, in case you're interested.
Regards,
JC
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.