# Reversing Movie Clip

**URL:** <https://forum.kirupa.com/t/reversing-movie-clip/321521>\
**Category:** flash\
**Created:** [April 21, 2011, 8:09pm UTC](https://forum.kirupa.com/t/reversing-movie-clip/321521 "2011-04-21T20:09:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![biggell014](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@biggell014](https://forum.kirupa.com/u/biggell014)\
**Post date:** [April 21, 2011, 8:09pm UTC](https://forum.kirupa.com/t/reversing-movie-clip/321521/1 "2011-04-21T20:09:05Z")

</div>

Hi guys. I am trying to have a small simple animation. This animation needs to have a roll over listener. This roll over listener must begin a downward motion for this movie clip. And then another listener must be a click or rollout that will make the clip reverse and begin an upward motion at any point that it is executed.

This is the code I got so far, but the only thing that seems to work is the rollover downward motion. I cannot seem to get the upward reversing motion to execute.

stop();

mc.addEventListener(MouseEvent.ROLL\_OVER, playy);

function playy(e:MouseEvent):void  
{  
play();  
mc.addEventListener(MouseEvent.CLICK, reverse);  
}

function reverse(e:MouseEvent):void  
{  
mc.gotoAndPlay(mc.currentFrame -1);  
mc.prevFrame();  
}

Please Help if you can. Anything would be greately appreciated.

BTW I have tried installing tweener and greensocks tweenlite. Tweener instalation gave me error 5001: The name of package ‘caurina.transitions’ does not reflect the location of this file. Please change the package definition’s name inside this file, or move the file. C:\Users\Elliot\Desktop\flashstuff\caurina ransitions\Tweener.as  
And when i download and open greensock-as3.zip file with winrar and extract it I get the “archive is corrupt” message and it allows me to extract, but I cannot seem to get the installation correct.

I am hoping that I can figure out something simple that will make this work. This is actually going to be widely used on my larger project. Again thank you for your time.
