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!
Urban Nightlife OP
Remarkable things here. I’m very happy to look your article.
Thank you a lot and I am looking forward to contact
you. Will you kindly drop me a e-mail?
How November 23 At Poker – Develop Your Poker Face 4989 다바오
Loughery was head coach of the Bulls for two seasons …
1983-84 and 1984-85. His two year record with the team was 65-99.
Its like you read my mind! You seem to know so much about this,
like you wrote the book in it or something. I think that you
can do with a few pics to drive the message home a little bit,
but instead of that, this is great blog. An excellent read.
I will certainly be back.
Xpsrt Fouhdation Repair
Río Grande Valley, TX 78582, United Ѕtates
9562653062
foundation 1 reviews
Retirement In Palm Beach Gardens Florida 광주알밤
Gold Coins are used only to play for fun and can in no way be redeemed or cashed out.
Here is my page … http://hottv.in/@gudruncosta706?page=about
Difficult people not only defy logic but also create unnecessary complexity, conflicts and stress.
They could be small in number but could create a significant impact.
Attend this upcoming webinar and learn strategies to identify different
types of difficult people and tricks to manage them.
AREAS COVERED
What do you do when you encounter a difficult person
The presentation gives you action steps and processes
that work
Analyze your reaction – what do you have control over
What makes it difficult for you?
What is the problem from your perspective?
Strategies and steps to manage and handle the situation
Business communication and styles
Learn how to identify a difficult boss
Common Mistakes people make with difficult bosses
Ways to be Manage the difficult boss
LEARNING OBJECTIVES
Steps to handle the different types of difficult people
Identify the different types of difficult people
Speaker Profile
Valerie Pelan provides her clients a strategic and global perspective that combines her business experience with a current view
of the competitive environment.
Valerie Pelan provides her clients a strategic and global perspective that combines her
business experience with a current view of the competitive environment.
As President of Integrated Focus, she provides executive
coaching on leadership areas such as executive presence, career transitioning and leading change.
Her breadth of experience as a business advisor spans Fortune 100 companies, government agencies and
non-profit Boards. Some of her recent clients are Hyatt,
Novation, AAFES, PepsiCo, AT&T, Bureau of Labor Statistics, Perot Museum, and UTD
Executive MBA program.
Valerie was featured in Jan. 2009 Dallas Business Journal: “Two Minutes with Leadership Guru”.
Her clients agree she provides a strategic perspective on leadership that improves a person’s
performance and positively impacts their career and business results.
Valerie’s 20+ years of leadership experience includes strategic
organizational areas: product management, competitive and financial analysis, regulatory affairs and new service implementation. This breadth of business acumen enriches her executive leadership
development and consulting processes. Her clients like her thought provoking and purposeful solutions to their current business challenges.
About Training Doyens
Based in Colorado, Training Doyens organizes world class webinars and seminars, providing
training solutions to companies big and small. We offer affordable pricing and customization at any budget.
For more detail please click on this below link:
website
Email: [email protected]
Toll Free: +1-888-300-8494
Tel: +1-720-996-1616
Fax: +1-888-909-1882
Valerie Pelan provides her clients a strategic and
global perspective that combines her business experience with a current view of the competitive environment.
As President of Integrated Focus, she provides executive coaching
on leadership areas such as executive presence,
career transitioning and leading change.
Singles Bar 오피 (http://armanir.com/home.php?mod=space&uid=838212)
Fantastic site. A lot of useful info here. I’m sending
it to several buddies ans also sharing in delicious. And certainly, thank you to
your sweat!
Modern technologies have reached such a level that the existing theory ensures the relevance of the mass participation system. There is a controversial point of view that is approximately as follows: the elements of the political process are ambiguous and will be combined into entire clusters of their own kind.
Small Town Business Marketing 하이오피사이트
Relieve Tension Headaches With A Hot Tub 부산달리기 (Freddy)
I am really enjoying the theme/design of your
site. Do you ever run into any browser compatibility issues?
A few of my blog visitors have complained about my site not operating
correctly in Explorer but looks great in Safari. Do you have any recommendations to help fix this problem?
I take pleasure in, cause I found exactly what I was having a
look for. You have ended my 4 day long hunt! God Bless you
man. Have a great day. Bye
What’s up, everything is going nicely here and ofcourse every
one is sharing information, that’s really excellent, keep up writing.
Signature Drinks 울산
Thanks for sharing your thoughts about Canada law List.
Regards
Hi there Dear, are you really visiting this web page daily, if so then you will definitely get fastidious knowledge.
Private Party OP
Investing With Your Creative Trust Bank 페르소나 5 얄 다바오 트 (https://vadaszapro.eu/user/profile/1509452)
Thanks for finally talking about >Flex 4: Changing the “displayAsPassword” default character
| eonflex.com <Liked it!
Pretty nice post. I just stumbled upon your weblog and wished to say that I’ve really enjoyed surfing around your
blog posts. In any case I’ll be subscribing to your rss feed and I hope you write again soon!
Entertainment 잠실오피
Tests- vs Pak
ODI’s- vs Aus
The Truth About Unique Wedding Reception Venues – Knowledge Is Power 광주키스방
What’s up, just wanted to tell you, I loved this article. It was practical.
Keep on posting!
Choose Mindful Yourself . Free Voucher For An Experience To The Exclusive Clapham Clubs 마사지
Рекомендую по теме – лучшие плетеные лески
Will The Internet Quiz Increase The Risk For Old Fashioned Printed Quiz Obsolete?
다바오 (http://Cgi2.bekkoame.ne.jp/cgi-bin/User/U85488/cgi-bin/douraku.cgi?file=3“>)
Great Solution For Your Sleepless Nights 마사지
Late Night Fun 강남오피
Chill Zone 하이오피
This is the right webpage for anyone who hopes to understand this topic.
You realize 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 has been discussed
for ages. Great stuff, just wonderful!
I’m impressed, I must say. Seldom do I come across a blog
that’s equally educative and amusing, and without a doubt, you’ve hit the nail on the head.
The problem is something that too few men and women are speaking intelligently about.
I’m very happy I came across this during my hunt for something
relating to this.
Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.”
She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is completely off topic but
I had to tell someone!
How To Develop A WordPress Ecommerce Website Store davao
Signature Drinks Budal
Philadelphia Nightlife And Nightclubs 밤문화, Waylon,
Karaoke Bar 하이오피
Hey there! Would you mind if I share your
blog with my facebook group? There’s a lot of folks that I think would really enjoy your content.
Please let me know. Many thanks
Understanding Internet Banner Advertising 다바오머니
When someone writes an paragraph he/she retains the idea of a user in his/her
brain that how a user can understand it. So that’s why this
post is amazing. Thanks!
A Review On Email Go Getter System (Eggs) 다바오 (Brianna)
Wonderful blog! I found it while browsing on Yahoo News.
Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem
to get there! Thanks
Karaoke Bar HiOP
Excellent post. I used to be checking constantly this
blog and I’m impressed! Extremely helpful info specially the ultimate part :
) I care for such information a lot. I used to be seeking this particular info for a long time.
Thank you and good luck.
How In Order To Locate The Perfect Party Venue For Your Work Christmas Party 하이오피사이트
Hello Dear, are you truly visiting this web site on a regular basis, if so after that you will absolutely get nice know-how.