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. July 4th, 2017 at 11:14 | #1

    Online shopping is probably the quickest and most practical strategies
    to find goods that you desire or want. Besides quickly
    looking at the values of different providers, you are able to set up an account that instantly expenses your cards without requesting details.

    Keep reading for additional information about online shopping!

    Look for Amazon . com.com to conserve you huge, even on stuff that you might never ever consider to purchase
    on the internet. Amazon has brought so big that it’s even more
    of a surprise after they don’t have some thing available.
    You may also do much of your dried out merchandise shopping for groceries right from their store, frequently on the most
    affordable rates all around.
    When you shop regularly in a specific internet site or online store, it may be
    worth it to sign up for their e-mail up-dates which generally have special
    deals and product sales. This may lead to cost savings for you as you
    might get yourself a discounted about the piece
    and even shipping and delivery, which could soon add up to greater financial savings if you buy from your
    site frequently.
    Shopping on the internet is the best way to reduce costs as you can research prices so
    quickly. If you’re trying to save all the cash as
    you can, remember to consider any deals how the web store might offer
    you. Most shops offer you some from of sale or offer regularly,
    therefore you should certainly get quite a lot that can help you save even more money.

    Be sure to fully grasp who is accountable if the object
    becomes ruined during delivery while shopping on-line.

    Some shops will be accountable for this, while others put it
    around the transport firm. Make sure you know who to get hold of and who may
    be responsible if merchandise is damages or need to be sent back.

    Only retail outlet at on the internet retail websites that you have confidence in. It is
    actually much too easy for somebody to just create a storefront
    on the internet with a few item information to offer
    products. Do some research around the retailer’s standing before you
    decide to offer any visa or mastercard information. This will
    help prevent any scams on the market.
    No trustworthy company ought to ask for or need to have your sociable stability number
    simply for store shopping uses. As a result, transform it
    into a practice to never give away your SSN on the
    internet. If you are making a obtain and you also are asked for this variety, will not continue.
    Maybe you are with a scam website, and you need to
    not total the transaction.
    See the evaluations kept by other clients.
    You will likely come across some websites that pay money for their evaluations, so be aware of what you are actually studying not only the celebrity rankings offered.
    It will be possible to understand a lot about the caliber of
    the product plus the web site by looking at the evaluations.

    One of the best methods to save cash is
    simply by only buying at online stores you can rely.

    That means don’t get scammed by using a faulty piece you need to dispatch back in your individual price, or otherwise receiving the
    piece at all and burning off the funds you compensated.
    Attempt internet shopping prior to buying some thing off-line.
    This is a great idea, because you might be out a place to see something you
    want, when you are able spend a lot less money online.
    Should you check online very first, you can save dollars plus
    a getaway, so constantly try that before heading
    offline.
    Don’t disregard the privacy policy. Many people have grown to be so used to clicking on “okay” on each put-up which they
    don’t even read the messages. Nevertheless, when shopping on-line, especially for huge acquisitions,
    it is essential to look at the site’s privacy policy. It might
    seem challenging, but it is very important know how your individual info is going to be guarded.

    Research your dealer. Internet shopping must be a problem for
    just about any buyer, meaning understanding who you really are purchasing with.
    Does the seller have credible critiques? Exist issues with delivery
    occasions or high quality of merchandise? A lot of people
    only look into the merchandise however, it is good to learn who you are purchasing from also.

    Do your research when you shop from public sale websites like eBay.

    These sites vary from other web sites, since the products are typically from
    individuals instead of businesses. Read up around the site’s regulations and
    guidelines, along with the legal terms. This will likely
    prevent you from getting in to a dilemma with a owner.

    Amazon online.com is a good place to get offers,
    but the true steals tend to be in the applied merchandise
    offered. Once you get remodeled, you frequently get a product or service which happens to be better still than new as it really has been rigorously examined.
    Other utilized items could be costed at very reduced rates.

    Make an effort to store firmly. The first step is to buy from web
    sites that provide safe connections, meaning their webpage URL starts off
    with HTTPS. You must also have the ability to enter
    your credit card information and facts on-line. Any website
    which requires you to e-mail it is actually unconfident and should be prevented no matter
    what.
    If you are intending to be utilizing digital coupons,
    make use of them as soon as you discover them hence they usually do not
    expire. Some discount coupons must be employed swiftly simply because they expire in the near future.
    This is the reason you ought to pay attention to
    the expiration date.
    Join the devotion programs available by many internet vendors.
    Every program operates in a different way, but all of them
    do a very important factor, which is compensate you for the investment that you simply invest in their online
    store. The true secret, nevertheless, is usually to only buy
    what you should, irrespective of the details or advantages that you
    may make.
    Before purchasing expensive items, do your web study upon them.
    You could see a fantastic deal on the web, or you may discover you need
    to be considering a different make or version. Most merchants and web-based shops will recognize or “cost match” what
    other retailers offer you, simply to get your business.
    Question all accessible special offers, discount rates, and purchaser rewards.

    As explained at first on this post, online shopping
    can be handy in several techniques. As an alternative to supposing you
    should have a terrible expertise, give shopping
    on the internet a try. If you recall the recommendations on this page and utilize these people to your practical experience, you could possibly have a good time!

  2. July 4th, 2017 at 12:46 | #2

    I pay a visit day-to-day a few blogs and websites to read content, except this web site offers quality based posts.

  3. July 6th, 2017 at 04:31 | #3

    This piece of writing gives clear idea designed for the new visitors of blogging, that actually how
    to do running a blog.

  4. July 8th, 2017 at 01:27 | #4

    Internet shopping is one of the least complicated and
    the majority of handy strategies to locate products you need
    or want. In addition to very easily assessing prices of
    numerous suppliers, you may setup your account that automatically expenses your cards with out asking for information and facts.
    Continue reading to find out more about shopping online!

    Look to Amazon online.com to conserve you large, even on stuff that you may possibly never ever
    think to purchase on-line. Amazon has become so
    sizeable that it’s much more of a surprise whenever they don’t have anything accessible.
    You may even do a great deal of your dried out merchandise food shopping right from their retailer, frequently with the cheapest prices about.

    In the event you retail outlet frequently with a specific internet site or
    online store, it might be worthwhile to enroll in their e-mail up-dates
    which often have promotions and sales. This could lead to
    financial savings for you since you may get a discount in the item
    and even shipping and delivery, which may amount to
    bigger savings if you pick from the web site frequently.

    Shopping online is a terrific way to save money since you can check around
    so effortlessly. If you’re looking to preserve the maximum
    amount of funds as you can, remember to look at
    any bargains the online store may supply. Most merchants offer some from
    of sale or bargain frequently, so that you will be able to locate quite
    a lot that can help you conserve more cash.
    Be sure to understand who is liable if the product will get damaged during
    delivery when you shop online. Some shops will be responsible for this, while
    others use it about the delivery firm. Make sure you know who to make contact with and that is liable if products are injuries
    or should be sent back.
    Only go shopping at online retail internet sites which you
    believe in. It can be very easier for anyone to just create a storefront on the net with a few
    item details to market products. Perform some research about the retailer’s status prior to
    supply any credit card details. This can help
    you prevent any scams available.
    No trustworthy business need to ask for or need your social safety quantity basically for shopping uses.
    Consequently, transform it into a practice to never give away your Social security
    number on the web. If you are making a purchase and you are requested this variety, usually do not keep on.
    Maybe you are over a scam website, and you should not complete the deal.

    Read the evaluations kept by other clients. You will probably come across some websites that pay for their
    critiques, so be aware of what you will be reading through not
    only the superstar scores offered. It will be
    easy to understand a great deal about the quality of the item along with
    the web site by looking at the testimonials.
    Among the finest methods to save cash is actually by
    only store shopping at online stores you can depend on. That
    means don’t get cheated using a defective piece you need to deliver
    back again at your own cost, or otherwise obtaining the piece whatsoever and dropping the amount of money you paid out.

    Attempt online shopping before you buy something traditional.

    This a very good idea, since you might be
    out anywhere to see anything you want, when you can spend a lot less
    funds on the internet. In the event you examine on the web very first,
    you save dollars plus a journey, so generally try that before heading offline.

    Don’t forget about the online privacy policy.

    Many people are getting to be so used to simply clicking
    “alright” on each and every take-up that they can don’t even see the communications.
    Nevertheless, when you shop on the web, specifically sizeable acquisitions, it
    is essential to look at the site’s online privacy policy.
    It may look daunting, but it is important to know how your own personal info
    will likely be guarded.
    Analysis your supplier. Shopping on the internet needs to be a concern for just about any shopper, which suggests knowing who
    you are buying with. Does the seller have trustworthy critiques?

    Are there issues with shipping and delivery times or good quality of goods?

    Many people only look into the product however,
    it is always good to understand who you are acquiring from as well.

    Shop around while shopping from public auction websites like
    craigs list. These sites change from other internet sites, as the
    items are normally provided by individuals and never
    companies. Read up about the site’s policies and plans, plus the authorized terms.
    This may stop you from getting into a problem using a
    owner.
    Amazon . com.com is a good location to get bargains, however the actual steals tend to be based in the applied items accessible.
    If you buy restored, you often get a specific thing which is even better than new as this has
    been rigorously evaluated. Other applied merchandise may be listed at very rates that are low.

    Try and go shopping safely. The first step is to purchase
    from web sites which offer secure relationships, which means their
    webpage Website url begins with HTTPS. You need to
    be able to input your charge card information on the internet.
    Any website which requires you to electronic mail it can be unconfident and must be avoided without
    exception.
    If you are going to get utilizing electronic discount coupons, utilize them when you locate them
    so that they will not expire. Some discount coupons need to be applied easily mainly because they expire in the near
    future. This is the reason you need to pay attention to the
    expiry date.
    Sign up for the devotion courses accessible by many online stores.
    Every single system performs in different ways, but all of them do one thing, that is prize you
    for the investment that you just spend in their web store.
    The key, nevertheless, is to only purchase what you will, regardless of the factors or rewards
    that you might generate.
    Prior to buying expensive items, do your web investigation about them.
    You could find a fantastic deal on-line, or you may figure out you should be considering a different make or design. Most stores
    and web-based merchants will honor or “cost match up”
    how many other shops offer you, simply to get the company.

    Find out about all available promotions, special discounts, and purchaser benefits.

    As explained at first on this report, internet shopping can be
    convenient in many different methods. As an alternative to presuming you will find a bad expertise,
    give shopping on the internet a shot. If you remember the recommendations in this article and implement these to your
    expertise, you could have a blast!

  5. July 9th, 2017 at 13:12 | #5

    Thanks for a marvelous posting! I genuinely enjoyed
    reading it, you will be a great author. I will always
    bookmark your blog and will eventually come back in the
    future. I want to encourage continue your great job, have a nice afternoon!

  6. July 9th, 2017 at 15:08 | #6

    What’s up, I desire to subscribe for this weblog to
    get most recent updates, therefore where can i do it please help out.

  7. July 12th, 2017 at 01:51 | #7

    Which Yoga Train Helps To Shrink Uterine Fibroids?

    Uterine fibroids, clinically often known as uterine leiomyomata, are
    common, non-cancerous growths of the partitions of the uterus.
    Tens of millions of girls have uterine fibroids and are capable of lead healthy,
    productive lives. Fibroids usually develop in the estrogen-wealthy setting during being pregnant and they usually shrink after menopause when estrogen drops.

    You may additionally really feel a sense of peacefulness and a lower in any anxiety that you just
    had on beginning this train. The fibroids pressed on my bladder and I was in fixed ache – like having everlasting period cramps.
    Nevertheless, in case your fibroids aren’t causing you pain or interfering with your life in any major
    way, there’s no hurt in making an attempt a couple of natural
    methods which can be stated by many to make a difference.

    The outcomes aren’t great but in addition not dangerous, still must go for
    a scan, but should say can really feel the fibroids have grown as i am additionally slim and they
    are very visible now. Medication such as Lupron, Donazol, and
    Gestrinone are used preoperatively to shrink fibroids earlier than surgery and enhance hospital restoration.

    Research means that as many as 70 to eighty % of
    women will develop fibroids by the time they reach age 50, in accordance with the OWH.

    According to Audlin, these methods can shrink the fibroids by
    about 30 percent. Consuming three or more servings of complete grains or beans
    every day not solely reduces the scale of fibroids
    however gives protection from breast and endometrial cancers as well.

    In Fibroids girls have heavy intervals, ache in pelvic space and
    numerous other issues. Simply so you know, fibroids can..possibly…shrink with menopause, but they
    do not at all times. If the fibroids are numerous or large, myomectomy can grow to be complicated, resulting in elevated blood loss.

  8. July 20th, 2017 at 09:09 | #8

    Amazing! Its truly remarkable post, I have got much clear idea
    regarding from this paragraph.

  9. July 25th, 2017 at 00:56 | #9

    It is one of the most spiritual things in the universe to bring Light to any injustice.

    It is time they tackle the systems that cause or sustain the vast
    economic divide. serve further notice that it’s time to build the Temple.

  10. July 25th, 2017 at 21:02 | #10

    I got what you mean,saved to my bookmarks, very nice web site.

  11. July 26th, 2017 at 00:09 | #11

    Great post. I am dealing with some of these issues
    as well..

  12. August 3rd, 2017 at 16:29 | #12

    Hi there, its good piece of writing concerning media print, we all be familiar with media is
    a fantastic source of information.

  13. August 12th, 2017 at 03:08 | #13

    Normally I do not learn article on blogs, but I would like to say that this write-up very forced me to try and
    do so! Your writing taste has been surprised me.
    Thank you, quite great post.

  14. August 17th, 2017 at 03:41 | #14

    Ɗoes ʏour website һave a contact paցe? I’m having a tough tіme
    locating it but, I’d ⅼike to shoot yⲟu ann e-mail.
    Ι’ve got ѕome ideas for youг blog yoᥙ might bе inteгested
    in hearing. Either way, greɑt blog andd I look forward to seeing it expand over time.

  15. August 19th, 2017 at 13:47 | #15

    He left behind the prayer rug so that anyone clever enough would see the pattern and
    escape. That is absolutely true, since you will be able to improve in each aspect.
    Services include lock changes, lock change, lock replacement, lock rekeying, security safes, grilles and gates and
    gates.

  16. August 21st, 2017 at 03:09 | #16

    If you are going for most excellent contents like I do, just visit this web page daily
    for the reason that it provides feature contents, thanks

  17. August 24th, 2017 at 04:50 | #17

    Hi there! This is my first visit to your blog! We are a team
    of volunteers and starting a new project in a community in the same niche.
    Your blog provided us beneficial information to
    work on. You have done a outstanding job!

  18. August 29th, 2017 at 12:00 | #18

    Only wanna comment on few general things, The website pattern is perfect,
    the content is real excellent :D .

  19. August 29th, 2017 at 19:49 | #19

    Woah! Ich bin witklich lueb die Vorlae / Thema diedses Website.
    Es ist einfach, abr effektiv. Eine Menge Zeit, es ist sehr
    schwer, zu bekommen, dasss “perfekten Balance” zwischen Usability und Optik.
    Icch muss sagen, dass Sie haben, eeine superb Arbeit mitt
    diesem. Auch, die Bllog Lastn Super Schnell für mic auf Firefox.
    Ausstehende Blog

  20. August 30th, 2017 at 09:27 | #20

    Simply desire to say your article is as astounding.
    The clarity in your post is simply cool and i could assume you’re an expert on this subject.
    Fine with your permission allow me to grab your RSS feed to keep up to
    date with forthcoming post. Thanks a million and please carry on the rewarding work.

  21. August 30th, 2017 at 19:48 | #21

    It’s an remarkable piece of writing for all the web people; they will get benefit from it I am sure.

  22. August 30th, 2017 at 22:57 | #22

    He left behind the prayer rug so that anyone clever enough would see the pattern and escape.
    Here are several things you are able to do to prevent these types of
    situations:. Services include lock changes, lock change, lock replacement, lock rekeying,
    security safes, grilles and gates and gates.

  23. September 2nd, 2017 at 00:39 | #23

    F*ckin’ awesome things here. I’m very satisfied to look your article.

    Thank you a lot and i am taking a look ahead to touch you.
    Will you kindly drop me a e-mail?

Comment pages
1 10 11 12 435
  1. March 19th, 2014 at 11:13 | #1
  2. April 30th, 2014 at 01:00 | #2