Why when i declare timeline globaly it doesnt work?
var timeline:TimelineLite = new TimelineLite();
function clickNavItem(e:MouseEvent):void {
moveSize=e.currentTarget.navDir;
timeline.append(TweenLite.to(productsHolder, 1,{x:moveSize}));
}
When i use just tweenLite.to inside the same function, it works normally. So all the parameters are OK.
Tnx for help!