Skip to main content
Participant
February 26, 2021
Question

Button

  • February 26, 2021
  • 1 reply
  • 206 views

i have a question. i hope you guys help me afap. i created a button that can go to certain frame. that certain frame also have another button. the first button is working perfectly but the second button is not working. i put this.stop() for the first frame. so i think this.stop() is the problem but i can change it because my frame will no stop. do you guys have any idea? thanyou for your response 

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    February 26, 2021

    this.stop() is not part of the problem.

     

    0. is your problematic button tweened?

    1. what's the code for the problematic button?

    2. what frame contains the problematic button?

    3. what frame contains the code from 1?

    Participant
    February 26, 2021

    This is the first button action code at first frame to go to second frame:

    this.btnmenu.addEventListener("click", fl_ClickToGoToAndStopAtFrame_2.bind(this));

    function fl_ClickToGoToAndStopAtFrame_2()
    {
    this.gotoAndStop(63);
    }

    This is the stop code for stop the first frame:

    this.stop();

     

    This is the button action code at the second frame to got to third frame that is not working:

    this.btndrinks.addEventListener("click", fl_ClickToGoToAndStopAtFrame_6.bind(this));

    function fl_ClickToGoToAndStopAtFrame_6()
    {
    this.gotoAndStop(75);
    }

    kglad
    Community Expert
    Community Expert
    February 26, 2021

    you answered question 1.  the other answers are?

     

    0. is your problematic button tweened?

    1. what's the code for the problematic button?

    2. what frame contains the problematic button?

    3. what frame contains the code from 1?