Create a RadioButtonGroup and put RadioButton into it
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" backgroundColor="#eeeeee"> <mx:Script> import mx.controls.Alert; private function checkSelected():void { Alert.show(String(buttonGroup.selectedValue)); } </mx:Script> <mx:RadioButtonGroup id="buttonGroup"/> <mx:VBox> <mx:RadioButton value="Small" label="Small" groupName="buttonGroup"/> <mx:RadioButton value="Medium" label="Medium" groupName="buttonGroup"/> <mx:RadioButton value="Large" label="Large" groupName="buttonGroup"/> </mx:VBox> <mx:Button label="Check status" click="checkSelected()"/> </mx:Application>