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!
Whats up this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or
if you have to manually code with HTML. I’m starting a blog soon but have
no coding know-how so I wanted to get guidance from someone with experience.
Any help would be greatly appreciated!
We stumbled over here by a different web page and thought
I might as well check things out. I like what I see so now i am following you.
Look forward to looking at your web page yet again.
Hi, I do think this is a great blog. I stumbledupon it I’m
going to return once again since I book-marked it. Money and freedom is the greatest way
to change, may you be rich and continue to help
other people.
If you are going for best contents like me, just pay a visit this site daily
since it gives feature contents, thanks
Remarkable issues here. I am very satisfied to see your
article. Thank you a lot and I’m looking forward
to touch you. Will you please drop me a e-mail?
Hi! This is my 1st comment here so I just wanted to give a quick shout
out and say I truly enjoy reading through your posts.
Can you suggest any other blogs/websites/forums that go over the same subjects?
Many thanks!
I couldn’t refrain from commenting. Well written!
Hey! I know this is sort of off-topic however I needed to ask.
Does managing a well-established blog like yours take a large amount of work?
I’m completely new to blogging but I do write in my journal everyday.
I’d like to start a blog so I will be able to share my own experience and views online.
Please let me know if you have any suggestions or tips for
new aspiring blog owners. Appreciate it!
Party Scene 하이오피사이트
Forty words (wastes lower than a minute) When is a porn flick not a porn flick?
Within this web page you will find lots of and hundreds of movies by which the perfect porn of the entire
network offers appointment to excite you and get you horny.
You should fill out a co-performer agreement and keep it on you if there are
other in your videos. For a film that appears into the motivations
of cops and the thieves they chase, there may be nothing
higher than this 1995 movie. Back in the day, the
poison of choice was N64, and there wasn’t a lot different competition. She says he bought her
alcohol and pressured her to drink, a lot that by the top of
the night she was going in and out of consciousness. When Rachel and
Monica plan Phoebe’s bachelorette social gathering, they do not plan on hiring
a stripper until they discover out that the
bride-to-be was counting on “entertainment.” Panicked, they hire Roy “Goodbody.” Danny DeVito plays the aging stripper.
Told out of sequence and with strong characters, this
film, in many ways, has set the template for the heist movies that came
after it. And why we right here at Goliath are counting down the
ten best heist motion pictures of all time.
WOW just what I was searching for. Came here by searching for %meta_keyword%
Thank you for the good writeup. It in truth used to be a amusement account it.
Look complicated to more introduced agreeable from you! However,
how could we communicate?
Left wing, for acquisition, the Segway is noted with a red minus indicator for consumer
efficiency and risk.
Private Party 부달사이트
Hi there to all, how is all, I think every one is getting more from this web site, and
your views are pleasant in support of new viewers.
bokep
It’s actually a nice and useful piece of information. I’m glad that
you simply shared this helpful info with us. Please keep us up to date like this.
Thank you for sharing.
Happy Hour 부산부달
Excellent, what a web site it is! This webpage provides helpful information to us, keep it up.
Moreover, the secondary credit score program entails
a better stage of Reserve Bank administration and oversight than the primary credit program.
I love what you guys are usually up too. Such clever work
and exposure! Keep up the superb works guys I’ve
incorporated you guys to my blogroll.
Awesome things here. I am very satisfied to peer your post.
Thank you so much and I am having a look ahead to contact
you. Will you please drop me a e-mail?
Thanks for sharing such a fastidious thought, post is pleasant,
thats why i have read it entirely
Thanks a lot for sharing this with all people you actually recognise what you’re speaking approximately!
Bookmarked. Kindly additionally talk over with my site =).
We may have a hyperlink trade arrangement among us
Good respond in return of this question with real arguments and telling the whole thing about
that.
Heⅼklo jѕt wɑnted too gvе yoou a qhick eads up. Thеe tedxt
іnn yoyr articlee serm too bbe runing ooff thee scrteen inn Chrome.
I’m nott sure iif this iss a foemɑtting issuye о᧐r somethiung too ddo
wifh ѡebb Ƅrowser compatibikity buut I fiigureɗ I’d post tto leet yyou know.
Thhe sttle andԁ esign loopk great though! Hoppe yyou gett tthe problemm soled soon.
Cheers
What’s Taking place i’m new to this, I stumbled upon this I’ve found It positively helpful
and it has aided me out loads. I’m hoping to contribute & assist different users like its aided me.
Great job.
Fine way of explaining, and fastidious article to obtain facts
regarding my presentation subject, which i am going to
convey in institution of higher education.
Wine Tasting 오피커뮤니티 (Http://Www.Atn.Ne.Jp/Photo/Album.Cgi?Mode=Detail&No=38)
Very good information. Lucky me I discovered your website by chance (stumbleupon).
I’ve book marked it for later!
Live Music 부산부달 [www.followmedoitbbs.com]
Lounge Bar HiOP
Commercial Loan Interest Rates – Why So Extra Tall? 다바오 회원가입 하는법
Truly tons of useful knowledge!
my web blog; https://rixuree.com/%ED%9A%A8%EA%B3%BC%EC%A0%81%EC%9D%B8-%EB%A7%88%EC%82%AC%EC%A7%80-%EB%B8%94%EB%A1%9C%EA%B7%B8-%EA%B1%B4%EA%B0%95%EA%B3%BC-%EC%9B%B0%EB%B9%99%EC%9D%98-%EB%B9%84%EB%B0%80%EC%9D%84-%EB%B0%9C%EA%B2%AC/
It’s an awesome post for all the web users; they will take benefit from it I am sure.
I could not resist commenting. Very well written!
VIP Lounge 부달사이트
Why You Must Have A Professional Poker Set 두테르테 다바오
Does your site have a contact page? I’m having a tough time locating it but, I’d like to send you an email.
I’ve got some suggestions for your blog you might be interested in hearing.
Either way, great site and I look forward to seeing it
expand over time.
Outrage porn (additionally known as outrage discourse,[1] outrage media and outrage journalism)[2] is any kind of media or narrative that’s designed to use outrage to provoke robust emotional reactions for the aim of increasing audiences, whether conventional
television, radio, or print media, or in social media with increased
internet visitors and online attention. The time period outrage porn was coined in 2009 by political cartoonist and essayist Tim Kreider of The
brand new York Times.[3][4][5][6]
We are a gaggle of volunteers and opening a brand new scheme in our community.
Your site offered us with helpful info to work on. You have performed an impressive task and
our whole neighborhood might be thankful to you.
Terrific work! This is the type of information that are supposed to be shared across the web. Shame on Google for no longer positioning this post upper! Come on over and seek advice from my website . Thank you =)
Hi! Quick question that’s totally off topic. Do you know how to make your site mobile friendly?
My weblog looks weird when browsing from my iphone4. I’m trying to find a template
or plugin that might be able to resolve this issue.
If you have any suggestions, please share.
Thanks!
Yes! Finally something about Georg Engelmann.
If you are going for most excellent contents like I do, only
go to see this site every day since it gives quality contents, thanks
Very nice post. I just stumbled upon your
blog and wished to say that I have really enjoyed browsing your blog posts.
In any case I will be subscribing to your feed and I hope you write again very soon!
Great post. I used to be checking continuously this
blog and I’m impressed! Very helpful info specifically the last phase I handle such info a lot.
I used to be looking for this particular information for a
long time. Thanks and good luck.
My brother recommended I might like this web site.
He was entirely right. This post actually made my day.
You can not imagine simply how much time I had spent
for this information! Thanks!
Hi there, its fastidious article about media print, we all understand media
is a enormous source of data.
The other day, while I was at work, my cousin stole my apple ipad
and tested to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My iPad is now
broken and she has 83 views. I know this is entirely off topic but I had to share
it with someone!
Heya i’m for the primary time here. I came across this board and
I in finding It truly helpful & it helped me out much.
I hope to give something again and aid others like
you helped me.