Hello, I am trying to add label in between a Timeline animation, and the code are as follow:
var footerTL:TimelineMax = new TimelineMax();
footerTL.append(TweenMax.from(copyright,0.5,{alpha:0,y:"+25"}));
footerTL.append(TweenMax.from(quitBTN,0.5,{alpha:0,y:"+25"}),-0.4);
footerTL.append(TweenMax.from(supportBTN,0.5,{alpha:0,y:"+25"}),-0.4);
footerTL.addLabel("hideButton", footerTL.duration);
footerTL.append(TweenMax.from(changePassBTN,0.5,{alpha:0,y:"+25"}));
footerTL.addLabel("showButton", footerTL.duration);
when publish, this error prompt:
1067: Implicit coercion of a value of type Function to an unrelated type Number.
any idea?