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.
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?