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 21:07 | #1

    Las Vegas Vip Nightclub Tours 하이오피

  2. January 19th, 2025 at 21:10 | #2

    Exclusive Nightlife 압구정오피

  3. January 19th, 2025 at 21:12 | #3

    I need to to thank you for this wonderful read!!

    I absolutely loved every little bit of it. I have got you bookmarked to look at new things you post…

  4. January 19th, 2025 at 21:16 | #4

    Hi colleagues, good post and nice arguments commented here, I am
    genuinely enjoying by these.

  5. January 19th, 2025 at 21:22 | #5

    Full Service Spa 하이오피

  6. January 19th, 2025 at 21:24 | #6

    Do you have a spam issue on this website; I also am a blogger, and I was wantig to know
    your situation; we have created some nice procedures and we are
    looking to swap solutions with others, why not shoot me aan e-mail if
    interested.
    관절보궁효능

  7. January 19th, 2025 at 21:32 | #7

    Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you!

    By the way, how could we communicate?

  8. January 19th, 2025 at 21:35 | #8

    Las Vegas Nightclubs – Vip Hosting And Many Distinct Music 하이오피사이트

  9. January 19th, 2025 at 21:40 | #9

    Picking Restaurants When You Travel 하이오피

  10. January 19th, 2025 at 21:52 | #10

    No Deposit Casino Bonus – The Myth And Realities 해외 에볼루션 사이트

  11. January 19th, 2025 at 21:55 | #11

    Preparing For Your Wedding Day – The Actual Right
    Venue 부달사이트 (Aleida)

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

    Planning A Hen Night In A Town BUDAL

  13. January 19th, 2025 at 22:14 | #13

    Its such as you read my thoughts! You seem to know so much approximately this, such as you
    wrote the e book in it or something. I think that you could do
    with a few p.c. to power the message home a bit, however instead
    of that, that is magnificent blog. An excellent read.
    I’ll definitely be back.

  14. January 19th, 2025 at 22:16 | #14

    Camping conspiracies do not allow situations in which many well -known personalities are functionally spaced into independent elements. As has already been repeatedly mentioned, entrepreneurs on the Internet, which are a vivid example of the continental-European type of political culture, will be equally left to themselves.

  15. January 19th, 2025 at 22:23 | #15

    VIP Experience 광주키스방 [Rvolchansk.ru]

  16. January 19th, 2025 at 22:27 | #16

    Nicely put. Kudos.

  17. January 19th, 2025 at 22:43 | #17

    Singles Bar Budal

  18. January 19th, 2025 at 22:45 | #18

    I am genuinely thankful to the owner of this site who has shared
    this wonderful post at at this place.

  19. January 19th, 2025 at 22:50 | #19

    Mobile Card Processing – An Efficient Tool For Merchants 다바오환전

  20. January 19th, 2025 at 22:56 | #20
  21. January 19th, 2025 at 23:05 | #21

    Wow! This blog looks exactly like my old one!
    It’s on a completely different topic but it has pretty much the same layout and design. Great choice of colors!

  22. January 19th, 2025 at 23:09 | #22

    Romantic Evening 오피

  23. January 19th, 2025 at 23:30 | #23

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

  24. January 19th, 2025 at 23:31 | #24

    VIP Service 부산

  25. January 19th, 2025 at 23:47 | #25

    This excellent website certainly has all the info I wanted concerning this
    subject and didn’t know who to ask.

  26. January 19th, 2025 at 23:55 | #26

    A motivating discussion is definitely worth
    comment. I think that you should publish more about this subject, it may
    not be a taboo subject but usually people do not speak about such topics.
    To the next! Many thanks!!

  27. January 20th, 2025 at 00:08 | #27

    Living Regarding Beach Discovered Easier 부산

  28. January 20th, 2025 at 00:15 | #28

    Lady Gaga showed off her figure while partying away
    with her fiancé Michael Polansky in Los Angeles on Monday.

    The singer and actress, 38, looked nothing short of sensational in a figure-hugging black velvet dress as she let loose after walking the red carpet earlier that evening.

    The entertainer managed a quick costume change for her night out following the US premiere of The Joker:
    Folie a Deux in California. 

    Lady Gaga, whose real name is Stefani Germanotta,
    opted for a slinky dress with spaghetti straps in contrast to her earlier bold
    look. 

    The star went for soft make-up and channelled her character Harley Quinn as she
    kept her bright red locks in loose waves. 

    Lady Gaga, 38, showed off her figure in a velvet dress as
    she posed at the The Joker: Folie à Deux afterparty in Los Angeles
    on Monday L to R: Lady Gaga, Alexandra Kravetz, Todd Phillips

    The star cozied up to her fiancé Michael Polansky (far right), alongside Brendan Gleeson (left) and director Baz Luhrmann (centre)after putting on a stunning display on the red carpet

    Joaquin Phoenix , 49, (right) who had joined the singer on the red carpet
    earlier that evening was also spotted partying the night away with
    director Todd

    The Star Is Born actress was spotted smiling with Joker writer and director Todd Phillips and his wife Alexandra Kravetz at the star-studded after party. 

    Read More

    Lady Gaga stuns in a custom-made gown at the UK premiere of Joker:
    Folie à Deux

    Lady Gaga was also seen cosying up to her fiancé Michael as
    she posed alongside actor Brendan Gleeson and director Baz Luhrmann.

    The star and her partner seemed in good spirits and couldn’t help but
    smiles as they wrapped their arms around each other.

    The singer’s partner opted for a casual look for the event,
    wearing a navy blue shirt and matching cap.

    Gaga stars in the latest Joker installment alongside Joaquin Phoenix, 49, who joined her on the red carpet earlier that evening.

    The singer and actress plays Harley opposite Joaquin’s Joker in the psychological thriller.

    The movie serves as a follow-up to Joaquin’s 2019 box office
    hit, which was simply titled Joker.

    The musical is due in theatres on October 4,
    following an October 2 international release. 

    Gaga showed off her eclectic fashion sense earlier that evening as she channeled her character
    Harley Quinn at The Joker: Folie à Deux premiere in Los Angeles earlier that evening

    The entertainer stars in the forthcoming project as a music therapist at
    Arkham Asylum and looked sensational as she posed at the
    US premiere of her latest project 

    She rocked bleached eyebrows and sported a red
    wig as she graced the red carpet solo. The superstar stepped out in sky-high shiny
    black platforms

    For Monday evening’s appearance in Hollywood at TCL
    Chinese Theatre, Lady Gaga turned heads in a black gown with billowing, satin, short sleeves

    And for Monday evening’s appearance in Hollywood at TCL Chinese Theatre, Lady Gaga turned heads in a black gown with billowing,
    satin, short sleeves.

    She rocked bleached eyebrows and sported a red wig as she graced the red carpet solo. 

    Read More

    Lady Gaga channels Harley Quinn at The Joker: Folie à Deux LA premiere

    One month before the sequel’s release date, Joaquin praised Lady
    Gaga for her ‘impressive’ preparation for the feature film. 

    During a Venice Film Festival press conference in which he discussed
    shedding pounds for Joker, he added: ‘Stefani also lost a lot
    of weight.

    ‘I remember when I first met you in rehearsals
    and then you went away for like a month and then you came back, you lost a
    lot of weight.’

    He continued, ‘It was really impressive. It seemed very
    difficult.’ 

    The singer agreed, ‘I think we transformed into our characters over
    a period of time and we continued to hone in every
    kind of detail.’

    She plays a music therapist at Arkham Asylum in The Joker and said: ‘We rehearsed the waltz in the film for two months which kind of falls apart.’

    Joaquin noted about the musical aspect: ‘Part of the joy for me
    was to take standards and find a way that was specific to the characters. 

    ‘That was part of what was interesting for us.
    We started off with references like Frank Sinatra and Sammy Davis Jr and we started to emulate that sound.’

    The 38-year-old entertainer stars in the forthcoming project alongside Joaquin Phoenix, 49, who joined her on the red carpet

    Phoenix attended the red carpet event in a sleek, tailored
    black suit with white accents

    The stars posed alongside director Todd Phillips, who arrived in a dark gray suit with a white shirt and black shoes

    Joaquin attended the red carpet event in a sleek, tailored
    black suit with white accents.

    He looked spiffy in the look, which he teamed with white
    socks and a button-up white shirt with a thin black tie.

    The ensemble was rounded out with shiny, black lace-up dress shoes and black-rimmed
    eyeglasses with lightly tinted sepia lenses.

    The Walk the Line star’s graying hair was neatly cut with the sides short and
    longer pieces at the top.

    He was typically handsome with a full, closely trimmed grizzled beard.

    Actor Brendan Gleeson, 69, who plays Jackie Sullivan in the movie, wore all-black

    The Banshees of Inisherin star was clean-shaven and he slicked his hair back

    Rooney Mara, who has long been in a romantic relationship with Joaquin, was present at Monday’s premiere as she supported her
    beau.

    The mother-of-one, who shares four-year-old son River
    with the actor, wore a black dress with subtle pleats along
    its A-line skirt.

    The sleeveless look boasted a strappy neckline and the actress added closed-toe black heels.

    The brunette beauty parted her hair down the middle and
    pulled the locks back into a neat updo. 

    Rooney Mara, who has long been in a romantic relationship with Joaquin, was present at Monday’s premiere as she supported her beau

    The brunette beauty parted her hair down the middle and pulled the locks back into a neat updo

    Actor Gregg Daniel flashed a smile as he arrived at the premiere in a dark suit

    Dancer and internet personality Merrick Hanna, 19, was
    fashionable in dark slacks and a patterned blazer

    The Todd Phillips-directed musical is due in theaters on October
    4, following an October 2 international release

    Joker, earned more than $1 billion at the global box office and
    remains the highest-grossing R-rated film of all time.

    The second installment sees Arthur Fleck institutionalised at
    Arkham Asylum, awaiting trial for his crimes as Joker.

    ‘While struggling with his dual identity, Arthur not only stumbles
    upon true love, but also finds the music that’s always been inside him,’ a press release shared.

    The Los Angeles premiere comes nearly one week after Lady Gaga announced her album Harlequin, which is a
    companion album to the movie.

    It features a 13-song track list including covers like That’s Life, Oh, When the Saints, and Smile.

    Joaquin PhoenixLos AngelesLady Gaga

  29. January 20th, 2025 at 00:27 | #29

    Hey! 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 post to him. Pretty sure he will have a good read.
    Thank you for sharing!

  30. January 20th, 2025 at 00:28 | #30

    Luxury Lounge 유흥사이트

  31. January 20th, 2025 at 00:40 | #31

    Hi, I do believe this is a great blog. I stumbledupon it ;) I’m going to return once again since i have book-marked it.
    Money and freedom is the best way to change, may you be rich and continue to guide others.

  32. January 20th, 2025 at 00:44 | #32

    Email Optimisation Gone Wild – Tips On How To Reach Escape Velocity In Marketing OP

  33. January 20th, 2025 at 00:45 | #33

    How In Regards To A Cruise Ship Job? 울산유흥; Opal,

  34. January 20th, 2025 at 00:49 | #34

    Night Out 부달최신주소

  35. January 20th, 2025 at 00:51 | #35

    Arranging A Solid Barbecue Party With Good Recipes 오피사이트 (Wilfred)

  36. January 20th, 2025 at 00:52 | #36

    Myrtle Beach – Beckoning The Vacationers 마사지 (Pamala)

  37. January 20th, 2025 at 01:03 | #37

    Ten Further Financial Tips On Why Businesses Fail
    출장 – Penny -

  38. January 20th, 2025 at 01:10 | #38

    Girls Night Out Ideas – Night Outside In Downtown 오피커뮤니티

  39. January 20th, 2025 at 01:12 | #39

    After Hours 부산달리기 (Sara)

  40. January 20th, 2025 at 01:20 | #40

    Лаборатория химическая оборудование включает аналитические приборы, реакционные установки и средства пробоподготовки.
    Эти устройства необходимы для проведения исследований и анализа химических
    веществ.

  41. January 20th, 2025 at 01:34 | #41

    Tour To Incredible Bangkok 하이오피주소

  42. January 20th, 2025 at 01:42 | #42

    I’m not that much of a online reader to be honest but your sites really nice,
    keep it up! I’ll go ahead and bookmark your site to come back down the road.
    Cheers

  43. January 20th, 2025 at 01:46 | #43

    Wow, incredible weblog structure! How lengthy have you ever been running a blog for?
    you make blogging glance easy. The total glance of your website is wonderful, let alone the content!

  44. January 20th, 2025 at 01:47 | #44

    Hey I know this is off topic but I was wondering if you knew of any widgets I
    could add to my blog that automatically tweet my newest twitter updates.
    I’ve been looking for a plug-in like this for quite some time and was
    hoping maybe you would have some experience with something like this.

    Please let me know if you run into anything. I truly enjoy reading your blog and I
    look forward to your new updates.

  45. January 20th, 2025 at 01:49 | #45

    Pretty nice post. I just stumbled upon your weblog and wished to
    say that I’ve truly enjoyed browsing your blog posts.
    In any case I will be subscribing to your rss feed and I hope you write again soon!

  46. January 20th, 2025 at 01:57 | #46

    Helpful For Appropriate Spa Etiquette 오피사이트

  47. January 20th, 2025 at 02:00 | #47

    hey there and thank you for your info – I’ve definitely picked up something
    new from right here. I did however expertise several technical issues using
    this site, since I experienced to reload the web site a
    lot of times previous to I could get it to load correctly.
    I had been wondering if your web hosting is OK?
    Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and can damage your
    high quality score if advertising and marketing with Adwords.
    Anyway I am adding this RSS to my e-mail and could look out for
    much more of your respective intriguing content. Make sure
    you update this again soon.

  48. January 20th, 2025 at 02:02 | #48

    Casino Games – 5 Top Vegas-Style Apps For Ipad And Iphone 에볼루션 라이브 바카라

  49. January 20th, 2025 at 02:04 | #49

    It’s awesome in favor of me to have a website, which
    is beneficial designed for my experience. thanks admin

  50. January 20th, 2025 at 02:04 | #50

    VIP Service 광주알밤, Forrest,

Comment pages
1 113 114 115 116 117 142 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