I'm just a beginner in Javascript, and I'm making simple web canvas in Animate CC with few buttons. I add code and first button (AN_Jar) work perfectly, but second (Home_Jar) doesn't work.
Here it is:
this.AN_Jar.addEventListener("click", fl_onClick_01.bind(this));
function fl_onClick_01()
{
this.gotoAndStop(4);
}
this.Home_Jar.addEventListener("click", fl_onClick_home1.bind(this));
function fl_onClick_home1()
{
this.gotoAndStop(3);
}
What I'm missing? (I had this website in written in actionscript 3 and it work perfectly well.)