在Flash cs4 as3.0中出现TypeError: Error #1009: 无法访问空对象引用的属性或方法。是什么意思? 10
这是我写的代码。stop();TiJiao.addEventListener(MouseEvent.CLICK,clickTJ);functionclickTJ(even...
这是我写的代码。
stop();
TiJiao.addEventListener(MouseEvent.CLICK,clickTJ);
function clickTJ(event:MouseEvent):void{
if((TK1.text=="8")&&(TK2.text=="6")&&(TK3.text=="相同")&&(TK4.text=="12")){
PD1.gotoAndStop(3);
PD2.gotoAndStop(3);
PD3.gotoAndStop(3);
PD4.gotoAndStop(3);
PD5.gotoAndStop(1);
}else if((TK1.text=="8")||(TK2.text=="6")||(TK3.text=="相同")||(TK4.text=="12")){
PD1.gotoAndStop(1);
PD2.gotoAndStop(1);
PD3.gotoAndStop(1);
PD4.gotoAndStop(1);
PD5.gotoAndStop(4);
}else {
PD1.gotoAndStop(2);
PD2.gotoAndStop(2);
PD3.gotoAndStop(2);
PD4.gotoAndStop(2);
PD5.gotoAndStop(1);
}
}
QingKong.addEventListener(MouseEvent.CLICK,clickQK);
function clickQK(event:MouseEvent):void{
PD1.gotoAndStop(1);
PD2.gotoAndStop(1);
PD3.gotoAndStop(1);
PD4.gotoAndStop(1);
PD5.gotoAndStop(1);
TK1.text="";
TK2.text="";
TK3.text="";
TK4.text="";
}
DaAn.addEventListener(MouseEvent.CLICK,clickDA);
function clickDA(event:MouseEvent):void{
PD1.gotoAndStop(1);
PD2.gotoAndStop(1);
PD3.gotoAndStop(1);
PD4.gotoAndStop(1);
PD5.gotoAndStop(1);
TK1.text="8";
TK2.text="6";
TK3.text="相同";
TK4.text="12";
} 展开
stop();
TiJiao.addEventListener(MouseEvent.CLICK,clickTJ);
function clickTJ(event:MouseEvent):void{
if((TK1.text=="8")&&(TK2.text=="6")&&(TK3.text=="相同")&&(TK4.text=="12")){
PD1.gotoAndStop(3);
PD2.gotoAndStop(3);
PD3.gotoAndStop(3);
PD4.gotoAndStop(3);
PD5.gotoAndStop(1);
}else if((TK1.text=="8")||(TK2.text=="6")||(TK3.text=="相同")||(TK4.text=="12")){
PD1.gotoAndStop(1);
PD2.gotoAndStop(1);
PD3.gotoAndStop(1);
PD4.gotoAndStop(1);
PD5.gotoAndStop(4);
}else {
PD1.gotoAndStop(2);
PD2.gotoAndStop(2);
PD3.gotoAndStop(2);
PD4.gotoAndStop(2);
PD5.gotoAndStop(1);
}
}
QingKong.addEventListener(MouseEvent.CLICK,clickQK);
function clickQK(event:MouseEvent):void{
PD1.gotoAndStop(1);
PD2.gotoAndStop(1);
PD3.gotoAndStop(1);
PD4.gotoAndStop(1);
PD5.gotoAndStop(1);
TK1.text="";
TK2.text="";
TK3.text="";
TK4.text="";
}
DaAn.addEventListener(MouseEvent.CLICK,clickDA);
function clickDA(event:MouseEvent):void{
PD1.gotoAndStop(1);
PD2.gotoAndStop(1);
PD3.gotoAndStop(1);
PD4.gotoAndStop(1);
PD5.gotoAndStop(1);
TK1.text="8";
TK2.text="6";
TK3.text="相同";
TK4.text="12";
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询