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 19th, 2025 at 01:23 | #1

    The 5 Things I Learned About Business While Visiting 6 Flags Great America Hiop

  2. January 19th, 2025 at 01:24 | #2

    My spouse and I stumbled over here different page and thought I may as well check things out.
    I like what I see so i am just following you. Look forward to looking into your web page for a second time.

  3. January 19th, 2025 at 01:30 | #3

    Hello there! I could have sworn I’ve been to this blog before but after checking through some of the
    post I realized it’s new to me. Anyhow, I’m definitely happy I found it and
    I’ll be book-marking and checking back often!

  4. January 19th, 2025 at 01:37 | #4

    Singles Bar hiop

  5. January 19th, 2025 at 01:44 | #5

    No matter if some one searches for his essential thing, therefore
    he/she wants to be available that in detail, therefore that thing is maintained over here.

  6. January 19th, 2025 at 01:44 | #6

    Hookah Lounge 유흥사이트

  7. January 19th, 2025 at 01:47 | #7

    Luxury Lounge 오피커뮤니티 (Odell)

  8. January 19th, 2025 at 01:47 | #8

    digital signage display, http://www.jointcorners.com,

    I know this if off topic but I’m looking into starting my
    own weblog and was wondering what all is required to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% sure. Any suggestions or advice would be greatly appreciated.
    Thank you

  9. January 19th, 2025 at 01:48 | #9

    Well-written and easy to understand.

  10. January 19th, 2025 at 01:49 | #10

    At this time it appears like Expression Engine is the top blogging platform
    out there right now. (from what I’ve read) Is that what you’re using on your blog?

  11. January 19th, 2025 at 01:51 | #11

    I know this website offers quality dependent posts and additional material, is there
    any other site which provides these kinds of data in quality?

  12. January 19th, 2025 at 01:52 | #12

    Hey There. I found your blog using msn. This is a very well written article.
    I will make sure to bookmark it and return to read more
    of your useful information. Thanks for the post.

    I’ll definitely comeback.

  13. January 19th, 2025 at 01:52 | #13

    I enjoy what you guys tend to be up too. This kind of cleverr work and exposure!
    Keepp up the fantastic works gguys I’ve included yyou guys
    to my personal blogroll.
    관절보궁효능

  14. January 19th, 2025 at 01:57 | #14

    Ahaa, its fastidious dialogue about this piece of writing at this place at this website, I have
    read all that, so now me also commenting here.

  15. January 19th, 2025 at 01:58 | #15

    For most recent news you have to visit internet and
    on world-wide-web I found this web site as a finest web site for latest updates.

  16. January 19th, 2025 at 02:06 | #16

    Pretty! This has been a really wonderful article. Thanks
    for providing this information.

  17. January 19th, 2025 at 02:11 | #17

    I am not sure where you’re getting your info, but great topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for magnificent info I was looking for this info for my mission.
    서울 디스크 한의원

  18. January 19th, 2025 at 02:20 | #18

    Happy Hour 오피사이트 (humanlove.Stream)

  19. January 19th, 2025 at 02:26 | #19

    Learn Card Magic Tricks 다바오 vpn, https://talktoislam.com/user/usegander3,

  20. January 19th, 2025 at 02:59 | #20

    Excellent article. Keep posting such kind of info on your site.
    Im really impressed by it.
    Hey there, You have done an excellent job. I’ll definitely digg it and in my opinion recommend to my friends.
    I am confident they’ll be benefited from this website.

  21. January 19th, 2025 at 03:03 | #21

    Do You Possess A Strip Club Addiction? 오피

  22. January 19th, 2025 at 03:12 | #22

    Top 5 Things In Order To In Per Spa 부달 [las-palmas-24.Com]

  23. January 19th, 2025 at 03:16 | #23

    Hosting A Bridal Shower In A Spa 하이오피

  24. January 19th, 2025 at 03:18 | #24

    Hey! I just wanted to ask if you ever have any problems with hackers?

    My last blog (wordpress) was hacked and I ended up losing
    many months of hard work due to no backup. Do you have any solutions to protect against hackers?

  25. January 19th, 2025 at 03:41 | #25

    Visiting Temple Bar In Dublin, Ireland 오피사이트

  26. January 19th, 2025 at 03:45 | #26

    Romantic Evening 오피사이트

  27. January 19th, 2025 at 03:52 | #27

    While the full extent of the devastation in Vanuatu remains
    unclear, Australia will be among countries deploying assistance to the earthquake-struck Pacific nation.

    At lunchtime on Tuesday, a 7.3 magnitude tremor rattled nearby Port
    Vila for 30 seconds, causing destruction in the capital.

    A building housing the United States, United Kingdom, French and New Zealand diplomatic posts
    was among the worst hit, with the bottom floor of the US embassy
    crushed by the above floors.

    Remarkably, the US and other nations have reported all of their staff to be
    safe.

    Others have not been so lucky.

    “Many victims in the country, flights suspended, communications cut, no water or electricity, we are organising relief,” French ambassador to Vanuatu and Solomon Islands,
    Jean-Baptiste Jeangene Vilmer, posted on social media.

    Très fort tremblement de terre au Vanuatu, ambassade détruite (déchirée en 2, rez-de-chaussée ambassade écrasée), personnel sain et sauf
    mais nombreuses victimes dans le pays, vols suspendus, comm coupées, ni eau ni électricité, organisons secours ., num
    urgence à venir pic.twitter.com/IZjr2VjVGu

    — Jean-Baptiste Jeangène Vilmer (@jeangene_vilmer)
    December 17, 2024

    In a broadcast by news outlet VBTC, caretaker Prime Minister Charlot Salwai issued a state
    of emergency for seven days, and instituted a curfew – except for essential
    services – from 6pm to 6am.

    It is not yet clear how many people have been injured or lost their
    lives, owing to telecommunications failures after the earthquake.

    Those that were able to communicate with the
    outside world were largely able to do so through Starlink, including journalist Dan McGarry.

    “I know of one fatality according to police stationed at Port Vila Central Hospital, and I saw with my own eyes three others on gurneys … I’m expecting the casualty figure to rise,” he told AAP about three hours after the earthquake.

    Mr McGarry has documented landslips around the capital, including
    a major blockage of a key road near the country’s chief international port,
    in addition to destruction of buildings.

    Many photos on social media show collapsed buildings,
    one which has crumpled cars underneath.

    “People died and many more were hurt. Some have lost their home, and many will find it hard to get back to work. Repairs will likely stretch for years, as they always do in the wake of disaster,” Mr McGarry posted on X.

    “But people are pulling together as only Vanuatu knows how. We will get through this. We always do.”

    More than 80 islands make up Vanuatu, and it is also unclear how the
    350,000-strong population is faring in towns and settlements outside the capital.

    Australian Foreign Minister Penny Wong called the disaster a
    “dreadful tragedy,” and with acting Pacific Minister Matt Keogh,
    said Australia would be rushing to its neighbour’s aid.

    “Australia stands with the people of Vanuatu … we are family and we will always be there in times of need,” the pair said in a statement. 

    “Early reports indicate that significant damage has occurred. The Australian government is preparing to deploy immediate assistance (from Wednesday), including urban search and rescue and emergency medical teams.  

    “We are closely monitoring the situation and stand ready to provide further assistance to
    the people of Vanuatu as the extent of damage becomes
    clear.” 

    The Australian Government is preparing to deploy immediate assistance to Vanuatu from tomorrow, including urban search and rescue and emergency medical teams.

    We’re closely monitoring the situation and stand ready to provide further assistance to the people of Vanuatu.

    — Senator Penny Wong (@SenatorWong) December 17, 2024

    Mr Jeangene Vilmer said France was working with Australia and New Zealand to co-ordinate the disaster response.

    The disaster has also occurred at a moment of political turmoil in the Melanesian country.

    Mr Salwai dissolved parliament last month, setting the stage for a snap election on January 14, only for opposition MPs to mount a constitutional challenge to his move.

    While a first case was dismissed by the Supreme Court last week, former prime minister Ishmael Kalsakau has announced they are appealing that judgment – which was due to be heard before Christmas.

  28. January 19th, 2025 at 03:53 | #28

    Five Top Day Spa Services To Pamper Yourself With 광주알밤

  29. January 19th, 2025 at 03:56 | #29

    I’m gone to say to my little brother, that he should also pay a visit this website on regular basis to get
    updated from most recent reports.

  30. January 19th, 2025 at 04:00 | #30

    Health Great Things About Massage Chair Therapy 출장안마

  31. January 19th, 2025 at 04:08 | #31

    I like it when individuals get together and share
    thoughts. Great website, continue the good work!

  32. January 19th, 2025 at 04:28 | #32

    Hmm it looks like your blog ate my first comment (it was extremely 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 the whole thing. Do you have any helpful hints for first-time
    blog writers? I’d definitely appreciate it.

  33. January 19th, 2025 at 04:36 | #33

    Wonderful items from you, man. I have bear in mind your stuff previous to and you are simply
    too excellent. I really like what you’ve acquired here, certainly like
    what you’re stating and the best way wherein you assert it.
    You are making it entertaining and you continue to take care of to keep it
    sensible. I cant wait to read far more from you. That is actually a terrific site.

  34. January 19th, 2025 at 04:39 | #34

    A Forgotten Marketing Tool – The Postcard 에볼루션
    크레이지타임

  35. January 19th, 2025 at 04:41 | #35

    You Are Able To Bring To Mind A Portable Hot Tub 부달 (Https://Plantsg.Com.Sg:443/Bbs/Board.Php?Bo_Table=Mainboard&Wr_Id=9475833)

  36. January 19th, 2025 at 04:54 | #36

    What Epidermis Mobile Phone Covers Motor Scooters? 다바오다운로드

  37. January 19th, 2025 at 05:19 | #37

    Home Business Tips – Control What You Could davao

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

    Pub Crawl 오피

  39. January 19th, 2025 at 05:32 | #39

    LMCHING, a premier shopping platform renowned for its curated selection of high-end elegance and lifestyle products, is unlocking brand-new possibilities for customers with the intro of wise functions and a broadened international delivery strategy.

    With a focus on enhancing ease of access and client complete satisfaction, LMCHING now focuses on delivery to major global markets, consisting of the United States, United Kingdom, Australia, Canada, France, Singapore, Switzerland, the UAE, Germany, and New Zealand.

    By widening its reach, LMCHING makes certain that customers in these regions appreciate structured access to luxury elegance products.

    LMCHING’s intelligent features exist at the core of its platform, boosting the buying trip with ingenious tools and user-focused improvements.

    With innovative search performances, customized recommendations, and comprehensive product details, LMCHING equips customers to go shopping confidently and knowledgeably.

    By supplying both simplicity and personalization, LMCHING’s wise attributes create an even more appealing and easy to use purchasing trip for its clients.

    The platform’s strong collaborations with world-renowned skin care brand names SkinCeuticals and HELENA RUBINSTEIN further strengthen its success and management in deluxe appeal.

    SkinCeuticals and HELENA RUBINSTEIN symbolize technology, scientific quality, and luxury, making them standout highlights within LMCHING’s curated offerings.

    SkinCeuticals, understood for its professional-grade knowledge, leads the marketplace with innovative solutions based in extensive scientific study.

    Flagship offerings like C E Ferulic, HA Intensifier, and Triple Lipid Restore 2:4:2 target crucial skin care issues, consisting of anti-aging, hydration, and defense from ecological variables.

    With clinically validated results, SkinCeuticals’ offerings supply targeted performance that makes the count on of skin doctors and skincare enthusiasts alike.

    A sign of high-end and development, HELENA RUBINSTEIN blazes a trail in redefining premium skin care with its revolutionary item collections.

    The Prodigy Cellglow, Powercell Skinmunity, and Re-Plasty lines integrate advanced technology with extravagant treatment, providing exceptional skin care results.

    With a focus on skin renewal and revitalization, HELENA RUBINSTEIN’s offerings supply noticeable renovations for those who value high-end and efficiency.

    With its expanded global shipping capacities, LMCHING makes sure that clients in key markets such as the US, UK, Canada, and Singapore can currently enjoy faster distribution and better access to these prominent charm brand names.

    With its refined logistics, LMCHING uses a seamless investing in procedure for consumers in Switzerland, UAE, Germany, Australia, and New Zealand, removing barriers to international elegance access.

    LMCHING’s cutting-edge system devices, combined with its devotion to worldwide reach, strongly position the brand as a leader in premium elegance shopping.

    Via instinctive navigation, customized recommendations, and phenomenal item high quality, LMCHING provides an interesting and smooth purchasing experience customized to worldwide clients.

    LMCHING’s commitment to client value is exemplified by its collaborations with world-renowned elegance partners, guaranteeing superior offerings for its individuals.

    By featuring around the world well-known brand names such as SkinCeuticals and HELENA RUBINSTEIN, LMCHING ensures accessibility to advanced, cutting-edge elegance products that deliver proven outcomes.

    From SkinCeuticals’ medically tried and tested serums to HELENA RUBINSTEIN’s elegant anti-aging treatments, LMCHING ensures its individuals have easy accessibility to premium, first-rate skin care options.

    Through its wise attributes and maximized shipping, LMCHING continues to develop phenomenal possibilities for global elegance shoppers, offering a premium online retail experience.

    Concentrated on redefining convenience, technology, and high-end, LMCHING offers seamless charm options to customers in major regions such as the United States, United Kingdom, Australia, Canada, France, Singapore, Switzerland, UAE, Germany, and New Zealand.

    Here is my web site: genuine Helena Rubinstein and SkinCeuticals beauty items, https://git.raiseyourjuice.com/lirtristan9361/skinceuticals-items-and-also-helena-rubinstein-products2021/wiki/LMCHING+Opens+Up+New+Horizons+with+Intelligent+Equipment+and+Enhanced+Worldwide+Shipment,

  40. January 19th, 2025 at 05:32 | #40

    An intriguing discussion is definitely worth comment. I believe that you ought to
    write more about this subject matter, it may not be a taboo subject but usually folks don’t
    discuss such issues. To the next! Best wishes!!

  41. January 19th, 2025 at 05:42 | #41

    How Take A Trip For Free By Leading Or Promoting Tours 밤문화 (Deandre)

  42. January 19th, 2025 at 05:51 | #42

    Massage Chairs Work Wonders For To Reduce Stress 하이오피

  43. January 19th, 2025 at 05:51 | #43

    Options For Wedding Venues 광주키스방

  44. January 19th, 2025 at 06:15 | #44

    Kicking It In California Luxury Budal

  45. January 19th, 2025 at 06:36 | #45

    Gentlemen’s Club OP

  46. January 19th, 2025 at 06:47 | #46

    Thanks very nice blog!

  47. January 19th, 2025 at 06:49 | #47

    Hello terrific website! Does running a blog such as this require a lot of
    work? I have no expertise in computer programming however I was hoping to start my own blog in the near future.
    Anyhow, if you have any recommendations or tips for new blog owners please share.
    I know this is off subject but I just wanted to ask. Thank you!

  48. January 19th, 2025 at 06:55 | #48

    bokep terbaik sma toket gede menyala banget

  49. January 19th, 2025 at 07:02 | #49

    Very good blog! Do you have any tips and hints for aspiring writers?
    I’m planning to start my own blog soon but I’m a little lost on everything.
    Would you recommend starting with a free platform like WordPress or go for a paid option? There are so many
    options out there that I’m completely overwhelmed ..
    Any recommendations? Thanks a lot!

  50. January 19th, 2025 at 07:11 | #50

    Benefits Of Poker Heads Up Display 다바오 발코니있는
    호텔

Comment pages
1 110 111 112 113 114 151 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