我正在尝试为影片剪辑编写一些代码,以在特定帧的舞台上制作可点击区域,出现错误,我找不到那个错误。
“ btn_SETTINGS ”是一个影片剪辑。
import flash.ui.Mouse;
import flash.events.MouseEvent;
//Stop at frame 72 (STORES PAGE)
gotoAndStop(73);
//Button SETTINGS Click
function goto_SETTINGS(event:MouseEvent):void
{
gotoAndStop(74);
}
trace("button:",btn_SETTINGS);
btn_SETTINGS.addEventListener(MouseEvent.CLICK, goto_SETTINGS);
button: null
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at APPRAYAN_fla::MainTimeline/frame72()[APPRAYAN_fla.MainTimeline::frame72:13]