3 Replies Latest reply on Dec 21, 2011 1:16 PM by Flex harUI

    selectedLabel spark ComboBox

    kaissun

      this function bellow returns the String for display in an item renderer.

      public function itemToLabel(item:Object):String

      As selectedLabel property is obsolete in spark.components.ComboBox i added this function :

      public function get selectedLabel():String 
         
      {
             
      var item:Object = selectedItem;
             
      return itemToLabel(item);
         
      }

      But i am blocked about the public function set selectedLabel(label:String):void

      is there anyone who know a function labelToItem or another solution to set my combobox selectedLabel