Back and continue navigation not working correctly
I have a old Flash project which I'm attempting to convert to HTML5 using Animate CC 2017 and I'm now working in the Canvas.fla.
The piece is a tool which displays information about medical conditions, so it has a couple of intro pages and then an A-Z navigation (which works fine) that exists for the rest of the timeline which is 37 frames in total.
What I'm finding, is that 'back' and 'continue' seem to work correctly at first but then go to the wrong frames particularily after having used the A-Z navigation. These two buttons are on seperate layers that extend for the duration of the timeline.
The whole thing starts off in frame 1 (0)
I've looked at similar questions and answers on here but I'm not sure if they apply completely to what I'm trying to do.
This is the code I've used for the buttons added at frame 3 (2)
this.Back2.addEventListener("click", fl_ClickToGoToAndStopAtFrame_11.bind(this));
function fl_ClickToGoToAndStopAtFrame_11()
{
this.gotoAndStop(this.currentFrame-1);
}
this.Continue3.addEventListener("click", fl_ClickToGoToAndStopAtFrame_12.bind(this));
function fl_ClickToGoToAndStopAtFrame_12()
{
this.gotoAndStop(this.currentFrame+1);
}
Any help would be much appreciated.
Many thanks
