2011-06-09 57 views

回答

0
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); 
} 
0

你可以用定时器做到这一点,设置得比秒(1000毫秒)区间下限/ FPS,并使用nextFrame()

+0

好吧,我只是尝试这样做,但setInterval的似乎是让我瑞士法郎暴跌? – redconservatory 2011-06-09 17:44:45

+0

尝试Timer类,setInterval来自as2 http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/utils/Timer.html – Urosan 2011-06-09 17:47:59