Accesses value of RadioButtonGroup : RadioButtonGroup « Components « Flex






Accesses value of RadioButtonGroup

 

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

   
  








Related examples in the same category

1.Pass event object into Click event