Switching from List to HorizontalList : HorizontalList « Container « Flex






Switching from List to HorizontalList

Switching from List to HorizontalList
 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
    import mx.collections.ArrayCollection;
    public var myAC:ArrayCollection = new ArrayCollection([
        {name:"A", email:"a@domain.com",url:"http://www.a.com"},
        {name:"B", email:"b@domain.com",url:"http://www.b.com"},
        {name:"C", email:"c@domain.com", url:"http://www.c.com"}
    ]);
  
    </mx:Script>
    <mx:HorizontalList id="myFriends" dataProvider="{myAC}" labelField="name" />
</mx:Application>

   
  








Related examples in the same category