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