Jump to content
Search Community

problem with reverse TimelineMax

bruno.swf test
Moderator Tag

Recommended Posts

assuming "play in reverse infinitely" means it will always play

 

end to beginning

end to beginning

end to beginning

 

import com.greensock.*;
var tl:TimelineMax=new TimelineMax({onReverseComplete:playInReverseAgain,paused:true,reversed:true});

//add some tweens to your timeline
tl.append(TweenLite.to(mc, 1, {x:100}));

tl.currentProgress=1;
tl.resume();


function playInReverseAgain():void {

trace("playAgain");

//send playhead to the end
tl.currentProgress=1;

tl.resume();

}

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.
×
×
  • Create New...