1568 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
rahulbist says

hi,

anyone know any tween engine which can spin a movieclip multiple times.

I found “rotation” in many tween engines. but it can’t be used to spin a movieclip for 6-7 times.

If I added rotation angle more than 360. it rotates 360 in one direction and then reset and then again rotate 360.

anyone know about such engine?

thank in advance.

1955 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Netherlands
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
Emroni says

All a tween engine does is take the properties of an object and then tween the values of those properties to new values. So it’s not the tween engines fault that it isn’t working.

If you rotate something to, lets say, 720, and afterwards trace its rotation, what does it say?

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

When you pass 360 reset rotation to 0 before applying new one.

1955 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Netherlands
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
Emroni says

How about

TweenMax.to(movieClip, 1, {rotation:360, repeat:6 }); 
(assuming it starts at 0)

1161 posts
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Referred between 10 and 49 users
  • Bought between 50 and 99 items
FlashTang says
I have an idea :) ,but I didn’t test it
var obj:Object={rotation:0}
Twee....to(obj, 4, {rotation:360*6,onUpdate:update,.....}); 
function update(){
     mc.rotation=obj.rotation
}
 ...
.
.
or
 class superRotationClip extends MovieClip{
private var _rotation_=0
     public function get __rotation(){
return _rotation_
}
    public function set __rotation(_r){
_rotation_=_r
      rotation=_rotation_
    }
 }

TweenMax.to(movieClip, 4, {__rotation:360*6}); 
31 posts
  • Bought between 10 and 49 items
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 3-4 years
  • Netherlands
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
SMeesters says

Something like this

var speed:Number = 5.0;
var amountOfLoops:int = 7;
var t:Number = 0.0;

// update loop
someObject.rotation = t+=speed;
if(t>amountOfLoops*360)
    // stop looping
Or maybe Tweener can do it like this
Tweener.addTween(someObject,{rotation:amountOfLoops*360,time:amountOfLoops*speed});
by
by
by
by
by
by