1568 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
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
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
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?

1682 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

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

1955 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Emroni says

How about

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

1162 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Had an item featured in an Envato Bundle
+4 more
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
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
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});

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by