Return-Path: X-Original-To: apmail-incubator-flex-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C0F6D354 for ; Tue, 30 Oct 2012 19:24:58 +0000 (UTC) Received: (qmail 76016 invoked by uid 500); 30 Oct 2012 19:24:58 -0000 Delivered-To: apmail-incubator-flex-commits-archive@incubator.apache.org Received: (qmail 75989 invoked by uid 500); 30 Oct 2012 19:24:58 -0000 Mailing-List: contact flex-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-commits@incubator.apache.org Received: (qmail 75982 invoked by uid 99); 30 Oct 2012 19:24:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 19:24:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 19:24:57 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C101C23888EA; Tue, 30 Oct 2012 19:24:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1403824 - /incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as Date: Tue, 30 Oct 2012 19:24:13 -0000 To: flex-commits@incubator.apache.org From: cframpton@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121030192413.C101C23888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: cframpton Date: Tue Oct 30 19:24:13 2012 New Revision: 1403824 URL: http://svn.apache.org/viewvc?rev=1403824&view=rev Log: spark.components.TextInput with displayAsPassword = true will now return a string masked by asterisks instead of the actual value through MSAA. [SDK-31271] Modified: incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as Modified: incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as?rev=1403824&r1=1403823&r2=1403824&view=diff ============================================================================== --- incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as (original) +++ incubator/flex/sdk/branches/develop/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl.as Tue Oct 30 19:24:13 2012 @@ -24,10 +24,12 @@ import flash.accessibility.Accessibility import flash.events.Event; import flash.events.FocusEvent; -import mx.accessibility.AccImpl; import mx.accessibility.AccConst; +import mx.accessibility.AccImpl; import mx.core.UIComponent; import mx.core.mx_internal; +import mx.utils.StringUtil; + import spark.components.RichEditableText; use namespace mx_internal; @@ -313,7 +315,12 @@ public class RichEditableTextAccImpl ext */ override public function get_accValue(childID:uint):String { - return RichEditableText(master).text; + var richEditableText:RichEditableText = RichEditableText(master); + if (richEditableText.displayAsPassword) + { + return StringUtil.repeat("*", richEditableText.text.length); + } + return richEditableText.text; } /**