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!
Hello, i believe that i saw you visited my blog thus i came to return the desire?.I am trying to to find
issues to enhance my site!I guess its good enough to use a few of your ideas!!
Wow that was strange. I just wrote an really long comment but after I clicked submit my comment didn’t show up.
Grrrr… well I’m not writing all that over again. Anyways, just
wanted to say great blog!
Good day! I could have sworn I’ve visited
this website before but after looking at some of the posts I realized it’s new to me.
Anyways, I’m certainly happy I stumbled upon it and I’ll be book-marking it
and checking back often!
I believe that is one of the such a lot important info for me.
And i’m glad reading your article. However want to commentary on some common issues, The site taste is great, the articles
is truly excellent : D. Excellent process, cheers
Admiring the dedication you put into your site and detailed information you offer.
It’s great to come across a blog every once in a
while that isn’t the same unwanted rehashed material. Fantastic read!
I’ve bookmarked your site and I’m adding your RSS feeds to my Google
account.
Have you ever thought about including a little bit more than just your articles?
I mean, what you say is important and everything.
Nevertheless think of if you added some great visuals
or videos to give your posts more, “pop”! Your content is excellent but with pics and videos, this site could definitely be one of the greatest in its niche.
Amazing blog!
Salutations , colleague subscriber. I unearthed your reflective critique on the blog write-up
extremely insightful .
Your outlook on the issue is rather admirable .
As you come across to hold a fervent dedication in the
issue , I would give an invitation for you to dive into the
universe of ’918KISS’.
This specific hub furnishes a vast portfolio of engaging offerings that accordingly address
persons comprising diverse hobbies .
I think you may stumble upon the collective at ’918KISS’ as both
beneficial and intellectually fascinating.
I urge you to think about becoming a member of us and contributing your
unparalleled understandings to the uninterrupted dialogues
. Excited for potentially incorporating you aboard .
How To Host An Outside Disco 광주유흥
Good replies in return of this matter with genuine arguments and explaining all concerning that.
Top 5 Not-To-Miss Sights Of Miami 하이오피
It’s truly a nice and helpful piece of info. I am glad that you simply shared this useful information with us.
Please keep us up to date like this. Thanks for sharing.
Adult Entertainment 부산
Hit Me With Your Ds Stick : The Ds Games Console, Feminine
Version Among The Psp? 포포인츠 에볼루션 [http://www.n2-diner.com/]
Woah! I’m really loving the template/theme of this blog.
It’s simple, yet effective. A lot of times it’s tough to
get that “perfect balance” between superb usability and appearance.
I must say you’ve done a superb job with this.
In addition, the blog loads super fast for me on Safari.
Excellent Blog!
Wow that was odd. I just wrote an really long comment but after I clicked
submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyway, just
wanted to say excellent blog!
I like it when people get together and share opinions.
Great blog, continue the good work!
Heng Swee Keat was expected to become Singapore’s next leader
A prominent Singapore minister stepped aside on Thursday as the successor to the premier,
in a shock move that upended the tightly-controlled country’s carefully
planned power transfer.
Finance minister Heng Swee Keat was in 2018 named to a key post in the ruling party that put him in pole position to take over when Singapore’s
founding family hands over the premiership.
He was expected to replace Prime Minister Lee Hsien Loong, son of the late
founding premier Lee Kuan Yew, who oversaw the country’s rapid
economic development during three decades of sometimes authoritarian rule.
The power transfer is highly sensitive, as the country of 5.7 million’s transformation into one
of the world’s wealthiest and most stable societies is linked in many
people’s minds to the Lee family’s rule.
Heng was uncharismatic and, following his designation as Singapore’s leader in waiting,
the long-ruling People’s Action Party saw its support fall in polls last year while the opposition made unprecedented gains.
Meanwhile, the premier started signalling he would stay on longer to see the city-state through the coronavirus pandemic.
In a letter to the premier, Heng said he was stepping aside as head of the PAP’s younger generation of leaders to give younger colleagues a chance to step up.
“The next prime minister should have a sufficiently long runway — to master the demands of leading our nation,” he wrote, noting Lee now planned to stay on through the virus crisis.
“I would have too short a runway should I become the next prime minister.”
In his response, Lee, 69, thanked Heng for his “selfless decision to stand aside”.
Heng will step down as finance minister at the next cabinet reshuffle but will stay on in the
cabinet holding other roles.
Michael Barr, a Singapore expert from Flinders University
in Australia, said it was a major setback for the PAP, which has governed Singapore since 1959, but the best course of
action given Heng’s performance.
“For the sake of the PAP, it was probably the best option they had,” he told AFP.
What’s up all, here every person is sharing such experience, therefore
it’s nice to read this website, and I used to pay a visit this weblog all the time.
Hi to all, how is all, I think every one is getting more from this web page, and your views are fastidious designed for new
people.
id=”firstHeading” class=”firstHeading mw-first-heading”>Search results
Help
English
Tools
Tools
move to sidebar hide
Actions
General
WOW just what I was looking for. Came here by searching for real estate agent in Rancho Cucamonga CA
Hello! I know this is kinda off topic but I was wondering if you knew where I could
get a captcha plugin for my comment form? I’m using the same blog platform
as yours and I’m having problems finding one?
Thanks a lot!
Thanks , I’ve recently been looking for information approximately this subject
for ages and yours is the best I’ve discovered so far.
But, what about the conclusion? Are you certain in regards to the supply?
Your style is so unique in comparison to other folks I have read
stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this
web site.
Ombak123 Situs Online Terbaik tahun 2025 sudah pasti
sangat gacor
Hey I know this is off topic but I was wondering if you
knew of any widgets I could add to my blog that automatically tweet my newest
twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe
you would have some experience with something like this.
Please let me know if you run into anything.
I truly enjoy reading your blog and I look
forward to your new updates.
Remarkable things here. I’m very satisfied to peer your post.
Thank you so much and I’m looking ahead to touch you. Will you please
drop me a e-mail?
You are so cool! I do not think I’ve read through something like that before.
So wonderful to discover somebody with some unique thoughts on this
topic. Seriously.. thank you for starting this up. This site is
one thing that is needed on the internet, someone with a bit
of originality!
I have read so many articles or reviews regarding the blogger lovers except this post is genuinely
a fastidious piece of writing, keep it up.
Hello Dear, are you actually visiting this web site daily, if so then you will without doubt
take fastidious know-how.
You’re so interesting! I do not suppose I have read through something like that before.
So great to discover somebody with a few unique thoughts on this issue.
Really.. many thanks for starting this up. This site is something that is required on the internet, someone with
some originality!
I’m not sure exactly why but this website is loading very slow for me.
Is anyone else having this issue or is it a problem on my end?
I’ll check back later on and see if the problem still exists.
Fine way of explaining, and pleasant article to get facts on the topic of my presentation topic,
which i am going to deliver in university.
I every time emailed this weblog post page to all my associates, as if like to read it after that my contacts will too.
This is very interesting, You’re a very skilled blogger.
I have joined your rss feed and look forward to seeking more of your great post.
Also, I have shared your web site in my social networks!