Link to Duplicated MovieClip in loop help

Hi,
I’ve got a form with radio buttons which were duplicated depending on the response from the database. However, when they are selected (even though they have the same group name) it is possible to select more than one. I’ve got round this problem by adding the selected one to a blank array and removing it from an array with all the possible radio buttons in. This then enables me to get the selected value and use it, and However, the other values (which are in another array) still show as selected (i.e. the dot is in the middle of the button) which isnt good.

I’ve set up a loop which should go through each value in the “unclicked” array and set the radiobutton corresponding to it to unselected. The code I have is below:

[FONT=Courier New][COLOR=Gray][COLOR=DarkGreen]for (i=0; i < unclicked.length; i++)
{
_root.RB*.radioButtoni.selected = false;
}

[FONT=Verdana][COLOR=Black]Which gets the correct array, correct values but I can’t seem to reference it properly. The duplicated movie clips are named RB1, RB2 etc…
The code works if it is hard coded in, and I’ve tried declaring a variable in the loop like:

thename = “RB”+i;
[/COLOR][/FONT][/COLOR][/COLOR][/FONT][FONT=Courier New][COLOR=Gray][COLOR=DarkGreen]_root.thename.radioButtoni.selected = false;
[/COLOR][/COLOR][/FONT]
[FONT=Courier New][COLOR=Gray][COLOR=DarkGreen][FONT=Verdana][COLOR=Black]But it doesn’t like that either. Any ideas?

Also…am I going about the selected but the right way? I want the one I select to show the dot and not the others. The way I have it it can’t be selected at all even when another is not selected.

Thanks in advance,
Sarah :mu:

[/COLOR][/FONT][/COLOR][/COLOR][/FONT]