# Rotation question

**URL:** https://forum.kirupa.com/t/rotation-question/244045
**Category:** flash
**Created:** [November 13, 2007, 10:26pm UTC](https://forum.kirupa.com/t/rotation-question/244045 "2007-11-13T22:26:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Awesome\_O\_4000](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Awesome\_O\_4000](https://forum.kirupa.com/u/Awesome_O_4000)
#### Post date: [November 13, 2007, 10:26pm UTC](https://forum.kirupa.com/t/rotation-question/244045/1 "2007-11-13T22:26:51Z")

</div>

Hey everyone.

Was wondering if I could get some quick help with rotation tweening in AS3.

I have an object right now, that when the movie begins, tweens up vertically to the stage. I want to have it constantly rotate as well. Through trial and error, I’ve almost got it, but I can only get it to rotate once, and it sort of moves in a circular pattern. It doesn’t rotate (like on an axis). That make sense? Here’s my code.

import fl.transitions._;  
import fl.transitions.easing._;

var myTween:Tween = new Tween(myObject, “y”, Elastic.easeOut, 530, 325, 3, true);  
var rotateTween:Tween = new Tween(myObject, “rotation”, None.easeNone, 0, 360, 1, true);

I know something is clearly incorrect with the second tween. I just cant quite figure out where to go from here. Do I have to import the RotateDirection class? And how do I get it to infinitely rotate?
