0
嗨,大家需要一些幫助。基本上我想在(guy1)擊中hitTestObject(home1_mc)後前進到第4幀。Flash AS3用hitTestObject前進到下一幀
這是錯誤我得到:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at DNAGames2_fla::MainTimeline/exitFrameHandler()
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
at DNAGames2_fla::MainTimeline/exitFrameHandler()
這是我的代碼:
function exitFrameHandler(event:Event):void{
if(guy1.hitTestObject(home1_mc)) {
removeChild(guy1);
removeChild(guy2);
removeChild(guy3);
removeChild(o1);
removeChild(cherry1);
gotoAndStop(4);
}
}
我都試圖消除孩子的原因是因爲他們仍然在屏幕後,我切換菜單爲我的遊戲。任何幫助表示讚賞
謝謝,所有提前它,看看它是否工作。這是爲了我幾天前的表態,但不知道更多; l) – Rickysteven1990