# Rotating circle action script

**URL:** https://forum.kirupa.com/t/rotating-circle-action-script/28274
**Category:** Uncategorized
**Created:** [August 12, 2003, 1:21am UTC](https://forum.kirupa.com/t/rotating-circle-action-script/28274 "2003-08-12T01:21:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RBOHOL](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@RBOHOL](https://forum.kirupa.com/u/RBOHOL)
#### Post date: [August 12, 2003, 1:21am UTC](https://forum.kirupa.com/t/rotating-circle-action-script/28274/1 "2003-08-12T01:21:57Z")

</div>

Hullo…

I’m Redg Bohol and am new to Flash MX and action scripting.

Can anyone help me on how to rotate an image using action scripting.

Thank you.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 12, 2003, 1:37am UTC](https://forum.kirupa.com/t/rotating-circle-action-script/28274/2 "2003-08-12T01:37:01Z")

</div>

The image should be a movie clip. Just add  
myMovieClip.rotation = x;  
where x is the number of degrees to rotate it. If you want it to constantly spin, try,  
[AS]  
onClipEvent(enterFrame){  
this.\_rotation +=3;  
}  
[/AS]

Welcome to Kirupa!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 12, 2003, 1:42am UTC](https://forum.kirupa.com/t/rotating-circle-action-script/28274/3 "2003-08-12T01:42:17Z")

</div>

Thanks for the help…

Would you mind breaking down the codes for me so that I can understand how it really works.

What I did was to just copy and paste it however I want to learn how it actually works… Just like the tutorials in this site where Kirupa breaks down the code to its elements and explain them.

Hope I’m not much of a bother.

Redg
