<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/10/19/determining-when-the-selected-radio-button-has-changed/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
		layout="vertical"
		verticalAlign="middle"
		backgroundColor="white" viewSourceURL="srcview/index.html">

	<mx:Script>
		<![CDATA[
			private function rbg_change(evt:Event):void {
				var group:RadioButtonGroup = evt.currentTarget as RadioButtonGroup;
				lbl.text = group.selection.label;
			}
		]]>
	</mx:Script>

	<mx:RadioButtonGroup id="rbg"
			change="rbg_change(event);" />

	<mx:VBox>
		<mx:RadioButton id="rb1"
				label="One"
				group="{rbg}" />
		<mx:RadioButton id="rb2"
				label="Two"
				group="{rbg}" />
		<mx:RadioButton id="rb3"
				label="Three"
				group="{rbg}" />
	</mx:VBox>

	<mx:Label id="lbl" fontWeight="bold" />

</mx:Application>
