Flex – convert the array to arraylist?

How to convert to display items in the AIR 2 for List component?
var a:Array = ['some','values','in','an' ,'array'];
var aList:ArrayList = new ArrayList(a);

documentation for ArrayList constructor

How to use AIR 2 Convert to display items in the for List component?

var a:Array = ['some','values','in','an','array'];
var aList :ArrayList = new ArrayList(a);

documentation for ArrayList constructor

Leave a Comment

Your email address will not be published.