Here's how to do it!
FIRST, in Actionscript create a function that will generate rbGroups
which is an arrayCollection of your radio button groups.
[Bindable]
private var rbGroups:ArrayCollection;
private function createRBGroups():void{
rbGroups= new ArrayCollection();
var repeaterDP:ArrayCollection = someRepeater.dataProvider as
ArrayCollection;
var rbGroup:RadioButtonGroup;
for each(var item:Object in repeaterDP){
rbGroup = new RadioButtonGroup();
rbGroups.addItem(rbGroup);
}
}
Now call that create function as the repeater starts! Now when we loop
through we can set the appropriate group. You can always refer to a
group by it's index! Since it is an array collection, binding works too!
<mx:Repeater repeatStart="createRBGroups()" id="someRepeater">
<mx:RadioButton
group="{RadioButtonGroup(rbGroups.getItemAt(someRepeater.currentIndex))}"/>
<mx:RadioButton
group="{RadioButtonGroup(rbGroups.getItemAt(someRepeater.currentIndex))}"/>
<mx:RadioButton
group="{RadioButtonGroup(rbGroups.getItemAt(someRepeater.currentIndex))}"/>
</mx:Repeater>