Using an ArrayCollection to drive the display of a List component : List Data « Components « Flex
- Flex
- Components
- List Data
Using an ArrayCollection to drive the display of a List component

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:ArrayCollection id="myAC">
<mx:Object label="a" />
<mx:Object label="b" />
<mx:Object label="c" />
</mx:ArrayCollection>
<mx:List id="myFriends" dataProvider="{myAC}" />
</mx:Application>
Related examples in the same category