# Object rotation question

**URL:** https://forum.kirupa.com/t/object-rotation-question/87480
**Category:** Uncategorized
**Created:** [April 21, 2005, 12:36pm UTC](https://forum.kirupa.com/t/object-rotation-question/87480 "2005-04-21T12:36:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![susred](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@susred](https://forum.kirupa.com/u/susred)
#### Post date: [April 21, 2005, 12:36pm UTC](https://forum.kirupa.com/t/object-rotation-question/87480/1 "2005-04-21T12:36:33Z")

</div>

Hi,

I’ve got a movie that’s like a “spin & win” You click spin, and it goes to a frame with my mc that has the following code on it:

onClipEvent (enterFrame) {  
i = getProperty(this, \_rotation);  
setProperty(this, \_rotation, i±20);  
}

So, it’s just automatically spinning. Is there a way for when you click on a button (stop) it stops that rotation? The only way I could figure to do it is when you click stop, it goes to a 3rd frame with a still image.

Hope this makes sense and that there is another solution out there!

thanks
