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. August 1st, 2024 at 14:30 | #1

    continuously i used to read smaller articles or reviews that as
    well clear their motive, and that is also happening with this
    post which I am reading here.

  2. August 2nd, 2024 at 00:23 | #2

    Sellers – these are the people who offer goods and services to buyers.
    So commerce is, quite simply, the exchange of goods and services, usually for
    money. Buyers – these are people with money who want to purchase a good or service.
    Before we get into a complete discussion of e-commerce, it is helpful to have a good mental image
    of plain old commerce first.

  3. August 2nd, 2024 at 01:26 | #3

    Active investors seek to profit from market inefficiencies
    by purchasing investments that are undervalued or by selling securities that are overvalued.
    The final aim of stock markets is to link and facilitate exchange
    of securities to lower the risk of investing. Natural
    or ecological capital is the world’s stock of natural resources, which includes geology, soils, air, water and all living organisms.

  4. August 2nd, 2024 at 01:31 | #4

    whoah this weblog is great i love studying your articles.
    Stay up the great work! You already know, a lot of people are looking round for this
    info, you could help them greatly.

  5. August 2nd, 2024 at 04:48 | #5

    Indian stock market is offering many lucrative opportunities for
    the investors these days. Investors from different
    parts of the world are investing in this market every day.

    Investing in Gold in diverse Ways: One of the
    evergreen and oldest investment product is gold. This is the one
    attribute that will tell you whether a mutual fund
    distributor is interested in only selling or
    is he/she really interested in understanding your requirements and needs.

  6. August 2nd, 2024 at 07:10 | #6

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

  7. August 3rd, 2024 at 01:53 | #7
  8. August 3rd, 2024 at 02:04 | #8

    Elevate your enjoyment expertise with the Ideal
    IPTV subscription services giving varied packages to fit
    each funds. Our top-rated IPTV provider vendors guarantee seamless streaming of your favored shows and
    channels. From the usefulness of your property, explore our wise IPTV subscription remedies and unlock a
    world of endless enjoyment right now.

    Reasons to Pick IPTV Subscriptions – https://skyeraiptv.com
    The advantages of IPTV subscriptions are manifold,
    supplying a amount of usefulness and overall flexibility that conventional Television set
    providers simply can’t match. Right here are just a handful of
    causes why IPTV is the potential of enjoyment:

    1. Broad Assortment of Channels: Not like cable, IPTV offers a
    broad variety of channels for you. With IPTV, you can access
    a extensive assortment of channels, from sports and information to films and international programming.

    2. Flexibility and Comfort: Say goodbye to the
    rigid schedules and minimal viewing choices of cable.

    With IPTV, you can appreciate your preferred articles at
    any time and in any location, regardless of whether at home or overseas.

    3. Cost-Effectiveness: Conventional cable or satellite Television set services usually expense more than IPTV
    subscriptions. With IPTV, you get excellent benefit for cash many thanks to competitive costs and no concealed charges.

    Learn unbeatable benefit with our affordable IPTV membership programs created specifically for viewers.
    Our sensible Television gives a litter-totally free
    and seamless leisure encounter. IPTV subscriptions.
    With our greatest IPTV suppliers, Enjoy large-high quality streaming at competitive rates with our IPTV service.
    Never overlook out on our exclusive IPTV membership deals – commence saving on your
    amusement expenses today.
    With our aggressive IPTV subscription rates and prime-notch consumer service,
    your search for the ideal IPTV support finishes listed
    here. Say goodbye to cable contracts and howdy to headache-cost-free streaming.

  9. August 3rd, 2024 at 04:17 | #9

    It is considered one of the easiest and shortest trekking routes in Nepal however has plenty of issues to supply.

    The trekkers should be physically fit for easy, direct and testing trekking offer.
    Navy, broadcast spooky sounds match for a fashionable horror movie and referred to
    as it “Ghost Tape Number 10″ (take heed to the audio here).

    Try the Stuff of Life podcast “Haunted” for more details on Ghost
    Tape No. 10, haunted attractions and one thing called Doomocracy.
    I not often test the time. I verify it more when it gets near quitting time.
    I test it when I am curious. I check it each few minutes.

    You want to research all these maps in combination if you want to
    have more data about the town however there are typically few shortcut methods.
    Most have viewing hours before the auction in an effort
    to study the objects for sale and decide what you need
    to bid on and how excessive you’re willing to go.
    This design aesthetic can inspire a sense of belonging and inspire people to
    understand and care for the surroundings. Lots of the artists concerned in these deceptions
    discovered later success in style, art or design careers –
    including trend designer Invoice Blass.

  10. August 3rd, 2024 at 04:36 | #10

    Whether you’ve constructed a simple PVC structure or
    a more elaborate metal body, the hassle will
    repay in improved batting expertise and the joy of
    playing baseball or softball in your backyard.
    If you’re a baseball enthusiast looking to step up your
    game from the consolation of your backyard, constructing
    a DIY batting cage is perhaps the proper project
    for you. If you are searching for a extra portable batting cage, consider shopping for batting
    cage kits which embody a lot of the required
    supplies. Budgeting for supplies like netting, a batting cage
    frame, and artificial turf is also essential
    at this stage. If you are using a metal frame, you might want to put concrete and
    look ahead to it to be fully hardened before proceeding. If you’ve opted for a steel frame, ensure all screws are
    tightly secured for maximum stability. That’ll
    show pages from the Wikipedia namespace with “Hello there” in them, and the list of results is not going to be cluttered with any Articles for deletion debates (there are lots of of
    hundreds). Mere mortals acquired a chance to play with
    celebrities in this game present primarily based on tic-tac-toe.
    Hidden Expedition: The worth of Paradise is the 19th game of the
    collection.

  11. August 4th, 2024 at 08:17 | #11

    Bitstamp is another European-based cryptocurrency exchange platform has started
    in the year of 2011. This platform has more features like fast trading, user-friendly interface, trustworthy fund transfer, guaranteed
    exchange service and more reliable. Poloniex is
    a US-based cryptocurrency exchange platform that offers advanced trading options with high-security
    features. Kraken is one of the US-based leading cryptocurrency exchange
    website have started in the year of 2011. We can do a
    trading process for all kinds of cryptocurrencies.

  12. August 4th, 2024 at 08:56 | #12

    The trade in 3 or 4 segments Stock at a time with harsh stop loss (SL).

    In most of the cases, the basic order types may cover all your trade execution needs.

    Simply, get out of the deal without changing your plan during
    the market; it may reason you double losses. This app helps you in learning tricks and ways to invest in order to get maximum profits.

  13. August 4th, 2024 at 10:01 | #13

    Here is a model : • Saddle-sewed; Generally
    utilized for a magazine organization, booklets and company brochures.
    It would not be wrong to say that the houses here are overly priced and so they would see a fall in them.

  14. August 4th, 2024 at 10:37 | #14

    you’re in reality a just right webmaster. The site loading velocity is incredible.

    It sort of feels that you are doing any unique trick. Moreover, The contents are masterpiece.

    you’ve performed a excellent process in this subject!

  15. August 4th, 2024 at 10:38 | #15

    And a handbag, if Santa delivers like he’s supposed to this
    Christmas. They do things like track your workout time,
    steps (like a pedometer), distance and calories burned,
    as well as measure your heart rate and monitor your sleep patterns.

  16. August 5th, 2024 at 01:22 | #16

    Meninggalkan komentar untuk menjadikannya viral, terima kasih dari IDProperti.com | Pasang Iklan Properti

  17. August 5th, 2024 at 08:02 | #17

    Another excellent read Thanks for keeping your content so engaging! Greetings from IDProperticom

  18. August 6th, 2024 at 04:57 | #18

    features

  19. August 6th, 2024 at 07:28 | #19

    I’m impressed by your creativity Cheers! Pasang Iklan Properti

  20. August 6th, 2024 at 14:12 | #20

    Way cool! Some very valid points! I appreciate you writing this
    post plus the rest of the website is really good.

  21. August 7th, 2024 at 11:11 | #21

    Hi there! This post couldn’t be written any better!

    Reading through this post reminds me of my old room mate!
    He always kept talking about this. I will forward this write-up to him.
    Fairly certain he will have a good read. Many thanks for
    sharing!

  22. August 7th, 2024 at 19:06 | #22

    This paragraph will help the internet viewers
    for building up new website or even a blog from start to end.

  23. August 8th, 2024 at 07:57 | #23

    Hi there to every one, since I am in fact eager of reading this webpage’s post to be uldated daily.

    It carries nice information. https://waste-Ndc.pro/community/profile/tressa79906983/

  24. August 9th, 2024 at 19:13 | #24
  25. August 9th, 2024 at 21:18 | #25

    passing on the savings to you. We are committed to providing
    value for money while ensuring the well-being of
    our goats throughout the delivery process.

    Conclusion:
    If you’re searching for goats for sale

  26. August 10th, 2024 at 03:02 | #26

    Finance Tech Trends

    I have read so many articles concerning the blogger lovers but this paragraph
    is truly a pleasant piece of writing, keep it up.

  27. August 10th, 2024 at 19:08 | #27

    Everything is very open with a very clear explanation of the issues.
    It was truly informative. Your site is extremely helpful.
    Thank you for sharing!

  28. August 11th, 2024 at 09:54 | #28

    We’re a group of volunteers and opening a new scheme in our community.

    Your website provided us with valuable information to work on. You’ve
    done a formidable job and our whole community will be grateful to you.

  29. August 11th, 2024 at 16:32 | #29

    Please let me know if you’re looking for a writer for your weblog.
    You have some really great posts and I believe I would be a good asset.
    If you ever want to take some of the load off, I’d absolutely love to write
    some articles for your blog in exchange for a link back to mine.

    Please shoot me an e-mail if interested. Thanks!

  30. August 12th, 2024 at 05:59 | #30

    Kami mengerti betapa signifikannya aksesibilitas yang praktis dan gesit ke kawasan pendidikan anak.
    Impianku Quranic Daycare terletak di di area yang terencana, memudahkan orang tua untuk menghantar dan mengambil anak-anak mereka tanpa kesulitan. Dengan kata kunci “paud islam terdekat dari lokasi saya”, Anda akan mengenali bahwa kami adalah alternatif yang paling
    ideal.

  31. August 12th, 2024 at 07:12 | #31

    The fireplace mantel was one among two originally bought by President
    James Monroe in 1817. Carved of white marble in France in the Empire fashion, it and its companion originally have
    been put in within the State Dining Room. McKim long-established all new mantels for the State
    Dining Room, and reused one of the 1817 mantels within the Purple Room.

  32. August 12th, 2024 at 07:56 | #32

    Adopting a Canine From a ShelterWhen you adopt a dog from
    a shelter not solely are you gaining an ideal companion, however you could
    also be saving that dog’s life. On this part, you will find out how to choose the proper canine and
    how the shelter can assist you in this process. Simply as in buying a dog from a breeder,
    there are some important issues it is best to
    know when taking house a dog from the shelter.

  33. August 12th, 2024 at 07:57 | #33

    One of the surprising facts about this precious stone is
    that it comes in every shade of the rainbow except red.

    The bluish shade of sapphire will highlight
    your face and draw the attention of people wherever
    you go. And when a sapphire is artistically set in a
    beautiful dangle setting, the earring will become one of a kind.
    If there are no interested bidders, then the beneficiary will legally repossess the property.

  34. August 12th, 2024 at 08:11 | #34

    Coaching requirements are additionally molded by the International Convention on Standards of training,
    Certification, and Watchkeeping for Seafarers (or STCW), which prescribes minimal requirements that have to be met.

    Bullmastiffs are a breed of large dogs. U.S. Department of Transportation and is administered by the
    U.S. U.S. imported LNG by 2025, the worldwide LNG fleet does not embrace a
    single U.S.

  35. August 12th, 2024 at 08:13 | #35

    The Miwok lived in small bands with out centralized political authority before contact
    with European People in 1769. They’d domesticated canines and
    cultivated tobacco, but have been otherwise hunter-gatherers.
    Some small sites continued into the early 2000s (with manufacturers
    reminiscent of Rotoplas precision engineering on Stormont Street);
    nonetheless, nearly all industrial land has been converted to residential development as the area
    has gentrified.

  36. August 12th, 2024 at 08:29 | #36

    Michael Lynn, a professor of shopper habits on the Cornell College School of Hotel Administration who researches tipping, reported
    that on-line customer opinions of no-tipping eating
    places went south when the no-tipping policies had
    been instituted, and have been worst when ideas were replaced with service fees.
    In different no-tipping eating places, it was the waiters who revolted.

  37. August 12th, 2024 at 08:52 | #37

    Keep studying to learn to make the crayon caddy box
    craft. Keep studying to learn to make the thriller
    containers field craft. We may all the time return to
    the previous method — utilizing heavy-headed sledgehammers — but
    there most likely aren’t sufficient chiropractors in the world to maintain building employees’ backs aligned.

  38. August 12th, 2024 at 09:33 | #38

    Apart from all of the conflicting info out there, tax and employment laws are all
    the time changing (Reasonably priced Care Act, anyone?), making the perfect recipe for one big tax
    mess and a whole lot of anxiety.

  39. August 12th, 2024 at 13:09 | #39

    we have the perfect solution for you. Our inventory includes an array of
    new and used golf carts

  40. August 14th, 2024 at 02:20 | #40

    In Van der Post’s novels, Nonnie’s character is a 13-year-old
    boy. When poachers invade the Wildlife Commissioner’s home and
    slaughter him and his household, only his daughter, 15-year old Nonnie (Witherspoon), and a visiting New York prep-school boy named Harry Winslow (Ethan Randall) escape.
    The opening scenes are violent, but they succinctly illustrate the wanton destruction poachers engage in and set the stage for the conflict.

  41. August 14th, 2024 at 03:43 | #41

    In the US, a positive relationship between the forward earnings yield of the S&P 500 index and government bond yields has
    been present over specific time periods, namely 1921 to 1929,
    and 1987 to 2000; for most other periods, and markets, the relationship fails.

    This relationship is known as the Fed model, which states an equality between the one year forward looking E/P ratio or
    earnings yield and the 10-year government bond yield.

  42. August 15th, 2024 at 04:18 | #42

    तब जाकर पता चला कि ये नई पिछले कई
    महीनों से खराब है और पानी भी
    नहीं दे रहा है.

  43. August 16th, 2024 at 06:10 | #43

    It is tailored in a way to take students step-by-step through the whole process, with timelines and the regulatory
    requirements. You will be required to liaison with your clients to determine their
    capital requirements. In terms of Private Equity and Venture
    Capital, working in Private Equity is considered to work among the most respected positions while venture
    capital firm specializes in providing capital to start up or new companies.

  44. August 16th, 2024 at 06:55 | #44

    In case its a couple home, you will have to make sure that it
    is divided evenly between you and your spouse.

    This can be a lot of money going to someone else,
    actually the amount can range around a couple thousands of dollars.

    Selling your house is not an easy matter, it can be a very stressful thing to do.

  45. August 16th, 2024 at 07:03 | #45

    Forget going to see a bank manager or loans officer, they are merely box tickers and red tape generators and have limited or no say in whether your business
    idea can have the funding it requires or the facilities required in order for it to move on to the
    next level. Sadly for many business owners, these box tickers have been responsible for the
    demise of many businesses which, although having a sound base
    and solid ideas combined with driven owners, have ticked one “no” box to many and any chances they had of obtaining extra funding in the form of loans and/or equity was lost like the
    last snows of winter in a spring thaw.

  46. August 16th, 2024 at 07:34 | #46

    Stigma surrounding mental health remains a significant barrier for
    young people, preventing them from seeking help and support.
    Responsible reporting and accurate representation of mental health issues are essential in fostering understanding
    and empathy. Neglecting mental health can have serious consequences for overall well-being, as
    untreated mental health conditions can lead to physical
    health issues in the long run.

  47. August 16th, 2024 at 07:57 | #47

    Stocks are generally considered to be the riskiest
    investment option among the three classes. With a self-directed IRA from
    a high-quality company, each client has the opportunity to diversify
    their investment portfolio by selecting traditional, marketable securities (such as stocks and mutual funds)
    as well as unique assets such as real estate, private placements, private corporate notes, offshore funds,
    deeds of trust, hedge funds and many more.

  48. August 17th, 2024 at 22:13 | #48

    Cherish the educational post on the most recent changes in online gaming amusement. I discovered it truly fascinating to grasp about the increase of interactive operator games and the escalating incorporation of crypto assets for betting payments. As an individual who likes playing at internet-based gambling sites, it’s great to see the market persistent to advance and provide cutting-edge and groundbreaking features. I’ll absolutely be trying a number of the new real-time trader selections you talked about. Continue the outstanding content!

  49. August 19th, 2024 at 02:03 | #49

    Your articles are always worth reading Keep up the great work! Pasang Iklan Properti Gratis

  50. August 19th, 2024 at 05:19 | #50

    Terima kasih atas artikel yang bermanfaat. Semangat dari IDProperti.com | Pasang Iklan Properti Gratis

Comment pages
1 18 19 20 21 22 42 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