It hasn’t been implemented in Spark TextInput yet.  You should be able to copy 
the code from MX TextInput into Spark TextInput (as an override of 
SkinnableTextBase’s displayAsPassword).  It would be good if you can learn how 
to modify the framework code and provide pull requests.  Then you will be less 
dependent on other volunteers in the future.

Thanks,
-Alex

From: Takeshita Shoichiro <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Thursday, December 5, 2019 at 4:12 AM
To: "[email protected]" <[email protected]>
Subject: displayAsPassword attribute does not work


Hi,

displayAsPassword attribute does not work with the following markup.  Did I 
miss something?

===============================================================================


<?xml version = "1.0" encoding = "utf-8"?>

<s:Application xmlns:fx = 
"http://ns.adobe.com/mxml/2009<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7C04a0de9cd9114f9fafba08d7797c63e6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637111447474494211&sdata=4EMdfTN0BI%2B9JfSlzmnrHKJe6NZqZ8%2BQayi8wa3IBRs%3D&reserved=0>"

               
xmlns:s="library://ns.apache.org/royale/spark<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fspark&data=02%7C01%7Caharui%40adobe.com%7C04a0de9cd9114f9fafba08d7797c63e6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637111447474504205&sdata=aAYt52lyZIvj5PwzyUtcpj%2FM%2BdvYWY2VNpZr4TIIC%2Fo%3D&reserved=0>"

               
xmlns:mx="library://ns.apache.org/royale/mx<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx&data=02%7C01%7Caharui%40adobe.com%7C04a0de9cd9114f9fafba08d7797c63e6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637111447474504205&sdata=xaEmgbIrZbW4xg%2FozIClXf1gvAVXS9eFMqo5E1A%2BWX0%3D&reserved=0>"
 minWidth="1024" minHeight="768">

    <s:layout>

        <s:BasicLayout/>

    </s:layout>



    <s:VGroup x="50" y="50">

        <s:TextInput id="textA"

            text="royale007"

            editable="true"

            displayAsPassword="false"

            maxChars="10" />

        <s:TextInput id="textB"

            displayAsPassword="true" />

    </s:VGroup>



</s:Application>




S. Takeshita

Reply via email to