Populating List using ActionScript
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
public var myAC:ArrayCollection = new ArrayCollection([
{label:"a"},
{label:"b"},
{label:"c"}
]);
</mx:Script>
<mx:List id="myFriends" dataProvider="{myAC}" />
</mx:Application>
Related examples in the same category