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 17th, 2024 at 09:26 | #1

    This is the only real reason why you have got to
    make sure about your Travel Insurance coverage masking the
    quantity for cancelled flight tickets however on one condition; you ought to have a
    sound motive why the cancellation was for reasons not within your management.
    Do you need to travel loads? Wish to know what well-known painting finest reflects your character?

    It is not a single man military and needsan ample bunch of
    beginner as well as pro photographers who carry out best of a second.
    While it might sound like a conflict of curiosity to personal tracks as properly as the racing collection, NASCAR
    officials are sensible enough to additionally give fans races at well-liked tracks akin to Bristol Motor Speedway and Atlanta Motor Speedway — each tracks owned by SMI.
    Scallops pair very effectively with grains like couscous, grits or
    polenta. Using a tape measure or a ruler lower the string in response to your required length with
    a pair of scissor. Momo or dumplings with a range of fillings, and rikkikul, or potato pancakes, square measure some native favourites that square measure helpful for offering the physique
    with gasoline. Not like the Nationwide Football League (NFL),
    Major League Baseball (MLB), the National Hockey League (NHL) and the Nationwide Basketball Association (NBA), NASCAR is a sanctioning body quite than a
    league of teams.

  2. July 17th, 2024 at 10:19 | #2

    Lay a 4×8 foot (1.22 to 2.44 meter) sheet of plywood on the
    bottom with the shorter ends on both aspect, then measure 3.5 (8.89 centimeters) inches up from the underside
    right corner. If you are changing or putting in wheels
    and tires manually, you’ll have to test the other
    aspect wheel, secure a jack to help the trailer’s weight and
    loosen the lug nuts with a lug wrench earlier than raising the
    wheel off the ground. To make sure security and correct performance, tire makers suggest changing trailer tires every three to 5 years.

    In case your tires are scorching because of sunlight or day-to-day operations, the expanded air offers you a
    false stress reading, so examine tire stress underneath cool circumstances if attainable.
    When it’s sizzling and humid, evaporated water can make up as much as 6 % of the air we breathe.
    You will discover this degree, in psi, listed on the tire’s
    sidewall.

  3. July 17th, 2024 at 10:27 | #3

    Racial and Ethnic Minorities Elevated ranges of discrimination,
    racism-related stress, and limited access
    to culturally competent psychological well being care. Addressing
    the impact of the pandemic on youth mental well being requires a complete approach that includes targeted interventions for weak populations, elevated entry to psychological health companies, and selling awareness and understanding of psychological health
    issues amongst youth and society as a complete. The pandemic has significantly affected youth mental
    health, with rates of psychological distress increasing.
    Prioritizing youth psychological health through the
    pandemic and beyond is important to mitigate the dangers related to
    neglecting mental well being and to promote the overall well-being
    of younger people.

  4. July 17th, 2024 at 23:07 | #4

    Always learning something new from your blog Keep up the great work! Pasang Iklan Properti

  5. July 18th, 2024 at 05:00 | #5

    I always look forward to your next article Keep up the great work! Pasang Iklan Properti

  6. July 18th, 2024 at 06:09 | #6

    Are they topic to the identical dangers as a sand
    castle on a seaside – water, erosion and time?

    If you may be exterior in the solar for an prolonged time period, convey alongside an additional non-comedogenic sun block
    formulated for faces, since the SPF in your morning moisturizer isn’t formulated to last all day
    on the seashore. In the days of building the nice Wall of China, individuals
    simply rammed some earth and called it a day. Elements of the nice Wall of China were constructed utilizing the technique and are still standing greater than 2,000 years
    later. For acne-ridden pores and skin that is additionally very dry and flaky (a typical
    response to acne medications), a heavier — but nonetheless non-comedogenic — cream may be applicable.
    Goodlerner. “A few of those are geared toward drier pores and skin.” Since drier pores and
    skin requires more moisture to remain in steadiness, these formulas could also
    be heavier, with more lipids and a creamier feel. Of course,
    these heavier formulation may clog pores and lead to acne.
    And, after all, sloths aren’t especially energetic —
    although new research signifies we could have exaggerated their laziness.

  7. July 18th, 2024 at 09:54 | #7

    Artikel yang inspiratif, pantas mendapatkan komentar. Salam dari : IDProperti.com | Pasang Iklan Properti

  8. July 18th, 2024 at 10:04 | #8

    jamestown nursing home hamilton ohio

  9. July 18th, 2024 at 23:30 | #9

    ยินดีต้อนรับเข้าสู่สู่บริษัท Cicon Interior ที่ให้บริการช่างตกแต่งภายในครบวงจรในสไตล์ที่ไม่ซ้ำใคร ด้วยความพิถีพิถันและมีคุณภาพที่สูง หากคุณกำลังมองหาบริการเฟอร์นิเจอร์บิ้วอินที่จะสร้างความประทับใจให้กับบ้าน คอนโดหรือออฟฟิศของคุณ บริษัท Cicon Interior ที่คุณสามารถพูดคุยและให้คำปรึกษาเกี่ยวกับการสร้างเอกลักษณ์และความเป็นตัวคุณของงานบิ้วอินที่คุณต้องการ
    ด้วยประสบการณ์และความเชี่ยวชาญของทีมงานที่มีคุณภาพ คุณจะได้รับการดูแลอย่างใกล้ชิดและครอบคลุมทุกขั้นตอนของงานบิ้วอิน จนถึงการติดตั้งบิ้วอินเสร็จสิ้น กับ Cicon Interior คุณจะได้รับผลลัพธ์ เฟอร์นิเจอร์ชิ้นในอาคารที่มีคุณภาพทั้งดีไซน์ความทนทาน และการบริการสูงที่จะเป็นประโยชน์ต่อคุณในระยะยาว.

  10. July 19th, 2024 at 08:47 | #10

    The map knowledge is loaded into topographic functions that can be downloaded to your phone to be
    used if you determine to go off on a hike or for your subsequent 4×4
    trip into the bush. Purchase Elevation maps Australia would aid you refine your seek for the apps you
    want that contain current maps and useful software to
    help you with all kinds of stuff you plan to do alongside
    your journey. Creating a robust presentation with geographical layouts can help you to find a specific region anyplace in the Afghanistan. Understanding of Maps is very important in a presentation that helps to show the exact statistics by locating the situation of specific
    region. At first it may seem like you are just looking at a bunch of strains going around in circles, however each of those strains
    represents a specific peak on the map. Newmans Coach Traces began in Nelson in 1879
    with brothers Tom and Harry Newman offering
    a horse-drawn coach service delivering mail across the Nelson region.

  11. July 19th, 2024 at 16:37 | #11

    Because it was much quicker and slightly more comfy, railroad travel primarily
    put an end to the coach, and from 1830 to the early 20th
    century, People would confer with “roads” when talking of trains.
    City railway transportation also increased metropolis populations and
    offered a welcome alternative to horse-driven carriages,
    which crowded the streets and produced far a lot manure.

    Up till the late nineteenth century, before the introduction of
    the vehicle, there were only a few major highways or
    roads on which to travel, and most individuals went by both horse-driven coach or railway.
    People drilling for oil had extra curiosity in extracting
    kerosene, used for illumination. Right now, with the rising price of oil driving the price of gasoline
    up past 4 and even five dollars a gallon, many people are in search of out different technique of transportation. And if you are
    touring with little ones, strive putting 1 drop peppermint
    oil on their tongues earlier than the journey. Putting scholars in international locations with which they’re already familiar
    limits the effectiveness of the trade. People who’ve moved out to the suburbs to keep away from
    city residing, for example, are now considering transferring nearer to their jobs in the town in order to avoid wasting cash at
    the pump.

  12. July 19th, 2024 at 20:40 | #12

    Very good info. Lucky me I came across your website by chance
    (stumbleupon). I have book marked it for later!

  13. July 20th, 2024 at 04:39 | #13

    You can check flights, practice or bus primarily based on your travel funds.
    Bus booking is pretty simple these days on internet.
    For on-line bus booking you possibly can verify completely different OTA’s website.
    Search best bus service, examine and purchase low-cost tickets.
    Should you plan early you’ll get budget tickets on-line. Here
    you will witness the throng of people who come to the edge of the Ganges not just for a ritual bath, however to observe
    yoga, offer blessings, buy paan, promote flowers, get a massage, play cricket, have a swim or get
    a shave. The a whole bunch of sorts of flowers, bushes, and
    animals that name this region house will surely appeal to the attention of even essentially the most informal of photographers.
    A go to to Wales will take you to the various historical attractions that this nation that belong to the United Kingdom is fashionable for.
    Take a magical trip to the nice Smoky Mountains for 5
    days of gorgeous wildflowers and beautiful surroundings
    not like anyplace else on earth. Imagine the heat sun in your face and
    the contemporary woodsy scent of the forest as you wander alongside the scenic trails of
    the nice Smoky Mountains. Have fun the altering of the seasons with a trip to the good Smoky Mountains.

  14. July 20th, 2024 at 06:05 | #14

    There isn’t any need for you to fret; simply explore the internet to seek out essentially the most viable camping equipment UK, tents and different objects required
    to make your journey snug. And, an outdoor adventurer needs
    to realise that achieving that stage is simply doable if he or she prepares
    himself or herself with the suitable camping tools. To make sure the very best worth before you purchase, join low worth alerts that
    will help you time your purchases excellent from the start and reduce prices.
    The perfect candidates for roasting are Roma or plum tomatoes,
    in addition to complete cherry and grape varieties.
    Every member of the household creates a login for the Cozi program that grants access
    to the household’s account, where all of the schedules and lists are stored.
    The location is organized by metropolis and state, making it easy to search out offers relevant to your family.
    Green environments present a calming and enjoyable impact on the mind,
    permitting individuals to flee the stressors of each
    day life and find solace within the tranquility of nature.
    After your free registration, you may obtain a daily e-mail highlighting a brand new deal accessible in your city.
    If you end up buying a Groupon you don’t suppose you’ll use,
    or miss out on quite a lot of the day, check out Lifesta.

  15. July 20th, 2024 at 17:10 | #15

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

  16. July 21st, 2024 at 06:50 | #16

    Your blog consistently offers valuable information Much appreciated from IDProperticom

  17. July 21st, 2024 at 12:16 | #17

    Artikel yang inspiratif, pantas mendapatkan komentar. Salam dari : IDProperti.com | Pasang Iklan Properti

  18. July 22nd, 2024 at 02:31 | #18

    Here comes the secret Agen888

  19. July 22nd, 2024 at 11:12 | #19

    Wow! This blog looks just like my old one! It’s on a totally different subject but it has pretty much the same layout and
    design. Wonderful choice of colors!

  20. July 22nd, 2024 at 11:42 | #20

    At your service Agen888 next level

  21. July 22nd, 2024 at 12:45 | #21

    Just wanna say that Agen888 has ever been here before

  22. July 22nd, 2024 at 18:13 | #22

    Scatter hitam adalah satu kemampuan utama dari slot online penyedia PG Soft yang dirilis sekarang di slot Mahjong Ways 2 resmi gampang kemenangan maksimal
    yang saat ini tengah mencuri banyak perhatian dan viral belakangan ini karena permainan slot
    MW2 memiliki kemampuan putaran cuma-cuma sampai 60x jika mendapatkan dua simbol
    scatter berwarna hitam.

  23. July 22nd, 2024 at 19:50 | #23

    Rasakan kegembiraan memainkan demo permainan slot Mahjong Ways 1 dan Mahjong
    Ways kedua tanpa biaya, yang dibuat oleh pengembang asli dan terbaik,
    PGS. Rasakan tampilan yang memukau dan keunggulan menarik, serta dapatkan hadiah besar di setiap
    putaran.

  24. July 23rd, 2024 at 05:57 | #24

    استیل ورق

  25. July 25th, 2024 at 06:09 | #25

    Your means of describing all in this piece of writing is in fact fastidious, all be
    capable of effortlessly understand it, Thanks a lot.

  26. July 25th, 2024 at 06:46 | #26

    hello there and thank you for your info – I’ve certainly picked up
    something new from right here. I did however expertise some technical points using this web
    site, since I experienced to reload the site lots of times previous to I
    could get it to load properly. I had been wondering if your
    web hosting is OK? Not that I am complaining, but
    slow loading instances times will sometimes affect your placement in google and could damage your high-quality score if advertising
    and marketing with Adwords. Well I’m adding this RSS to
    my email and could look out for much more of your respective interesting content.
    Ensure that you update this again soon.

  27. July 25th, 2024 at 11:06 | #27

    The principle battle comes with Boo trying to resist the food
    and irritating his buddies in the method. Boo then comes up with
    a plan easy methods to trick his associates and have a peaceful relaxation. All
    aside from an inattentive Boo catch sleep every time he can.

  28. July 25th, 2024 at 16:36 | #28

    When some one searches for his required thing, thus he/she desires
    to be available that in detail, so that thing is maintained over here.

  29. порно римминг
    July 25th, 2024 at 16:39 | #29

    Thank you ever so for you blog. Really looking forward to read more.
    My website: анал порно

  30. July 26th, 2024 at 14:21 | #30

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

  31. July 26th, 2024 at 17:34 | #31

    TRANSFORM YOUTUBE VİDEOLAR İLE ovc çevrimiçi video dönüştürücü internette video ONLINEVIDEOCONVERTER.PRO
    https://tr1.onlinevideoconverter.pro/youtube-converter-mp3
    OVC – ÇEVRİMİÇİ VİDEO KLİBİ İNDİRİCİ

  32. July 27th, 2024 at 01:21 | #32

    Slot bet 200 adalah situs game slot populer pada 2024 terkini saat ini terjamin lebih mudah auto
    maxwin besar dalam cobalah setiap tipe slot game gacor gampang maxwin dari
    beragam penyedia paling terkenal hari ini.

Comment pages
1 17 18 19 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