好吧所以这里的第一段代码是当用户重新选择一个按钮清除它然后将阵列点设置为空白数字时。第二部分是问题与错误的关系。术语未定义。现在我没有遇到这个问题,直到我添加了第一篇文章。
if(tempArray[1] == pickFive[0]){
Game.BARR.balls.balls2.b1.num1.text = '';
pickFive.splice(pickFive.indexOf(tempArray[1]), 1);
pickFive[0] = ("");
}
if(pickFive[0] != null){
//trace(Game.NumberBoard_mc.Pick5['btn_' + pickFive[0]].name);
Game.NumberBoard_mc.Pick5['btn_' + pickFive[0]].gotoAndStop(2);//Saying this line
Game.BARR.balls.balls2.b1.num1.text = pickFive[0];
}
答案 0 :(得分:0)
if (pickFive.indexOf(tempArray[1]) != -1) {
if(event.target.currentFrame == 2) {
event.target.gotoAndStop(1);
}
if(tempArray[1] == pickFive[0]){
Game.BARR.balls.balls2.b1.num1.text = '';
pickFive[0] = "";
}
if(pickFive[0] != null){
if(pickFive[0] != ""){
Game.NumberBoard_mc.Pick5['btn_' + pickFive[0]].gotoAndStop(2);
Game.BARR.balls.balls2.b1.num1.text = pickFive[0];
}
}