4 Replies Latest reply on Sep 11, 2009 7:06 AM by videostart

    Rotating through an animation, hesitating with for loop?

    videostart Level 1

      I need to rotate through an animation sequence.


      the animation is 40 frames long and I have stop frames on 1, 10, 20, 30, and 40.

      everytime the user clicks the "rotate" btn, it will go through the animation


      This is the code I have on the rotate button:


      on (release) {
      for (var i = 0; i<=5; i++) {


      It works for the most part, BUT, once the animation starts over again,

      it hesitates for a frame when you click the rotate button then it goes back

      to normal.  


      Is my for loop wrong?


      Thanks for the help