# Controlling circular movement help

**URL:** <https://forum.kirupa.com/t/controlling-circular-movement-help/219887>\
**Category:** Uncategorized\
**Created:** [March 20, 2007, 10:36pm UTC](https://forum.kirupa.com/t/controlling-circular-movement-help/219887 "2007-03-20T22:36:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_guillen3](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@a\_guillen3](https://forum.kirupa.com/u/a_guillen3)\
**Post date:** [March 20, 2007, 10:36pm UTC](https://forum.kirupa.com/t/controlling-circular-movement-help/219887/1 "2007-03-20T22:36:42Z")

</div>

HI there  
I been trying to  
controll a mc that is rotating using this actionscript  
onClipEvent (load) {  
radius=100;  
xcenter=250;  
ycenter=200;  
angle=0;  
speed = 5;  
}  
onClipEvent (enterFrame) {  
\_x = Math.cos(angle\*Math.PI/180)_radius+xcenter;  
\_y = Math.sin(angle_Math.PI/180)\*radius+ycenter;  
angle += speed;  
if (angle\>359) {  
angle -= 360;  
}

}

What I am trying to do is be able to stop it, and depents of the button that I click this will stop at 45 grades or any grade that I especific,  
and How can I play this backwards???

If any one know sothing or can guide me I will be thank full

sorry for my english, I am not at native English speaker.

thank you.

Alejandro
