如何解决Parameter child must be non-null错误?
我正在尝试删除具有.y <= 56
代码如下:
for (i=1; i<=4; i++)
{
this["Box" + i].addEventListener(Event.ENTER_FRAME, Move);
}
function Move(e:Event):void
{
e.target.y -= 6;
if (e.target.y <= 56)
{
removeChild(getChildByName(e.target.name));
Comment.text = "MISS";
miss += 1;
score += 0;
}
}