【发布时间】:2011-08-03 19:50:01
【问题描述】:
我正在尝试使用 Actionscript 3 逐渐减慢影片剪辑的速度。我当前的代码播放影片剪辑,然后突然停止并向前移动几帧。比我想要的更粗糙的外观。
var t:Timer=new Timer(2000,1);
t.addEventListener(TimerEvent.TIMER,slowDown);
t.start();
function slowDown(e:TimerEvent):void {
if (currentFrame==totalFrames) {
gotoAndStop(1);
} else {
gotoAndStop(currentFrame+1);
}
}
Timer 类至少是正确的方向吗?谢谢。
【问题讨论】: