Reference control created by Repeater
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[Bindable]
public var myArray:Array=[1,2,3,4,5,6,7,8];
</mx:Script>
<mx:ArrayCollection id="myAC" source="{myArray}"/>
<mx:Repeater id="list" dataProvider="{myAC}" count="8" startingIndex="1">
<mx:HBox>
<mx:Button label="Click Me" click="myText[event.target.instanceIndices].text=event.target.instanceIndices.toString();"/>
<mx:TextInput id="myText"/>
</mx:HBox>
</mx:Repeater>
</mx:Application>
Related examples in the same category