# AS3 Rotation Circle

**URL:** <https://forum.kirupa.com/t/as3-rotation-circle/322705>\
**Category:** flash\
**Created:** [May 31, 2011, 11:12am UTC](https://forum.kirupa.com/t/as3-rotation-circle/322705 "2011-05-31T11:12:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akira\_lee](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@akira\_lee](https://forum.kirupa.com/u/akira_lee)\
**Post date:** [May 31, 2011, 11:12am UTC](https://forum.kirupa.com/t/as3-rotation-circle/322705/1 "2011-05-31T11:12:28Z")

</div>

Hello

I’m trying to make a circle rotate every x degrees, to get some pens rotate to the same spot. So i’ve got 21 pens, 360 degrees / 21 pens = 17.14 degrees, i’m moving the circle CCW and CW (+17.14 and -17.14).

I’m using the Tweenlite to move the pens but it doesn’t work ☹  
function functionMoverCanetas(event:Event):void  
{  
if (botaoPress == true)  
{  
TweenLite.to(mcCanetas, 1, {rotation:velocidadeCaneta});  
[//mcCanetas.rotation](https://mcCanetas.rotation) += velocidadeCaneta;  
}  
}

If I only use mcCanetas.rotation += velocidadeCaneta; in the functionMoverCanetas the rotation almost works fine, some pens just skip in the rotation and i can’t figure it out.

One more thing, how do i know which pen is in the spot? Is there any way to get the name and save to a var?

I’m trying to do this for 3 days 😕 You can find the source file in here [http://www.carlajesus.com/download/fla.zip](http://www.carlajesus.com/download/fla.zip) Can someone help me out?

Thanks in advance
