这是我的代码-它正在工作并移至第 3 帧,但一切都卡在那里,我收到此错误 #2007
function createMC(event:Event):void
{
var hasa_mc:MovieClip= new hasa();
stage.addChild(hasa_mc);
var halfMc:int=hasa_mc.width/2;
hasa_mc.x=randomNum(70+halfMc,480-halfMc);
hasa_mc.addEventListener(Event.ENTER_FRAME, abc);
hasa_mc.addEventListener(Event.ENTER_FRAME, dropCheckHit);
function dropCheckHit(event:Event):void
{
if (hasa_mc.hitTestObject(hauta1_mc)) {
hasa_mc.removeEventListener(Event.ENTER_FRAME, dropCheckHit);
event.target.parent.removeChild(event.target);
countertime++;
score_txt.text=String(countertime*10)
if (countertime==10)
{
gotoAndStop(3);
}