 //--------------------------------------
 
 /**
- *  Dispached after the <code>selectionAnchorIndex</code> and/or
- *  <code>selectionActiveIndex</code> properties have changed
+ *  Dispached after the <code>selectionAnchorPosition</code> and/or
+ *  <code>selectionActivePosition</code> properties have changed
  *  due to a user interaction.
  */
 [Event(name="selectionChange", type="flash.events.Event")]

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

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

	/**
	 *  @private
	 */
	private var _selectionActiveIndex:int = -1;

	/**
	 *  @private
	 */
	private var selectionActiveIndexChanged:Boolean = false;

	[Bindable("selectionChange")]
	
	/**
	 *  The active index of the selection.
	 *  The "active" point is the end of the selection
	 *  which is changed when the selection is extended.
	 *  The active index may be either the start
	 *  or the end of the selection. 
	 *
	 *  @default -1
	 */
	public function get selectionActiveIndex():int
	{
		return _selectionActiveIndex;
	}

	/**
	 *  @private
	 */
	public function set selectionActiveIndex(value:int):void
	{
		if (value == _selectionActiveIndex)
			return;
		
		_selectionActiveIndex = value;
		selectionActiveIndexChanged = true;

		invalidateProperties();
		

			textChanged = false;
		}

		if (selectionAnchorPositionChanged)
		{
			textView.selectionAnchorPosition = _selectionAnchorPosition;
			selectionAnchorPositionChanged = false
		}

		if (selectionActivePositionChanged)
		{
			textView.selectionActivePosition = _selectionActivePosition;
			selectionActivePositionChanged = false
		}
	}

