自定义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"/>
 
原文地址:https://www.cnblogs.com/ahjesus/p/2079794.html