Skip to main content
danielo33771543
Known Participant
July 25, 2018
Answered

Click to go to next frame and stop not working in my html canvas

  • July 25, 2018
  • 2 replies
  • 575 views

Hi, i am trying to implement the code snippet " click to go to next frame and stop" on to my we button but its not working.

here it is

this.calltoaction.addEventListener("click", fl_ClickToGoToAndStopAtFrame_8.bind(this));

function fl_ClickToGoToAndStopAtFrame_8()

{

this.gotoAndStop(401);

}

web button is at frame 1

any assistance would be welcome

This topic has been closed for replies.
Correct answer kglad

the first frame is frame 0 etc.  so what you think is frame 1 is frame 0 and what you think is frame 401 is probably frame 400

2 replies

avid_body16B8
Legend
July 25, 2018

I prefer to name the frame so there is no confusion.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
July 25, 2018

the first frame is frame 0 etc.  so what you think is frame 1 is frame 0 and what you think is frame 401 is probably frame 400

danielo33771543
Known Participant
July 25, 2018

okay let me check it out