# Spinny Thingy

**URL:** <https://forum.kirupa.com/t/spinny-thingy/222238>\
**Category:** flash\
**Created:** [April 11, 2007, 8:18pm UTC](https://forum.kirupa.com/t/spinny-thingy/222238 "2007-04-11T20:18:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanontheMoon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danonthemoon/32/7436_2.png) [@DanontheMoon](https://forum.kirupa.com/u/DanontheMoon)\
**Post date:** [April 11, 2007, 8:18pm UTC](https://forum.kirupa.com/t/spinny-thingy/222238/1 "2007-04-11T20:18:06Z")

</div>

Dammit Dammit Dammit!!!

I’ve got a really simple problem.

I have a .fla with a circle that I want to spin clockwise if the mouse is to the left of it (mouse.\_x \>800) and counter clockwise if (mouse.\_x\<800), with the speed tied to the mouse.\_y value.

![](http://img164.imageshack.us/img164/8518/spinnypg0.gif)

here’s my code (so far). I’ve been trying to do this without help for a few days and it’s not going so hot.

onClipEvent(enterFrame) = function () {  
if (mouse.\_y\>600) spinny.\_rotation=5;  
}else{  
if (mouse.\_y\>600) spinny.\_rotation=-5;  
}

I appreciate any assistance.
