11 Replies Latest reply on Sep 21, 2007 1:15 PM by kglad

    Reversing Animation

    DeezNutz215
      Hello everyone. I'm in a little pickle right now. I broke my ankle and cant get to my office where my actionscript 3.0 book is.

      I have a button in an animation that is supposed to reverse the animation when pressed. What is the function or method that's used to reverse the animation. My current code only makes the animation stop on the previous frame. What is the code to make then animation just continuously loop in reverse?

      reverseButton.addEventListener ( MouseEvent.CLICK, myReverseHandler )
      function myReverseHandler( evt ){
      gotoAndStop(currentFrame - 1)
      }