[問題]練習寫分頁切換時 出現了錯誤
在練習寫分頁時,點擊分頁按鈕出現了錯誤訊息
但是看不懂它在寫什麼,請問它指的意思是什麼呢?
謝謝
TypeError: Error #1009: 無法存取 Null 物件參考的屬性或方法。
at _fla::MainTimeline/_fla::frame4()
影格1寫
stop();
juice_btn.addEventListener(MouseEvent.MOUSE_UP,onJuice);
cake_btn.addEventListener(MouseEvent.MOUSE_UP,oncake);
egg_btn.addEventListener(MouseEvent.MOUSE_UP,onegg);
function onJuice(event:MouseEvent):void{
gotoAndStop(4);
};
function oncake(event:MouseEvent):void{
gotoAndStop(3);
};
function onegg(event:MouseEvent):void{
gotoAndStop(2);
};
影格2~4寫
juice_btn.addEventListener(MouseEvent.MOUSE_UP,onJuice);
cake_btn.addEventListener(MouseEvent.MOUSE_UP,oncake);
egg_btn.addEventListener(MouseEvent.MOUSE_UP,onegg);
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.169.214.222
推
08/26 00:35, , 1F
08/26 00:35, 1F
→
08/26 01:24, , 2F
08/26 01:24, 2F