# Rotation in AS

**URL:** <https://forum.kirupa.com/t/rotation-in-as/18855>\
**Category:** flash\
**Created:** [April 22, 2003, 1:01am UTC](https://forum.kirupa.com/t/rotation-in-as/18855 "2003-04-22T01:01:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troll\_axethrowe](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@Troll\_axethrowe](https://forum.kirupa.com/u/Troll_axethrowe)\
**Post date:** [April 22, 2003, 1:01am UTC](https://forum.kirupa.com/t/rotation-in-as/18855/1 "2003-04-22T01:01:50Z")

</div>

i’ve just figured out how to do the \_rotation thing in actionscript. But it does it immediately. How do i span this process over 10 frames or so?

On a side note, can someone quickly tell me what the point of \_root is? I’ve done things without that in it and they work fine.

---

<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:** [April 22, 2003, 2:16am UTC](https://forum.kirupa.com/t/rotation-in-as/18855/2 "2003-04-22T02:16:27Z")

</div>

try using this AS :  
[AS]rotateSpeed = 10  
myMovieClip.\_rotation = 0  
myMovieClip.onEnterFrame = function (){  
this.\_rotation += rotateSpeed  
}[/AS]

it’s pretty self explanitory…

---

<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:** [April 22, 2003, 6:42am UTC](https://forum.kirupa.com/t/rotation-in-as/18855/3 "2003-04-22T06:42:47Z")

</div>

yup dont forget to put the keyframe and then 10 frames trailing behind it so it only rotates every 10 frames

---

<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:** [April 22, 2003, 11:52pm UTC](https://forum.kirupa.com/t/rotation-in-as/18855/4 "2003-04-22T23:52:25Z")

</div>

man, I cant get this thing to work, Heres the file. What i want is to rotate the sword by 90 degrees and still have the trailer following it. I’m doing this because when i use the rotate and scew tool, the trail no longer works.
