import fl.transitions.Tween; import fl.transitions.easing.*; import fl.transitions.TweenEvent; var homeX=300; //var inTween = new Tween(main_mc,"alpha",None.easeNone,0,1,.5,true); var inTween = new Tween(main_mc,"x",Strong.easeInOut,main_mc.x,homeX,2,true); inTween.addEventListener(TweenEvent.MOTION_FINISH,MOTION_FINISH); inTween.addEventListener(TweenEvent.MOTION_START,MOTION_START); //开启可以 才能侦听到 MOTION_START时间 inTween.start(); function MOTION_FINISH(e){ trace("MOTION_FINISH"); } function MOTION_START(e){ trace("MOTION_START"); }