其他分享
首页 > 其他分享> > AS2 tween缓动

AS2 tween缓动

作者:互联网

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,tweenDt,String,Number,private,tween,缓动,stopTween,null
来源: https://www.cnblogs.com/dt1991/p/10973996.html