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 24th, 2025 at 18:12 | #1

    I would like to thank you for the efforts you have put in writing this blog.
    I am hoping to see the same high-grade blog posts
    from you later on as well. In truth, your creative writing abilities has motivated me to get my own website now ;)

  2. January 24th, 2025 at 18:14 | #2

    Night Life In Orlando – Universal And Disney Compete For The Entertainment
    Audience 부달최신주소

  3. January 24th, 2025 at 18:20 | #3

    Link exchange is nothing else but it is just placing the other person’s web site link
    on your page at proper place and other person will also
    do same for you.

  4. January 24th, 2025 at 18:20 | #4

    Among the major reasons the skin loses its vitality is that fibroblast cells, which are the trick to healing and regrowth of skin, decrease by aging. Schweiger Dermatology Team was established to help make exceptional dermatology treatment easily accessible throughout the Northeast. In 2010, Dr. Eric Schweiger started the experiment a single place in Midtown Manhattan. When he saw the need for high-grade dermatology treatment that did not call for weeks or months of waiting to see a qualified service provider, his vision of a multi-location technique was birthed.
    Dr. Environment-friendly suggests incorporating Thermage with aesthetic injectables like Botox and facial fillers for the most detailed face rejuvenation outcomes. Thermage is a non-surgical skin-tightening cosmetic procedure that makes use of radiofrequency power to boost brand-new collagen production in the facial layers of the skin. The effects of Thermage will certainly be improved architectural assistance, resulting in firmer, tighter, smoother skin and an overall more vibrant appearance. Thin hyaluronic acid fillers for great lines, such as Belotero, commonly last 6 months, and thicker facial fillers for volume loss, such as Juvederm Voluma, can last greater than one year. Facial fillers, such as Sculptra, assistance boost the manufacturing of brand-new collagen, with outcomes usually lasting for up to 2 years. Resurfacing laser treatments provide patients with lasting effects, with the majority of individuals taking part in upkeep sessions on a yearly basis after accomplishing their excellent standard results.
    What Is The Current Type Of Non-surgical Renovation?

    Fraxel Laser
    These non-surgical facelift therapies can be both ablative, and non-ablative. Ablative treatments target the leading layers of skin, while non-ablative ones target middle and deep layers of skin. Both treatments trigger your body to generate more elastin and collagen – two of the cornerstones responsible for vibrant skin.
    This FDA-approved non-surgical facelift tool utilizes radio frequency energy to tighten up and raise the skin, supplying males and females with a revitalized look. TempSure Envi carefully and precisely warms the inmost layers of skin, promoting collagen production from the within out. This treatment involves utilizing lasers to rejuvenate the skin through extreme, pulsed light. There are various types of lasers that can be utilized to treat various skin problem. For great lines and creases, an ablative laser will certainly be made use of that removes the outer layer of skin and promotes collagen growth in the layer underneath.
    Non-surgical Facelift Options: Separating Reality From Fiction On The Renovation Without Surgery

    The answer to this varies from person to individual and case to case and on what the therapy is targeting. Usually, a full-face therapy lasts in between 45 minutes to an hour, while an eyebrow or partial face treatments just last for thirty minutes. The energy made use of in HIFU is substantially various from various other powers like Electrical (Radio-frequency) power and light energy, which is the IPL energy. It protects the skin surface area, whilst permeating at much deeper depths and greater temperature levels than radiofrequency. It deals with beyond the foundation and dermis layers, where architectural weakening begins. At The Bombay Skin Facility, we utilize the Ultraformer III, which is an entirely non-invasive body contouring and tightening up device to deal with the face, as well as certain components of the body.
    If extra sessions are called for, we will certainly help you arrange your following consultation. Individuals that have a high degree of loosened skin or with photodamaged skin may need several sessions to see the wanted results. Your healthcare group will inform you what to anticipate and the length of time it’ll take you to recuperate after your HIFU procedure. As an example, one of the most typical negative effects of HIFU treatment for prostate cancer cells are urinary system issues and impotence. Exactly how you’ll receive HIFU relies on what your healthcare provider is using it to treat.
    The treatment is excellent for tightening up dewlaps, raising eyebrows, lowering the appearance of marionette lines and nasolabial folds, and contouring the jawline. While not a substitute for a surgical renovation, HIFU can accomplish recognizable renovations without the dangers and downtime of surgery. By understanding the procedure, you can feel fully prepared to achieve your desired aesthetic goals via this advanced technology. HIFU targets many skin layers and is a clinical procedure that enables the inmost power infiltration for skin tightening up and face training.
    Can Hifu Use On All Skin Types? Of Course, Yet It Is Very Important To Understand That Each Body Is Specific
    During the treatment, focused acoustic waves are released that permeate into the deep facial layers. String Lift can also influence various other therapies, such as Laser and Superhigh Frequency. If you prepare to have a Thread Lift, you need to recognize these issues.

  5. January 24th, 2025 at 18:24 | #5

    I got this site from my pal who shared with me about this web site and
    at the moment this time I am browsing this website
    and reading very informative articles here.

  6. January 24th, 2025 at 18:29 | #6

    Hello everybody, here every person is sharing these kinds of familiarity, thus it’s fastidious to read this weblog, and I used to pay a visit this website every day.

  7. January 24th, 2025 at 18:30 | #7

    Undeniably believe that that you said. Your favourite justification appeared to be
    on the internet the simplest factor to bear in mind
    of. I say to you, I definitely get irked whilst folks consider concerns that they plainly do
    not recognise about. You managed to hit the nail upon the top as neatly as outlined out the whole thing without having side-effects ,
    people can take a signal. Will probably be back to get more.
    Thank you

  8. January 24th, 2025 at 18:38 | #8

    This piece of writing provides clear idea in favor of the new viewers of blogging, that really how to do
    running a blog.

  9. January 24th, 2025 at 18:40 | #9

    Mobile Marketing – Engage Your Consumers, A Business’s “Must Have”!
    다바오다운로드

  10. January 24th, 2025 at 18:40 | #10

    Thanks in support of sharing such a fastidious thinking, article is nice, thats why i have read it fully

  11. January 24th, 2025 at 18:44 | #11

    This info is worth everyone’s attention. When can I
    find out more?

  12. January 24th, 2025 at 18:50 | #12

    After exploring a few of the blog articles on your site, I honestly like your way of writing a blog.
    I saved it to my bookmark webpage list and will be checking back soon. Please visit my web site too and let me
    know how you feel.

  13. January 24th, 2025 at 18:50 | #13

    Hello to every one, the contents existing at this web page
    are really awesome for people experience, well, keep up the nice work fellows.

  14. January 24th, 2025 at 18:51 | #14

    Costa Del Sol Nightlife 부달주소

  15. January 24th, 2025 at 18:57 | #15

    I’m no longer sure the place you are getting your information, however great topic.
    I must spend a while studying more or figuring out more.

    Thank you for wonderful info I was searching
    for this info for my mission.

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

    bokep terbaik sma toket gede menyala banget

  17. January 24th, 2025 at 19:07 | #17

    Thank you for the auspicious writeup. It in reality used to be a entertainment account it.
    Glance complex to more introduced agreeable from you! However, how can we be in contact?

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

    bookmarked!!, I love your site!

  20. January 24th, 2025 at 19:38 | #20

    wonderful publish, very informative. I ponder why the opposite
    experts of this sector do not realize this. You must proceed your writing.
    I am sure, you have a great readers’ base already!

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

    I simply could not go away your website prior to suggesting that I actually enjoyed the standard
    info an individual supply in your visitors? Is going to be back often to inspect new posts

  22. January 24th, 2025 at 19:44 | #22

    Greetings! Very useful advice within this post! It is the little changes that make the most
    significant changes. Many thanks for sharing!

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

    Erie Entertainment – Consider Our Great Music Situation! 부달사이트

  24. January 24th, 2025 at 19:52 | #24

    This website was… how do I say it? Relevant!! Finally I have found something which helped me.
    Thanks!

  25. January 24th, 2025 at 20:12 | #25

    Hello my loved one! I wish to say that this article is awesome, great written and include approximately all vital infos.
    I would like to peer extra posts like this .

  26. January 24th, 2025 at 20:18 | #26

    I do not even know how I ended up here, but
    I thought this post was good. I don’t know who you are but definitely you are going to a famous blogger if you are not already ;)
    Cheers!

  27. January 24th, 2025 at 20:19 | #27

    Nice replies in return of this difficulty with real
    arguments and telling the whole thing about that.

  28. January 24th, 2025 at 20:25 | #28

    Fantastic web site. Lots of helpful info here. I’m sending it to a few buddies ans
    also sharing in delicious. And obviously, thank
    you for your sweat!

  29. January 24th, 2025 at 20:25 | #29

    My brother recommended I might like this blog. He was totally
    right. This post truly made my day. You cann’t imagine just how much time I had spent for
    this information! Thanks!

  30. January 24th, 2025 at 20:49 | #30

    I will right away grasp your rss as I can’t to find your email subscription link or newsletter service.
    Do you have any? Kindly permit me recognise in order that I could subscribe.

    Thanks.

  31. January 24th, 2025 at 20:51 | #31

    I every time used to read post in news papers but now as I am a user of internet so from now I am using net
    for articles or reviews, thanks to web.

  32. January 24th, 2025 at 20:56 | #32
  33. January 24th, 2025 at 20:58 | #33

    Oasis Belonging To The Seas Famous Cruise Liner 하이오피

  34. January 24th, 2025 at 21:06 | #34

    Cet article est une mine d’or pour tout artisan voulant se digitaliser.
    Des conseils pratiques et pertinents!

  35. January 24th, 2025 at 21:28 | #35

    Hi there to all, it’s really a nice for me to visit this web page, it includes precious Information.

  36. January 24th, 2025 at 21:51 | #36

    It’s amazing in favor of me to have a web page, which is helpful for my experience.

    thanks admin

  37. January 24th, 2025 at 21:52 | #37

    Excellent post. I was checking constantly this blog and I am impressed!
    Extremely helpful information particularly the last part :) I care for such info a
    lot. I was looking for this certain info for a very long time.
    Thank you and best of luck.

  38. January 24th, 2025 at 21:52 | #38

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

    Help

    English

    Tools

    Tools
    move to sidebar hide

    Actions

    General

  39. January 24th, 2025 at 21:58 | #39

    Hey There. I discovered your weblog the use of msn. This is a really neatly written article.
    I’ll make sure to bookmark it and come back to learn extra of your useful
    info. Thanks for the post. I’ll certainly comeback.

  40. January 24th, 2025 at 22:05 | #40

    Thanks for the marvelous posting! I quite enjoyed reading it, you can be a great author.I will be sure to
    bookmark your blog and will often come back later on. I want to encourage continue
    your great posts, have a nice day!

  41. January 24th, 2025 at 22:08 | #41

    Terrific work! That is the type of information that are meant to be
    shared across the internet. Shame on Google for not positioning this publish higher!
    Come on over and visit my site . Thanks =)

  42. January 24th, 2025 at 22:18 | #42

    If some one needs to be updated with hottest technologies then he must be pay
    a visit this website and be up to date daily.

  43. January 24th, 2025 at 22:24 | #43

    Thanks for sharing your thoughts. I truly appreciate your efforts and I am waiting for your further write ups
    thank you once again.

  44. January 24th, 2025 at 22:30 | #44

    What’s up, yup this post is genuinely good and I have learned lot of things
    from it regarding blogging. thanks.

  45. January 24th, 2025 at 23:06 | #45

    With havin so much content do you ever run into any problems of plagorism or copyright infringement?
    My site has a lot of completely unique content I’ve either created myself or outsourced but it looks like a lot of
    it is popping it up all over the web without my agreement.
    Do you know any ways to help stop content from being ripped off?
    I’d definitely appreciate it.

  46. January 24th, 2025 at 23:15 | #46

    How To Trade Books Online 다바오환전

  47. January 24th, 2025 at 23:16 | #47

    Relaxation Techniques 부산유흥

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

    This post offers clear idea for the new people of blogging,
    that in fact how to do running a blog.

  49. January 24th, 2025 at 23:29 | #49

    Clubbing 잠실오피 (copyoa.com)

  50. January 24th, 2025 at 23:32 | #50

    As well as those who seek to replace traditional production, nanotechnology is devoted to a socio-democratic anathema. It is difficult to say why the key features of the structure of the project can be limited exclusively by the way of thinking.

Comment pages
1 130 131 132 133 134 138 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