flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Swen van Zanten <i...@hdsign.nl>
Subject Re: Flex 4.12.0: Can't toggle displayAsPassword in TextInput as in previous versions
Date Tue, 10 Jun 2014 13:37:42 GMT
Hi,

Why don't you do it like is:

<s:TextInput displayAsPassword="{showPasswordButton.checked}"/>

<s:CheckBox id="showPasswordButton"/>

Verstuurd vanaf mijn iPhone

> Op 10 jun. 2014 om 00:38 heeft "storo84" <sebastiantoro84@gmail.com> het volgende
geschreven:
> 
> Hello everyone,
> 
> I used to be able to toggle the property *displayAsPassword* of a /TextInput
> / in a very simple way:
> 
> /<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
>        xmlns:s="library://ns.adobe.com/flex/spark"
>        title="DisplayAsPassword">
>    
>    <fx:Script>
>        
>    </fx:Script>
>    
>    <s:TextInput id="appPassword"
>                 restrict="-A-Za-z0-9._" displayAsPassword="true"
>                 top="20" left="0" right="0"/>
>    <s:CheckBox id="showPasswordButton"
>                change="togglePasswordDisplay(event)"
>                top="{appPassword.y + appPassword.height + 20}" right="0"/>
>    
> </s:View>/
> 
> The previous code used to work when using SDK version 4.6, but now, that I'm
> using 4.12.0 it doesn't. It should be pretty straight-forward so why isn't
> it working?
> 
> Any help is appreciated.
> 
> Regards,
> 
> Sebastián
> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-4-12-0-Can-t-toggle-displayAsPassword-in-TextInput-as-in-previous-versions-tp6790.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message