Jump to content
Search Community

Timeline and onComplete

robertnyc test
Moderator Tag

Recommended Posts

Is there any circumstance in which this

 

			_arrowTimeline = new TimelineMax({onComplete:enableArrow,paused:true});
                       _arrowTimeline.insert(new TweenMax(purplearrow,TWEENTIME,{y:purplearrow.origY,ease:EASE}));
                	_arrowTimeline.append(new TweenMax(purplearrow,TWEENTIME,{alpha:ARROW_PULSE_MAX,ease:EASE,yoyo:true,repeat:-1}));

 

will fail to call the onComplete function?

 

It fails every time. If I change it to call onComplete in one of the tweens it works. Why? I'm sure I'm missing something simple

 

			_arrowTimeline = new TimelineMax({paused:true});
                       _arrowTimeline.insert(new TweenMax(purplearrow,TWEENTIME,{y:purplearrow.origY,ease:EASE,onComplete:enableArrow}));
                	_arrowTimeline.append(new TweenMax(purplearrow,TWEENTIME,{alpha:ARROW_PULSE_MAX,ease:EASE,yoyo:true,repeat:-1}));

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