convert an object into a string in flex

advertisements

I've faced a problem converting an Object into String in flex . my object is mydropdown selecteditem and I want to convert it to string and show it on a label tag . I've tried ".toString()" and "as String" and "String()" but none of them worked . anyone has any experience with it ? thanks


The selectedItem object has data and label properties, depending on the data that you're supplying you'd want something like this:

mydropdown.selectedItem.label