Event Flex



  
    
      
      [Bindable]
      private var changeMessage:String="None selected";
      
      private function changeHandler(event:Event):void
      {
        if (event.target.selectedItem == null)
        {
          changeMessage = "None selected";
        }
        else
        {
          changeMessage = "You selected " + event.target.selectedItem;
        }
      }
  
  

  
    Small
    Medium
    Large