Everything posted by Duro
Setting onComplete events on a per play basisTo use a jQuery Deferred object to pass along a resolved status when a TimelineLite animation completes. I need to create and resolve a new Deferred object each time the timeline is played. In Flash I would have just set a new 'onComplete' event listener each time the Timeline play function is called, and then removed that event listener each time. Is there an equivalent way to do this with the JS version of TimelineLite?