 import mx.events.FlexEvent;
 import mx.events.ItemClickEvent;
 
-use namespace mx_internal;
-
 //--------------------------------------
 //  Events
 //--------------------------------------

    public function set selection(value:FxRadioButton):void
    {
        // Going through the selection setter should never fire a change event.
        setSelection(value, false);
    }

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

     /**
     *  @private
     */
    private function radioButton_addedHandler(event:Event):void
    {
        var rb:FxRadioButton = event.target as FxRadioButton;
        if (rb)
        {
            //trace("radioButton_addedHandler", rb.id);
            rb.removeEventListener(Event.ADDED, radioButton_addedHandler);
            mx_internal::addInstance(rb);
        }
    }

     /**
     *  @private
     */
    private function radioButton_removedHandler(event:Event):void
    {
        var rb:FxRadioButton = event.target as FxRadioButton;
        if (rb)
        {
            //trace("radioButton_removedHandler", rb.id);
        	rb.removeEventListener(Event.REMOVED, radioButton_removedHandler);
            removeInstance(rb);
        }
    }
}
