tags:

views:

313

answers:

1

Hi all, I was just curious about the password mode display of the TextInput control in flex. The control displays asterisks instead of the characters themselves when the 'displayAsPassword' is set to true. Quoting the documentation,

displayAsPassword
If true, the field does not display entered text, instead, each text character entered into the control appears as the character "*".

So, is there any way to change this displayed character, unless of course creating a custom component or extending the existing TextInput control?

Thank you very much.

+1  A: 

This thread provides some suggestions. The easiest is to find a font for which Shift-8 (the asterisk) is the glyph you want.

Vinay Sajip
I guess extending TextInput is easier than searching for such a font :)
Shrikant Sharat
Perhaps, but not as much fun ;-) Here's a link to 10,000 free fonts - http://ntt.cc/2008/05/17/100000-plus-free-fonts-to-make-your-flex-ui-skins-and-themes-stand-out-from-the-crowd.html
Vinay Sajip