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";
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?

Reply via email to