문제

i have a tween function which fades in a display object over time.

when i set my tween duration to 0 nothing happens. isn't the tween suppose to animate in 0 seconds (or frames) to emulate no animation at all?

new Tween(this, "alpha", None.easeOut, 0.0, 1.0, 0, true);
도움이 되었습니까?

해결책

I had a look at the source code for the Tween class. There is a simple conditional in it where it checks to see if the time passed is greater than the duration. If it is, then it dispatches the MOTION_FINISH event, stops any timers, removes listeners to ENTER_FRAME and that is it. There is no code to then set the target object to the finished state.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top