 
         switch (event.type)
         {
-            case "change":
+            case Event.CHANGE:
             {
-                Accessibility.sendEvent(master, 0,
-                                        AccConst.EVENT_OBJECT_VALUECHANGE, true);
+                Accessibility.sendEvent(
+					master, 0, AccConst.EVENT_OBJECT_VALUECHANGE, true);
                 break;
             }
         }

        component.accessibilityImplementation =
            new RichEditableTextAccImpl(component);
    }
    //--------------------------------------------------------------------------
    //
    //  Constructor

     */
    override protected function get eventsToHandle():Array
    {
        return super.eventsToHandle.concat([ Event.CHANGE ]);
    }

    //--------------------------------------------------------------------------
    //
    //  Properties: ISimpleTextSelection
    //
    //--------------------------------------------------------------------------

    //----------------------------------
    //  selectionActiveIndex
    //----------------------------------

    /**
     *  A character position, relative to the beginning of the
     *  <code>text</code> String of the RichEditableText,
	 *  specifying the end of the selection
     *  that moves when the selection is extended with the arrow keys.
     *
     *  <p>The active position may be either the start
     *  or the end of the selection.</p>
     *
     *  <p>For example, if you drag-select from position 12 to position 8,
     *  then <code>selectionAnchorPosition</code> will be 12
     *  and <code>selectionActivePosition</code> will be 8,
     *  and when you press Left-Arrow <code>selectionActivePosition</code>
     *  will become 7.</p>
     *
     *  <p>A value of -1 indicates "not set".</p>
	 *
	 *  <p>In Player 10.1 and later, and AIR 2.0 and later,
	 *  an AccessibilityImplementation can implement
	 *  <code>selectionAnchorIndex</code> and <code>selectionAnchorIndex</code>
	 *  in order to make an accessibility client aware of the text selection
	 *  in TLF text via Adobe's ISimpleTextSelection COM interface.</p>
     *
     *  @default -1
     *
	 *  @see spark.accessibility.RichEditableTextAccImpl#selectionAnchorIndex
     *  @see spark.components.RichEditableText#selectionActivePosition
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10.1
     *  @playerversion AIR 2.0
     *  @productversion Flex 4
     */
	public function get selectionActiveIndex():int
	{
		return RichEditableText(master).selectionActivePosition;
	}

    //----------------------------------
    //  selectionAnchorIndex
    //----------------------------------

    /**
     *  A character position, relative to the beginning of the
     *  <code>text</code> String of the RichEditableText,
	 *  specifying the end of the selection
     *  that stays fixed when the selection is extended with the arrow keys.
     *
     *  <p>The anchor position may be either the start
     *  or the end of the selection.</p>
     *
     *  <p>For example, if you drag-select from position 12 to position 8,
     *  then <code>selectionAnchorPosition</code> will be 12
     *  and <code>selectionActivePosition</code> will be 8,
     *  and when you press Left-Arrow <code>selectionActivePosition</code>
     *  will become 7.</p>
     *
     *  <p>A value of -1 indicates "not set".</p>
	 *
	 *  <p>In Player 10.1 and later, and AIR 2.0 and later,
	 *  an AccessibilityImplementation can implement
	 *  <code>selectionAnchorIndex</code> and <code>selectionAnchorIndex</code>
	 *  in order to make an accessibility client aware of the text selection
	 *  in TLF text via Adobe's ISimpleTextSelection COM interface.</p>
     *
     *  @default -1
     *
	 *  @see spark.accessibility.RichEditableTextAccImpl#selectionActiveIndex
     *  @see spark.components.RichEditableText#selectionAnchorPosition
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10.1
     *  @playerversion AIR 2.0
     *  @productversion Flex 4
     */
	public function get selectionAnchorIndex():int
	{
		return RichEditableText(master).selectionAnchorPosition;
	}

    //--------------------------------------------------------------------------
    //
