number with sign in combobox dataprovider

Posted by gauravgr8 on Stack Overflow See other posts from Stack Overflow or by gauravgr8
Published on 2010-05-29T11:53:30Z Indexed on 2010/05/29 12:02 UTC
Read the original article Hit count: 214

Filed under:
|

Hi,

I am trying to display country codes(+91, +60, +01) in the combobox. Although the dataprovider(array) contains + sign but is removed. I am not getting how to show it with sign.

<mx:Array id="countryArray">

<mx:Object label="India" data="+91" />

<mx:Object label="Malaysia" data="+60" />

<mx:Object label="Usa" data="+01" />

</mx:Array> 

Is this the problem with dataprovider? How can I treate them as text not numbers?

Please help.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex3