this function bellow returns the String for display in an item renderer.
public function itemToLabel(item:Object):String
selectedLabel property is obsolete in
spark.components.ComboBox i added this function :
public function get selectedLabel():String
var item:Object = selectedItem;
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
Spark ComboBox uses LabelUtil.itemToLabel
thank you for your reply but i am already used the itemToLabel function int the get function.
But what I want is to set the selectedLabel, that's mean I should change the selectedItem. That's why i need a function which makes me to convert a label to an itemrender.
I still don’t think I understand. To map from a label to an item, you will have to assume the labels are unique and simply loop through the dataProvider.