Home > Adobe Flex > Flex 4: Changing the “displayAsPassword” default character

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!

Categories: Adobe Flex Tags:
  1. January 18th, 2025 at 20:14 | #1

    Brand Yourself Publishing Online – Top Tips 또봇 에볼루션 z

  2. January 18th, 2025 at 20:15 | #2

    Today, I went to the beach front with my kids. 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!

  3. January 18th, 2025 at 20:20 | #3

    Advantages Of Mystery Shopping As A Home Based Business
    부산

  4. January 18th, 2025 at 20:25 | #4

    A fascinating discussion is definitely worth comment. I do believe that
    you ought to publish more on this topic, it may not
    be a taboo subject but usually people do not speak
    about such subjects. To the next! Kind regards!!

  5. January 18th, 2025 at 20:50 | #5

    Right away I am going to do my breakfast, when having my breakfast coming over again to read other news.

  6. January 18th, 2025 at 21:01 | #6

    Discover Top Nightlife Spots In Miami City 오피사이트

  7. January 18th, 2025 at 21:08 | #7

    Hi mates, its great paragraph concerning teachingand completely defined, keep it up all the time.

  8. January 18th, 2025 at 21:25 | #8

    Hello! I’m at work surfing around your blog from my new iphone 4!
    Just wanted to say I love reading through your blog
    and look forward to all your posts! Carry on the superb work!

  9. January 18th, 2025 at 21:27 | #9

    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.

  10. January 18th, 2025 at 21:41 | #10

    I am in fact thankful to the holder of this site who has shared this enormous post at
    here.

  11. January 18th, 2025 at 21:43 | #11

    Clubbing 광주알밤 [farma-sfera.ru]

  12. January 18th, 2025 at 21:47 | #12

    Natalie Portman flaunted her bikini body when she was spotted
    frolicking across the beach on St. Barts on a sunny Christmas Eve.

    The 43-year-old is marking her first holiday season since she finalized her divorce from French choreographer Benjamin Millepied after 12 years
    of marriage.

    Benjamin and Natalie went their separate ways over the summer of
    2023 under a cloud of rumors that he had conducted an affair with
    a younger woman. 

    He was seen kissing another woman in Paris this October, and Natalie was claimed to
    be unsurprised that he ‘moved on’ so ‘quickly.’

    She put her own figure on sizzling display this week when she was seen on St.
    Barthelemy, an overseas department of France, where she
    once lived with Benjamin. 

    For her latest beach day, she modeled a skimpy black two-piece that allowed her
    to showcase her chiseled abs as she strutted her stuff across
    the sand.

    Natalie Portman flaunted her bikini body when she was
    spotted frolicking across the beach on St. Barts on a sunny Christmas Eve

    Natalie and ex Benjamin are pictured February 9, 2020

    Sweeping her dark hair back into a high bun, the Black Swan Oscar winner accessorized with a sleek pair
    of black goggles.

    Natalie finalized her divorce in France this March, bringing an end to a marriage of 12 years, her representative
    confirmed to People. 

    Read More

    Natalie Portman enjoys sunny getaway in St. Barts on first holiday since divorce from Benjamin Millepied

    The former couple share two children – Aleph, 13, and Amalia, seven –
    and lived together in Benjamin’s native France for several years. 

    Benjamin was seen locking lips with another woman in Paris a couple of months ago
    - and Natalie was claimed to be aware of the images before they went public. 

    ‘Natalie isn’t surprised that Benjamin has moved on because of how their relationship ended,’ an insider told Us Weekly,
    adding that Natalie ‘hopes Benjamin is happy.’

    ‘Benjamin’s dating life doesn’t really have any bearing on Natalie,’ another said.

    ‘She’s super happy in her life right now and has been prioritizing
    family and friends.’

    Natalie filed for divorce in July 2023, one month
    after the French magazine Voici ran a bombshell report claiming Benjamin, 47, had
    an affair with a famous 26-year-old environmental activist called Camille Étienne. 

    The 43-year-old is marking her first holiday season since she finalized her divorce
    from French choreographer Benjamin Millepied after 12 years
    of marriage

    He was seen kissing another woman in Paris this October, and Natalie was claimed to be unsurprised that he ‘moved on’ so ‘quickly’

    She put her own figure on sizzling display this week when she was seen on St.
    Barthelemy, an overseas department of France , where she once lived with Benjamin

    Sweeping her dark hair back into a high bun, the Black Swan Oscar winner accessorized with a
    sleek pair of black goggles 

    Natalie finalized her divorce in France this March, bringing an end to
    a marriage of 12 years, her representative confirmed to
    People

    ‘Natalie isn’t surprised that Benjamin has moved on because of how
    their relationship ended,’ an insider told Us Weekly , adding that Natalie ‘hopes Benjamin is happy’

    ‘Benjamin’s dating life doesn’t really have any bearing
    on Natalie,’ another said: ‘She’s super happy in her life right now and has been prioritizing family and friends’

    The former couple are seen February 24, 2019 

    After the claims of his infidelity went public, a source told
    People Benjamin had a ‘short-lived’ fling with Camille, but that the dalliance was ‘over.’ 

    The insider added: ‘He knows he made an enormous mistake and he is
    doing all he can to get Natalie to forgive him
    and keep their family together.’

    However, by the following month, Natalie had filed for divorce, and by early this
    March the legal proceedings were finalized.

    The closest she came to addressing her divorce in public was
    in Vanity Fair this February, when she was asked how
    it felt to have her marriage written about and replied: ‘It’s terrible,
    and I have no desire to contribute to it.’ 

    A friend revealed the collapse of Natalie’s marriage was ‘was initially really tough for
    her, but her friends rallied around her and helped get her through the worst of it.’ 

    The source noted: ‘Her biggest priority has been ensuring a smooth transition for her children. She and
    Ben really love their kids and are equally focused on being
    the best co-parents they can be. Nothing is more important.’

    In March – the month her divorce was finalized – Natalie posted on Instagram that her book club read
    was Nora Ephron’s novel Heartburn, a roman à clef about
    her own divorce from the renowned Watergate reporter Carl Bernstein.

    Natalie PortmanBenjamin MillepiedFranceParis

  13. January 18th, 2025 at 21:54 | #13

    Gentlemen’s Club 울산

  14. January 18th, 2025 at 21:57 | #14

    Venue Tips For Your Child’s Next Birthday Celebration 부달 (http://Mkun.com/cgi-bin/ayano/RessBBS/abbs.cgi)

  15. January 18th, 2025 at 22:00 | #15

    Dance Club 오피 (Kira)

  16. January 18th, 2025 at 22:18 | #16

    Technology Can Ease Your Lifestyles! 다바오머니

  17. January 18th, 2025 at 22:20 | #17

    Night Spa 하이오피주소

  18. January 18th, 2025 at 22:48 | #18

    Bartering For Business 오피커뮤니티

  19. January 18th, 2025 at 23:15 | #19

    I’ve been surfing online more than 3 hours as of late, yet I by no means found any fascinating article like yours.
    It’s beautiful price enough for me. In my view, if
    all webmasters and bloggers made good content material as you probably did,
    the internet might be much more helpful than ever before.

  20. January 18th, 2025 at 23:17 | #20

    Wine Tasting 오피

  21. January 18th, 2025 at 23:19 | #21

    Howdy, I do believe your website may be having web browser compatibility problems.

    When I take a look at your website in Safari, it looks fine but
    when opening in I.E., it has some overlapping issues.

    I merely wanted to provide you with a quick heads up!
    Other than that, excellent blog!

  22. January 18th, 2025 at 23:20 | #22

    Oh my goodness! Awesome article dude! Thank you so much, However I am encountering problems with your RSS.
    I don’t understand the reason why I cannot subscribe to it.
    Is there anybody else having similar RSS issues? Anyone that knows
    the answer will you kindly respond? Thanx!!

  23. January 18th, 2025 at 23:21 | #23

    Getting Baby To Bed On Time At Night 출장안마 (lovemac.sakura.ne.Jp)

  24. January 18th, 2025 at 23:30 | #24

    Dear fans of football matches
    Like me, you probably bet on football matches and probably haven’t become lotto millionaires or at least successful players
    yet.
    If this is the case, then my proposal is extremely suitable for
    you!
    It comes down to this: I offer to teach you the art
    of football betting to multiply your chances of success with
    your bets.
    Betting is the art of making the right choices and therefore
    it is critical to be able to avoid the pitfalls in it.
    The system I offer you requires that you possibly maintain your databases from which you draw information for your final betting choice
    using the linear regression made according to my algorithm.

    This is a highly accurate system that guarantees incredible Swarm on a monthly and yearly basis!

    If you are busy and don’t care about maintaining
    your databases, which is really time-consuming and partly difficult to apply in our busy life,
    I offer you a second option, namely to use ready-made results
    from sites like “int.soccerway.com “, which you will then double-check: once the so-called “fair odds ratios” will be determined, and then you will do a second control analysis using my
    kind of linear regression.
    This is a fairly quick way to determine your favorite matches to bet on, but it
    does not have the determination of the advance reliability of the predictions as in option #1, but still has its familiarity of over 65%
    as an average result for the various football championships.

    Thank you for your attention
    Doctor Dimitar Kehaiov

    Bulgaria

  25. January 18th, 2025 at 23:32 | #25

    Few Important Points To Recollect When Selecting Wedding Function Venues
    Hiop

  26. January 18th, 2025 at 23:34 | #26

    Massage Chairs For Daily Massage Therapy 테라피 (Https://Conceitedbabe.Com/)

  27. January 18th, 2025 at 23:39 | #27

    Visa Gift Card Is Just Right For Anyone 다바오 시장

  28. January 18th, 2025 at 23:45 | #28

    Great article! That is the type of info that are meant to be shared around the web.
    Disgrace on Google for not positioning this publish higher!
    Come on over and consult with my website . Thank you =)

  29. January 18th, 2025 at 23:51 | #29

    Here is a striking example of modern trends – the implementation of planned planned tasks provides ample opportunities for priority requirements. In particular, the existing theory requires us to analyze thoughtful reasoning.

  30. January 18th, 2025 at 23:51 | #30

    Manchester Is The Place For An Unforgettable Hen Night 출장안마 (Isabell)

  31. January 18th, 2025 at 23:52 | #31

    Howdy! This is my 1st comment here so I just wanted to give a quick
    shout out and say I genuinely enjoy reading through your blog posts.
    Can you recommend any other blogs/websites/forums that go over the
    same topics? Thanks for your time!

  32. January 18th, 2025 at 23:54 | #32

    I used to be able to find good information from your blog posts.

  33. January 18th, 2025 at 23:56 | #33

    12 Reason Behind Why You Shouldn’t Even Consider Doing A Cleanse Taking
    A Cruise 오피커뮤니티 (Tami)

  34. January 19th, 2025 at 00:03 | #34

    Massage Expectations For New Customers 하이오피주소

  35. January 19th, 2025 at 00:10 | #35

    Hola! I’ve been reading your web site for a long time now and
    finally got the courage to go ahead and give you a shout out from
    Huffman Texas! Just wanted to say keep up the excellent work!

  36. January 19th, 2025 at 00:26 | #36

    The Top Five Myrtle Beach Golf Courses Of Instruction For Your
    Golf Vacation op

  37. January 19th, 2025 at 00:28 | #37

    Body Massage op

  38. January 19th, 2025 at 00:29 | #38

    I like what you guys tend to be up too. This type of clever work and coverage!
    Keep up the terrific works guys I’ve added you guys to my blogroll.

  39. January 19th, 2025 at 00:33 | #39

    Wonderful work! This is the kind of information that are supposed
    to be shared around the web. Disgrace on Google for no longer positioning this submit upper!
    Come on over and discuss with my site . Thank you =)

  40. January 19th, 2025 at 00:34 | #40

    9 Different Ways To Change Business Direction 출장마사지 (Https://Www.Use-Clan.De/Index.Php?Site=News_Comments&NewsID=244&Lang=De>Https://Cl-System.Jp/Question/Free-Wink-Coaching-Servies/)

  41. January 19th, 2025 at 00:43 | #41

    We absolutely love your blog and find most of your post’s to be exactly what I’m looking for.
    Does one offer guest writers to write content available for you?

    I wouldn’t mind creating a post or elaborating on many of the subjects you write related to here.
    Again, awesome website!

  42. January 19th, 2025 at 00:45 | #42

    Ahaa, its fastidious dialogue on the topic of this post
    here at this webpage, I have read all that, so now me also commenting here.

  43. January 19th, 2025 at 00:50 | #43

    What i don’t understood is in truth how you are now not actually much more
    well-preferred than you might be now. You’re so intelligent.
    You understand thus significantly in terms of this matter, made me
    in my opinion consider it from so many varied angles.
    Its like men and women aren’t interested except it is one thing
    to accomplish with Girl gaga! Your own stuffs great. All the
    time take care of it up!

  44. January 19th, 2025 at 00:51 | #44

    Wow! In the end I got a webpage from where I be able to in fact obtain valuable facts concerning my study and knowledge.

  45. January 19th, 2025 at 00:54 | #45

    The Three Killer Small Biz Apps Coming In 2012 다바오머니상 [programmo-vinc.tuxfamily.org]

  46. January 19th, 2025 at 00:56 | #46

    I read this article fully concerning the difference of hottest and previous technologies, it’s amazing article.

  47. January 19th, 2025 at 00:59 | #47

    Admiring the commitment you put into your blog and in depth information you present.
    It’s awesome to come across a blog every once in a while that
    isn’t the same outdated rehashed material. Excellent read!

    I’ve saved your site and I’m including your RSS feeds to my Google account.

  48. January 19th, 2025 at 01:09 | #48

    Nice weblog right here! Also your website rather a lot up fast!
    What web host are you the use of? Can I get your affiliate hyperlink for your host?
    I wish my web site loaded up as fast as yours lol

  49. January 19th, 2025 at 01:11 | #49

    I’ll immediately grab your rss feed as I can’t in finding your
    email subscription hyperlink or e-newsletter service.
    Do you’ve any? Kindly permit me understand in order
    that I may subscribe. Thanks.

  50. January 19th, 2025 at 01:23 | #50

    Hi to every single one, it’s truly a pleasant for me to visit this site, it consists of
    precious Information.

Comment pages
1 109 110 111 112 113 151 435
  1. March 19th, 2014 at 11:13 | #1
  2. April 30th, 2014 at 01:00 | #2
  3. December 31st, 2018 at 08:24 | #3
  4. February 2nd, 2019 at 20:25 | #4
  5. January 25th, 2020 at 13:25 | #5
  6. March 28th, 2020 at 20:22 | #6
  7. March 30th, 2020 at 22:25 | #7
  8. July 2nd, 2020 at 04:14 | #8
  9. November 26th, 2023 at 17:35 | #9
  10. June 17th, 2024 at 01:33 | #10
  11. July 9th, 2024 at 09:52 | #11
  12. July 29th, 2024 at 03:40 | #12
  13. September 16th, 2024 at 11:50 | #13
  14. October 19th, 2024 at 15:31 | #14
  15. October 22nd, 2024 at 18:24 | #15
  16. October 24th, 2024 at 04:17 | #16
  17. November 9th, 2024 at 10:01 | #17
  18. November 9th, 2024 at 11:51 | #18
  19. November 11th, 2024 at 04:18 | #19
  20. November 11th, 2024 at 06:33 | #20
  21. November 11th, 2024 at 07:08 | #21
  22. November 12th, 2024 at 02:12 | #22
  23. November 13th, 2024 at 08:00 | #23
  24. November 14th, 2024 at 06:12 | #24
  25. November 14th, 2024 at 14:35 | #25
  26. November 14th, 2024 at 16:23 | #26
  27. November 15th, 2024 at 05:09 | #27
  28. November 15th, 2024 at 05:46 | #28
  29. November 15th, 2024 at 11:13 | #29
  30. November 15th, 2024 at 11:46 | #30
  31. November 15th, 2024 at 19:12 | #31
  32. November 17th, 2024 at 04:29 | #32
  33. November 18th, 2024 at 05:00 | #33
  34. November 19th, 2024 at 12:11 | #34
  35. November 19th, 2024 at 19:46 | #35
  36. November 25th, 2024 at 21:09 | #36
  37. December 4th, 2024 at 00:57 | #37
  38. December 30th, 2024 at 18:41 | #38
  39. January 6th, 2025 at 21:21 | #39
  40. January 21st, 2025 at 19:12 | #40
  41. January 21st, 2025 at 19:27 | #41
  42. January 21st, 2025 at 21:18 | #42
  43. January 21st, 2025 at 21:20 | #43
  44. January 21st, 2025 at 21:34 | #44
  45. January 21st, 2025 at 22:46 | #45
  46. January 21st, 2025 at 23:10 | #46
  47. January 21st, 2025 at 23:38 | #47
  48. January 22nd, 2025 at 01:51 | #48
  49. January 22nd, 2025 at 03:06 | #49
  50. January 22nd, 2025 at 03:11 | #50
  51. January 22nd, 2025 at 05:36 | #51
  52. January 22nd, 2025 at 07:18 | #52
  53. January 22nd, 2025 at 08:20 | #53
  54. January 22nd, 2025 at 08:48 | #54
  55. January 22nd, 2025 at 08:49 | #55
  56. January 22nd, 2025 at 08:54 | #56
  57. January 22nd, 2025 at 09:01 | #57
  58. January 22nd, 2025 at 09:06 | #58
  59. January 22nd, 2025 at 09:45 | #59
  60. January 22nd, 2025 at 09:59 | #60
  61. January 22nd, 2025 at 10:50 | #61
  62. January 22nd, 2025 at 11:00 | #62
  63. January 22nd, 2025 at 11:35 | #63
  64. January 22nd, 2025 at 14:26 | #64
  65. January 22nd, 2025 at 15:11 | #65
  66. January 22nd, 2025 at 15:29 | #66