经过挖掘发现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"/>
 
posted on 2011-06-13 15:53  深海大虾  阅读(578)  评论(0编辑  收藏  举报