Jump to content


looping a tween

Recommended Posts

Hello! Another question!!!


I'm trying to create a looping TweenProxy3D. Is that possible?

The tween works brilliantly but it won't loop!





import com.greensock.*;
import gs.utils.TweenProxy3D;
import flash.geom.*;

var tp:TweenProxy3D = new TweenProxy3D(mc);
tp.registration = new Vector3D(250, 100, 0);
TweenLite.to(tp, 5, {rotationX:360, loop:0});

Link to comment
Share on other sites

"loop" is a TweenMax-only feature in v10. Note that it has changed to "repeat" in v11. If you don't want to use TweenMax, you could use an onComplete in TweenLite that calls a function that does the tween again (and again).

Link to comment
Share on other sites

Thanks again!!!!!! :D

I read the wrong version! Sorry about that! I must remember to refer to the v11 documentation next time! :!:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.