# Having a movie clip rotate back to its original position

**URL:** https://forum.kirupa.com/t/having-a-movie-clip-rotate-back-to-its-original-position/305591
**Category:** Uncategorized
**Created:** [February 28, 2010, 2:12am UTC](https://forum.kirupa.com/t/having-a-movie-clip-rotate-back-to-its-original-position/305591 "2010-02-28T02:12:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dhanurdhar](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dhanurdhar](https://forum.kirupa.com/u/dhanurdhar)
#### Post date: [February 28, 2010, 2:12am UTC](https://forum.kirupa.com/t/having-a-movie-clip-rotate-back-to-its-original-position/305591/1 "2010-02-28T02:12:00Z")

</div>

I created a movie clip, an aircraft compass which rotates till the button is pressed but I would like it to return back to its original position in opposite direction of smooth rotation and stop. I already have the following script on the clip.

onClipEvent(enterframe) {  
if(spin) {  
\_rotation -= 2;  
}  
}

and this on the button

on(Press) {  
\_root.marker.spin = 1;  
}  
on(Release) {  
delete \_root.marker.spin;  
}

Can anyone help me.
