自定义TextInput中displayAsPassword的字符

经过挖掘发现 RichEditableText.as (line 679)有一句
    /**

     *  @private

     */

    mx_internal var passwordChar:String = "*";

在加载完毕的时候重写一下就行了
 
protected function group1_creationCompleteHandler(event:FlexEvent):void

   {

    this.txtUserLoginPassword.textDisplay.mx_internal::passwordChar = "#";

   }



<s:TextInput id="txtUserLoginPassword" height="40" left="30" top="170" right="30" textAlign="center" displayAsPassword="true" fontWeight="bold" fontSize="16" fontFamily="Verdana"/>

 

你可能感兴趣的:(password)