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 1st, 2025 at 20:31 | #1

    Appreciating the hard work you put into your website and in depth information you offer.

    It’s good to come across a blog every once in a while that isn’t the same out of date rehashed information. Wonderful read!
    I’ve bookmarked your site and I’m including your RSS feeds to
    my Google account.

  2. January 1st, 2025 at 20:35 | #2

    It is not my first time to pay a visit this web
    page, i am visiting this web page dailly and take fastidious data from here daily.

  3. January 1st, 2025 at 20:40 | #3

    Does your website have a contact page? I’m having problems locating
    it but, I’d like to send you an e-mail. I’ve got some creative ideas for your
    blog you might be interested in hearing. Either way, great blog and I look forward to seeing it improve over time.

  4. January 1st, 2025 at 20:45 | #4

    Spa Therapy 대구유흥

  5. January 1st, 2025 at 20:45 | #5

    I visited various web sites except the audio quality for audio
    songs existing at this website is truly marvelous.

  6. January 1st, 2025 at 20:46 | #6

    How Realize If A Roulette System Will Fail – Without Purchasing It 트리플에스 에볼루션

  7. January 1st, 2025 at 20:49 | #7

    Night Club 오피

  8. January 1st, 2025 at 21:00 | #8

    Happy Hour 광주키스방

  9. January 1st, 2025 at 21:08 | #9

    Late Night Fun HiOP

  10. January 1st, 2025 at 21:24 | #10

    Hi everyone, it’s my first pay a visit at this web site, and article is actually fruitful for me,
    keep up posting these content.

  11. January 1st, 2025 at 21:32 | #11

    Excellent blog here! Also your web site rather a lot up very
    fast! What web host are you the use of? Can I get your
    associate hyperlink to your host? I desire my web site loaded up as
    fast as yours lol

  12. January 1st, 2025 at 21:37 | #12

    If some one wants to be updated with latest technologies afterward
    he must be visit this web site and be up to date everyday.

  13. January 1st, 2025 at 21:59 | #13

    Hookah Lounge 오피커뮤니티

  14. January 1st, 2025 at 22:17 | #14

    Hey there! Do you know if they make any plugins to protect against hackers?

    I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?

  15. January 1st, 2025 at 22:27 | #15

    Make Money Online with MillionFormula

    I am really loving the theme/design of your
    web site. Do you ever run into any internet browser compatibility problems?
    A number of my blog visitors have complained about my
    site not working correctly in Explorer but looks great in Safari.
    Do you have any solutions to help fix this problem?

  16. January 1st, 2025 at 22:41 | #16

    Sweet blog! I found it while surfing around on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News? I’ve
    been trying for a while but I never seem
    to get there! Appreciate it

  17. January 1st, 2025 at 22:43 | #17

    Social Gathering 대구유흥 (Shayna)

  18. January 1st, 2025 at 22:55 | #18

    Everything is very open with a precise clarification of the issues.
    It was definitely informative. Your website is very helpful.

    Many thanks for sharing!

  19. January 1st, 2025 at 23:13 | #19

    For a natural-trying contour, attempt a matte face powder about two shades deeper than your pure
    skin tone. Begin with a inexperienced primer base to tone down redness after which prime with yellow-toned mineral basis.
    Then a witness got here ahead to help the accusers, followed by extra
    townspeople who described earlier acts of witchcraft supposedly carried out by Bishop.
    But the guys at Stuff They Don’t want You To Know attempt to uncover
    it in one among their latest podcasts: The reality
    Concerning the Salem Witch Trials the place hosts Matt Frederick and Ben Bowlin chat with particular
    visitor Aaron Mahnke, who is the brains behind the smash darkish history
    podcasts Lore and Unobscured. They’re careful planners who take one
    step at a time toward making a dream come true.
    Then Mather’s son, Enhance Mather, protested as effectively, writing, “It had been better that 10 suspected witches ought to escape than one innocent particular person be condemned.” Then, when his personal spouse was accused of witchcraft, Gov.

    But by then, people had already been sent to their graves, or
    wrongfully imprisoned for greater than a yr. The hysteria lasted little more than a year before the
    native authorities deemed the trials a mistake
    and attempted to compensate the families of those who were convicted and hanged.

  20. January 1st, 2025 at 23:59 | #20

    Howdy! I’m at work browsing your blog from my
    new iphone 3gs! Just wanted to say I love reading your blog
    and look forward to all your posts! Carry on the superb work!

  21. January 2nd, 2025 at 00:10 | #21

    Sensual Massage 부산

  22. January 2nd, 2025 at 00:24 | #22

    Romantic Evening 출장

  23. January 2nd, 2025 at 00:50 | #23

    After Hours 오피커뮤니티

  24. January 2nd, 2025 at 00:59 | #24

    Nightlife 알밤

  25. January 2nd, 2025 at 00:59 | #25

    After Hours 부달최신주소

  26. January 2nd, 2025 at 01:30 | #26

    Excellent post. I will be facing many of these issues as well..

  27. January 2nd, 2025 at 01:46 | #27

    Night Spa OP

  28. January 2nd, 2025 at 01:59 | #28

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

  29. January 2nd, 2025 at 02:27 | #29

    Whiskey Bar 유흥사이트

  30. January 2nd, 2025 at 03:26 | #30

    Phim sex địt nhau của Nhật Bản, Việt Nam, và các châu á, châu âu.
    daycuroachinhhang.com địt nhau mạnh bảo nhất,
    xem phim sex tải nhanh xem sướng nhất hội.

  31. January 2nd, 2025 at 03:27 | #31

    Club Vibes 유흥사이트

  32. January 2nd, 2025 at 03:47 | #32

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

  33. January 2nd, 2025 at 04:05 | #33

    Hey there, I think your blog might be having browser compatibility issues.
    When I look at your blog in Chrome, 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, wonderful blog!

  34. January 2nd, 2025 at 04:15 | #34

    This piece of writing will assist the internet viewers for setting up new
    webpage or even a weblog from start to end.

  35. January 2nd, 2025 at 04:21 | #35

    Top Four Marketing Strategies Of Building An Authority Practice 에볼루션 알본사 (https://asian-tiger.click/2024/02/21/ドリスピ/comment-page-28/)

  36. January 2nd, 2025 at 04:26 | #36

    For latest news you have to pay a quick visit the web and on internet I found this site as
    a finest web page for newest updates.

  37. January 2nd, 2025 at 05:52 | #37

    We are a group of volunteers and starting a brand new
    scheme in our community. Your website offered us with helpful info to
    work on. You have done a formidable activity and our entire group can be grateful to
    you.

  38. January 2nd, 2025 at 06:09 | #38

    Night Out 부산

  39. January 2nd, 2025 at 06:34 | #39

    Private Club 논현오피 (Charis)

  40. January 2nd, 2025 at 06:56 | #40

    Wine Tasting 압구정오피 (http://palangshim.com/space-uid-2861685.html)

  41. January 2nd, 2025 at 07:13 | #41

    Thanks very interesting blog!

  42. January 2nd, 2025 at 08:08 | #42

    Crypto market predictions
    Understanding the future of digital assets can feel like navigating
    a maze. The potential for financial gain excites many, while others are cautious due
    to unpredictability. Amidst the rapidly changing landscape, there’s a
    need for clarity. Predictions arise from trends, insights, and historical data – all of which
    weave a complex tapestry of possibilities.
    Investors crave knowledge about what comes next. The chatter around these virtual currencies often heightens anticipation. With so
    many variables at play, it’s easy to see why many are captivated.
    Will certain assets soar, or will others crash?
    Experts analyze patterns and dynamics to forecast outcomes.
    They look for hints hidden within charts and the broader economic context.
    Remarkably, despite the noise, some trends seem to reveal
    a glimpse of the possible future. The intertwining
    of technology and finance creates a fascinating scenario that merits exploration.
    As we delve into this intriguing subject, it’s essential to approach
    it with an open mind. Insights may surprise you, while strategies to
    consider can shift perspectives. The allure lies in the potential journeys of various digital tokens.
    Each has its own story and trajectory that piques interest.

    Future Trends in Cryptocurrency Investment
    The landscape of digital currency investment is constantly evolving.
    As technology progresses, so do the strategies and opportunities available to investors.
    It’s essential to keep an eye on what lies ahead.
    Change is the only constant in this fast-paced environment.
    Emerging trends hint at exciting possibilities for those willing to adapt.

    More people are entering this space. Increased accessibility is a significant factor here.
    With user-friendly platforms, anyone can get involved.
    Investors now have a broader range of options than ever. Meanwhile, institutions are
    taking notice.
    Institutional interest is surging, which is likely to reshape the entire ecosystem.
    High-profile companies are integrating these financial assets into their portfolios, showcasing a growing acceptance that can instill confidence among individual investors.
    Furthermore, regulatory clarity is gradually developing, paving the
    way for a more structured and secure investing environment.

    Another trend to watch is the rise of decentralized finance.
    The idea of eliminating intermediaries is gaining
    traction. This shift could lead to new models of lending, borrowing, and investing.

    People are beginning to understand the potential for higher returns.

    Yet, it also carries distinct risks.
    Alternative assets are capturing attention, as diversity becomes
    crucial in any portfolio strategy. New financial instruments are emerging, allowing investors to hedge against
    traditional market volatility. As developments unfold, we will likely see an increase in hybrid investment strategies that utilize both established and innovative assets.

    The incorporation of advanced technologies is also on the horizon. Blockchain’s capabilities extend far beyond
    mere transactions. Smart contracts, for example, are streamlining agreements while
    enhancing security. The more we explore, the more potential applications we discover.

    In conclusion, the future of investing in digital
    currencies is marked by innovation and uncertainty.
    Savvy investors must remain vigilant and adaptable. Trends will shift, technologies will develop, and new opportunities
    will arise. By staying informed and flexible, one
    can navigate this dynamic landscape effectively.
    Factors Influencing Market Fluctuations
    The world of digital finance is incredibly dynamic. Prices can soar or
    plummet within hours. Understanding what drives these changes is crucial for any stakeholder.
    Various elements play a role in shaping these rapid shifts.
    From technological advancements to regulatory updates, the
    landscape is constantly evolving.
    Investor sentiment is a powerful force. Emotions can lead to
    swift buying or selling. Speculation often breeds volatility.
    In this environment, news events have an outsized impact.
    A single Tweet from a prominent figure can set
    a cascade of reactions in motion, triggering widespread buying
    frenzies or panic selling.
    Technological innovations also contribute
    significantly. The development of new platforms and features can alter perceptions about value.
    Concepts like decentralized finance are reshaping traditional views.
    Moreover, the integration of more advanced security measures instills confidence among users.
    When people feel safer, they are more willing
    to invest, thus affecting valuations.
    Regulatory changes cannot be overlooked. Announcements from governments or
    financial authorities can create ripples, leading to abrupt alterations in behavior.
    A favorable regulation might spark optimism, encouraging new participants
    to join. Conversely, restrictive measures can deter engagement
    and cause price drops. The interplay between regulation and user participation creates a
    complex web that is always in flux.
    Finally, external economic conditions weigh heavily.
    Global trends, such as inflation rates and economic stability, influence
    decisions at every level. As investors seek safe havens during uncertainty, they may shift focus to more stable
    assets, leaving less traditional alternatives vulnerable to erratic price swings.
    Overall, multiple interconnected factors shape the vibrant realm of digital assets, making it a subject of
    continuous intrigue and analysis.
    Analyzing Blockchain Technology Developments
    The evolution of distributed ledger systems is fascinating.
    Innovations emerge rapidly and often reshape entire sectors.

    New methodologies and applications are being introduced continually.
    This technology holds the potential to enhance transparency and security.

    Moreover, ongoing advancements foster a greater understanding of decentralized networks.

    Stakeholders from various industries are exploring how these systems can improve their operations.
    The possibilities are vast, with applications ranging from finance to supply chain management.

    Every new breakthrough prompts a wave of curiosity and excitement.
    Developers are now focusing on scalability, interoperability,
    and energy efficiency–key challenges that must be addressed.
    As solutions to these issues emerge, adoption rates may increase significantly.

    In addition, collaboration among companies and researchers is essential for
    driving innovation forward. By working together,
    they can identify weaknesses and reinforce the technology’s
    foundation. This collective effort may lead to the development of more robust and user-friendly
    platforms.
    The impact of these technological strides extends beyond mere enhancement
    of existing systems. It invites a fundamental rethinking of traditional processes, challenging established norms and regulations.
    As organizations begin to embrace these changes, we can expect to
    witness a transformation in how business is conducted.

  43. January 2nd, 2025 at 08:21 | #43

    Dance Club 역삼오피

  44. January 2nd, 2025 at 08:21 | #44

    807957 969877What a outstanding viewpoint, nonetheless is just not produce every sence by any means discussing this mather. Just about any technique thanks and also i had try and discuss your post directly into delicius but it surely appears to be an problem inside your blogging is it possible you need to recheck this. thank you just as before. 897977

  45. January 2nd, 2025 at 08:31 | #45

    Things Understand Before Opening An Online Bank Account 다바오 e&g

  46. January 2nd, 2025 at 08:32 | #46

    bokep terbaik sma toket gede menyala banget

  47. January 2nd, 2025 at 08:40 | #47

    Excellent post. I was checking continuously
    this blog and I’m inspired! Very useful info particularly the ultimate
    part :) I care for such information much. I was seeking this particular information for a very long time.
    Thanks and good luck.

  48. January 2nd, 2025 at 08:56 | #48

    Actually when someone doesn’t understand afterward its up to other users that they
    will help, so here it occurs.

  49. January 2nd, 2025 at 08:57 | #49

    5 Things To Consider Before Playing At On Online Casino 우리카지노 에볼루션

  50. January 2nd, 2025 at 09:02 | #50

    There is certainly a great deal to know about this topic. I like all the points you’ve made.

Comment pages
1 49 50 51 52 53 57 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