Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problem with my code for web button

Explorer ,
Aug 20, 2018 Aug 20, 2018

Screen Shot 2018-08-20 at 11.11.40.png

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.

183
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2018 Aug 20, 2018
LATEST

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines