2010-05-30 59 views
1

如何打開陣列(如Camera.names的)到IList的(對於前MXML S:DropDownList的如何將bytearray轉換爲ActionScript中的IList?

<s:DropDownList x="113" y="121" selectedIndex="0" dataProvider="{Camera.names}"></s:DropDownList> 

)?

+2

這個問題的標題是誤導性的,因爲Array和ByteArray是兩個不同的東西。 – sharvey 2010-05-31 20:52:09

回答

2
var myList:IList = new ArrayCollection(sourceArray);