      */
     public function set selectedValue(value:Object):void
     {
+        // The rbg might set the selectedValue before the radio buttons are
+        // initialized and inserted in the group.  This will hold the selected 
+        // value until it can be put in the group.
+        _selectedValue = value;
+        
         var n:int = numRadioButtons;
         for (var i:int = 0; i < n; i++)
         {

        for (var i:int = 0; i < radioButtons.length; i++)
            radioButtons[i].indexNumber = i;
        
        // If this radio button is selected, then it becomes the selection
        // for the group.
        if (instance.selected == true)

                radioButton.label == value)
            {
                changeSelection(i, false);
                _selectedValue = null;
                
                dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));

                break;
            }
        }
    }

    //----------------------------------
