The <mx:RadioButtonGroup id="group".... /> needs to be *outside* the repeater.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Tuesday, September 16, 2008 9:00 PM To: [email protected] Subject: [flexcoders] Re: RadioButtonGroup id not settable using repeater index... --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Durres76" <[EMAIL PROTECTED]> wrote: > > the following code throws the compile time error below: > <mx:Repeater id="rpt" dataProvider="{arr}"> > <mx:RadioButtonGroup id="group" /> > <mx:RadioButton groupName="group"/> > <mx:RadioButton groupName="group" /> > </mx:Repeater> > > error: Unable to generate initialization code within Repeater, due to > id or data binding on a component that is not a visual child. > > I'm not sure how your method would work in this scenario. > Maybe it needs to have some actual radio buttons included, or possibly you'll have to use a UIComponent with the RadioButtonGroup and buttons inside that. HTH; Amy

