我在视觉上有效时收到 #1009 错误,有人可以帮我吗?提前致谢。arrBellen 是字段级别的数组。
private function bellenSpel(mv:MovieClip,x:Number):void{
stage.addEventListener(KeyboardEvent.KEY_DOWN,keyHandler);
if(landschap.x == x){
mv.visible = true;
mv.mouseEnabled = true;
}
else{
mv.visible = false;
mv.mouseEnabled = false;
}
landschap.lblScore_onderwater.text.text = "Score: " + vogelTimer.currentCount;
if(vogelTimer.currentCount % 300 == 0) {
var bel:Bel = maakBellen();
arrBellen.push(bel);
}
for(var i = 0;arrBellen.length - 1;i++){
var bl:Bel = arrBellen[i];
bl.y += 2; // output says error is here
}
}