# AS2 - Drag and rotate problem!

**URL:** <https://forum.kirupa.com/t/as2-drag-and-rotate-problem/315648>\
**Category:** flash\
**Created:** [October 31, 2010, 10:57pm UTC](https://forum.kirupa.com/t/as2-drag-and-rotate-problem/315648 "2010-10-31T22:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eriklindahl](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@eriklindahl](https://forum.kirupa.com/u/eriklindahl)\
**Post date:** [October 31, 2010, 10:57pm UTC](https://forum.kirupa.com/t/as2-drag-and-rotate-problem/315648/1 "2010-10-31T22:57:42Z")

</div>

Hi, I have a code snippet that I got from the net, for dragging and rotating a circle. I changed it so that you can click anywhere on the border of the circle, and drag to rotate it. It works great except one thing;

- it rotates “starting from 0”, so when dragging, the dragging centers on the button named “4”.  
Please see my attached FLA-file so you can see what i mean. Any help is very appreciated!
