Timeline animation and AS3 Tween Class

点点圈 提交于 2019-12-11 12:47:23

问题


Is there a way (using the AS 3 Tween Class, NOT TweenMax) to speed up a timeline animation?


回答1:


You can do it with timer, set interval lower than second(1000ms)/fps, and use nextFrame()




回答2:


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


来源:https://stackoverflow.com/questions/6296929/timeline-animation-and-as3-tween-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!