# Spinners

**URL:** <https://forum.kirupa.com/t/spinners/205944>\
**Category:** open source\
**Created:** [November 3, 2006, 12:17pm UTC](https://forum.kirupa.com/t/spinners/205944 "2006-11-03T12:17:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ohls](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@Ohls](https://forum.kirupa.com/u/Ohls)\
**Post date:** [November 3, 2006, 12:17pm UTC](https://forum.kirupa.com/t/spinners/205944/1 "2006-11-03T12:17:49Z")

</div>

Too lazy to reupload this so I’ll just post my DA link:

> **[Spinners](http://ohls2nd.deviantart.com/art/Spinners-42424404)**
>
> Really simple script that spins an MC around its own axel relativly to the mouse.

[AS]onClipEvent(load){  
cX = this.\_x;  
cY = this.\_y;  
}  
onClipEvent(enterFrame){  
xPos = \_root.\_xmouse-cX;  
yPos = \_root.\_ymouse-cY;  
\_rotation = Math.atan2(yPos,xPos)/(Math.PI/180);  
}[/AS]

Really simply yet it puts out a pretty cool result =).
