RadioButtonGroup is not a display object, so you can not use addChild() with it, what Repeater is doing under the covers. Try adding it to the rawChildren instead, assuming you are subclassing Container in some way. ugh, so might need to use some AS instead.
Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Wed, May 20, 2009 at 10:07 AM, Hema Balaji <[email protected]>wrote: > Hi, > I am having a problem with dynamically creating multiple RadioButtonGroups. > I want to create a RadioButtonGroup for each item in the data provider, and > then create radio buttons for each group. I tried to use a Repeater to do > this. But I get this error when I add the RadioButtonGroup component within > the repeater - "Unable to generate initialization code within Repeater, due > to id or data binding on a component that is not a visual child." > > Thanks in advance for any suggestions/help you can offer... > > -- > ------------------------------------------------------ > Hema Balaji >
