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 25th, 2025 at 08:10 | #1

    Very well spoken certainly! !

  2. January 25th, 2025 at 08:19 | #2

    I know this site provides quality depending articles or
    reviews and other stuff, is there any other web page which presents these
    kinds of stuff in quality?

  3. January 25th, 2025 at 08:19 | #3

    Howdy 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 html coding knowledge to make your
    own blog? Any help would be greatly appreciated!

  4. January 25th, 2025 at 08:25 | #4

    I was recommended this website by my cousin. I’m not sure whether this post is written by him as nobody else
    know such detailed about my problem. You are wonderful!
    Thanks!

  5. January 25th, 2025 at 08:29 | #5

    Entertainment 오피사이트 (images.Google.com.gt)

  6. January 25th, 2025 at 08:30 | #6

    Oh my goodness! Awesome article dude! Thanks, However I am experiencing troubles with your RSS.
    I don’t know why I cannot subscribe to it. Is there anybody else getting similar RSS problems?
    Anyone that knows the answer will you kindly respond?
    Thanks!!

  7. January 25th, 2025 at 08:35 | #7

    Wow, this post is good, my younger sister is analyzing such things, thus
    I am going to let know her.

  8. January 25th, 2025 at 08:47 | #8

    Fine Dining op

  9. January 25th, 2025 at 08:51 | #9

    Hi to every body, it’s my first go to see of this webpage; this website carries awesome and
    genuinely good material for readers.

  10. January 25th, 2025 at 08:54 | #10

    What’s up it’s me, I am also visiting this website regularly, this web site is truly nice and the people
    are actually sharing nice thoughts.

  11. January 25th, 2025 at 08:55 | #11

    What’s up, this weekend is pleasant in favor of me, as this occasion i am reading this fantastic
    informative piece of writing here at my house.

  12. January 25th, 2025 at 09:01 | #12

    Its like you read my mind! You seem to know a lot about this, like you wrote the book
    in it or something. I think that you could do with some pics to drive the message home a bit,
    but instead of that, this is wonderful blog. An excellent
    read. I will definitely be back.

  13. January 25th, 2025 at 09:14 | #13

    Heya i’m for the first time here. I came across this board and I find
    It really useful & it helped me out a lot. I hope to give something back
    and help others like you helped me.

  14. January 25th, 2025 at 09:14 | #14

    What’s Taking place i’m new to this, I stumbled upon this I have found It absolutely useful and it has aided
    me out loads. I am hoping to contribute & aid different users like its aided me.
    Good job.

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

    How Can A Shiatsu Massage Chair Benefit I Am? 울산유흥

  16. January 25th, 2025 at 09:19 | #16

    I don’t even know the way I finished up here, but I believed
    this put up was once good. I don’t know who you might be but certainly you’re going to a famous blogger in case
    you are not already. Cheers!

  17. January 25th, 2025 at 09:24 | #17

    Hello, Neat post. There’s an issue together with your website in internet explorer, would test this?
    IE still is the market leader and a good part of other folks will pass over your excellent
    writing because of this problem.

  18. January 25th, 2025 at 09:26 | #18
  19. January 25th, 2025 at 09:27 | #19

    I quite like reading through a post that will make men and women think.
    Also, thank you for allowing for me to comment!

  20. January 25th, 2025 at 09:44 | #20

    Hi there mates, how is the whole thing, and what you
    wish for to say about this paragraph, in my view its really awesome
    for me.

  21. January 25th, 2025 at 09:49 | #21

    We’re a gaggle of volunteers and starting a brand new
    scheme in our community. Your website offered us with
    useful information to work on. You’ve done a formidable job and our whole
    neighborhood will probably be thankful to you.

  22. January 25th, 2025 at 09:52 | #22

    I really like what you guys are usually up too. This sort of
    clever work and exposure! Keep up the superb works guys I’ve included you guys to blogroll.

  23. January 25th, 2025 at 09:54 | #23

    Admiring the dedication you put into your website and in depth information you provide.
    It’s good to come across a blog every once in a while that isn’t
    the same unwanted rehashed material. Wonderful read! I’ve saved
    your site and I’m adding your RSS feeds to my Google account.

  24. January 25th, 2025 at 10:00 | #24

    Well, darling, the word ‘planets’ has 7 letters, so you can form 7!
    (7 factorial) = 5040 different words. Listing them all out would take
    longer than a Golden G
    Read more

    Rabbits and Hares

    +1

    Can you scramble the word renwar to make a rabbits habitat?

    Asked by Wiki User

    Yes, the word “renwar” can be rearranged to form the word “warren,”
    which is a term used to describe a network of interconnected rabbit burr
    Read more

    Word Play, Puns, and Oxymorons

    +1

    How many words can you make out of ‘responsibility’?

    Asked by Wiki User

    There are a total of 14 letters in the word “responsibility.” To determine
    the number of words that can be formed, we need to consider the
    different c
    Read more

    Word Brain Teasers

    +1

    What country’s name is anagram for pains?

    Asked by Wiki User

    The country that is an anagram for “pains” is Spain. An anagram is a
    word or phrase formed by rearranging the letters of
    a different word or phrase, u
    Read more

    Anagrams and Word Scrambles

    +1

    How do you unscramble resturepad?

    Asked by Wiki User

    To unscramble the word “resturepad,” you can rearrange the
    letters to form the word “departure.” This can be done by identifying
    common pref
    Read more

    Anagrams and Word Scrambles

    +1

    How many words can you find using the letters in one hundred days?

    Asked by Wiki User

    Oh, dude, let me break it down for you. Using the letters in “one hundred days,” you can technically form a lot of words, like “hundred,” &q
    Read more

    Anagrams and Word Scrambles

    +1

    What word is formed by unscrambling the letters linbeerio?

    Asked by Wiki User

    There is no nine letter word in English spelled with the letters ‘linbeerio’.
    The longest words that can be made with those letters are
    six letter words:Berlinb
    Read more

    Books and Literature

    +3

    How many words can you make out of the word dictionary?

    Asked by Wiki User

    There are a total of 10 letters in the word “dictionary.” To find the number of words that can be made, we
    need to consider the permutations of the le
    Read more

    Anagrams and Word Scrambles

    +1

    What mall can you unscramble from the letters trrlnemititanaaon?

    Asked by Wiki User

    The unscrambled word from the letters “trrlnemititanaaon” is “International Mall.” This type of word puzzle is known as an anagram, where
    th
    Read more

    Anagrams and Word Scrambles

    +1

    How many words can you make from snow day?

    Asked by Wiki User

    There are a total of 14 words that can be created from the letters in “snow day.” These words are snow, day, now, own, nod, sod, sow,
    wan, won, way, y
    Read more

    Humor & Amusement

    +2

    Jumble by Henri Arnold and Mike Argirion answers
    to daily newspaper jumble?

    Asked by Wiki User

    “Jumble” by Henri Arnold and Mike Argirion is a popular daily newspaper feature that
    presents readers with a scrambled set of letters
    that they must r
    Read more

    Christmas

    +1

    How many 4 letter words can you make from Merry Christmas?

    Asked by Wiki User

    Oh, dude, let’s see. So, from “Merry Christmas,” you can make
    words like “mice,” “mars,” “star,” and “mire.” T
    Read more

    Anagrams and Word Scrambles

    What Christmas word has the letters irwetn?

    Asked by Wiki User

    Oh, what a lovely little puzzle we have here! The Christmas
    word with the letters “irwetn” is “winter.” Just like painting a beautiful winte
    Read more

    Anagrams and Word Scrambles

    What is unslotsoire unscrambled and it must be a Christmas word?

    Asked by Wiki User

    Ah, what a delightful challenge! Let’s see…when we unscramble “unslotsoire” with
    a sprinkle of Christmas magic, we get the word “resolutions.&q
    Read more

    Anagrams and Word Scrambles

    What is rnetmsoan unscrambled?

    Asked by Wiki User

    Oh, what a happy little question! When you unscramble “rnetmsoan,” you get the word “ornaments.” Just like adding ornaments to a painting ca
    Read more

    Scrabble

    +3

    5 letter words ending in o?

    Asked by Wiki User

    Oh, dude, you’re really testing my brain cells with this one. Let’s see… there’s “piano,” “mango,” “kayak”… Oh, wait, “ka
    Read more

    Anagrams and Word Scrambles

    What Christmas word do you get if you unscramble rmngae?

    Asked by Wiki User

    The word “rmngae” unscrambles to “manger,” which is a term often associated with the nativity scene depicting the birth of Jesus Christ
    in C
    Read more

    Anagrams and Word Scrambles

    What is oospwhkr unscramble?

    Asked by Wiki User

    The anagram is workshop.

  25. January 25th, 2025 at 10:06 | #25

    Well articulated! You explained it thoroughly regarding vape legislation.

  26. January 25th, 2025 at 10:19 | #26

    bokep terbaik sma toket gede menyala banget

  27. January 25th, 2025 at 10:23 | #27

    What’s Taking place i am new to this, I stumbled upon this
    I have found It absolutely useful and it has aided me
    out loads. I hope to contribute & assist different customers like its
    helped me. Great job.

  28. January 25th, 2025 at 10:34 | #28

    id=”firstHeading” class=”firstHeading mw-first-heading”>Search
    results

    Help

    English

    Tools

    Tools
    move to sidebar hide

    Actions

    General

  29. January 25th, 2025 at 10:37 | #29

    Teaching Your Kids Money Management – Savings Will
    Save Them From Disaster 대전유흥

  30. January 25th, 2025 at 10:40 | #30

    Valuable knowledge Regards.

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

    Thank you a bunch for sharing this with all folks you really understand what you’re speaking
    about! Bookmarked. Kindly also consult with my website
    =). We may have a link alternate agreement between us

  32. January 25th, 2025 at 10:49 | #32
  33. January 25th, 2025 at 11:01 | #33

    Unquestionably believe that which you stated.
    Your favourite justification seemed to be at the net the easiest
    factor to remember of. I say to you, I certainly get annoyed at the
    same time as other people consider worries that they plainly don’t recognize about.
    You managed to hit the nail upon the top and also defined out the whole thing without
    having side effect , other people could take a signal.
    Will likely be back to get more. Thanks

  34. January 25th, 2025 at 11:02 | #34

    Please let me know if you’re looking for a article writer for your weblog.
    You have some really good articles and I feel I would be a good asset.

    If you ever want to take some of the load off,
    I’d really like to write some articles for your blog in exchange
    for a link back to mine. Please blast me an e-mail if interested.
    Kudos!

  35. January 25th, 2025 at 11:02 | #35

    After I initially commented I appear to have clicked on the -Notify me when new comments are
    added- checkbox and now each time a comment is added I receive 4 emails
    with the exact same comment. Perhaps there is a way you are able to remove me from that service?

    Cheers!

  36. January 25th, 2025 at 11:03 | #36

    I like the helpful info you supply to your articles.
    I will bookmark your weblog and take a look at once more here regularly.
    I’m slightly certain I will be told lots of new stuff right right here!
    Best of luck for the next!

  37. January 25th, 2025 at 11:04 | #37

    There is certainly a lot to know about this subject.
    I like all of the points you’ve made.

  38. January 25th, 2025 at 11:13 | #38

    Your way of telling all in this article is really fastidious, all can simply
    know it, Thanks a lot.

  39. January 25th, 2025 at 11:28 | #39

    It’s truly very complex in this full of activity life to listen news on Television, so I just use web for that reason, and
    obtain the most recent information.

  40. January 25th, 2025 at 11:30 | #40

    It’s appropriate time to make a few plans for the future
    and it is time to be happy. I have read this post and if I
    may I wish to recommend you few fascinating things or suggestions.
    Maybe you could write subsequent articles regarding this article.
    I want to learn more issues approximately it!

  41. January 25th, 2025 at 11:33 | #41

    Way cool! Some extremely valid points! I appreciate you writing
    this post and also the rest of the website is also very good.

  42. January 25th, 2025 at 11:37 | #42

    When I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I recieve
    four emails with the same comment. Perhaps there is a means you are able to remove me from that service?
    Thanks a lot!

  43. January 25th, 2025 at 11:38 | #43

    Right here is the right website for anybody who wishes to find out about this topic.

    You understand 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’s been discussed for
    decades. Great stuff, just wonderful!

  44. January 25th, 2025 at 11:39 | #44

    id=”firstHeading” class=”firstHeading mw-first-heading”>Search
    results

    Help

    English

    Tools

    Tools
    move to sidebar hide

    Actions

    General

  45. January 25th, 2025 at 11:43 | #45

    Excellent site. Lots of helpful information here. I’m sending it to several
    friends ans additionally sharing in delicious. And certainly, thanks on your effort!

  46. January 25th, 2025 at 11:51 | #46

    This design is spectacular! You certainly know how
    to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!)
    Excellent job. I really loved what you had to say, and more than that,
    how you presented it. Too cool!

  47. January 25th, 2025 at 12:02 | #47

    Thanks! Very good information.

  48. January 25th, 2025 at 12:03 | #48

    Spot on with this write-up, I seriously feel this site needs a lot more attention. I’ll probably be back again to see more, thanks
    for the info!

  49. January 25th, 2025 at 12:09 | #49

    I think the admin of this web page is truly working hard in support of
    his website, because here every data is quality based information.

  50. January 25th, 2025 at 12:12 | #50

    I am sure this article has touched all the internet visitors,
    its really really good paragraph on building up new web site.

Comment pages
1 133 134 135 136 137 141 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