Bind bindable variable to RadioButton
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF"> <mx:Panel title="Simple Months" width="100%" height="100%" paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10" layout="horizontal"> <mx:HBox> <mx:Script> import mx.controls.Image; [Bindable] public var myId:String = "id"; [Bindable] public var myImage:String = "image"; [Bindable] public var myGroupName:String = "group"; [Bindable] public var myLabel:String; </mx:Script> <mx:RadioButton groupName="{this.myGroupName}" label="{this.myLabel}" /> <mx:Image source="{this.myImage}" /> <mx:Label text="{this}" /> </mx:HBox> </mx:Panel> </mx:Application>