3 Replies Latest reply on Jun 7, 2009 2:27 PM by kglad

    another basic question - button doesn't work

    Chemistry guy Level 1

      This is probably related to my last question. I have a button (Restart_btn) that I want to send the user back to the beginning of my movie when clicked. I typed the following in the Actions panel for the first keyframe in the section of the timeline that contains the button, but nothing happens when I click the button.

       

      Restart_btn.addEventListener(MouseEvent.CLICK,restart);
      function restart(event:MouseEvent):void {
      gotoAndPlay(1);
      }

       

      What am I missing?

       

      Thanks

       

      Mark