[flexcoders] Re: How to display special characters like #176; in ComboBox list

2008-12-08 Thread valdhor
Tracy Aaron is right. Just copy and paste into ActionScript. Vis: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundColor=#FF creationComplete=onCreationComplete() mx:Script ![CDATA[ private

RE: [flexcoders] Re: How to display special characters like #176; in ComboBox list

2008-12-08 Thread Tracy Spratt
Huh, I guess I did not understand what he was saying. I will look into that. Thanks, Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Monday, December 08, 2008 9:50 AM To: flexcoders@yahoogroups.com Subject:

[flexcoders] Re: How to display special characters like #176; in ComboBox list

2008-12-05 Thread oneworld95
Try this: http://devharbor.blogspot.com/2008/11/setting-flex-label-to-special-character.html -Alex --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Ha! I've always wanted to say this to you: Post your code. :-) Isn't that XML syntax that won't work in a CDATA block

[flexcoders] Re: How to display special characters like #176; in ComboBox list

2008-12-05 Thread b_alen
This is an issue since the Flash was invented. Your best bet is to convert HTML entities to unicode characters. You can do that in the runtime right after you fetch the data from the server, or you can do it on the server. If you're doing it in Flex runtime make use of String.replace, and

[flexcoders] Re: How to display special characters like #176; in ComboBox list

2008-12-05 Thread valdhor
This works for me ( # 176 ; is the little circle used for degrees right): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundColor=#FF mx:ComboBox x=100 y=200 rowCount=7 prompt=Special Characters Test

RE: [flexcoders] RE: How to display special characters like #176; in ComboBox list

2008-12-05 Thread Tracy Spratt
Aargh, the shoemaker's children are barefoot. I am creating a static dataProvider for the combobox: _aHC2SODP = [{data:0, label:0 #176;F},{data:20, label:2 #176;F}]; //looking for the degree symbol But the above renders literally. I have discovered that building a string in

Re: [flexcoders] RE: How to display special characters like #176; in ComboBox list

2008-12-05 Thread Alen Balja
Did you try with unicode chars like I told you? \u00B0 - this is for the small circle (deegre) _aHC2SODP = [{data:*0*, label:*0 *\u00B0*F*},{data:*20*, label:*2 * \u00B0*F*}]; On Fri, Dec 5, 2008 at 11:57 PM, Tracy Spratt [EMAIL PROTECTED] wrote: Aargh, the shoemaker's children

RE: [flexcoders] RE: How to display special characters like #176; in ComboBox list

2008-12-05 Thread Alex Harui
Be nice now. Tracy, the issue is that in the declarative example we are parsing the XML, but in the AS example, we are just parsing text and not XML so the \u format is needed there. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alen Balja Sent: Friday, December

[flexcoders] Re: How to display special characters like #176; in ComboBox list

2008-12-05 Thread valdhor
So how about this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundColor=#FF creationComplete=onCreationComplete() mx:Script ![CDATA[ private function onCreationComplete():void {

RE: [flexcoders] RE: How to display special characters like #176; in ComboBox list

2008-12-05 Thread Tracy Spratt
Sorry Alen, I clearly need to read all responses before I reply. Daddy Alex said post the code and I tripped over my own feet to comply ;) The hex / unicode solution is the ticket. Thanks everyone! Tracy From: flexcoders@yahoogroups.com

Re: [flexcoders] RE: How to display special characters like #176; in ComboBox list

2008-12-05 Thread Alen Balja
Hey, glad you solved it! I also didn't read enough to understand that you're not loading data from the server, so I wasn't as direct as I could be. Luckily I'm just doing the same thing on the current, in fact degree symbol was on my list just few hours before your post. On Sat, Dec 6, 2008

[flexcoders] RE: How to display special characters like #176; in ComboBox list

2008-12-04 Thread Alex Harui
Ha! I've always wanted to say this to you: Post your code. :-) Isn't that XML syntax that won't work in a CDATA block of ActionScript? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, December 04, 2008 4:13 PM To: flexcoders@yahoogroups.com