I recently got down to the “Support Foreign Characters” item in my Knowtes To-Do list, and figured it would be fairly easy to find an example component out there that provided an easy way for users to enter special characters into Flex text controls (TextInput, TextArea, and RichTextEditor).
Unfortunately, both my posts to FlexCoders and my lengthy Google search turned up empty.
So on the off chance that I’m not actually the only person in the world with a need for this type of feature, here is what I came up with (a very simple version of it anyway):
Two points worth mentioning:
- The key for getting the unicode characters into the text controls was to use the String.fromCharCode() function.
- To enhance usability, the cursor is placed at the end of the text in the associated control when the character dropdown is closed. The selectionBeginIndex and selectionEndIndex are used for setting the caret position. For the RichTextEditor this property changes to selection.beginIndex and selection.endIndex.
It definitely needs some polishing, but hopefully it will give someone a jump start on providing a simple method of allowing users to easily enter unicode/foreign/special characters in Flex apps.
~Shaun


Entries (RSS)
April 11th, 2008 at 12:11 pm
Shaun,
I love your Raison D’Etre.
I also really like your Knowtes flash card app. I really want to download the Desktop AIR version, but when I click on “Install Now” it tells me to “Select and Installation Package”
My preference would be to use your app and create my own Flash cards (Spanish, SAT vocab words, AP Euro History notes, etc) and to download some of the stack already in existence.
Anything you can do to help me correctly download the app would be great.
-a
April 11th, 2008 at 12:29 pm
Thanks Andrew. I’m glad you like both the Raison and the app.
Unfortunately, while the Raison is still very much in place, the desktop client is not. I’ve gotten way too busy with paying work that I’ve not had time to update the desktop client to use the final released version of AIR… let alone take it off of the homepage
You should be able to accomplish everything you want with the online version, unless you’re trying to study disconnected from the internet, of course.
I do plan on putting in offline capability to the online version, but, that too is dependent on the availability of time…
Thanks again,
Shaun
April 11th, 2008 at 12:40 pm
Shaun,
My company (tangentnet.com) has ben looking for dependable Flex contractors. If you don’t mind, maybe you can email me with a real email address and we can stay in touch. We may have some work for you down the road.
Andy
July 3rd, 2010 at 9:21 pm
< blockquote >< a href=”http://pillspot.org/”>PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. Low price pills. Buy drugs online< /a >…
Buy:Cozaar.Prozac.Zetia.Advair.Nymphomax.Lipitor.Amoxicillin.Seroquel.Aricept.Ventolin.Wellbutrin SR.Lipothin.Acomplia.Lasix.Buspar.Benicar.SleepWell.Female Cialis.Zocor.Female Pink Viagra….
July 21st, 2010 at 8:51 am
< blockquote >< a href=”http://medicamentspot.com/”>Medicamentspot.com. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. Low price pills. Buy drugs online< /a >…
Buy:Aricept.Wellbutrin SR.Ventolin.SleepWell.Cozaar.Nymphomax.Amoxicillin.Lasix.Prozac.Lipothin.Benicar.Female Cialis.Acomplia.Female Pink Viagra.Advair.Zetia.Zocor.Buspar.Seroquel.Lipitor….
August 29th, 2010 at 7:17 pm
Fog http://lbauschkcwlsoa.04FORDPARTS.US/tag/Fog+Light+Jaguar+f+lights/ : Jaguar…
lights…