# Rotation and Move a movieclip

**URL:** <https://forum.kirupa.com/t/rotation-and-move-a-movieclip/329951>\
**Category:** flash\
**Created:** [November 11, 2012, 12:55pm UTC](https://forum.kirupa.com/t/rotation-and-move-a-movieclip/329951 "2012-11-11T12:55:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FJW](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@FJW](https://forum.kirupa.com/u/FJW)\
**Post date:** [November 11, 2012, 12:55pm UTC](https://forum.kirupa.com/t/rotation-and-move-a-movieclip/329951/1 "2012-11-11T12:55:20Z")

</div>

Hi I am trying to create a simple 'rotate and move to the left, STOP, rotate and move to the right animation. The function I have works in that the clip rotates and moves to the left and stops at -100. It never reverses the motion. Any help is very much appreciated. public function RollerStart(e:Event):void  
{  
this.rotation -= 5;  
this.x -=5;

if (this.x \< -100)  
{  
removeEventListener(Event.ENTER\_FRAME, RollerStart);  
this.x += 5;  
this.rotation += 5;  
}

}
