我正在用Flex和Extendscript在Photoshop中開發一個面板。我相當接近這個工作,但與我的Flex技能,我有一個問題,我從jsx文件拉入陣列。該數組在警告框中顯示正常,但在我的分割和創建新集合之間的某處出現了問題。感謝您的幫助。Flex - 用arrayCollection填充Combobox與來自javascript的數據
這裏是我的Flex
protected function loadData():void {
var grabFolderNames:SyncRequestResult = CSXSInterface.instance.evalScript("labNames");
var list:String = grabFolderNames.data;
var array:Array = list.split(",");
var arrayCollection:ArrayCollection = new ArrayCollection();
arrayCollection.source = array;
labFolderList.dataProvider = arrayCollection;
}
這裏是JSX
function labNames() {
var labs = ["Red", "Green", "Blue", "Purple", "Yellow"];
alert("This function is firing" + labs);
}
確實,謝天謝地。所有ArrayCollections都必須作爲對象處理。謝謝 – Bungdaddy 2012-03-07 23:53:06