Simple button frame navigation in HTML5 stops working
I have been trying out simple navigation between two frames (frame 0 and frame 4) with a button.
on the first frame I just have a text and a button with the code:
this.stop();
this.btn_scena.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));
function fl_ClickToGoToAndStopAtFrame()
{
this.gotoAndStop(4);
}
and on frame 4:
this.btn_scena.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));
function fl_ClickToGoToAndStopAtFrame()
{
this.gotoAndStop(0);
}
It works for about 10 times and then stops, since I just used Code Snippets and didn't make my own code I'm not sure how this could possibly not work.
Thanks in advance.
