Using labelField to tell List which column to present
<?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([
{name:"a", email:"a@d.com",url:"http://www.a.com"},
{name:"b", email:"b@d.com",url:"http://www.b.com"},
{name:"c", email:"c@d.com", url:""}
]);
</mx:Script>
<mx:List id="myFriends" dataProvider="{myAC}" labelField="name" />
</mx:Application>
Related examples in the same category