1 Reply Latest reply on Feb 14, 2007 12:07 PM by Juankpro

    goto same frame?

      hi, just out of curiosity:
      why doesn't the playhead "restart" the current frame when u call gotoAndPlay(the_current_frame)?
      i.e. if at frame 1, i have:
      it goes straight to frame 2!

      does the flash player virtual machine check that if playhead == currentframe, then go to next frame?

        • 1. Re: goto same frame?
          for weird reasons flash cannot go to the same frame it actually is, this is why every code that needed to do something repeatedly they usually started on frame 2 and the code sends the timeline to frame 1.

          Another solution for this kind of loops is to use the Flash 6 and further onEnterFrame event property.