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 21st, 2025 at 10:21 | #1

    Why users still make use of to read news papers when in this technological globe everything is presented on web?

  2. January 21st, 2025 at 10:27 | #2

    Brand Management Hassles Relieved By Online Storage 다바오홀덤 (Hk.tiancaisq.Com)

  3. January 21st, 2025 at 10:32 | #3

    Guide To Discover The Proper Bank 다바오 홀덤

  4. January 21st, 2025 at 10:37 | #4

    Red takes center stage as the hottest color of
    the holiday season.

    All red looks have been trending with the fashion set for
    some time, but after Rihanna attended the Fenty Hair launch
    party in a monochromatic look accessorized with multiple
    ruby baubles, red-on-red became cooler than ever. 

    The ‘Stay’ hitmaker donned a custom red leather Khaite jacket and skirt with
    ruby and diamond jewelry by Sabyasachi, David Webb and
    Reza.

    Monochromatic outfits, particularly in red, exude confidence and sophistication. 

    With the vibrant color being synonymous with the holiday season, it’s a natural choice for parties and festive gatherings.

    By also accessorizing with ruby jewelry (à la Rihanna) you can add a touch of luxury to even the simplest of separates.

    Unlike your grandmother’s precious jewels, today’s ruby designs are being reimagined
    by edgy jewelers that aren’t taking the gem so seriously.

    Rihanna was photographed dripping in rubies at the Fenty Hair launch party and just like that…
    they are in vogue

    Monochromatic outfits, particularly in red, appear polished and put-together

    RELATED ARTICLES

    Previous

    1

    Next

    10 genius beauty hacks from Rihanna, Selena Gomez, and more…

    Step into style: Daily Mail visits the Albright Fashion…

    Share this article

    Share

    Rubies are often referred to as the ‘king of gemstones’ and their vibrant color
    - caused by the presence of chromium – is often associated with passion, love, and power. 

    The name ‘ruby’ comes from the Latin word ‘ruber’ which means red. 

    Rubies are incredibly sought after for their beauty
    and durability, they are ranked 9 on the Mohs scale of hardness (qualitative
    scale that measures the relative hardness of minerals and other materials
    by their resistance to scratching), second to diamonds.

    Beyond their sparkle and strength, they have held cultural significance for centuries.

    Throughout history, rubies have been associated with nobility and wealth,
    often adorning the crowns of kings and queens.

    They are also believed to bring good fortune and protection to their wearer.

    According to Melee the Show founders Lauren Wolf and Rebecca Overmann,
    ruby jewelry is on the rise.

    The fine jewelry trade show connects buyers and
    designers, with the next shows taking place in New York (February 1-3)
    and Tucson (February 5-7).

    ‘From bold gemstones to intricate craftsmanship, our designers bring
    rubies to life in ways that inspire and captivate,’ said the duo.

    Anthony Lent, Fannie Thomas, Heather Guidero, Jake Matluck, Amali,
    Karin Jacobson, Marian Maurer and Ciara Bowles are
    some of the exhibiting designers who work with rubies.

    Red being synonymous with the holiday season is a natural choice for parties and festive gatherings

    By accessorizing with ruby jewelry (a la Rihanna) you can add
    a touch of luxury and sophistication to even the simplest of separates

    According to Melee the Show, founded by designers Lauren Wolf and
    Rebecca Overmann, ruby jewelry is on the rise

    ‘From bold gemstones to intricate craftsmanship, our designers bring rubies to life in ways that inspire
    and captivate,’ said the duo

    Rubies are the focal point of Dara Kaye Jewelry’s latest collection, “El Gran Amor”
    sold in-person at Faena Miami Beach’s Big Bang boutique on December 2nd.

    The limited-edition collection is a part of Big Bang’s fine
    jewelry program called Love Mine, it includes three exclusive pieces as part of the Dara
    Kaye Jewelry for Big Bang capsule collaboration collection. 

    The pieces all feature sustainably sourced, cultured
    lab grown stones. 

    ‘For the centerpiece, we chose a ruby heart—a timeless symbol of love, designed to be worn close to the heart,’ says Dara Kaplan,
    designer of Dara Kay Jewelry.

    Rubies are the focal point of Dara Kaye Jewelry’s latest collection, “El Gran Amor”
    exclusively at Faena Miami Beach’s Big Bang boutique on December
    2nd

    The collections consists of the Gran Amor Heart Pendant, a large Ruby heart encircled
    with Diamonds that is worn on a solid large
    14k gold ball chain.

    The Gran Amor heart ring which is a blood red ruby heart encrusted with a halo of
    diamonds, and the Amor Heart Necklace, a beautifully delicate ruby heart encircled in a solid gold
    bezel on a ball chain, perfect for anyone to wear.

    ‘Jewelry is a cherished emotional keepsake that is steeped in meaning,
    ‘ says founder and curator of Big Bang at Faena Miami Beach Paula Selby Avellaneda

    ‘Jewelry is a cherished emotional keepsake that is steeped in meaning,’ says
    founder and curator of Big Bang at Faena
    Miami Beach Paula Selby Avellaneda.

    ‘When I met Dara it was an instant flow of good energy.
    I discovered that her line, Dara Kaye Jewelry, was designed and infused with
    her same bold energy. 

    ‘It immediately made sense to me to celebrate that same entrepreneurial bravery and boldness with an exclusive collaboration for my store,
    Big Bang Faena.’

    Dara says, ‘these are talismans for boldly and bravely
    attracting and sharing love.’

    ‘These are talismans for boldly and bravely
    attracting and sharing love,’ said Dara Kaplan, designer of Dara Kay Jewelry

    Dara continues, ‘I loved the concept of celebrating
    love in a way that was sweet but not overly syrupy. 

    ‘That is why I chose oversized stones to really sparkle and to use my signature claw
    prong setting to give it the edge that my designs are known for. 

    ‘We together chose a signature Faena red colored ruby
    to pay homage to our spectacular location.

    ‘This will be the first time that Dara Kaye Jewelry is
    on display at any retail location. I am so honored to have these
    exclusive pieces and selections from the line at Big Bang Faena.’

    The collection can also be found online at big-bang.us. Prices range from $2010.00 USD to $8,000.00 USD. 

    Rihanna

  5. January 21st, 2025 at 10:47 | #5

    Speakeasy 부산유흥

  6. January 21st, 2025 at 10:49 | #6

    I visited various blogs but the audio feature for audio songs
    existing at this site is actually marvelous.

  7. January 21st, 2025 at 11:09 | #7

    Personal Loan Options 카가얀데오로 다바오 항공권

  8. January 21st, 2025 at 11:23 | #8

    Unlimited Free Leads From Social Networking HiOP

  9. January 21st, 2025 at 11:56 | #9

    Hello there, You’ve donme an incredible job.

    I will certainly digg itt and personally suggest to my friends.
    I’m sure they’ll be benefited from this website.
    개인회생신청자격

  10. January 21st, 2025 at 12:15 | #10

    Hey there! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing months of hard
    work due to no backup. Do you have any solutions to stop hackers?

  11. January 21st, 2025 at 12:17 | #11

    Hello, Neat post. There is a problem with your site in web explorer, may test this?
    IE nonetheless is the market leader and a good section of folks will pass over your excellent writing because of this problem.

  12. January 21st, 2025 at 12:19 | #12

    When someone writes an paragraph he/she keeps the
    thought of a user in his/her brain that how a user can know it.

    Thus that’s why this article is perfect. Thanks!

  13. January 21st, 2025 at 12:41 | #13

    Social Gathering 논현오피

  14. January 21st, 2025 at 13:03 | #14

    Can I simply just say what a relief to discover an individual who genuinely understands what they’re
    talking about on the web. You actually realize how to bring an issue to light and make it important.

    More and more people must look at this and understand this side of the
    story. I can’t believe you aren’t more popular since you definitely have the gift.

  15. January 21st, 2025 at 13:11 | #15

    Goldfish bowl, fish tank or Aquarium.

  16. January 21st, 2025 at 13:14 | #16

    Adult Entertainment 부산유흥

  17. January 21st, 2025 at 13:25 | #17

    Hey There. I found your blog using msn. This is an extremely
    well written article. I will be sure to bookmark
    it and come back to read more of your useful information. Thanks
    for the post. I will certainly comeback.

  18. January 21st, 2025 at 13:30 | #18

    Hello there! This is my first comment here so I just wanted to
    give a quick shout out and say I genuinely enjoy
    reading through your blog posts. Can you recommend any other blogs/websites/forums that go
    over the same topics? Appreciate it!

  19. January 21st, 2025 at 13:33 | #19

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

    Help

    English

    Tools

    Tools
    move to sidebar hide

    Actions

    General

  20. January 21st, 2025 at 13:40 | #20

    Reduce Stress Simply – Excerpted From Life’s Little
    How To Book 하이오피사이트

  21. January 21st, 2025 at 13:41 | #21

    Tbs Free Poker Game – Prepared To Watch And Win Today?

    헝그리샤크 에볼루션

  22. January 21st, 2025 at 13:42 | #22

    Speakeasy 부산달리기 (www.v0795.Com)

  23. January 21st, 2025 at 13:50 | #23

    I was more than happy to find this site. I wanted to thank youu for your time for
    this particularly fantastic read!! I definitely liked every part of it and
    i also have you bolk marked to look at new information on your blog.

    Google 백링크

  24. January 21st, 2025 at 13:53 | #24

    Nice post. I was checking continuously this blog and I
    am impressed! Very helpful info specially the last part :
    ) I care for such information a lot. I was seeking this certain info for
    a very long time. Thank you and good luck.

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

    Living Along With Beach Might Just Be Inside Your Future 하이오피사이트

  26. January 21st, 2025 at 14:09 | #26

    I really like it when people come together and share views.
    Great blog, keep it up!

  27. January 21st, 2025 at 14:11 | #27

    What’sup, I wish for to subscribe for this blog to obtain newes
    updates, thus where can i do it please help.
    수원한의원

  28. January 21st, 2025 at 14:13 | #28

    My brother recommended I might like this web site. He was totally right.
    This post actually made my day. You can not imagine simply how much time I had spent for this info!
    Thanks!

  29. January 21st, 2025 at 14:20 | #29

    Titan’s First Spa Swimming Session 부달사이트

  30. January 21st, 2025 at 14:23 | #30

    Forex Buying and selling – Make money On the earth’s Markets!

    Foreign trade trading or forex buying and selling entails speculations relating to betting
    on one forex over another. There are a selection of things that have an effect on the overseas
    alternate market from a rustic’s sovereign status to inflation figures and unemployment circumstances in a nation. The multitude of dynamics working in the market makes it both thrilling and dangerous as a buying and selling option.

  31. January 21st, 2025 at 14:23 | #31

    Social Club 부달사이트

  32. January 21st, 2025 at 14:32 | #32

    Nicely put, Thanks a lot!

  33. January 21st, 2025 at 14:37 | #33

    Spa Therapy 부산

  34. January 21st, 2025 at 14:38 | #34

    May I simply say what a comfort to uncover someone who really understands what they are discussing
    on the net. You definitely understand how to bring a problem to light and make it important.

    More people ought to read this and understand this side of your story.
    I was surprised you aren’t more popular since you most certainly possess the gift.

  35. January 21st, 2025 at 14:51 | #35

    Heya i’m for the first time here. I came across
    this board and I find It truly useful & it helped me out a lot.
    I hope to give something back and help others like you aided me.

  36. January 21st, 2025 at 14:54 | #36

    I absolutely love your blog and find nearly all of your post’s to be
    exactly what I’m looking for. Would you offer guest writers to write
    content for you? I wouldn’t mind composing a post or elaborating on a few of the subjects you write in relation to here.
    Again, awesome web site!

  37. January 21st, 2025 at 15:04 | #37

    Why Not Play Craps Online? 에볼루션 채팅알바

  38. January 21st, 2025 at 15:07 | #38

    Tips That Can Help You Win At The Game Roulette 에볼루션 채팅영업 (hhwpcac.org)

  39. January 21st, 2025 at 15:07 | #39

    Link exchange is nothing else but it is only placing the
    other person’s webpage link on your page at proper place and other person will also do same in support of you.

  40. January 21st, 2025 at 15:09 | #40

    I felt like I am at the age exactly where I ought to be taking care of myself.

    my web-site https://gitea.sitelease.ca:3000/benjaminharvey

  41. January 21st, 2025 at 15:10 | #41

    Five Easy Tips To Turn Your Bathroom Into A
    Spa 안마 – Yakitori-You.Com -

  42. January 21st, 2025 at 15:24 | #42

    How Enhance Your First Massage Ever Into Being Your Best Massage Ever 유흥사이트

  43. January 21st, 2025 at 15:43 | #43

    This is the best online market of women’s perfumes in this country with exclusive brands class elite and niche https://globalaffairs.mn.co/posts/60576942?utm_source=manual for women.

  44. January 21st, 2025 at 15:46 | #44

    Top 5 Ways To Lower Your Cruise Spa Services op

  45. January 21st, 2025 at 15:46 | #45

    Determining A Strong Poker Room Online 다바오

  46. January 21st, 2025 at 15:47 | #46

    If you want to take much from this post then you have to apply such
    strategies to your won blog.

  47. January 21st, 2025 at 15:47 | #47

    Luxury Lounge 오피사이트 (Sue)

  48. January 21st, 2025 at 15:50 | #48

    Hello There. I discovered your weblog the usage of msn. That is a really neatly written article.

    I’ll make sure to bookmark it and come back to read extra of your
    helpful information. Thanks for the post. I’ll
    definitely comeback.

  49. January 21st, 2025 at 15:51 | #49

    Pub Crawl 역삼오피 – https://umaysailing.com -

  50. January 21st, 2025 at 15:57 | #50

    Ponadto zespół wsparcia Mostbet jest pomocny i przyjazny.

Comment pages
1 120 121 122 123 124 131 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