# Problem in rotating a movieclip

**URL:** https://forum.kirupa.com/t/problem-in-rotating-a-movieclip/258560
**Category:** flash
**Created:** [April 25, 2008, 4:35am UTC](https://forum.kirupa.com/t/problem-in-rotating-a-movieclip/258560 "2008-04-25T04:35:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nihal](https://avatars.discourse-cdn.com/v4/letter/n/8797f3/32.png) [@Nihal](https://forum.kirupa.com/u/Nihal)
#### Post date: [April 25, 2008, 4:35am UTC](https://forum.kirupa.com/t/problem-in-rotating-a-movieclip/258560/1 "2008-04-25T04:35:19Z")

</div>

hi ,  
I am new to Flash and have a little [COLOR=black][FONT=‘Times New Roman’]knowledge[/FONT][/COLOR] in action script. This actually is from a tutorial and here i am trying to rotate a \_mc(movie clip) as in tutorial they show a working swf. but actually it is not please try to help me…

onClipEvent (load) {  
radius=50;  
degrees=0;  
}  
onClipEvent (enterFrame) {  
angle=degrees\*(Mathe.Pl/180);  
degrees=degrees + 2;

xposition=radius \* Math.cos(angle);  
yposition=radius \* Math.sin(angle);

this.\_x=xposition + \_root.center\_cross\_hairs.\_x  
this.\_y=xposition + \_root.center\_cross\_hairs.\_y

\_root.center\_cross\_hairs.\_visible=0;  
}
