昨天都忘記寫日志了。。繼續(xù)道歉。。我可愛(ài)的瑪麗醫(yī)生~~昨天終于可以正常的消去了~~開(kāi)心~~不過(guò)哦~我的顯示和事件處理不好~~貓說(shuō)要把a(bǔ)ddEventListener綁定。。。今天要把下面那段混亂的東西搞好~~加油
public function onTimer(event:TimerEvent):void {
if (judge) {
judge=judgepill.pilljudge();
stage.focus=this;
addEventListener(KeyboardEvent.KEY_DOWN,onKeyDown);
remove();
DrawPill();//每次只畫藥丸掉落的動(dòng)畫
} else {
putIntoMap();
judgeMap=new stJudgeMap(myMap);
removeall();
Draw();//畫的是有remove狀態(tài)的~~
judgeMap.stAround();
judgeMap.deleteremove();
judgeMap.pilldown();
pillmove=new stPillmovetwo ;
judgepill=new stJudgePill(myMap,pillmove);
judge=judgepill.pilljudge();
removeall();
Draw();
DrawPill();
}
}