Problem with buttons in HTML5
I'm working in HTML5 on adobe animate and I have a button that goes from my game menu screen to my first part of the game on frame 1442. The first button I created, which is the start button that plays the game menu works
this.stop();
this.started = false;
this.addEventListener("click", startClicked.bind(this));
function startClicked()
{
if(!this.started){
this.started = true;
this.play();
}
}
However the second button I created to go to frame 1442 doesn't work, upon clicking the button it just does nothing. I heard that the action scripts timeline starts on 0 while the actual timeline starts on frame 1, so my code says this.gotoandPlay(1441).
this.nav.btn1.addEventListener("click", btn1Clicked.bind(this));
function btn1Clicked()
{
this.gotoAndPlay(1441);
}
My button is located inside of a bar that bounces onto the screen, the bar's instance name is nav and the button's name is btn1. I'm fairly new to learning how to code these kinds of things and wondering if someone could figure out my problem.