我真的不知道如何解釋這個問題。我真的難以理解是什麼造成的。 下面是代碼:As3:按鈕只能在某些位置工作?
var abutton:AButton = new AButton; //Where AButton is a button defined in my library
addChildAt(abutton, numChildren);
abutton.addEventListener(MouseEvent.CLICK, attack);
它不想當某些影片剪輯是其下面的工作,但我不想做切換到另一個屏幕問題更加複雜。是否有可能使按鈕在下面的movieclip工作?
'addChildAt(abutton,numChildren);'與'addChild(abutton)'相同;' – 2012-03-23 22:04:06
只要確保您的按鈕有一個填充所有負空間的命中區域。 – 2012-03-24 01:22:01