4 Replies Latest reply on Dec 7, 2008 12:55 PM by kglad

    gotoAndPlay acts strange with second onRelease

    bartonsmith
      Hey so I redesigned my website the other day. I've made it very simple just using gotoAndPlay scripts. Although I've used them many times, this time strange things are happening.

      If I click a button ie "philosophy", it jumps to frame 2 as it should. However if I click "philosophy" again, it goes to frame 3, clicking it again sends it back to frame 2 again, then back to frame 3 and so on.

      I have the following type of script on the parent timeline for each set of buttons (studio_list in this case), that way I can target them all from one frame.

      stop();

      studio_list.philosophy.onRelease = function() {
      studio_list.gotoAndPlay(2);
      };

      studio_list.biography.onRelease = function() {
      studio_list.gotoAndPlay(3);
      };

      studio_list.contact.onRelease = function() {
      studio_list.gotoAndPlay(4);
      };


      I've used this same approach everywhere and it does the same thing everywhere, no matter where the frames are etc.

      Any ideas?

      Cheers,
      Barton