Change Image value by using RadioButton : RadioButton « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » RadioButtonScreenshots 
Change Image value by using RadioButton
Change Image value by using RadioButton
       
<?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>

   
    
    
    
    
    
    
  
Related examples in the same category
1.Add RadioButton to RadioButtonGroupAdd RadioButton to RadioButtonGroup
2.RadioButton click eventRadioButton click event
3.RadioButton default valueRadioButton default value
4.Define RadioButton control with Define RadioButton control with <mx:RadioButton>
5.Create RadioButton group using the RadioButtonGroup controlCreate RadioButton group using the RadioButtonGroup control
6.Bind bindable variable to RadioButtonBind bindable variable to RadioButton
7.Bind RadioButton to ModelBind RadioButton to Model
8. and three <mx:RadioButtonGroup/> and three <mx:RadioButton/>
9.Create a RadioButtonGroup and put RadioButton into itCreate a RadioButtonGroup and put RadioButton into it
10.Use radio button to change stateUse radio button to change state
11.Use style to change font size and weight for RadioButton and LabelUse style to change font size and weight for RadioButton and Label
12.RadioButton with group nameRadioButton with group name
w_w_w___._j_a__v_a__2__s___.c_om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.