Pass event object into Click event : RadioButtonGroup « 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 » RadioButtonGroupScreenshots 
Pass event object into Click event
 

<?xml version='1.0' encoding='UTF-8'?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        import mx.controls.Alert; 
        import mx.events.ItemClickEvent;
        public function showMsg(anEvent:ItemClickEvent):void {
            Alert.show(anEvent.currentTarget.selectedValue)
        }
    </mx:Script>
    <mx:RadioButtonGroup id="Spam" itemClick="showMsg(event)" />
</mx:Application>

   
  
Related examples in the same category
1.Accesses value of RadioButtonGroup
ww___w_.___j__a___va_2_s___.co___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.