1
有没有一种方法(使用AS 3 Tween类,而不是TweenMax)来加速时间轴动画?时间轴动画和AS3吐温类
有没有一种方法(使用AS 3 Tween类,而不是TweenMax)来加速时间轴动画?时间轴动画和AS3吐温类
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);
}
你可以用定时器做到这一点,设置得比秒(1000毫秒)区间下限/ FPS,并使用nextFrame()
好吧,我只是尝试这样做,但setInterval的似乎是让我瑞士法郎暴跌? – redconservatory 2011-06-09 17:44:45
尝试Timer类,setInterval来自as2 http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/utils/Timer.html – Urosan 2011-06-09 17:47:59