Create RadioButton group using the RadioButtonGroup control
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import mx.events.ItemClickEvent; private function handleCard(event:ItemClickEvent):void { trace(event); } </mx:Script> <mx:RadioButtonGroup id="cardtype" itemClick="handleCard(event);" /> <mx:RadioButton groupName="cardtype" id="americanExpress" value="AmEx" label="American Express" width="150" /> <mx:RadioButton groupName="cardtype" id="masterCard" value="MC" label="MasterCard" width="150" /> <mx:RadioButton groupName="cardtype" id="visa" value="Visa" label="Visa" width="150" /> </mx:Application>