1 Reply Latest reply on Mar 23, 2009 4:16 PM by Ned Murphy

    Movie clip button

    soc86
      I am trying to create two actions, one when my mouse is over my button and two when my i click my button, I am having a bit of trouble with my action script below, any advise:

      function buttonOver(event;MouseEvent)void{
      button.gotoAndPlay("over");
      }
      function buttonOut(event;MouseEvent)void{
      button.gotoAndPlay("out");
      }

      button.addEventListener(MouseEvent.ROLL_OVER,buttonOver);
      button.addEventListener(MouseEvent.ROLL_OUT,buttonOut);
        • 1. Re: Movie clip button
          Ned Murphy Adobe Community Professional & MVP
          You are using actionscript 3 code, so try changing your publish settings to that.

          Also, are these buttons actually movieclips? They should be,otherwise, you are coding them needlessly.

          If you are getting any error messages, it could be helpful to see what they say.