Image Binding
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#eeeeee"> <mx:Script> [Embed(source="logo.jpg")] [Bindable] public var flowerImage1:Class; [Embed(source="logo.jpg")] [Bindable] public var flowerImage2:Class; </mx:Script> <mx:Image id="myImage" source="{flowerGroup.selectedValue}"/> <mx:RadioButton value="{flowerImage1}" label="Image 1" groupName="flowerGroup" selected="true"/> <mx:RadioButton value="{flowerImage2}" label="Image 2" groupName="flowerGroup"/> <mx:RadioButtonGroup id="flowerGroup"/> </mx:Application>