0
我在嘗試使用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";
}
所以我希望在不同的價值是不同的文本文件被加載選擇,但我似乎無法得到它的工作。任何人都可以給我任何解決方案?非常感激。提前致謝。
請在代碼中添加註釋。只是發佈解決方案並不能解釋事情。 – weltraumpirat 2011-01-20 07:28:51