flash 怎么实现鼠标滑过按钮显示图片的效果?用的是AS3.0
1个回答
展开全部
button.addEventListener(MouseEvent.MOUSE_OVER,action);
stage.addEventListener(Event.ENTER_FRAME,hidePicture);
function action (e:MouseEvent):void{
picture_1.aplha = 1;
}
function hidePicure(e:Event):void{
picture_1.alpha = 0;
picture_2.alpha = 0;
//在这里输入你所有图片的名字
}
stage.addEventListener(Event.ENTER_FRAME,hidePicture);
function action (e:MouseEvent):void{
picture_1.aplha = 1;
}
function hidePicure(e:Event):void{
picture_1.alpha = 0;
picture_2.alpha = 0;
//在这里输入你所有图片的名字
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询