Actionscript 3 时间轴动画和AS3 Tween类

Actionscript 3 时间轴动画和AS3 Tween类,actionscript-3,timeline,tween,Actionscript 3,Timeline,Tween,有没有一种方法(使用AS 3 Tween类,而不是TweenMax)来加速时间轴动画?您可以使用计时器,将间隔设置为低于秒(1000ms)/fps,并使用nextFrame()好的,我刚刚尝试了这个,但是setInterval似乎使我的.swf崩溃了?请尝试timer类,setInterval来自as2 tween = new Tween(this, 'frame', None.easeIn, 148, 172, .5, true) private var _frame:int; publi

有没有一种方法(使用AS 3 Tween类,而不是TweenMax)来加速时间轴动画?

您可以使用计时器,将间隔设置为低于秒(1000ms)/fps,并使用nextFrame()

好的,我刚刚尝试了这个,但是setInterval似乎使我的.swf崩溃了?请尝试timer类,setInterval来自as2
tween = new Tween(this, 'frame', None.easeIn, 148, 172, .5, true)

private var _frame:int;

public function set frame(value:Number):void {
        _frame = int(value);
        myMovieClip.gotoAndStop(_frame);
}