flashas3如何设置鼠标滑过mc(含图片按钮)设置mc跟随鼠标方向移动,点击图片固定位置显示大图拜托了各位 谢
1个回答
展开全部
我来告诉你标准答案!mc.addEventListener(MouseEvent.MOUSE_OVER,mcGensui);functionmcGensui(e:MouseEvent):void{mc.removeChild(MouseEvent.MOUSE_OVER,mcGensui);mc.x=mouseX;mc.y=mouseY;mc.addEventListener(MouseEvent.CLICK,showPic);}functionshowPic(e:MouseEvent):void{mc.removeEventListener(MouseEvent.CLICK,showPic);mc.x=stage.stageWidth/2;mc.y=stage.stageHeight/2;}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询