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!
whoah this weblog is great i really like reading your posts.
Stay up the great work! You understand, many persons are looking round for this information, you could
help them greatly.
Link exchange is nothing else however it is just placing the other
person’s web site link on your page at appropriate place and other person will also do same in support of you.
Every weekend i used to visit this site, as i want
enjoyment, since this this web page conations in fact pleasant funny information too.
Heya! I’m at work browsing your blog from my new apple iphone!
Just wanted to say I love reading your blog and look forward to all
your posts! Carry on the outstanding work!
A Bunch Of Weird Massage Stories hiop
Good web site you have got here.. It’s difficult to find good quality writing
like yours these days. I really appreciate people like you!
Take care!!
Wow, wonderful weblog format! How lengthy have you
been running a blog for? you make running a
blog look easy. The entire glance of your site is
excellent, as well as the content!
I’ve learn several good stuff here. Certainly worth bookmarking for revisiting.
I surprise how a lot attempt you put to create the sort of great informative web site.
Definitely believe that which you said. Your favorite justification seemed to be on the internet the easiest thing to be aware of.
I say to you, I definitely get annoyed while
people consider worries that they just don’t know about.
You managed to hit the nail upon the top and defined out the whole
thing without having side-effects , people can take a signal.
Will likely be back to get more. Thanks
Но внимательно прочитав, мы поймем, что речь
там идет о товарах НАДЛЕЖАЩЕГО качества, т.е.
Very nice post. I simply stumbled upon your weblog and wished to mention that I have truly loved surfing around your blog posts.
After all I will be subscribing to your feed and I am hoping
you write once more soon!
Hello, I read your blogs on a regular basis. Your writing style is awesome, keep doing what you’re doing!
Remarkable! Its actually remarkable article, I have got
much clear idea concerning from this piece of writing.
Best Of Downtown St Petersburg Nightlife 울산
It’s truly a nice and helpful piece of information. I’m happy that you simply shared this useful info with us.
Please stay us informed like this. Thank you for sharing.
Luxury1288
Wonderful material Many thanks!
You need to take part in a contest for one of the finest blogs
online. I most certainly will highly recommend this blog!
к примеру, если покупатель закажет кроссовки, сумку и джинсы у трех различных продавцов из москвы, Новосибирска и Владивостока, заявка.
My web-site https://www.avito.ru/all?q=apple+6s+128gb
More Super Appetizer Rules To Make That You Super Bowl
Party Mvp 오피사이트
I’m not that much of a online reader to be honest but your sites
really nice, keep it up! I’ll go ahead and bookmark your site to come back down the road.
Many thanks
Breathing Relaxation Techniques 오피 (Global.Gwangju.Ac.Kr)
bokep terbaik sma toket gede menyala banget
My brother recommended I might like this website. He
was entirely right. This post actually made my day.
You can not imagine just how much time I had spent for this info!
Thanks!
You really make it seem so easy with your presentation but I find this matter to be really
something that I think I would never understand. It seems too complicated and very broad for me.
I am looking forward for your next post, I will try to get
the hang of it!
Heya 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 coding knowledge
to make your own blog? Any help would be greatly appreciated!
Hi there, I enjoy reading through your post. I wanted to write a little comment to support you.
Wow, marvelous blog layout! How long have you been blogging for?
you made blogging look easy. The overall look of your web site
is fantastic, let alone the content!
New York City Real Estate – Above A Great Home 밤문화
Every weekend i used to pay a quick visit this site, as i want
enjoyment, as this this web page conations truly nice funny data too.
Hello, its good piece of writing about media print, we all
be aware of media is a great source of facts.
Hey there would you mind stating which blog platform you’re working with?
I’m planning to start my own blog soon but I’m
having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your design and style seems
different then most blogs and I’m looking for something unique.
P.S Apologies for getting off-topic but I had to
ask!
Koh Samui Beaches Guide 광주오피
How To Host A Spa Party 유흥사이트 – Swinarski.Org -
A Professional Karaoke System For The House 하이오피사이트
I needed to thank you for this great read!! I definitely enjoyed every
little bit of it. I have you saved as a favorite to check out new things you post…
Fantastic site. Lots of helpful info here. I am sending it
to a few pals ans also sharing in delicious. And of course, thanks in your
effort!
My partner and I absolutely love your blog and find many of
your post’s to be just what I’m looking for. Do you offer guest
writers to write content to suit your needs? I wouldn’t mind creating a post or elaborating on most of the subjects you write regarding here.
Again, awesome web log!
Magnificent items from you, man. I’ve remember your stuff previous to and you’re just extremely great.
I really like what you’ve bought here, certainly like what
you’re stating and the best way during which you assert it.
You’re making it entertaining and you still care for to stay
it sensible. I can not wait to read far more from you.
That is really a great website.
The Top Five Keys To Successful Promotion – Marketing Bulldozer Part Ii OP
Howdy! Do you know if they make any plugins to safeguard against hackers?
I’m kinda paranoid about losing everything I’ve worked hard on. Any
recommendations?
1хбет официальный сайт промокод при регистрации
MOGADISHU, Aug 21 (Reuters) – Somalia has
banned TikTok, messaging app Telegram and online-betting website 1XBet to limit the spread of indecent
content and propaganda, its communications minister said.
“The minister of communications orders internet companies to stop the aforementioned applications, which terrorists and immoral groups use to spread constant horrific images and misinformation to the public,” the minister, Jama Hassan Khalif, said in a statement late on Sunday.
Members of insurgent group al Shabaab often post about their activities on TikTok and Telegram.
The decision comes days after Somali President Hassan Sheikh Mohamud said a military offensive against al Shabaab aims to eliminate the al Qaeda-linked group in the
next five months.
TikTok, Telegram and 1XBet did not immediately respond to Reuters’ requests for comment.
The order gave internet service providers until Aug.
24 to comply.
1XBet is popular in Somalia for betting, especially on soccer matches.
TikTok has been threatened with bans in the United States over its
alleged ties to the Chinese government. The state of Montana became the first to
ban the app in May. (Reporting by Abdi Sheikh; Writing
by George Obulutsa; Editing by Devika Syamnath)
How To Market Books Online 다바오머니상, Harris,
I visited various websites however the audio quality for audio songs current at this web page
is genuinely marvelous.
Good article. I absolutely love this site. Thanks!
Every weekend i used to visit this site, because i wish for
enjoyment, as this this web site conations genuinely nice funny material too.
The price of each foil balloon which you order https://about.me/emily.robertson online.
Planning A Toy Story 3 Themed Party 알밤
Full Service Spa 오피커뮤니티
Hi i am kavin, its my first occasion to commenting anywhere, when i read this article i thought i could
also create comment due to this sensible article.