Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

AS2: TimelineLite

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?




Link to comment
Share on other sites

i keep getting 


TimelineLite error: the _label_ label was not found.

Link to comment
Share on other sites

It looks like you are adding the labels with


labels[0] with an "s"


You are using label[0] in your gotoAndPlay().

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.