ggalan Posted April 4, 2010 Share Posted April 4, 2010 im playing around w/ a papervision tutorial from gotoAndLearn where i wanted a continuous loop using tweenlite inside a class it seems to work 1x but then it doesnt go to the next onComplete any ideas??? thanks function rotateXX () { TweenLite.to(cube, 1, { rotationX:360*1, overwrite:0, onComplete:rotateYY } ); } function rotateYY () { TweenLite.to(cube, 1, { rotationY:360*1, overwrite:0, onComplete:rotateXX } ); } rotateYY(); Link to comment Share on other sites More sharing options...
ggalan Posted April 4, 2010 Author Share Posted April 4, 2010 heres a basic upload without all the papervision stuff, basically i want the animation to loop the onComplete seems to fire off1x but then it doesnt loop Link to comment Share on other sites More sharing options...
ggalan Posted April 4, 2010 Author Share Posted April 4, 2010 nm, solved. the problem was that i didnt reset the value, i should have done some search import com.greensock.*; function rotateXX () { cube.rotationY = 0; TweenLite.to(cube, 1, { rotationX:360*1, onComplete:rotateYY } ); } function rotateYY () { cube.rotationX = 0; TweenLite.to(cube, 1, { rotationY:360*1, onComplete:rotateXX } ); } rotateYY(); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now