2 Replies Latest reply on Nov 19, 2008 9:18 AM by tesiar

    Button problem

    tesiar
      I'm using AS2. I'm having a problem with the buttons on my main page, which each take you to the correct frame on the first release, but if you click on the same button again it takes you to the subsequent (wrong) frame.

      I have the following code for the buttons on my main page:

      function resetButtons(){
      homebtn.gotoAndStop("up");
      whatbtn.gotoAndStop("up");
      showbtn.gotoAndStop("up");
      //etc...
      }
      homebtn.onRelease=function(){
      gotoAndPlay(69);
      }
      whatbtn.onRelease=function(){
      gotoAndPlay(70);
      }
      showbtn.onRelease=function(){
      gotoAndPlay(71);


      Clicking on each button the first time takes me to the correct frame i.e. clicking on homebtn takes me to frame 69. However clicking on homebtn the 2nd time takes me to the next frame, frame 70. If I click a homebtn a 3rd time I go back to the correct frame, frame 69.
      This is the same for all buttons on the page.

      I'd appreciate any advice. Thanks.