How to monitor the itemClick in FlexRadioButtonGroup when RadioButton was clicked
The full codes:
———————–
layout=”vertical”
verticalAlign=”middle”
backgroundColor=”white” viewSourceURL=”srcview/index.html”>
import mx.events.ItemClickEvent;
private function radioGroup_itemClick(evt:ItemClickEvent):void {
var now:String = new Date().toTimeString();
lbl.text = evt.label + ” (” + now + “)”;
}
]]>
itemClick=”radioGroup_itemClick(event);” />
label=”Red”
group=”{radioGroup}” />
label=”Orange”
group=”{radioGroup}” />
label=”Yellow”
group=”{radioGroup}” />
label=”Green”
group=”{radioGroup}” />
label=”Blue”
group=”{radioGroup}” />