做一个网站得做多少个页面,最近新闻摘抄50字,网页设计新建站点,千锋教育介绍假设场景中有一SimpleButton叫testBtn,执行下面操作#xff1a;1.鼠标移上testBtn#xff0c; testBtn状态变为OVER2.移除testBtn#xff0c;removeChild(testBtn)3.5秒后重新添加testBtn到场景此时#xff0c;看见testBtn还是OVER状态。解决方法#xff1a;1.记录testBtn…假设场景中有一SimpleButton叫testBtn,执行下面操作 1.鼠标移上testBtn testBtn状态变为OVER 2.移除testBtnremoveChild(testBtn) 3.5秒后重新添加testBtn到场景 此时看见testBtn还是OVER状态。 解决方法 1.记录testBtn的UP状态 private var _upState:DisplayObject testBtn.overState; 2.testBtn被移除时更改其状态 testBtn.overState testBtn.upState; 3.testBtn被加载在场景时添加事件监听 testBtn.addEventListener(MouseEvent.ROLL_OVER,function(event:MouseEvent):void{ testBtn.overState_overState; testBtn.removeEventListener(event.type, arguments.callee); });转载于:https://www.cnblogs.com/in1ts/p/4252737.html