12 Replies Latest reply on Mar 14, 2009 9:52 PM by kglad

    gotoAndStop going to wrong frame.  WTF?

    sneakyimp Level 2
      I have an AS2 flash movie that has some labeled frames. On the first frame of a particular scene, I have some code that creates a menu of buttons that I construct from movie clips and vector graphics. The onRelease function of those buttons is assigned deep in some code thusly:
      buttonMC.onRelease = function() {
      trace('release, going to ' + this.sceneName);
      gotoAndStop(this.sceneName);
      };

      When one of these buttons is clicked, the scene name reports correctly, but the movie goes to a frame 3 frames later than the targeted frame. I know this because I put trace actions on the subsequent frames like this:
      trace('2 after');

      WHAT THE HECK?? Could my file have been corrupted?