using onChange function with TweenLite
Does TweenLite or TweenMax support the onChange function?
I would like to re-code using TweenLite/TweenMax to get my textbox to numerically display the constantly changing x position of my tween.
I did have this code before:
I tried some variations with the following to no avail:
nextTween1.addEventListener(TweenEvent.MOTION_CHANGE, onChange);
function onChange(evt:TweenEvent):void {
mph_digital.mph_counter.text = int((dial_graphics_mph.x * .20528)*10)/10;
}
also how do i define tweens as variables now with TweenLite / TweenMax?
Thanks!