flash AS2.0代码多项选择的问题
现在代码所有答案都是正确的,但是我只想让ACD是正确的,其他的是错误的怎么修改stop();i=0;btn_a._visible=false;btn_b._visible...
现在代码所有答案都是正确的, 但是我只想让A C D是正确的,其他的是错误的 怎么修改
stop();
i = 0;
btn_a._visible = false;
btn_b._visible = false;
btn_c._visible = false;
btn_d._visible = false;
btn_e._visible = false;
btn_f._visible = false;
btn_g._visible = false;
btn_h._visible = false;
btn_a1.onRelease = function(){ btn_a._visible = true; i = i+1;}
btn_b1.onRelease = function(){ btn_b._visible = true; i = i+10;}
btn_c1.onRelease = function(){ btn_c._visible = true; i = i+100;}
btn_d1.onRelease = function(){ btn_d._visible = true; i = i+1000;}
btn_e1.onRelease = function(){ btn_e._visible = true; i = i+10000;}
btn_f1.onRelease = function(){ btn_f._visible = true; i = i+100000;}
btn_g1.onRelease = function(){ btn_g._visible = true; i = i+1000000;}
btn_h1.onRelease = function(){ btn_h._visible = true; i = i+10000000;}
btn_a.onRelease = function(){ btn_a._visible = false; i = i-1;}
btn_b.onRelease = function(){ btn_b._visible = false; i = i-10;}
btn_c.onRelease = function(){ btn_c._visible = false; i = i-100;}
btn_d.onRelease = function(){ btn_d._visible = false; i = i-1000;}
btn_e.onRelease = function(){ btn_e._visible = false; i = i-10000;}
btn_f.onRelease = function(){ btn_f._visible = false; i = i-100000;}
btn_g.onRelease = function(){ btn_g._visible = false; i = i-1000000;}
btn_h.onRelease = function(){ btn_h._visible = false; i = i-10000000;}
btn_ok.onRelease = function(){
if(i == 11111111){
gotoAndStop("dui");
}else{
gotoAndStop("cuo");
}
trace(i);
} 展开
stop();
i = 0;
btn_a._visible = false;
btn_b._visible = false;
btn_c._visible = false;
btn_d._visible = false;
btn_e._visible = false;
btn_f._visible = false;
btn_g._visible = false;
btn_h._visible = false;
btn_a1.onRelease = function(){ btn_a._visible = true; i = i+1;}
btn_b1.onRelease = function(){ btn_b._visible = true; i = i+10;}
btn_c1.onRelease = function(){ btn_c._visible = true; i = i+100;}
btn_d1.onRelease = function(){ btn_d._visible = true; i = i+1000;}
btn_e1.onRelease = function(){ btn_e._visible = true; i = i+10000;}
btn_f1.onRelease = function(){ btn_f._visible = true; i = i+100000;}
btn_g1.onRelease = function(){ btn_g._visible = true; i = i+1000000;}
btn_h1.onRelease = function(){ btn_h._visible = true; i = i+10000000;}
btn_a.onRelease = function(){ btn_a._visible = false; i = i-1;}
btn_b.onRelease = function(){ btn_b._visible = false; i = i-10;}
btn_c.onRelease = function(){ btn_c._visible = false; i = i-100;}
btn_d.onRelease = function(){ btn_d._visible = false; i = i-1000;}
btn_e.onRelease = function(){ btn_e._visible = false; i = i-10000;}
btn_f.onRelease = function(){ btn_f._visible = false; i = i-100000;}
btn_g.onRelease = function(){ btn_g._visible = false; i = i-1000000;}
btn_h.onRelease = function(){ btn_h._visible = false; i = i-10000000;}
btn_ok.onRelease = function(){
if(i == 11111111){
gotoAndStop("dui");
}else{
gotoAndStop("cuo");
}
trace(i);
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询