Item click event for RadioButtonGroup : ItemClickEvent « Event « Flex






Item click event for RadioButtonGroup

 

<?xml version='1.0' encoding='UTF-8'?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        import mx.controls.Alert; 
        import mx.events.ItemClickEvent;
        public function showMsg(anEvent:ItemClickEvent):void {
            Alert.show(anEvent.currentTarget.selectedValue); 
        }
    </mx:Script>
    <mx:RadioButtonGroup id="Spam" itemClick="showMsg(event)" />
</mx:Application>

   
  








Related examples in the same category