selectedLabel is not bindable and probably should be. You can use
selectedItem.label instead
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Renjith Ramachndran
Sent: Wednesday, September 19, 2007 2:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] combobox data acess problem
hiii i am just biginner in flex ,but i like to lern more now i haneone
problem
When i compile this code
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml
layout=absolute
mx:Panel x=10 y=10 width=350 height=200 title=Rate Customer
Service
mx:ComboBox id=cbxRating x=20 y=20 width=100
mx:ArrayCollection
!-- These Object tags replace the String tags. --
mx:Object label=a data=3/
mx:Object label=b data=3/
/mx:ArrayCollection
/mx:ComboBox
mx:Button x=140 y=20 label=Send/
mx:Label x=20 y=120 text={cbxRating.selectedLabel}/
//problem here
/mx:Panel
/mx:Application
i didn't got the expected result ie a or
b.When i inserting text={cbxRating.selectedLabel}
{cbxRating.selectedIndex} i get output as a0 or b1
What is the reason behind?