当更改不同的值时,我无法尝试使用 actionscript 加载不同的文件。我目前正在使用一个 tilelist,它们有不同的值,所以代码是这样的:(标题就在那里,不相关)
if (startTileList.selectedItem.value == 1)
{
//textFile1 load here
txtTitle.text = "History";
}
else if (startTileList.selectedItem.value == 2)
{
//textFile2 load here
txtTitle.text = "Features";
}
else if (startTileList.selectedItem.value == 3)
{
//textFile3 load here
txtTitle.text = "Gallery";
}
所以我希望在选择不同的值时加载不同的文本文件,但我似乎无法让它工作。任何人都可以给我任何解决方案?非常感激。提前致谢。