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

  

posted on 2019-06-04 15:53  我是cdt  阅读(143)  评论(0编辑  收藏  举报