import fl.controls.RadioButton; import fl.controls.RadioButtonGroup; var rbg1:RadioButtonGroup = new RadioButtonGroup("group1"); var rb1:RadioButton = new RadioButton(); rbg1.addEventListener(MouseEvent.CLICK, announceGroup); rb1.group = rbg1; function announceGroup(e:MouseEvent):void { var rb:RadioButton = e.target as RadioButton; trace(rb.groupName); }