0

表示オブジェクトを時間の経過とともにフェードインするトゥイーン関数があります。

トゥイーンのデュレーションを 0 に設定すると、何も起こりません。トゥイーンは、アニメーションをまったくエミュレートするために 0 秒 (またはフレーム) でアニメーション化することを想定していませんか?

new Tween(this, "alpha", None.easeOut, 0.0, 1.0, 0, true);
4

1 に答える 1

0

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.

于 2010-10-31T23:15:51.467 に答える