帮助我不知道什么是错的._。我检查了实例,名字仍然不对。 我希望任何人都可以帮我修复
我添加了虚空并删除了仍然没有变化。我重命名了所有的框架并使用相同的名称,但仍然没有
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fef_fla::MainTimeline/frame1()
我的代码我检查了一切
stop();
header_mc.home_btn.addEventListener(MouseEvent.CLICK, gohome);
header_mc.logo_btn.addEventListener(MouseEvent.CLICK, gohome);
function gohome (event:MouseEvent):void{
gotoAndStop(1)
}
header_mc.about_btn.addEventListener(MouseEvent.CLICK, goabout);
function goabout (event:MouseEvent):void{
gotoAndStop(2)
}
header_mc.image_btn.addEventListener(MouseEvent.CLICK, goimage);
function goimage (event:MouseEvent):void{
gotoAndStop(3)
}
////////Button 1//////////
thumb1_btn.addEventListener(MouseEvent.CLICK, GetFirstImage)
function GetFirstImage (event:MouseEvent):void{
gotoAndStop(4)
}
////////Button 2//////////
thumb2_btn.addEventListener(MouseEvent.CLICK, GetSecondImage)
function GetSecondImage (event:MouseEvent):void{
gotoAndStop(5)
}
////////Button 3//////////
thumb3_btn.addEventListener(MouseEvent.CLICK, GetThirdImage)
function GetThirdImage (event:MouseEvent):void{
gotoAndStop(7)
}
////////Button 4//////////
thumb4_btn.addEventListener(MouseEvent.CLICK, GetForthImage)
function GetForthImage (event:MouseEvent):void{
gotoAndStop(6)
}
header_mc.contact_btn.addEventListener(MouseEvent.CLICK, gocontact);
function gocontact (event:MouseEvent):void{
gotoAndStop(7)
}
header_mc.demo_btn.addEventListener(MouseEvent.CLICK, godemo);
function godemo (event:MouseEvent):void{
gotoAndStop(8)
}