Flex 4: Changing the “displayAsPassword” default character
Today I ran into a situation where I wanted to display my password characters as a bullet versus the default asterisk (“*”).
I thought this would be pretty simple to do but realized after digging through the Flex 4 SDK that there was no public property I could set to change this. I tried hacking commitProperties and a couple of other methods but came up short in those areas as well until I found the exact spot in the Flex libraries where this character was defined:
RichEditableText.as (line 679)
1 2 3 4 | /** * @private */ mx_internal var passwordChar:String = "*"; |
A-ha! I see here that it’s prefixed with the “mx_internal” namespace and I remembered from other examples around the web that you can easily tap into that namespace and modify properties not normally meant to be modified.
Luckily, I had already extended the TextInput class for various other reasons and decided to add an event listener for the CREATION_COMPLETE lifecycle event of the component. This was added in the constructor:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import mx.core.mx_internal; /** * Constructor */ public function myTextInput() { super(); this.addEventListener( FlexEvent.CREATION_COMPLETE, onCreationComplete ); } private function onCreationComplete( event : FlexEvent ) : void { //change internal passwordChar to a bullet versus an asterisk this.textDisplay.mx_internal::passwordChar = "●"; } |
…and voila! By tapping into the mx_internal namespace, I found I could modify the normally private variable “passwordChar” and set it to something I preferred better (in this case, the bullet point used in some sites like Twitter).
Hope this helps someone!
Very well spoken certainly! !
I know this site provides quality depending articles or
reviews and other stuff, is there any other web page which presents these
kinds of stuff in quality?
Howdy are using WordPress for your blog platform?
I’m new to the blog world but I’m trying to get started and
set up my own. Do you need any html coding knowledge to make your
own blog? Any help would be greatly appreciated!
I was recommended this website by my cousin. I’m not sure whether this post is written by him as nobody else
know such detailed about my problem. You are wonderful!
Thanks!
Entertainment 오피사이트 (images.Google.com.gt)
Oh my goodness! Awesome article dude! Thanks, However I am experiencing troubles with your RSS.
I don’t know why I cannot subscribe to it. Is there anybody else getting similar RSS problems?
Anyone that knows the answer will you kindly respond?
Thanks!!
Wow, this post is good, my younger sister is analyzing such things, thus
I am going to let know her.
Fine Dining op
Hi to every body, it’s my first go to see of this webpage; this website carries awesome and
genuinely good material for readers.
What’s up it’s me, I am also visiting this website regularly, this web site is truly nice and the people
are actually sharing nice thoughts.
What’s up, this weekend is pleasant in favor of me, as this occasion i am reading this fantastic
informative piece of writing here at my house.
Its like you read my mind! You seem to know a lot about this, like you wrote the book
in it or something. I think that you could do with some pics to drive the message home a bit,
but instead of that, this is wonderful blog. An excellent
read. I will definitely be back.
Heya i’m for the first time here. I came across this board and I find
It really useful & it helped me out a lot. I hope to give something back
and help others like you helped me.
What’s Taking place i’m new to this, I stumbled upon this I have found It absolutely useful and it has aided
me out loads. I am hoping to contribute & aid different users like its aided me.
Good job.
How Can A Shiatsu Massage Chair Benefit I Am? 울산유흥
I don’t even know the way I finished up here, but I believed
this put up was once good. I don’t know who you might be but certainly you’re going to a famous blogger in case
you are not already. Cheers!
Hello, Neat post. There’s an issue together with your website in internet explorer, would test this?
IE still is the market leader and a good part of other folks will pass over your excellent
writing because of this problem.
https://xn--meg-sb15-px0d.com
Tanks
I quite like reading through a post that will make men and women think.
Also, thank you for allowing for me to comment!
Hi there mates, how is the whole thing, and what you
wish for to say about this paragraph, in my view its really awesome
for me.
We’re a gaggle of volunteers and starting a brand new
scheme in our community. Your website offered us with
useful information to work on. You’ve done a formidable job and our whole
neighborhood will probably be thankful to you.
I really like what you guys are usually up too. This sort of
clever work and exposure! Keep up the superb works guys I’ve included you guys to blogroll.
Admiring the dedication you put into your website and in depth information you provide.
It’s good to come across a blog every once in a while that isn’t
the same unwanted rehashed material. Wonderful read! I’ve saved
your site and I’m adding your RSS feeds to my Google account.
Well, darling, the word ‘planets’ has 7 letters, so you can form 7!
(7 factorial) = 5040 different words. Listing them all out would take
longer than a Golden G
Read more
Rabbits and Hares
+1
Can you scramble the word renwar to make a rabbits habitat?
Asked by Wiki User
Yes, the word “renwar” can be rearranged to form the word “warren,”
which is a term used to describe a network of interconnected rabbit burr
Read more
Word Play, Puns, and Oxymorons
+1
How many words can you make out of ‘responsibility’?
Asked by Wiki User
There are a total of 14 letters in the word “responsibility.” To determine
the number of words that can be formed, we need to consider the
different c
Read more
Word Brain Teasers
+1
What country’s name is anagram for pains?
Asked by Wiki User
The country that is an anagram for “pains” is Spain. An anagram is a
word or phrase formed by rearranging the letters of
a different word or phrase, u
Read more
Anagrams and Word Scrambles
+1
How do you unscramble resturepad?
Asked by Wiki User
To unscramble the word “resturepad,” you can rearrange the
letters to form the word “departure.” This can be done by identifying
common pref
Read more
Anagrams and Word Scrambles
+1
How many words can you find using the letters in one hundred days?
Asked by Wiki User
Oh, dude, let me break it down for you. Using the letters in “one hundred days,” you can technically form a lot of words, like “hundred,” &q
Read more
Anagrams and Word Scrambles
+1
What word is formed by unscrambling the letters linbeerio?
Asked by Wiki User
There is no nine letter word in English spelled with the letters ‘linbeerio’.
The longest words that can be made with those letters are
six letter words:Berlinb
Read more
Books and Literature
+3
How many words can you make out of the word dictionary?
Asked by Wiki User
There are a total of 10 letters in the word “dictionary.” To find the number of words that can be made, we
need to consider the permutations of the le
Read more
Anagrams and Word Scrambles
+1
What mall can you unscramble from the letters trrlnemititanaaon?
Asked by Wiki User
The unscrambled word from the letters “trrlnemititanaaon” is “International Mall.” This type of word puzzle is known as an anagram, where
th
Read more
Anagrams and Word Scrambles
+1
How many words can you make from snow day?
Asked by Wiki User
There are a total of 14 words that can be created from the letters in “snow day.” These words are snow, day, now, own, nod, sod, sow,
wan, won, way, y
Read more
Humor & Amusement
+2
Jumble by Henri Arnold and Mike Argirion answers
to daily newspaper jumble?
Asked by Wiki User
“Jumble” by Henri Arnold and Mike Argirion is a popular daily newspaper feature that
presents readers with a scrambled set of letters
that they must r
Read more
Christmas
+1
How many 4 letter words can you make from Merry Christmas?
Asked by Wiki User
Oh, dude, let’s see. So, from “Merry Christmas,” you can make
words like “mice,” “mars,” “star,” and “mire.” T
Read more
Anagrams and Word Scrambles
What Christmas word has the letters irwetn?
Asked by Wiki User
Oh, what a lovely little puzzle we have here! The Christmas
word with the letters “irwetn” is “winter.” Just like painting a beautiful winte
Read more
Anagrams and Word Scrambles
What is unslotsoire unscrambled and it must be a Christmas word?
Asked by Wiki User
Ah, what a delightful challenge! Let’s see…when we unscramble “unslotsoire” with
a sprinkle of Christmas magic, we get the word “resolutions.&q
Read more
Anagrams and Word Scrambles
What is rnetmsoan unscrambled?
Asked by Wiki User
Oh, what a happy little question! When you unscramble “rnetmsoan,” you get the word “ornaments.” Just like adding ornaments to a painting ca
Read more
Scrabble
+3
5 letter words ending in o?
Asked by Wiki User
Oh, dude, you’re really testing my brain cells with this one. Let’s see… there’s “piano,” “mango,” “kayak”… Oh, wait, “ka
Read more
Anagrams and Word Scrambles
What Christmas word do you get if you unscramble rmngae?
Asked by Wiki User
The word “rmngae” unscrambles to “manger,” which is a term often associated with the nativity scene depicting the birth of Jesus Christ
in C
Read more
Anagrams and Word Scrambles
What is oospwhkr unscramble?
Asked by Wiki User
The anagram is workshop.
Well articulated! You explained it thoroughly regarding vape legislation.
bokep terbaik sma toket gede menyala banget
What’s Taking place i am new to this, I stumbled upon this
I have found It absolutely useful and it has aided me
out loads. I hope to contribute & assist different customers like its
helped me. Great job.
id=”firstHeading” class=”firstHeading mw-first-heading”>Search
results
Help
English
Tools
Tools
move to sidebar hide
Actions
General
Teaching Your Kids Money Management – Savings Will
Save Them From Disaster 대전유흥
Valuable knowledge Regards.
Thank you a bunch for sharing this with all folks you really understand what you’re speaking
about! Bookmarked. Kindly also consult with my website
=). We may have a link alternate agreement between us
https://xn--meg-sb18-px0d.com
Спасибо!
Unquestionably believe that which you stated.
Your favourite justification seemed to be at the net the easiest
factor to remember of. I say to you, I certainly get annoyed at the
same time as other people consider worries that they plainly don’t recognize about.
You managed to hit the nail upon the top and also defined out the whole thing without
having side effect , other people could take a signal.
Will likely be back to get more. Thanks
Please let me know if you’re looking for a article writer for your weblog.
You have some really good articles and I feel I would be a good asset.
If you ever want to take some of the load off,
I’d really like to write some articles for your blog in exchange
for a link back to mine. Please blast me an e-mail if interested.
Kudos!
After I initially commented I appear to have clicked on the -Notify me when new comments are
added- checkbox and now each time a comment is added I receive 4 emails
with the exact same comment. Perhaps there is a way you are able to remove me from that service?
Cheers!
I like the helpful info you supply to your articles.
I will bookmark your weblog and take a look at once more here regularly.
I’m slightly certain I will be told lots of new stuff right right here!
Best of luck for the next!
There is certainly a lot to know about this subject.
I like all of the points you’ve made.
Your way of telling all in this article is really fastidious, all can simply
know it, Thanks a lot.
It’s truly very complex in this full of activity life to listen news on Television, so I just use web for that reason, and
obtain the most recent information.
It’s appropriate time to make a few plans for the future
and it is time to be happy. I have read this post and if I
may I wish to recommend you few fascinating things or suggestions.
Maybe you could write subsequent articles regarding this article.
I want to learn more issues approximately it!
Way cool! Some extremely valid points! I appreciate you writing
this post and also the rest of the website is also very good.
When I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I recieve
four emails with the same comment. Perhaps there is a means you are able to remove me from that service?
Thanks a lot!
Right here is the right website for anybody who wishes to find out about this topic.
You understand so much its almost tough to argue with you (not that I really would
want to…HaHa). You certainly put a fresh spin on a subject that’s been discussed for
decades. Great stuff, just wonderful!
id=”firstHeading” class=”firstHeading mw-first-heading”>Search
results
Help
English
Tools
Tools
move to sidebar hide
Actions
General
Excellent site. Lots of helpful information here. I’m sending it to several
friends ans additionally sharing in delicious. And certainly, thanks on your effort!
This design is spectacular! You certainly know how
to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!)
Excellent job. I really loved what you had to say, and more than that,
how you presented it. Too cool!
Thanks! Very good information.
Spot on with this write-up, I seriously feel this site needs a lot more attention. I’ll probably be back again to see more, thanks
for the info!
I think the admin of this web page is truly working hard in support of
his website, because here every data is quality based information.
I am sure this article has touched all the internet visitors,
its really really good paragraph on building up new web site.