FLash AS3.0 停止鼠标监听
importfl.controls.Button;stop();varbutton_action1:Button=newButton();addChild(button_...
import fl.controls.Button;
stop();
var button_action1:Button = new Button();
addChild(button_action1);
button_action1.x=184.3
button_action1.y=193
button_action1.height=200;
button_action1.width=300;
button_action1.alpha=0;
if ( currentFrame ==424 )
{
button_action1.addEventListener(MouseEvent.ROLL_OVER,action11)
function action11(e:MouseEvent){
action1.alpha = 100;
}
button_action1.addEventListener(MouseEvent.ROLL_OUT,action12)
function action12(e:MouseEvent){
action1.alpha = 0;
}
button_action1.addEventListener(MouseEvent.CLICK,action13)
function action13(e:MouseEvent){
gotoAndStop(426);
}
}
跳到下一真426之后,发现监听还在,怎么解决? 展开
stop();
var button_action1:Button = new Button();
addChild(button_action1);
button_action1.x=184.3
button_action1.y=193
button_action1.height=200;
button_action1.width=300;
button_action1.alpha=0;
if ( currentFrame ==424 )
{
button_action1.addEventListener(MouseEvent.ROLL_OVER,action11)
function action11(e:MouseEvent){
action1.alpha = 100;
}
button_action1.addEventListener(MouseEvent.ROLL_OUT,action12)
function action12(e:MouseEvent){
action1.alpha = 0;
}
button_action1.addEventListener(MouseEvent.CLICK,action13)
function action13(e:MouseEvent){
gotoAndStop(426);
}
}
跳到下一真426之后,发现监听还在,怎么解决? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询