First of all, I'd like to tell the person responsible for these packages (TimeLineLite/Max, TweenLite/Max, etc.) that this is truly AWESOME! Such complete and amazing code! Thank you!
Quick question: In the code below, the function 'complete' gets called right away, even though the time line has just being created and is still empty. I looked in the documentation but didn't see why the onComplete event is triggered right away. Adding 'tl.kill();' right after declaring the TimeLineMax variable prevents the 'complete' function from being called, but I am not sure what the method 'kill' is stopping for there's nothing in the time line yet. Does anybody know the answer?
import com.greensock.TimelineMax;
var tl:TimelineMax = new TimelineMax({onComplete:complete});
function complete():void {
trace('completed');
}