5 Replies Latest reply on Feb 5, 2015 10:48 AM by kglad

    calling functions from buttons

    daniel_sposato Level 1

      Hi, I'm using Flash CC HTML5 canvas and I can't seen to get a button to call more than 1 function. This is a simple example of what isn't working for me:

       

      Example

      stop();


       

      function After_Char_Picks()  {

        this.P2_Picks.gotoAndStop("hide");

        this.Choose_Ins.visible = true;

      }

       

       

      this.P2_Picks.Rita_btn2.addEventListener("click", Set_P1_Rita2.bind(this));

      function Set_P1_Rita2(){

        this.P2.Player.gotoAndStop("Rita");

        After_Char_Picks();

      }

       

      Not sure what I need to do to get the button here to call After_Char_Picks(); as well as Set_P1_Rita2();

      Any help is greatly appreciated.


      Thanks,

      Dan