Rella
Rella

Reputation: 66975

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>

)?

Upvotes: 1

Views: 936

Answers (1)

Sophistifunk
Sophistifunk

Reputation: 5042

var myList:IList = new ArrayCollection(sourceArray);

Upvotes: 2

Related Questions