Jump to content
Search Community

AS2: TimelineLite

kakarlus test
Moderator Tag

Recommended Posts

var duration = 0.65;
var tl = new TimelineLite({onComplete: function(){ tl.reverse(); }});
tl.addLabel(labels[0], 0);
tl.appendMultiple([new TweenLite(help, duration, { _alpha: 0, delay: 3 }),
				   new TweenLite(year, duration, { _alpha: 100, delay: 3 })
				   ]);
tl.addLabel(labels[1], duration*1); // first stop
tl.appendMultiple([new TweenLite(dragger, duration, { _x : getXFor(arr[1]), ease: Strong.easeOut }),
				   new TweenLite(year, duration, { _x : getXFor(arr[1]), ease: Strong.easeOut })
				   ]);
tl.addLabel(labels[2], duration*2); // 2nd stop
tl.appendMultiple([new TweenLite(dragger, duration, { _x : getXFor(arr[2]), ease: Strong.easeOut }),
				   new TweenLite(year, duration, { _x : getXFor(arr[2]), ease: Strong.easeOut })
				   ]);
tl.addLabel(labels[3], duration*3); // 3rd stop
tl.appendMultiple([new TweenLite(dragger, 0.5, { _x : getXFor(arr[3]), ease: Strong.easeOut }),
				   new TweenLite(year, 0.5, { _x : getXFor(arr[3]), ease: Strong.easeOut })
				   ]);

hi guys,

 

im having a problem with tl.gotoAndPlay(label[0]). is there something im doing wrong here?

 

thanks,

Carlos

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...