Get Repeater current index : Repeater « Components « Flex






Get Repeater current index

Get Repeater current index
        

<?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>

   
    
    
    
    
    
    
    
  








Related examples in the same category

1.Repeater with ModelRepeater with Model
2.Current Index in a RepeaterCurrent Index in a Repeater
3.Image source is from RepeaterImage source is from Repeater
4.Hard code data for Repeater providerHard code data for Repeater provider
5.Use Repeater component to create LabelsUse Repeater component to create Labels
6.Provide any data within the array for Repeater componentProvide any data within the array for Repeater component
7.Repeater based on Array
8.Get start index for a RepeaterGet start index for a Repeater
9.Set count and start index for RepeaterSet count and start index for Repeater
10.Get repeater itemGet repeater item
11.ArrayCollection as the data source for RepeaterArrayCollection as the data source for Repeater
12.Use Repeater to create buttons from ArrayCollectionUse Repeater to create buttons from ArrayCollection
13.Get data from current repeater itemGet data from current repeater item
14.Reference control created by RepeaterReference control created by Repeater
15.Basic Repeater whose data source is ArrayCollectionBasic Repeater whose data source is ArrayCollection
16.Adding event listener for Button in RepeaterAdding event listener for Button in Repeater
17.Static Loop with RepeaterStatic Loop with Repeater
18.Repeater is inside a MX containerRepeater is inside a MX container
19.How the count and startingIndex properties affect a Repeater componentHow the count and startingIndex properties affect a Repeater component
20.An tag repeats a RadioButton control for each product in an XML file
21.Start from Second Element in Repeater
22.Get Item RepeaterGet Item Repeater
23.Display URL from Repeater URLDisplay URL from Repeater URL
24.Use repeaters property to display the id value of the Repeater componentsUse repeaters property to display the id value of the Repeater components
25.Repeater control creates all the objects whether or not they are initially visibleRepeater control creates all the objects whether or not they are initially visible
26.Adds a second click handler to call the logAction() method, depending on CheckBox controlAdds a second click handler to call the logAction() method, depending on CheckBox control
27.Register a single listener function (myEventHandler()) to a Button and a CheckBoxRegister a single listener function (myEventHandler()) to a Button and a CheckBox
28.Using the instanceIndices property to set the text property of a TextInput controlUsing the instanceIndices property to set the text property of a TextInput control
29.use the repeaterIndices property instead of the instanceIndices property to set the text property of a TextInputuse the repeaterIndices property instead of the instanceIndices property to set the text property of a TextInput
30.Navigate to a URLNavigate to a URL