Actionscript 3 ReferenceError:错误1069:在flash.text.TextField上找不到属性标题,并且没有默认值

Actionscript 3 ReferenceError:错误1069:在flash.text.TextField上找不到属性标题,并且没有默认值,actionscript-3,Actionscript 3,单击Library按钮时,我得到以下输出。我已经看过了类似问题的其他答案,但我可以;我找不到有帮助的 ReferenceError: Error #1069: Property title not found on flash.text.TextField and there is no default value. at HarmonyMusic_fla::MainTimeline/frame2() at flash.display::MovieClip/gotoAndStop() at Ha

单击Library按钮时,我得到以下输出。我已经看过了类似问题的其他答案,但我可以;我找不到有帮助的

ReferenceError: Error #1069: Property title not found on flash.text.TextField and there is no default value.
at HarmonyMusic_fla::MainTimeline/frame2()
at flash.display::MovieClip/gotoAndStop()
at HarmonyMusic_fla::MainTimeline/openLibrary()
这是我在主框架上的代码

//When program starts, open the home page

import flash.events.MouseEvent;

gotoAndStop("Home");

//Make "conservatoriumButton" listen for a mouse click and call the "openConservatorium" function
conservatoriumButton.addEventListener(MouseEvent.CLICK, openConservatorium);

function openConservatorium(event:MouseEvent):void{
//Open webpage "http://www.griffith.edu.au/music/queensland-conservatorium" when function is called
navigateToURL(new URLRequest("http://www.griffith.edu.au/music/queensland-conservatorium"), "_blank");  
}
griffithButton.addEventListener(MouseEvent.CLICK, openGriffith);

function openGriffith(event:MouseEvent):void{
//Open webpage "http://www.griffith.edu.au" when function is called
navigateToURL(new URLRequest("http://www.griffith.edu.au"), "_blank");  
}
//Make "libraryButton" listen for a mouse click and call the "openLibrary" function
libraryButton.addEventListener(MouseEvent.CLICK, openLibrary);

function openLibrary(event:MouseEvent):void{
//Goto the frame named "MusicLibrary"
gotoAndStop("MusicLibrary");
}
searchButton.addEventListener(MouseEvent.CLICK, searchGoogle);
//searchBar.addEventListener(KeyboardEvent.ENTER, searchGoogle);

function searchGoogle(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.google.com.au/search?q="+searchBar.text), "_blank");
}
编辑:我打开了调试模式,结果如下:

ReferenceError: Error #1069: Property title not found on flash.text.TextField and there is no default value.
at HarmonyMusic_fla::MainTimeline/frame2()[HarmonyMusic_fla.MainTimeline::frame2:80]
at flash.display::MovieClip/gotoAndStop()
at HarmonyMusic_fla::MainTimeline/openLibrary()[HarmonyMusic_fla.MainTimeline::frame1:24]
第2帧第80行上的代码:

function chooseSong(e:MouseEvent):void{
/*line 80*/switch(e.currentTarget.name){
    case "song1":
        currSong = "../MP3s/"+songList[0] as String;
        quartetsAlbum.visible=true;
        butterflyAlbum.visible=false;
        tapTouchAlbum.visible=false;
        lookingAlbum.visible=false;
        break;
这是第1帧第24行的代码

function openLibrary(event:MouseEvent):void{
/*line 24*/gotoAndStop("MusicLibrary");
}
按钮调用chooseSong

song1.addEventListener(MouseEvent.CLICK, chooseSong);
song2.addEventListener(MouseEvent.CLICK, chooseSong);
song3.addEventListener(MouseEvent.CLICK, chooseSong);
song4.addEventListener(MouseEvent.CLICK, chooseSong);
song5.addEventListener(MouseEvent.CLICK, chooseSong);
song6.addEventListener(MouseEvent.CLICK, chooseSong);
song7.addEventListener(MouseEvent.CLICK, chooseSong);
song8.addEventListener(MouseEvent.CLICK, chooseSong);
song9.addEventListener(MouseEvent.CLICK, chooseSong);
song10.addEventListener(MouseEvent.CLICK, chooseSong);
song11.addEventListener(MouseEvent.CLICK, chooseSong);
song12.addEventListener(MouseEvent.CLICK, chooseSong);

尝试在代码中搜索标题并发布包含标题的行。我最好的猜测是,你有一个动态文本字段,你正试图在那里写下歌曲的名字。大致如下:

    myText.title = "Wrong!"; // is wrong; there is no such property
    myText.text = "Right!"; // the correct way to set the text in a textfield

但这只是一个猜测。

没有调用其他代码。我不明白你所说的组件是什么意思。我将图片导入到stage并更改了实例名称。第2帧上有更多代码。第2帧是错误所在。把代码贴出来。ReferenceError:错误1069:在flash.text.TextField上找不到属性标题,并且没有默认值。在佛罗里达州HarmonyMusic_::MainTimeline/frame2I,我用新的代码编辑了这篇文章。你能发布添加了调用chooseSong的监听器的代码吗?在这一点上,我猜你没有禁用鼠标或者没有关闭主movieclip上的mouseChildren,所以目标不是你认为的目标。