# Play in Reverse/Creating a Class

**URL:** <https://forum.kirupa.com/t/play-in-reverse-creating-a-class/318287>\
**Category:** flash\
**Created:** [January 15, 2011, 4:37pm UTC](https://forum.kirupa.com/t/play-in-reverse-creating-a-class/318287 "2011-01-15T16:37:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![na\_il](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@na\_il](https://forum.kirupa.com/u/na_il)\
**Post date:** [January 15, 2011, 4:37pm UTC](https://forum.kirupa.com/t/play-in-reverse-creating-a-class/318287/1 "2011-01-15T16:37:48Z")

</div>

Okay so i spent alot of time and created an animation all in code, something like 200 lines long- so i wont post it on here unless one request. **Now i want to run this animation in reverse…and I don’t exactly know how to do this.** Well i have some clue but have no idea of how to execute:

**Choice 1** -I i guess there is always the grunt work and copy paste and just plug in the opposite of everything i did…but yea that would take some time…

**Choice 2** - I guess i can attempt to create a class to house this animation and then some how play in reverse?? - if so how?  
\*\*  
Choice 3\*\*- have some kind of wrestle with frames and have it run as a frame animation- then i can use prevFrame and nextFrame?

**Anyone care to shed some light on my dilemma- because i don’t even know if this is possible and/or my solutions are even valid** 🙂 :ex:
