AS2 tween缓动

import mx.transitions. *;
import mx.transitions.easing. *;


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"];

  

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