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 3rd, 2025 at 13:18 | #1

    It is perfect time to make some plans for the future and it’s time to
    be happy. I’ve read this post and if I could I desire to suggest you some interesting things
    or suggestions. Maybe you can write next articles referring to this
    article. I desire to read more things about it!

  2. January 3rd, 2025 at 13:40 | #2

    Luxury Lounge OP

  3. January 3rd, 2025 at 13:47 | #3

    Great blog! Is your theme custom made or did you
    download it from somewhere? A theme like yours with a
    few simple tweeks would really make my blog shine. Please let
    me know where you got your theme. Cheers

  4. January 3rd, 2025 at 13:50 | #4

    Получайте кэшбэк до 5% на каждый покупку с картой Сбербанка!

    Экономьте на покупках в магазинах, кафе и онлайн.
    Простое оформление и удобное управление через мобильное приложение.

    Начните экономить уже сегодня!======>
    Дебетовая карта с кешбеком 10% на
    WB от МКБ в Сергиевом Посаде

  5. January 3rd, 2025 at 14:00 | #5

    Late Night Fun OP

  6. January 3rd, 2025 at 14:03 | #6

    Luxury Lounge 선릉오피

  7. January 3rd, 2025 at 14:06 | #7

    Good article. I will be dealing with some of these issues as well..

  8. January 3rd, 2025 at 14:14 | #8

    Night Club 울산

  9. January 3rd, 2025 at 14:38 | #9

    It is essential to note that students on this visa may prrhaps not operate full-time.

  10. January 3rd, 2025 at 14:43 | #10

    The Act came into force in England and Wales in 1997
    and is interested in working out disagreements.

  11. January 3rd, 2025 at 14:44 | #11

    May I just say what a comfort to uncover an individual who genuinely knows
    what they’re discussing over the internet. You definitely understand
    how to bring an issue to light and make it important.
    More and more people ought to read this and understand this side of the story.

    I was surprised you’re not more popular because
    you most certainly have the gift.
    men’s clinic

  12. January 3rd, 2025 at 15:32 | #12

    I am sure this post has touched all the internet visitors, its really really nice piece of writing on building up new web site.

  13. January 3rd, 2025 at 15:38 | #13

    Get Emergency Cash Along With A Short-Term Cash Advance 다바오 홀덤 회원가입

  14. January 3rd, 2025 at 15:45 | #14

    My partner and I absolutely love your blog and find nearly
    all of your post’s to be precisely what I’m looking
    for. can you offer guest writers to write content for yourself?
    I wouldn’t mind composing a post or elaborating
    on a number of the subjects you write concerning here. Again,
    awesome site!

  15. January 3rd, 2025 at 15:54 | #15

    A diverse game ibrary enables you to discover many
    gaming possibilities.

  16. January 3rd, 2025 at 15:57 | #16

    I think this is among the most important info for me. And i’m
    glad reading your article. But wanna remark on some general things, The
    web site style is ideal, the articles is really nice :
    D. Good job, cheers

  17. January 3rd, 2025 at 16:06 | #17

    I’m really impressed with your writing skills as well as with the layout on your weblog.

    Is this a paid theme or did you customize it yourself?
    Either way keep up the excellent quality writing, it’s rare to see a great blog like
    this one nowadays.

  18. January 3rd, 2025 at 16:15 | #18

    Nightlife 역삼오피 (Hosea)

  19. January 3rd, 2025 at 16:16 | #19

    Number 1 shows the resulting PK profiles and Table 2 the matching PK parameters.

  20. January 3rd, 2025 at 16:27 | #20

    Normally I do not learn post on blogs, however
    I would like to say that this write-up very pressured me
    to try and do so! Your writing taste has been amazed me.
    Thank you, very nice post.

  21. January 3rd, 2025 at 16:43 | #21

    Awesome article.

  22. January 3rd, 2025 at 17:08 | #22

    Excellent blog! Do you have any recommendations for aspiring writers?
    I’m hoping to start my own blog soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or go for a paid option? There are so
    many choices out there that I’m completely confused ..
    Any suggestions? Bless you!

  23. January 3rd, 2025 at 17:34 | #23

    The procedure will certainly start by cleaning up
    the target area and applying a gel.

  24. January 3rd, 2025 at 18:10 | #24

    Cocktail Bar BUDAL

  25. January 3rd, 2025 at 18:34 | #25

    The Truth About Bankrupties Auto Loan 다바오
    홀덤 머니상

  26. January 3rd, 2025 at 18:51 | #26

    Make positive that the app iis compatible with your device’s operating method.

  27. January 3rd, 2025 at 18:59 | #27

    Aw, this was an incredibly good post. Taking a few minutes and actual
    effort to produce a superb article… but what can I say… I put things off a whole lot
    and never seem to get nearly anything done.

  28. January 3rd, 2025 at 19:04 | #28

    This is very interesting, You are a very skilled blogger.

    I have joined your rss feed and look forward to seeking more of your wonderful post.
    Also, I have shared your web site in my social networks!

  29. January 3rd, 2025 at 19:33 | #29

    Good day! I simply want to offer you a big thumbs up for your great information you’ve got here on this post.
    I will be returning to your site for more soon.

  30. January 3rd, 2025 at 19:46 | #30

    как узнать свой промокод в 1хбет

  31. January 3rd, 2025 at 19:56 | #31

    It is appropriate time to make some plans for the long run and it’s time to be happy.
    I’ve learn this put up and if I may I desire to counsel you few attention-grabbing things or tips.

    Perhaps you can write subsequent articles relating to this article.
    I desire to learn more things about it!

  32. January 3rd, 2025 at 20:03 | #32

    Auto insurance policy in Chicago is an essential need for any type of driver in the metropolitan area.

    The varied web traffic states as well as weather adjustments make it vital to find the correct coverage.
    Many providers give great prices on auto insurance in Chicago,
    creating it less complicated for residents to keep safeguarded.
    Don’t neglect to look around for the greatest deals on auto
    insurance policy in Chicago.

  33. January 3rd, 2025 at 20:12 | #33

    This substance of this blog piece is really fascinating .
    I delighted in the way you scrutinized the various issues so thoroughly and clearly .
    You assisted me obtain novel outlooks that I never considered before.
    I’m thankful for imparting your proficiency and competence – it
    has equipped me to acquire knowledge additionally .

    I specifically relished the ground-breaking outlooks you presented ,
    which widened my horizons and reasoning in valuable paths .
    This blog is organized and captivating , which is critical for content of this standard .

    I hope to review supplementary of your writings in the upcoming period,
    as I’m certain it shall continue to be illuminating and
    enable me persist in growing . I offer my appreciation !

  34. January 3rd, 2025 at 20:19 | #34

    Finding The Perfect Poker Rakeback Deal 에볼루션 총판

  35. January 3rd, 2025 at 20:32 | #35

    Clubbing 울산유흥

  36. January 3rd, 2025 at 20:33 | #36

    Find out below the benefits of gambling online under the radar and which are the best brands that can facilitate this.

  37. January 3rd, 2025 at 20:34 | #37

    Hookah Lounge 광주유흥

  38. January 3rd, 2025 at 20:38 | #38

    You suggested it effectively!

  39. January 3rd, 2025 at 20:45 | #39

    Nonetheless, knowledge of sex distinctions with regard to the features of oxytocin and vasopressin is considerably needed in the advancement of peptide-based treatments for mental and physical problems, including drug abuse, schizophrenia, and injury (Macdonald, 2013).

    B Oxytocin And Cancer Cells: A Complex Connection
    Body make-up, consisting of whole-body fat, lean mass, and complimentary and total water were assessed with MRI-based modern technology. Mice were euthanized using isoflurane and either product or plasma was collected through cardiac leak for downstream analysis. These uterine tightenings, in turn, cause your pituitary gland to release even more oxytocin, bring about a boost in both the strength and frequency of contractions.
    Thus, it is not unexpected that when faced with anxiety oxytocin can shield the features of the digestion system (Yang et al., 2019), heart (Gutkowska and Jankowski, 2012; Buemann and Uvnas-Moberg, 2020), and immune system (Kingsbury and Bilbo, 2019). Oxytocin receptors are particularly bountiful in brainstem regions, including the dorsal vagal complicated or dorsal motor nucleus of the vagus (DMX) that regulates subdiaphramatic organs. Vagal policy is additionally linked in sex-related and social actions and is related to inspiration and incentive wiring (Han et al., 2018). Oxytocin might act upon these ancient and highly preserved brainstem areas to permit animal patterns of maternal and sex-related actions that require immobility without fear (Porges, 1998; Kenkel et al., 2013). Of specific significance to oxytocin’s capacity to promote health and impact behavior is the expanding evidence for activities of oxytocin throughout the immune system and its significant function as an anti-inflammatory and antioxidant (Szeto et al., 2011; Bordt et al., 2019; Kingsbury and Bilbo, 2019).
    When offered throughout or after back block anaesthesia, oxytocin may potentiate the pressor effect of sympathomimetic vasoconstrictor agents. When it comes to foetal death in utero, and/or in the visibility of meconium-stained amniotic liquid, tumultuous labour should be avoided, as it may cause amniotic fluid blood clot. There are no pet or human research studies on the carcinogenicity and mutagenicity of this medicine, nor exists any type of details on its impact on fertility. Pitocin may communicate with substance abuse in anesthesia, prochlorperazine shot, or warfarin. Follow your doctor’s directions concerning any kind of restrictions on food, beverages, or task.

    The activation of oxytocinergic neurons in the PVN creates not just the launch of oxytocin in the spine controlling penile erection but also in the forward tegmental location, the hippocampus, the amygdala, and potentially in the bed nucleus of the stria terminalis, which are all locations that contain the oxytocinergic receptors [161,162,163,182] in which the shot of oxytocin induces penile erection [23,24,89,167,168,180]

    The CA1 field of the dorsal hippocampus was the other location of the rat brain containing oxytocinergic fibers and receptors (see [14,15] determined in 1985 in which the injection of oxytocin caused penile erection [87]

    Paradoxical considering they ended up damaging his online reputation, at the very least awhile. They were given numbers, like GHRP-2 and GHRP-6, or scientific names like hexarelin or ipamorelin. Molecular weight (MW), amino acid (AA) sequence, total variety of deposits, variety of favorable fees, isoelectric point (pI) and polarity of the neuropeptides of passion. • SSR A is an orally energetic, careful, non-peptide OT-antagonist with a long period of time of action as a tocolytic in the administration of preterm labor (245 ).
    Since regular spermatogenesis takes about 6 weeks in the ram this would certainly suggest that the contractile properties of OT might either cause a premature shedding of spermatozoa in the testis or minimized time spent taking a trip via the epididymis to obtain full maturation of the spermatozoa. One research study exploring OT’s impact on sperm count in bunnies suggested that intravenous injections could reduce the number of spermatocytes going through degeneration throughout meiosis in the testes or boost mitotic activity of the spermatogonia (103 ). The author assumed that OT may cause a hypersecretion of gonadotrophic hormonal agents resulting in an inhibitory effect on spermatogenesis.
    Oxytocin Influences Top-down And Bottom-up Social Perception In Teens With Asd: A Meg Research Study Of Neural Connection
    The particular peptides that have taken the physical fitness globe by storm, however, tend to be associated with the manufacturing of development hormone. Maes et al. [9] formerly researched the NSB behavior of three neuropeptides, neuromedin N (NmN), neuromedin B (NmB) and neurotensin (NT), to enhance their LC-MS/MS metrology. NmN, NmB and NT have molecular weights of 746, 1132 and 1673 Da, respectively and can be taken into consideration as instead tiny neuropeptides. The impact of the composition of the dissolution, dilution and shot solvents was assessed besides the sort of surface area materials used during example prep work. Acetonitrile was found to be vital for injection onto the column, while it should be excluded from the dilution solvent.

  40. January 3rd, 2025 at 20:49 | #40

    Hi there, after reading this amazing piece of
    writing i am as well happy to share my familiarity
    here with colleagues.

  41. January 3rd, 2025 at 21:11 | #41

    Urban Nightlife 역삼오피

  42. January 3rd, 2025 at 21:42 | #42

    Social Gathering 부달

  43. January 3rd, 2025 at 21:45 | #43

    When I originally left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and from now on every time a comment is added I recieve four emails with the
    same comment. Perhaps there is an easy method you can remove
    me from that service? Thanks a lot!

  44. January 3rd, 2025 at 21:57 | #44

    What a material of un-ambiguity and preserveness of valuable familiarity about unexpected
    emotions.
    https://studioarkitekture.com/studio-arkitekture-tirane/

  45. January 3rd, 2025 at 21:58 | #45

    Thank you a lot for sharing this with all of us you really know what you are speaking about!
    Bookmarked. Kindly also seek advice from my site =).
    We could have a hyperlink exchange arrangement among us

  46. January 3rd, 2025 at 22:31 | #46

    mega sb зеркало
    Tanks

  47. January 3rd, 2025 at 22:39 | #47

    Hi are using WordPress for your site platform?
    I’m new to the blog world but I’m trying to get started and set up my own. Do you require any html coding expertise to
    make your own blog? Any help would be greatly appreciated!

  48. January 3rd, 2025 at 22:52 | #48

    Pretty! This was a really wonderful article. Thanks for supplying this information.

  49. January 3rd, 2025 at 23:09 | #49

    Great website. Lots of helpful info here. I’m sending
    it to several friends ans additionally sharing in delicious.
    And obviously, thanks for your sweat!

  50. January 3rd, 2025 at 23:26 | #50

    How To Play Baccarat And Win 에볼루션 취소 프로그램

Comment pages
1 52 53 54 55 56 63 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