1 Reply Latest reply on Jul 27, 2016 6:36 AM by kglad

    Button x MovieClip (Over/Out/Click)

    paulb93092961

      Hello,
      Sorry in advance if the question already asked. I want to make a button with a clip to control the various states.
      The "click" and "Over" seem to work.
      But not the "Out" Does someone have an idea?
      Thx a lot !

       

      ----

       

       

      var mc_button = this.movieClip_1;

       

      var frequency = 3;

      stage.enableMouseOver(frequency);

       

       

      mc_button.addEventListener("click", fl_MouseClickHandler_2.bind(this));

      mc_button.addEventListener("mouseover", fl_MouseOverHandler_3);

      mc_button.addEventListener("mouseout", fl_MouseOutHandler_3);

       

       

      /* Event MouseClick*/

      function fl_MouseClickHandler_2()

      {

        mc_button.gotoAndPlay("ClickState")
      }

       

      /* Event MouseOver*/

      function fl_MouseOverHandler_3()

      {

        mc_button.gotoAndPlay("Over")

      }

       

       

       

      /* Event MouseOut*/

      function fl_MouseOutHandler_3() ! !

      {

      mc_button.gotoAndPlay("Out")

      }

       

      Capture d’écran 2016-07-27 à 14.54.25.png