时间轴动画和AS3 Tween类 [英] Timeline animation and AS3 Tween Class
本文介绍了时间轴动画和AS3 Tween类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法(使用AS 3吐温类,而不是TweenMax),以加快时间轴动画?
解决方案
吐温=新吐温(这一点,框架,None.easeIn,148,172,5,真)
私人VAR _frame:INT;
公共功能设置框(值:编号):无效{
_frame = INT(值);
myMovieClip.gotoAndStop(_frame);
}
Is there a way (using the AS 3 Tween Class, NOT TweenMax) to speed up a timeline animation?
解决方案
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);
}
这篇关于时间轴动画和AS3 Tween类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文