# Quick rotation question

**URL:** <https://forum.kirupa.com/t/quick-rotation-question/180856>\
**Category:** Uncategorized\
**Created:** [March 3, 2006, 10:09pm UTC](https://forum.kirupa.com/t/quick-rotation-question/180856 "2006-03-03T22:09:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dayglowdave](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dayglowdave](https://forum.kirupa.com/u/dayglowdave)\
**Post date:** [March 3, 2006, 10:09pm UTC](https://forum.kirupa.com/t/quick-rotation-question/180856/1 "2006-03-03T22:09:49Z")

</div>

I am familiar with using \_rotation on the clip I want to rotate continuously.

```auto

_root.myClip._rotation += speed;

speed = 3;

```

However when I create a button and I want to rotate some object when I press it, it only does it by degree times speed and so I have to keep pressing the button to rotate the object all the way around.

My question then is how do I change the following so that the clip ‘rect’ rotates by itself until I press another button to stop it?

```auto

on(release){
    _root.rect._rotation += speed;
    speed = 3;
    
        
        
    
}

```
