Hello,
I'm using the Tweener Class.
When I press a Button the list is sliding right and left (depends on the button I preeses).
the Button is calling a function that use the following code:
Tweener.addTwee n(this.list, {_x:list._x -(count * 60), time:0.8, transition:"eas eoutback"});
My problem is when I press exactly before the tween is end, it starts a new tween and it end 10 pixels after it shouled stop.
sombody knows how I can Control It.
I tried use the function onComplete and to set a boolean veriable that allows tweening to true but it turns out that the onComplete funct is beeing executed before the tween is actually finished and the object stands in place.
thank you,
Oren
I'm using the Tweener Class.
When I press a Button the list is sliding right and left (depends on the button I preeses).
the Button is calling a function that use the following code:
Tweener.addTwee n(this.list, {_x:list._x -(count * 60), time:0.8, transition:"eas eoutback"});
My problem is when I press exactly before the tween is end, it starts a new tween and it end 10 pixels after it shouled stop.
sombody knows how I can Control It.
I tried use the function onComplete and to set a boolean veriable that allows tweening to true but it turns out that the onComplete funct is beeing executed before the tween is actually finished and the object stands in place.
thank you,
Oren
Comment