4 Replies Latest reply on May 4, 2010 10:37 AM by Ned Murphy

    Jumping from one Frame to another

    BRA-12

      Hi, I have this problem. I have a piece of code in AS3 but it doesn't work with AS2:

       

      stop();

      function login(event:MouseEvent):void

      {

      this.gotoAndPlay("first_page");

      }

      log_in_btn.addEventListener(MouseEvent.CLICK, login);

       

      So I rewrote it this way:

       

      stop();

      function login()

      {

      this.gotoAndPlay("first_page");

      }

      log_in_btn.onRelease = login();

       

      But I still have a problem. I have stops in each key frame but when I play the movie it shows directly the first_page section skipping all other frames before it. What could be the problem?