0 Replies Latest reply on Nov 19, 2009 9:43 PM by GordonSmith

    [svn:fx-trunk] 12027: Added selectionAnchorIndex and selectionActiveIndex getters to RichEditableTextAccImpl and SkinnableTextBaseAccImpl .

    GordonSmith Level 4

      Revision: 12027

      Revision: 12027

      Author:   gosmith@adobe.com

      Date:     2009-11-19 21:43:31 -0800 (Thu, 19 Nov 2009)

      Log Message:

      ***********

      Added selectionAnchorIndex and selectionActiveIndex getters to RichEditableTextAccImpl and SkinnableTextBaseAccImpl. The presence of these getters is supposed to make Player 10.1 and AIR 2.0 able to support text-selection-accessibility for TLF-based text; they are the ActionScript side of the GetSelection() method in Adobe's ISimpleTextSelection COM interface for screen readers like JAWS.

       

      Although Player 10.1 and AIR 2.0 are adding a flash.accessibility.ISimpleTextSelection interface to formalize these getters, we want to be able to compile against the playerglobal.swc for Player 10.0 (or airglobal.swc for AIR 1.5). We could define our own copy of this interface in Flex, but it isn't necessary because the Player and AIR do not actually look at whether an AccessibilityImplementation class declares that it implements ISimpleTextSelection; they only look at whether an AccessibilityImplementation class has these getters.

       

      This way of doing text-selection-accessibility replaces the ITextSupport interface that was in earlier versions of Player 10.1 and AIR 2.0, including the betas. So you try it you must have a very recent build of 10.1 and 2.0.

       

      QE notes: None

      Doc notes: None

      Bugs: None

      Reviewer: None

      Tests run: None

      Is noteworthy for integration: No

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/RichEditableTextAccImpl. as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/SkinnableTextBaseAccImpl .as