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 04:15 | #1

    Pretty! This was a really wonderful post. Thank you for
    providing this info.

  2. January 25th, 2025 at 04:17 | #2

    Thanks for finally talking about >Flex 4: Changing the “displayAsPassword” default character | eonflex.com <Loved it!

  3. January 25th, 2025 at 04:20 | #3

    I pay a quick visit daily a few sites and blogs to read content, except this website offers quality based writing.

  4. January 25th, 2025 at 04:24 | #4

    What’s up to all, the contents existing at this web page are in fact
    awesome for people knowledge, well, keep up the good work fellows.

  5. January 25th, 2025 at 04:26 | #5

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

  6. January 25th, 2025 at 04:28 | #6

    Hashem Abedi, now 22, was allegedly involved in planning the suicide attack

    The brother of the Manchester Arena bomber helped to make the explosives which killed 22 people and
    injured many others who were caught up in the ‘ferocious’ blast, a court heard today.

    Hashem Abedi, 22, was allegedly linked to
    the bombing by a scrap of metal from a Consumer’s
    Pride vegetable oil can found at the scene of the carnage.

    He had also allegedly bought screws and nails for deadly
    shrapnel and used fake online accounts to purchase two of the three chemicals to make
    TATP explosives, jurors were told.

    His brother Salman Abedi, 22, then detonated the large device as music fans
    were leaving an Ariana Grande concert at 10.31pm on May
    22 2017.

    Prosecutor Duncan Penny QC said the explosion was the ‘culmination of months of
    planning, experimentation and preparation by the two of them’.

    He added: ‘The bomb was detonated and was self-evidently designed to kill and maim as many people
    as possible.

    ‘It was packed with lethal shrapnel and it was detonated in the middle of a
    crowd in a very public area – the intention being to kill and
    to inflict maximum damage.’ 

    The victims were (top row, from left) Elaine McIver,
    43, Saffie Roussos, 8, Sorrell Leczkowski, 14, Eilidh MacLeod, 14, (second row,
    from left) Nell Jones, 14, Olivia Campbell-Hardy, 15, Megan Hurley, 15,
    Georgina Callander, 18, (third row, from left), Chloe Rutherford, 17,
    Liam Curry, 19, Courtney Boyle, 19, and Philip Tron, 32, (fourth row, from left) John Atkinson, 26, Martyn Hett, 29, Kelly Brewster,
    32, Angelika Klis, 39, (fifth row, from left) Marcin Klis,
    42, Michelle Kiss, 45, Alison Howe, 45, and Lisa Lees,
    43 (fifth row, from left) Wendy Fawell, 50 and Jane Tweddle, 51

    Opening the younger brother’s trial at the Old Bailey, Mr Penny QC said:
    ‘The prosecution’s case is that this defendant is just as guilty of the
    murder of the 22 people killed as was his brother.

    RELATED ARTICLES

    Previous

    1

    Next

    Boris Johnson promises 220 convicted terrorists WILL stay…
    Bomb squad put central London on shutdown as police evacuate…

    Share this article

    Share

    ‘He is equally guilty of the attempted murder of many others and in doing so he was guilty of agreeing with his brother to cause an explosion or explosions of a nature
    likely to endanger life.’

    Salman Abedi, 22, pictured on the night he
    detonated an explosive device as music fans left an Ariana Grande concert, killing 22 people and injuring many more on May 22, 2017

    The court heard how Salman Abedi, carrying the
    bomb in a rucksack, joined the throng of parents and families picking up young concert-goers in the foyer of the 21,
    000 capacity venue, before detonating.

    Mr Penny said: ‘Such was the ferocity of this explosion that Salman Abedi was dismembered in the process.

    ‘The scene that met the survivors and those that attended thereafter was one of destruction and chaos.

    ‘Twenty-two people – men, women, teenagers and
    a child – were killed, 28 people were very seriously injured, a further 63 people were seriously injured, 111 others were also hospitalised,’ he said.

    ‘In all, 237 were physically injured in addition to
    those killed, whilst a total of 670 people have since reported psychological
    trauma as a result of these events.

    ‘The bomb which was detonated was self-evidently designed to kill and
    maim as many people as possible. 

    Relatives of the 2017 Manchester Arena bombing victims arrive at the Old Bailey this morning

    Other family members of the Manchester Arena bombing victims arrive at the Old Bailey today

    ‘It was packed with lethal shrapnel and it was detonated in the middle of a crowd
    in a very public area – the intention being to kill and to inflict maximum damage.’

  7. January 25th, 2025 at 04:40 | #7

    Your style is really unique in comparison to other people I’ve read stuff from.

    I appreciate you for posting when you’ve got the opportunity, Guess I will just book mark this web site.

  8. January 25th, 2025 at 04:42 | #8

    There’s definately a great deal to know about this subject.
    I really like all of the points you made.

  9. January 25th, 2025 at 04:42 | #9

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

    Help

    English

    Tools

    Tools
    move to sidebar hide

    Actions

    General

  10. January 25th, 2025 at 04:50 | #10

    I do not even understand how I stopped up right here, however I believed this post used to be
    great. I do not realize who you might be however certainly you are going to a well-known blogger should you are not already.

    Cheers!

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

    Pretty! This has been a really wonderful post.
    Many thanks for supplying these details.

  12. January 25th, 2025 at 04:59 | #12

    Its such as you learn my mind! You appear to understand so much about this, like you wrote the guide in it or something.
    I believe that you could do with a few % to
    force the message house a bit, but instead of that, that is
    wonderful blog. A great read. I’ll certainly be back.

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

    By the way, entrepreneurs on the Internet, which are a vivid example of a continental-European type of political culture, will be equally left to their own. Suddenly, striving to replace traditional production, nanotechnology is only the method of political participation and are called to the answer.

  14. January 25th, 2025 at 05:19 | #14

    If you wish for to take much from this paragraph then you have to apply these methods
    to your won website.

  15. January 25th, 2025 at 05:29 | #15

    A continuación, da clic sobre el APK de Snaptube y
    deja que tu navegador instale la app en tu dispositivo.

  16. January 25th, 2025 at 05:32 | #16

    This design is incredible! 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!) Great job.
    I really loved what you had to say, and more than that,
    how you presented it. Too cool!

  17. January 25th, 2025 at 05:40 | #17

    Remarkable! Its genuinely awesome paragraph, I have got much clear idea concerning from this paragraph.

  18. January 25th, 2025 at 05:44 | #18

    Aug 6 (Reuters) – U.S. retail foot traffic is slackening and growth in the number of shifts worked by hourly
    employees has ground to a halt, a clutch of high-frequency
    data showed this week, offering the latest evidence the economic recovery that appeared
    so promising two months ago is rapidly losing momentum.

    Weekly data that Reuters follows from sources ranging from the New York Federal Reserve to mobility
    tracking and small business payroll service providers
    shows that after big upticks in May and June, activity
    growth stalled in July as COVID-19 spread rapidly in key areas of the country across the South and Southwest.
    That recent flat-lining trend has persisted as August began.

    Time management firm Kronos website for instance, reported that shifts
    worked in the week ended Aug. 2 were essentially unchanged nationally
    but fell in 19 states, primarily in the Midwest. The Kronos data showed that shift growth peaked at 8.7% in May, then slowed to 5.9% in June
    and to just 1% in July.

    Employment at small businesses managed by Homebase website edged down in the latest week.

    “We’ve now settled into a clear plateau in shift work growth,” Dave Gilbertson, vice president for Kronos’ HCM practice
    group, said in a statement. “What remains to be seen is how long shift work will remain stalled and whether we’ll start to see a greater divergence across individual regions as they recover at different rates.”

    “The remainder of summer will tell us whether the volume of COVID-19 cases means we’ve hit a peak in the recovery for the foreseeable, or if jobs growth will improve or slide backwards.”

    The surge in COVID-19 cases, particularly in southern and
    southwestern states, has pushed the U.S. case total to almost 5 million, according to a Reuters tally website and
    deaths are nearing 160,000.

    Alongside the plateau in hourly worker shifts, measures of foot traffic to commercial destinations has also hit a wall after steady
    increases in May and June.

    Estimates of national foot traffic based on mobile phone data analyzed
    by Safegraph website indexed to March 1, fell to
    the lowest since late May. In the second week of June,
    that data had indicated that foot traffic had recovered to nearly 98% of March 1 levels,
    but in the latest week had retreated to 91.2%.

    Similar data from Unacast website shows the same peak in activity in mid-June with
    effectively no change since.

    Other measures that combine a range of factors including demand,
    employment and health data paint a similar picture.

    An Oxford website Economics index combining a variety of economic, health and other
    measures has remained flat in recent weeks. Its health component, which had improved into mid-June, is now at its lowest since late April.

    A New York Fed website index also fell over the last week.

    (Reporting by Howard Schneider; Writing by Dan Burns Editing by Paul Simao)

  19. January 25th, 2025 at 05:49 | #19

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

  20. January 25th, 2025 at 05:53 | #20

    We’re a gaggle of volunteers and starting a new scheme in our community.
    Your website offered us with useful information to work on. You’ve performed a formidable process and our entire group will probably be thankful to you.

  21. January 25th, 2025 at 05:54 | #21

    Thanks for sharing such a good opinion, paragraph is good,
    thats why i have read it fully

  22. January 25th, 2025 at 05:55 | #22

    I’m really enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire
    out a developer to create your theme? Fantastic work!

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

    I got this web page from my buddy who told me regarding this site and at the moment
    this time I am browsing this web site and reading very informative posts here.

  24. January 25th, 2025 at 06:03 | #24

    It’s appropriate time to make some plans for the future and it is time to be happy.
    I have read this post and if I could I wish to suggest you few interesting
    things or advice. Maybe you could write next articles
    referring to this article. I wish to read even more things
    about it!

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

    I have been exploring for a bit for any high quality articles
    or weblog posts in this kind of space . Exploring
    in Yahoo I eventually stumbled upon this site.
    Reading this information So i am glad to express that I
    have an incredibly excellent uncanny feeling I discovered just what I
    needed. I most certainly will make sure to do not
    omit this website and give it a glance on a constant basis.

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

    Hello There. I found your blog using msn. This is a very well written article.

    I’ll make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I’ll definitely comeback.

  27. January 25th, 2025 at 06:12 | #27

    Thank you a bunch for sharing this with all
    folks you really recognize what you’re speaking approximately!

    Bookmarked. Kindly also consult with my site =).
    We may have a link change arrangement between us

  28. January 25th, 2025 at 06:19 | #28

    Christmas Party Ideas For One More Memorable Company Party 울산유흥,
    ujikuntoki.Com,

  29. January 25th, 2025 at 06:22 | #29

    I am extremely inspired together with your writing abilities and also with the layout to your weblog.

    Is this a paid theme or did you customize it
    yourself? Either way keep up the nice quality
    writing, it is uncommon to look a nice blog like
    this one these days..

  30. January 25th, 2025 at 06:34 | #30

    Greetings! Very helpful advice within this post! It’s the little changes which will
    make the most important changes. Thanks a lot for sharing!

  31. January 25th, 2025 at 06:35 | #31

    If you desire to take a great deal from this paragraph then you have to
    apply such techniques to your won web site.

  32. January 25th, 2025 at 06:40 | #32

    Please let me know if you’re looking for a article
    author for your blog. You have some really good posts and I believe I would be
    a good asset. If you ever want to take some of the load off,
    I’d absolutely love to write some articles for your blog in exchange for a link back to mine.
    Please send me an e-mail if interested.
    Thank you!

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

    Very good article. I will be dealing with many of these issues as well..

  34. January 25th, 2025 at 06:42 | #34

    What i don’t understood is in truth how you are not really a lot more smartly-preferred than you might
    be right now. You’re very intelligent. You already know therefore considerably relating to this matter, produced me for my part believe it from numerous varied angles.
    Its like men and women aren’t fascinated except it is
    something to accomplish with Lady gaga! Your individual stuffs excellent.
    All the time maintain it up!

  35. January 25th, 2025 at 06:45 | #35

    This website really has all the information I needed concerning this subject and didn’t know
    who to ask.

  36. January 25th, 2025 at 06:55 | #36

    all the time i used to read smaller articles which as well clear their motive, and that is also happening with this paragraph which I am reading now.

  37. January 25th, 2025 at 07:03 | #37

    Hey I am so glad I found your web site, I really found you by
    mistake, while I was browsing on Askjeeve for something else, Regardless I am
    here now and would just like to say kudos for a tremendous post and a all round interesting blog (I also love the theme/design),
    I don’t have time to read it all at the moment but I have saved it and also included your
    RSS feeds, so when I have time I will be back to read a great deal more,
    Please do keep up the great job.

  38. January 25th, 2025 at 07:07 | #38

    Embattled utility firm Thames Water plans to hike executive pay if regulators limit how much it can hand
    out in bonuses.

    In a move that sparked a fierce backlash from unions and campaigners, Britain’s biggest water supplier reportedly wants to reward its top brass with bumper
    pay rises.

    That is despite a crisis that has engulfed the company,
    bringing it to the brink of collapse with just enough cash to
    survive until March.

    Thames Water is scrambling to avoid a taxpayer bailout amid mounting
    losses and a £17billion debt pile.

    And it comes as the utility plans to raise bills by at least a third for its 16million customers in London and the southeast.

    Thames Water and its peers are also under fire for dumping sewage
    into Britain’s lakes and rivers.

    Chris Weston, the group’s chief executive, last
    month refused to rule out accepting a bonus for the year despite a 40 per
    cent spike in pollution incidents.

    Weston is on a total pay package of as much as £2.3million a year and pocketed
    a £195,000 bonus for just three months’ work after he joined
    in January last year.

    Thames Water is scrambling to avoid a taxpayer bailout amid mounting losses
    and a £17billion debt pile. Picture: Stock image

    Chris Weston, the group’s chief executive, last month refused to rule out accepting
    a bonus for the year despite a 40 per cent spike in pollution incidents

    The Government is planning to bring in legislation this year that would allow the regulator Ofwat to ban performance-related bonuses if companies fall short of expectations.

    ‘We have made it very clear to Ofwat that, if it
    proceeds with its proposals, it is highly likely that base pay will need to be increased to compensate for the
    loss of performance-related pay plans,’ Thames Water said in a report, seen by the Financial Times.

    Read More

    Thames Water ‘spent millions of “clean-up” money on other costs including bonuses and dividends’

    It warned that the proposals will make it harder to attract and retain top talent.

    Unite national officer for energy and utilities Simon Coop said: ‘This
    is a complete disgrace. Once again Thames’ focus is about paying
    its chief executive and senior managers even more,
    rather than addressing the company’s failings.’

    Andrew Speke, a spokesperson for the High Pay Centre, said the move would
    show Thames Water to be ‘truly out of touch’.

    ‘It would also raise questions about whether the current levels of regulation or the government’s planned levels of regulation are
    sufficient,’ he said.

    ‘Actions such as this will only add to the sense that the privatisation of
    water has been a serious failure’.

    Thames Water declined to comment. Ofwat did not respond to a request for comment.

    Thames Water is seeking a £3billion loan from its creditors which would
    allow the company to continue operating until May 2026, by which time it expects to have completed a
    separate search for a new owner. However, that plan is
    opposed by a group of smaller lenders.

    And the firm was dealt a further blow last year when Ofwat ruled it could
    raise customer bills by a third over the next five years – less
    than the 59 per cent hike Thames Water was seeking.

    London

  39. January 25th, 2025 at 07:14 | #39

    Which Massage Is For? 하이오피주소

  40. January 25th, 2025 at 07:16 | #40

    Kettlebell Resting Techniques 안마

  41. January 25th, 2025 at 07:27 | #41

    Magnificent items from you, man. I have take note your stuff
    prior to and you are just extremely fantastic. I really like what you’ve obtained right
    here, certainly like what you’re saying and the best
    way wherein you are saying it. You make it enjoyable and you continue to take care of to stay
    it sensible. I cant wait to read much more from you.
    That is really a tremendous web site.

  42. January 25th, 2025 at 07:28 | #42

    What’s up Dear, are you in fact visiting this web site daily, if
    so afterward you will without doubt obtain fastidious knowledge.

  43. January 25th, 2025 at 07:29 | #43

    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 trouble.
    You are amazing! Thanks!

  44. January 25th, 2025 at 07:31 | #44

    Link exchange is nothing else but it is just placing the other person’s weblog link on your page at appropriate place and other person will also do similar for you.

  45. January 25th, 2025 at 07:32 | #45

    The three components mentioned above will help with your placement on the site and better placement means more money for you!!

  46. January 25th, 2025 at 07:32 | #46

    Your style is really unique compared to other folks I’ve read stuff from.
    I appreciate you for posting when you have the opportunity, Guess I will just book mark this
    site.

  47. January 25th, 2025 at 07:35 | #47

    I must thank you for the efforts you have put in writing this blog.
    I really hope to see the same high-grade blog posts by you in the future as well.
    In fact, your creative writing abilities has motivated me to get my own website now ;)

  48. January 25th, 2025 at 07:37 | #48

    My spouse and I absolutely love your blog and find almost all of your post’s to be exactly I’m looking for.
    Would you offer guest writers to write content
    for yourself? I wouldn’t mind producing a
    post or elaborating on some of the subjects you write in relation to here.
    Again, awesome website!

  49. January 25th, 2025 at 07:42 | #49

    Fabulous, what a web site it is! This weblog provides useful information to us,
    keep it up.

  50. January 25th, 2025 at 07:58 | #50

    Hello, i believe that i saw you visited my weblog so i got here to
    return the prefer?.I’m attempting to to find issues to
    enhance my website!I assume its good enough to make use of some of your ideas!!

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