Sebastian Toro created FLEX-34365:
-------------------------------------

             Summary: TextInput's displayAsPassword related errors
                 Key: FLEX-34365
                 URL: https://issues.apache.org/jira/browse/FLEX-34365
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: TextInput
    Affects Versions: Apache Flex 4.12.0
         Environment: Flash Builder 4.7's simulator, Android 4.2.2 (app with 
captive runtime)
            Reporter: Sebastian Toro
             Fix For: Adobe Flex SDK 4.6 (Release)


Run the following code on an Android mobile project:

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                xmlns:s="library://ns.adobe.com/flex/spark"
                title="DisplayAsPassword">
        
        <fx:Script>
                <![CDATA[
                        
                        /**
                         * Shows or hides the characters in the password field.
                         */
                        protected function 
togglePasswordDisplay(event:Event):void
                        {
                                appPassword.displayAsPassword = 
!event.target.selected;
                        }
                        
                ]]>
        </fx:Script>
        
        <s:TextInput id="appPassword"
                                 restrict="-A-Za-z0-9._" 
displayAsPassword="true"
                                 top="20" left="20" right="20"/>
        <s:CheckBox id="showPasswordButton"
                                change="togglePasswordDisplay(event)"
                                top="{appPassword.y + appPassword.height + 20}" 
horizontalCenter="0"/>
        
</s:View>

When the CheckBox's selected property changes, the TextInput's 
displayAsPassword property won't. If the CheckBox's selected property changes 
and then the TextInput is focused, then the displayAsPassword property changes.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to