# \_rotation

**URL:** <https://forum.kirupa.com/t/-rotation/30844>\
**Category:** flash\
**Created:** [September 15, 2003, 9:00am UTC](https://forum.kirupa.com/t/-rotation/30844 "2003-09-15T09:00:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete\_zahut](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pete\_zahut](https://forum.kirupa.com/u/pete_zahut)\
**Post date:** [September 15, 2003, 9:00am UTC](https://forum.kirupa.com/t/-rotation/30844/1 "2003-09-15T09:00:41Z")

</div>

hi,

i know how to use the \_rotation on a mc, but how can i let it rotate slowly  
[AS]  
onClipEvent(enterFrame) {  
rnd = parseInt(Math.random() \* 2);  
if(rnd == 0) {  
this.\_rotation -= Math.random() \* 50;  
}  
else {  
this.\_rotation += Math.random() \* 50;  
}  
}  
[/AS]

this way it only flips to another degree, but you can’t see it go round… if you know what i mean … plz help
