Reversing a frame animation

I know I can use yoyo() for tweened animations but is there a way to reverse frame based animations?

AK

Probably easiest solution would be to create 2 symbols and reverse frames in design mode… But if the file size is an issue, no idea for now ((:

Sasxa

Have a variable for current frame. And a variable that is either 1 or -1 for direction. onEnterFrame goToAndStop (current frame + direction) and then change the direction variable to reverse the play direction.

stop();
addEventListener(Event.ENTER_FRAME,reverse)
function reverse(event:Event) {
   prevFrame();
}

err, yeah that’s even better. Damnit!