Search code examples
apache-flexflashactionscriptarraysilist

How to turn bytearray into IList in Actionscript?


How to turn Array (like Camera.names) into IList (for for ex MXML s:DropDownList

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

)?


Solution

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