Mega Code Archive

 
Categories / Flex / Components
 

Provide any data within the array for Repeater component

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Script>              [Bindable]         public var myArray:Array=[10,20,30,40];        </mx:Script>     <mx:ArrayCollection id="myAC" source="{myArray}"/>     <mx:Repeater id="myrep" dataProvider="{myAC}">         <mx:Label id="Label1" text="This is loop #{myrep.currentIndex+1}"/>     </mx:Repeater> </mx:Application>