码迷,mamicode.com
首页 > 其他好文 > 详细

AS2 tween缓动

时间:2019-06-04 16:13:33      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:new   single   OWIN   stat   div   get   pre   top   case   

stopTween.stopTween("_x");
startTween(viewMc["Masked"], "_x", null, now_x, nowIndex * pageWidth, 0.3, true);

private function startTween(taget:MovieClip,r:String, math:Function, s:Number, e:Number, t:Number, tf:Boolean){
			this["tweenDt_" + r] = new Tween(taget, r, math, s, e, t, tf);
			this["tweenDt_" + r].onMotionFinished = singleCase.createEvent(this, null, iconsMove);
		}

		private function stopTween(r:String){
			delete this["tweenDt_" + r].onMotionFinished;
			this["tweenDt_" + r].stop();
		}


/**缓动属性*/
	private static var tweenList:Array = ["_x","_y","_alpha","_xscale","_yscale","_width","_height","_rotation"];

  

AS2 tween缓动

标签:new   single   OWIN   stat   div   get   pre   top   case   

原文地址:https://www.cnblogs.com/dt1991/p/10973996.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!