gotoAndPlay MovieClip
I have a button on the top layer of my Adobe Animate CC 2017 Canvas file the instance name is "btn_Button01". I have this ClickTag code which is working on the Actions layer:
this.btn_Button01.addEventListener("click", fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage() {
window.open(window.clickTag);
}
Further down the timeline, a movieclip with an instance name "btn_Button02" fades in UNDER the button. I want to move the playhead of the movieclip when the button is rolled over. So, rollover btn_Button01 and btn_Button02 will gotoAndPlay "over". I have tried this code but it is not working. I am not sure the proper syntax to control the playhead of a movieclip when a button is rolled over. Any help would be appreciated.
stage.enableMouseOver;
this.btn_Button01.addEventListener("mouseover", fl_MouseOverHandler.bind(this));
this.btn_Button01.addEventListener("mouseout", fl_MouseOutHandler.bind(this));
function fl_MouseOverHandler()
{
this.btn_Button02.gotoAndPlay("over");
}
function fl_MouseOutHandler()
{
this.btn_Button02.gotoAndPlay("off");
}
