Hi, Please find the following code. It might help you.
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ import mx.controls.Alert; protected function button1_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub var childrenCount:int = rep.container.numChildren; for (var i:int = 0; i < childrenCount; i++) { (rep.container.getChildAt(i) as RadioButton).selected = false; } } ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> <fx:XML id="xml"> <Details> <Data label="QQQQ" data="true" /> <Data label="RRRR" data="true" /> <Data label="AAAA" data="false" /> <Data label="VVVV" data="false" /> <Data label="GGGG" data="true" /> <Data label="JJJJ" data="true" /> <Data label="ZZZZ" data="false" /> <Data label="MMMM" data="true" /> <Data label="OOOO" data="false" /> </Details> </fx:XML> </fx:Declarations> <mx:VBox> <mx:Repeater id="rep" dataProvider="{xml.Data}" > <s:RadioButton label="{rep.currentItem.@label}" selected="{rep.currentItem.@data}" /> </mx:Repeater> </mx:VBox> <s:Button click="button1_clickHandler(event)" label="Click" /> </s:Application> On Aug 29, 10:48 am, jeroen <[email protected]> wrote: > I have tried referencing the ID, but this does not seem to work. > Any ideas? > > Another anomaly that I found is that setting the selection to true in > a radiobutton within a repeater also does not work -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

