# How to rotate MC continuously and stop it?

**URL:** <https://forum.kirupa.com/t/how-to-rotate-mc-continuously-and-stop-it/330424>\
**Category:** flash\
**Created:** [January 19, 2013, 11:00am UTC](https://forum.kirupa.com/t/how-to-rotate-mc-continuously-and-stop-it/330424 "2013-01-19T11:00:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggblade](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@eggblade](https://forum.kirupa.com/u/eggblade)\
**Post date:** [January 19, 2013, 11:00am UTC](https://forum.kirupa.com/t/how-to-rotate-mc-continuously-and-stop-it/330424/1 "2013-01-19T11:00:16Z")

</div>

How can I rotate an MC continuously and stop it using a button?

```auto

MC.rotation += 1;

```

I tried using the code above but it won’t rotate it continuously.  
Then I tried searching the web,what I get is :

```auto

MC.addEventListener(Event.ENTER_FRAME, rotate);

```

yes,it will rotate my MC continuously but I don’t know what sort of condition  
if I want : click will rotate it continuously and then stop it by clicking it again or using a stop button.

I’m not sure if I want to use conditional(not sure about the code too) or are there any way that more efficient than the ENTER\_FRAME ?:block:

thanks.
