Copy link to clipboard
Copied
i have been working on a slideshow whereby i have 6 hair products and i have been using the code snippet of click to play next frame and stop. when clicking the right button. it shows the next frame which show the second product. but when adding the same code adding on the second product it refuses to bring the next frame.
here is the code for the first frame to open the second frame:
this.btn1.addEventListener("click", fl_ClickToGoToAndStopAtFrame_6.bind(this));
function fl_ClickToGoToAndStopAtFrame_6()
{
this.gotoAndStop(8);
}
when i apply the same code on the second frame to open the third frame. ..the canvas goes blank.
Copy link to clipboard
Copied
If you're assigning another event handler to the same button, they're both going to execute when the button is clicked. Is that what you're doing?