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 22:01 | #1

    I like what you guys tend to be up too. This sort of clever work and reporting!

    Keep up the excellent works guys I’ve incorporated you guys to my blogroll.

  2. January 25th, 2025 at 22:22 | #2

    With havin so much written content do you ever run into any
    issues of plagorism or copyright infringement? My website has a lot of completely
    unique content I’ve either authored myself or outsourced but
    it seems a lot of it is popping it up all over the web without my agreement.
    Do you know any techniques to help prevent content from being stolen?
    I’d certainly appreciate it.

  3. January 25th, 2025 at 22:24 | #3

    Professionalism – The Marketing Gene Everyone Sees And Knows 오피

  4. January 25th, 2025 at 22:27 | #4

    NEW DELHI, June 30 (Reuters) – India’s Jindal Steel and Power Ltd (JSPL) said on Tuesday it is selling its Oman subsidiary to Templar Investments Limited in a
    deal valued at over $1 billion, to ease the group’s debt burden.

    The sale still needs to be approved by JSPL’s shareholders and lenders as well as India’s markets regulator, but JSPL said in a statement
    that it hopes it will be completed within a month.

    Selling Jindal Shadeed Iron and Steel Co LLC (JSIS Oman) is
    expected to reduce JSPL’s overall debt burden by 60 billion-70 billion rupees
    ($794 million-$927 million), Vidya Rattan Sharma,
    managing director at Jindal Steel & Power Ltd, told Reuters by phone.

    “The domestic debt exposure is around 340 billion rupees,” Sharma said.
    ($1 = 75.5340 Indian rupees) (Reporting by Neha Arora;
    Editing by Susan Fenton)

  5. January 25th, 2025 at 22:36 | #5

    Hi! Someone in my Facebook group shared this site with us
    so I came to give it a look. I’m definitely loving the information. I’m
    bookmarking and will be tweeting this to my followers! Great blog and brilliant design.

  6. January 25th, 2025 at 22:39 | #6

    Having read this I believed it was very informative.
    I appreciate you finding the time and energy to put this short
    article together. I once again find myself spending way too much time both reading and posting comments.
    But so what, it was still worth it!

  7. January 25th, 2025 at 22:41 | #7

    An email address that translated as ‘We have come to slaughter’
    was used to buy chemicals for the Manchester Arena
    bomb on Amazon, a court heard today.

    Hashem Abedi, the brother of the bomber whose explosives were detonated in a deadly blast in May 2017, was linked to the address,
    the Old Bailey was told.

    Abedi allegedly helped build the bomb which killed his older brother, Salman, and 22 others in the foyer outside the arena
    after a concert by pop star Ariana Grande.

    The Old Bailey was told that a Gmail address bedab7jeana@gmail.com was set up to buy hydrogen peroxide, a vital ingredient for
    the TATP explosives, on March 20, 2017.

    The email, translated from the Arabic, read: ‘To slaughter we have come’ or ‘We have come to slaughter’,
    Duncan Penny QC, prosecuting, told the court. 

    Hashem Abedi, 22, is on trial accused of helping his brother to assemble chemicals and materials to build TATP explosives which were detonated in Manchester
    on May 22, 2017

    Hashem Abedi’s temporary phone was in the same area,
    20 minutes before the publicly available Wifi was used at Hulme Market in Manchester to create the email address.

    RELATED ARTICLES

    Previous

    1

    Next

    Manchester Arena bomber’s brother ‘asked friend
    to buy £76… ‘As guilty as if he’d detonated bomb himself’: Murder trial…

    Share this article

    Share

    Automatic Number Plate Recognition (ANPR) cameras also picked up his Toyota Aygo car on Princess Parkway nearby,
    ten minutes after the account was created and later at the Urban Exchange in the Ancoats area.

  8. January 25th, 2025 at 22:56 | #8

    Unquestionably consider that that you stated. Your favourite
    justification appeared to be at the internet the simplest thing to
    take note of. I say to you, I certainly get annoyed even as
    people consider worries that they plainly do not
    recognise about. You controlled to hit the nail upon the highest and outlined out the entire thing without having side
    effect , people can take a signal. Will likely be again to get
    more. Thank you

  9. January 25th, 2025 at 23:01 | #9

    amazon fba top selling products

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

    Live 2 B Healthy
    Bloomington, Minneapolis 55402, United Ѕtates
    16124200445
    Proven Fitness Strategies Ϝor Senior Citizens

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

    I always used to read article in news papers but now as I am a user of internet so
    from now I am using net for articles or reviews, thanks
    to web.

  12. January 25th, 2025 at 23:57 | #12

    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 some pics to drive
    the message home a little bit, but instead of
    that, this is great blog. A fantastic read. I’ll certainly be back.

  13. January 26th, 2025 at 00:05 | #13

    My family always say that I am killing my time here at
    web, but I know I am getting familiarity every day by
    reading thes good articles.

  14. January 26th, 2025 at 00:13 | #14

    VIP Lounge 잠실오피 – Jenna -

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

    Entertainment 하이오피

  16. January 26th, 2025 at 00:20 | #16

    Excellent tips, Thanks.

  17. January 26th, 2025 at 00:24 | #17

    We’re a group of volunteers and starting a new scheme in our community.
    Your site provided us with valuable info to work on. You’ve done a formidable job and
    our entire community will be grateful to you.

  18. January 26th, 2025 at 00:29 | #18

    This post is priceless. When can I find out more?

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

    Asking questions are actually fastidious thing
    if you are not understanding something totally, but this piece of writing presents fastidious understanding yet.

  20. January 26th, 2025 at 00:46 | #20

    What’s Taking place i am new to this, I stumbled upon this I’ve discovered It absolutely useful and
    it has aided me out loads. I hope to contribute & help different users like its helped me.
    Good job.

  21. January 26th, 2025 at 00:55 | #21

    Thank you a lot for sharing this with all folks you actually recognise what you’re talking approximately!
    Bookmarked. Please additionally seek advice from my site =).
    We may have a link alternate contract between us

  22. January 26th, 2025 at 01:00 | #22

    My relatives all the time say that I am killing my time here at net, but I know I am getting experience everyday by reading
    thes nice articles or reviews.

  23. January 26th, 2025 at 01:06 | #23

    I believe this is among the so much significant information for me.
    And i am satisfied reading your article. But should remark on some basic things, The website taste
    is great, the articles is actually excellent : D. Just right task, cheers

  24. January 26th, 2025 at 01:14 | #24

    I was curious if you ever considered changing the
    structure of your website? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people
    could connect with it better. Youve got an awful lot of text for only having 1 or two images.
    Maybe you could space it out better?

  25. January 26th, 2025 at 01:37 | #25

    Need a heartburn avoidance gadget checked, yes we can do that too.No job is also small.

  26. January 26th, 2025 at 01:45 | #26

    Thankfulness to my father who stated to me on the
    topic of this website, this weblog is really awesome.

  27. January 26th, 2025 at 02:00 | #27

    Everyday Health With The Panasonic Ep-1080 Kl Robotic Massage Chair
    오피사이트

  28. January 26th, 2025 at 02:01 | #28

    What’s up, just wanted to tell you, I enjoyed this blog post.
    It was inspiring. Keep on posting!

  29. January 26th, 2025 at 02:22 | #29

    Appreciate the recommendation. Let me try it out.

  30. January 26th, 2025 at 02:23 | #30

    Well written! You explained it thoroughly regarding
    vape legislation.

  31. January 26th, 2025 at 02:53 | #31

    Hello, I think your blog might be having browser compatibility issues.
    When I look at your blog site in Opera, it looks fine
    but when opening in Internet Explorer, it has
    some overlapping. I just wanted to give you a quick heads up!

    Other then that, amazing blog!

  32. January 26th, 2025 at 02:54 | #32

    Hey there! This is kind of off topic but I need
    some guidance from an established blog. Is it very hard to set up your own blog?

    I’m not very techincal but I can figure things out pretty fast.

    I’m thinking about setting up my own but I’m not sure where to start.

    Do you have any tips or suggestions? Many thanks

  33. January 26th, 2025 at 03:08 | #33

    I got this site from my buddy who informed me concerning this web site and now this time I
    am visiting this site and reading very informative posts here.

  34. January 26th, 2025 at 03:08 | #34

    Attractive section of content. I simply stumbled upon your website and in accession capital
    to claim that I acquire in fact loved account your blog posts.
    Any way I will be subscribing to your augment
    and even I fulfillment you get admission to constantly quickly.

  35. January 26th, 2025 at 03:28 | #35

    سئو با هوش مصنوعی

  36. January 26th, 2025 at 03:35 | #36

    I am really impressed together with your writing skills as well as with the format in your weblog.

    Is that this a paid subject or did you customize it your self?

    Anyway stay up the nice high quality writing, it is uncommon to see a nice weblog like this one nowadays..

  37. January 26th, 2025 at 03:41 | #37

    Tips For Planning A Business Christmas Party 서울유흥

  38. January 26th, 2025 at 03:54 | #38

    How Create Fabulous Massage Brochures That Clients Will
    Love HiOP

  39. January 26th, 2025 at 04:22 | #39

    Tips Regarding How To Save At Ceremony 부달사이트 (Virgilio)

  40. January 26th, 2025 at 04:30 | #40

    Hello there! This post could not be written any better!
    Reading this post reminds me of my old room mate! He always kept talking about this.

    I will forward this article to him. Pretty sure he will have a good read.
    Many thanks for sharing!

  41. January 26th, 2025 at 04:34 | #41

    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.

  42. January 26th, 2025 at 04:46 | #42

    Star tokens are earned as you wager money while the profits the casino makes from players are put into a pool.

  43. January 26th, 2025 at 04:51 | #43

    Valorant, established by Trouble Games, is a tactical FPS with hero-based mechanics.

  44. January 26th, 2025 at 05:10 | #44

    Hey there! Someone in my Facebook group shared this site with us
    so I came to take a look. I’m definitely enjoying the information. I’m book-marking and will be tweeting this
    to my followers! Great blog and superb style and design.

  45. January 26th, 2025 at 05:18 | #45

    Thank you, I have recently been searching for information approximately this subject for a long time and
    yours is the greatest I’ve found out so far. However, what
    about the conclusion? Are you positive concerning the supply?

  46. January 26th, 2025 at 05:18 | #46

    Hello there! This post couldn’t be written any better! Reading
    this post reminds me of my previous room mate! He always kept talking about this.
    I will forward this page to him. Fairly certain he will have a good read.
    Many thanks for sharing!

  47. January 26th, 2025 at 05:19 | #47

    research concerning stem cells and arthritis demonstrate who were the possibilities of
    using https://autismtherapysupport.com/, also {in addition|bonus access to orthopedic surgical procedures.

  48. January 26th, 2025 at 05:20 | #48

    Wine Tasting 오피커뮤니티

  49. January 26th, 2025 at 05:21 | #49

    The Best Bangkok Hotels Close To Nightlife Hotspots – A Place To Stay 부산부달 (Adolph)

  50. January 26th, 2025 at 05:23 | #50

    I think that is among the such a lot important info for me.
    And i am happy reading your article. However wanna observation on few general issues, The web site style is
    wonderful, the articles is actually excellent : D. Good job, cheers

Comment pages
  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