Components Flex



    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">
    
         
        import mx.controls.Alert; 
        import mx.events.ItemClickEvent; 
        private function handleCard(event:ItemClickEvent):void { 
            if (event.currentTarget.selectedValue == "AmEx") { 
                Alert.show("You selected American Express."); 
            } else if (event.currentTarget.selectedValue == "MC") { 
                Alert.show("You selected MasterCard."); 
            } else { 
                Alert.show("You selected Visa."); 
            } 
        } 
      
    

    
        
    

    
                    label="American Express" width="150" />
                    label="MasterCard" width="150" />
                    width="150" />