Referencing repeated data in Model
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> public function clicker(cName:String):void { foolabel.text=cName; } </mx:Script> <mx:Label id="foolabel" text="foo"></mx:Label> <mx:Model id="data"> <color> <colorName>A</colorName> <colorName>B</colorName> <colorName>C</colorName> </color> </mx:Model> <mx:ArrayCollection id="myAC" source="{data.colorName}"/> <mx:Repeater id="myrep" dataProvider="{myAC}"> <mx:Button click="clicker(event.currentTarget.getRepeaterItem());" label="{myrep.currentItem}"/> </mx:Repeater> </mx:Application>