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" <[email protected]> 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.