What would be the differences? In the example case that I posted, should I have used...
rb.group = Lec; or rb.group = "Lec"; Thanks --- In [email protected], "Douglas Knudsen" <[EMAIL PROTECTED]> wrote: > > Note, use of groupName in AS is not the way of the light so to speak. Use > rb.group = <refToRadioButtonGrp> > > DK > > On Fri, Apr 11, 2008 at 10:21 PM, kenny14390 <[EMAIL PROTECTED]> wrote: > > > I have a canvas consisting of 5 different radio button groups: Lec, > > Dis, Ind, Sem, and Act. In my Script I have the following: > > > > var rb:RadioButton; > > rb.label = "(L) "+l.dataProvider.source[m]; > > rb.name = l.dataProvider.source[m]; > > rb.groupName = "Lec"; > > rb.x = x; > > rb.y = y; > > y+=15; > > sectRadioCanvas.addChild(rb); > > > > This is done a variable number of times, depending on the list "l". > > The radio buttons act as if they are in a group (only one of them is > > selectable at a time) but when I check the group's "numRadioButtons" > > field, it is always set to 0. What I wanted to do was later check the > > names of each radio button in the group and if it matches a given > > name, then change the radio button to be selected. This seems to be > > the best and only way to make a radio button be selected given only > > its name and group. Any ideas on how to circumvent this problem? > > > > > > > > > > -- > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? >

