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 7th, 2025 at 06:30 | #1

    Lounge Bar 광주오피

  2. January 7th, 2025 at 06:35 | #2

    Let Us Uncover The Mystery Of Secured Loans 다바오 치안

  3. January 7th, 2025 at 06:45 | #3

    bokep
    Appreciate this post. Let me try it out.

  4. January 7th, 2025 at 06:45 | #4

    E2Bet Indonesia, situs judi online terbesar di Indonesia, aman, terpercaya,
    dan inovatif, bonus menarik dan layanan pelanggan 24/7.
    #E2Bet #E2BetIndonesia #Indonesia

  5. January 7th, 2025 at 07:02 | #5

    How To Play Poker 다바오4989

  6. January 7th, 2025 at 07:10 | #6

    bokep terbaik sma toket gede menyala banget

  7. January 7th, 2025 at 07:16 | #7

    Hello just wanted to give you a quick heads up.

    The words in your post seem to be running off the screen in Firefox.

    I’m not sure if this is a format issue or something
    to do with browser compatibility but I thought I’d post to
    let you know. The design and style look great though!
    Hope you get the problem solved soon. Cheers

  8. January 7th, 2025 at 07:28 | #8

    Hi there, I enjoy reading all of your article post.
    I wanted to write a little comment to support you.

  9. January 7th, 2025 at 07:44 | #9

    contantly i used to read smsller articpes oor reviews that alsso clewar their motive, and tbat is aalso happening with this pist
    whih I am reaing att tnis place.

  10. January 7th, 2025 at 07:52 | #10

    Hmm it looks like your site ate my first comment (it was super long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying
    your blog. I as well am an aspiring blog blogger but I’m still new
    to everything. Do you have any suggestions for newbie
    blog writers? I’d really appreciate it.

  11. January 7th, 2025 at 08:01 | #11

    I was suggested this blog by my cousin. I am not sure whether this post
    is written by him as no one else know such detailed about my trouble.
    You’re incredible! Thanks!

  12. January 7th, 2025 at 08:11 | #12

    Keep on writing, great job!

  13. January 7th, 2025 at 08:27 | #13

    You have made your point!

  14. January 7th, 2025 at 08:50 | #14

    You actually mentioned this very well!

  15. January 7th, 2025 at 09:15 | #15

    Cocktail Bar HiOP

  16. January 7th, 2025 at 09:21 | #16

    Nicely put, Thank you!

  17. January 7th, 2025 at 09:29 | #17

    Viagra may cause problems in individuals with pre-current medical or bodily conditions.
    Besides unwanted effects, Viagra could cause issues in individuals with pre-current circumstances.
    When a licensed healthcare supplier is performing an in-person physical examination, make it possible for particular person is knowledgeable about all current and former medical circumstances.
    Make sure you share any private or family historical past of imaginative and prescient changes with your physician. One doctor who works at
    Bailey Health and was included in the secret group messages acknowledged some stress to put in writing more prescriptions but said it comes as more of a suggestion. Alcohol lowers blood stress, so
    combining it with drugs that decrease blood stress, like Viagra, can cause blood stress to dip too
    low. Because Viagra lowers blood strain, it could cause issues
    if blood pressure falls too far. Because sexual exercise raises
    the danger of heart or bleeding issues, Viagra is used cautiously and with additional monitoring in anybody who has had current symptomatic cardiovascular
    or vascular problems comparable to heart attack, stroke, heart disease,
    coronary heart failure, or similar disorders in the final 6
    months. Sildenafil is related to bleeding occasions, so people with bleeding problems will probably be prescribed Viagra cautiously and may need extra monitoring.

  18. January 7th, 2025 at 09:29 | #18

    789Win là nhà cái cá cược uy tín hàng đầu
    Việt Nam, cung cấp cá cược thể thao, casino, nổ hũ, bắn cá,….
    Cùng tỷ lệ thưởng cao, hỗ trợ 24/7 và nhiều ưu
    đãi.

  19. January 7th, 2025 at 09:30 | #19

    Social Gathering 오피사이트 (Tangela)

  20. January 7th, 2025 at 09:51 | #20

    Hi! This is my 1st comment here so I just wanted to give a quick shout out and
    say I really enjoy reading your posts. Can you suggest any other blogs/websites/forums
    that go over the same topics? Thanks a ton!

  21. January 7th, 2025 at 09:54 | #21

    Hello, after reading this remarkable piece of writing i am as well cheerful to share my knowledge here with
    colleagues.

  22. January 7th, 2025 at 09:57 | #22

    Nice post. I learn something new and challenging
    on sites I stumbleupon on a daily basis. It will always be interesting to read through content from other
    authors and use a little something from their
    websites.

  23. January 7th, 2025 at 10:11 | #23

    Great site you have here but I was wanting to know if
    you knew of any discussion boards that cover the same
    topics discussed in this article? I’d really like to be a
    part of online community where I can get feed-back from other experienced individuals
    that share the same interest. If you have any recommendations, please let me know.
    Thanks a lot!

  24. January 7th, 2025 at 10:12 | #24

    My brother recommended I might like this blog. He was totally right.

    This post truly made my day. You cann’t imagine
    simply how much time I had spent for this info!
    Thanks!

  25. January 7th, 2025 at 10:13 | #25

    This is my first time visit at here and i am really impressed to read everthing at one place.

  26. January 7th, 2025 at 10:23 | #26

    For newest news you have to go to see internet and on the web I found this
    website as a best website for latest updates.

  27. January 7th, 2025 at 10:24 | #27

    Mighty Dog Roofing
    Reimer Drive North 13768
    Maple Grove, MN 55311 United Ѕtates
    (763) 280-5115
    Durable Metal Roofing

  28. January 7th, 2025 at 10:29 | #28

    Wine Tasting 오피사이트

  29. January 7th, 2025 at 10:30 | #29

    As an example, one examine asked members to finish 12 weeks
    of resistance coaching, exercising solely their non-dominant
    arm. One research followed 24 people who did ab workouts 5 days a week for 6 weeks.
    Do Ab Exercises Make it easier to Burn Belly Fat? Also, your retailer in a fridge and drink in a day.that’s how lemon water burn belly fat.
    Also, you add some cubes in regular lemon water
    it feels good and fresh. Also, drink on empty stomach
    is helps full weight lose and decreased weight lose. Because of this, the web is stuffed with information about how you
    can achieve a six-pack. Cherries are also fiber-wealthy in order that they keep you
    full longer. Ever surprise why individuals who are attempting to reduce weight eat so many eggs?
    There are multiple the reason why you might be gaining weight in your abdominal area.
    One motive why targeted fats loss does not work is as a
    result of muscle cells can’t use the fat contained in fats cells immediately.

    A glass groups carbohydrates with protein to advertise muscle building.
    Instead, deal with consuming greater quantities of protein.
    Combining aerobic train and resistance coaching seems to be particularly effective.

    1.Metabolic Syndrome :a cluster or group of well being threat elements -hypertension, high triglycerides, excessive HDL,
    insulin resistance and abdominal obessity- if you have any three out of
    this 5 factors, then you are affected by metabolic syndrome.

  30. January 7th, 2025 at 10:37 | #30

    Hello there, I found your site via Google while looking
    for a related matter, your web site got here up,
    it appears to be like good. I have bookmarked it in my google bookmarks.

    Hi there, simply became aware of your blog via Google, and located that it’s
    really informative. I’m gonna be careful for brussels.
    I’ll be grateful in the event you proceed this in future.

    Many other folks will be benefited out of your writing.
    Cheers!

  31. January 7th, 2025 at 10:46 | #31

    I’m extremely impressed with your writing skills as well as
    with the layout on your weblog. Is this a paid
    theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to
    see a great blog like this one nowadays.

  32. January 7th, 2025 at 10:47 | #32

    Photo Recovery For The Sandisk Media Card 다바오 설치
    (bid.tv)

  33. January 7th, 2025 at 10:48 | #33

    I like the valuable info you provide in your articles.
    I will bookmark your blog and check again here frequently.

    I’m quite sure I will learn a lot of new
    stuff right here! Best of luck for the next!

  34. January 7th, 2025 at 10:51 | #34

    The tissues are centrifuged (spun at a high rate) to break up the cells and injected
    into the penis. During a fat transfer procedure, a surgeon will remove fat cells from a fatty area of the body and inject them into the shaft of the penis.
    Fat from other parts of the body are transplanted into the penis to widen it.

    To correct this the skin had to be sliced below the head and the
    skin peeled back like a banana so the fat could be removed.
    One surgeon warned they can become infected and kill the skin around
    the penis. “It was on the skin. He said it made his penis more ‘misshapen’ and left him feeling like ‘Frankenstein’s monster’, in excruciating pain and with nowhere to go. What is considered a normal sized penis? Just need to enhance your penis head size? It is only natural that the manufacturers of these products would laud them as the unbeatable solution to any woes regarding penile size.

  35. January 7th, 2025 at 10:52 | #35

    For newest news you have to pay a quick visit world-wide-web and on the web
    I found this web page as a best website for newest updates.

  36. January 7th, 2025 at 11:01 | #36

    Hey very interesting blog!

  37. January 7th, 2025 at 11:16 | #37

    I’m curious to find out what blog system you have been working with?
    I’m having some minor security issues with my latest site and
    I would like to find something more secure. Do you have any recommendations?

  38. January 7th, 2025 at 11:23 | #38

    Have you ever considered writing an e-book or guest authoring on other websites?
    I have a blog based upon on the same topics you discuss and would love
    to have you share some stories/information. I know my readers would enjoy your work.

    If you are even remotely interested, feel free to send
    me an email.

  39. January 7th, 2025 at 11:26 | #39

    Wow quite a lot of amazing information.

  40. January 7th, 2025 at 11:26 | #40

    E2Bet
    Blog Comment: If you’re a cricket fan in Pakistan, E2Bet is the platform for you.
    They cover all major tournaments with detailed betting options.
    My go-to website for cricket betting!

  41. January 7th, 2025 at 11:42 | #41

    Daughter is the authority, and she’s demonstrating it
    by displaying us how to do it in the bedroom now!

    In our Hot Baby Porn film type, watch out for some hot MILF pornstars and amateur amateurs.
    By the time we’ve finished with you, you’ll become pleading for Mommy because this
    XXX library has taken the Oedipus diverse to a whole new
    level! Did you finish your chores already?
    This set is full of darling play and kinky stepmoms. http://ercabs.com/__media__/js/netsoltrademark.php?d=worldaid.eu.org%2Fdiscussion%2Fprofile.php%3Fid%3D168

  42. January 7th, 2025 at 11:44 | #42

    Wonderful work! That is the type of information that should be shared across the
    internet. Shame on Google for not positioning this publish upper!

    Come on over and visit my site . Thank you =)

  43. January 7th, 2025 at 12:10 | #43

    Now I am going to do my breakfast, after having my
    breakfast coming over again to read more news.

  44. January 7th, 2025 at 12:14 | #44

    You really make it seem so easy with your presentation but I
    find this topic to be really something which 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!

  45. January 7th, 2025 at 12:22 | #45
  46. January 7th, 2025 at 12:26 | #46

    Live Music 밤문화

  47. January 7th, 2025 at 12:28 | #47

    Your mode of describing everything in this post is genuinely fastidious, every one can easily understand it, Thanks a lot.

  48. January 7th, 2025 at 12:29 | #48

    Refresh Renovation
    Arapahoe Road Ste 132 – 565
    Lafayette, ϹO 80026, United Stateѕ
    13033812219
    Space additions һome for extra (snowy-persimmon-00ⅽ.notion.site)

  49. January 7th, 2025 at 12:38 | #49

    http://mediageneous.org

    Amazing a lot of useful material!

  50. January 7th, 2025 at 12:42 | #50

    Hmm is anyone else encountering problems with the images on this blog loading?
    I’m trying to find out if its a problem on my end or if it’s the blog.
    Any responses would be greatly appreciated.

Comment pages
1 63 64 65 66 67 69 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