代码如下 | 复制代码 |
import fl.motion.Animator; import fl.motion.MotionEvent; //flash cc生成 var ax1:XML = //引用循环播放 var city_animator:Animator = new Animator(ax1,ctmc); city_animator.play(); city_animator.addEventListener(MotionEvent.MOTION_END,afterMotion); function afterMotion(e:MotionEvent) { city_animator.play(); } |