Alex, I did the following: 1. Copy mx’s displayAsPasswod section of TextInput.as to the end of spark’s TextInout.as.
2. Add override in front of public function get displayAsPassword() and public function set displayAsPassword(). 3. Add import org.apache.royale.html.accessaries.PasswordInputBead. It seems these functions are not overdriven. When moving the mouse over the dusplayAsPassword attribute, the pop up still points SkinnableTextBase. And the password column in the HTML field is not yet masked. Did I miss something? Thanks. 2019年12月6日(金) 7:17 Alex Harui <[email protected]>: > Thanks in advance for trying. > > > > You can try following the “Squashing Bugs” instructions > https://royale.apache.org/get-involved/ > > > > Let us know if the instructions need improvement as well. > > > > -Alex > > > > *From: *Takeshita Shoichiro <[email protected]> > *Reply-To: *"[email protected]" <[email protected]> > *Date: *Thursday, December 5, 2019 at 2:05 PM > *To: *"[email protected]" <[email protected]> > *Subject: *Re: displayAsPassword attribute does not work > > > > Alex, OK. I will try. I need some time to understand the process. > > > > Do I need to create an issue for this error? > > I think I should do the FORK before doing the work at my terminal, correct? > > > > Thanks. > > > > ST > > > > On Fri, Dec 6, 2019 at 1:53 AM Alex Harui <[email protected]> wrote: > > 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%7Ce35286b0539246b0a33b08d779cf4ac0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637111803533207662&sdata=69QRKSk2rJDVORZpsnxFtk7jnZIqgnKTGNCKW0jphug%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%7Ce35286b0539246b0a33b08d779cf4ac0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637111803533207662&sdata=UtpF2G0Y2lOyhhOgmQwVWyc6KHL2k6vBbCXCVqpNl3A%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%7Ce35286b0539246b0a33b08d779cf4ac0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637111803533217616&sdata=6DqvgnYKZUx69PxHyFor5qGybwm8NjW32QmOvE40k5Q%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 > > > > > > > -- > > Shoichiro Takeshita > 武下 祥一郎 > -- Shoichiro Takeshita 武下 祥一郎
