     //--------------------------------------------------------------------------
     
     //----------------------------------
-    //  contextMenu
-    //----------------------------------
-    
-    /**
-     *  @private
-     */
-//    override public function get contextMenu():ContextMenu
-//    {
-//        if (textDisplay)
-//            return textDisplay.contextMenu;
-//        
-//        // want the default to be null
-//        var v:* = textDisplayProperties.contextMenu
-//        return (v === undefined) ? null : v;
-//    }
-    
-    /**
-     *  @private
-     */    
-//    override public function set contextMenu(value:ContextMenu):void
-//    {
-//        if (textDisplay)
-//        {
-//            textDisplay.contextMenu = value;
-//            textDisplayProperties = BitFlagUtil.update(
-//                uint(textDisplayProperties), 
-//                CONTEXT_MENU_PROPERTY_FLAG, true);
-//        }
-//        else
-//        {
-//            textDisplayProperties.contextMenu = value;
-//        }
-//        
-//        // Generate an UPDATE_COMPLETE event.
-//        invalidateProperties();                    
-//    }
-
-    //----------------------------------
     //  displayAsPassword
     //----------------------------------
     

import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.FocusEvent;
import flash.ui.ContextMenu;

import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.events.SelectionEvent;

    /**
     *  @private
     */
    private static const DISPLAY_AS_PASSWORD_PROPERTY_FLAG:uint = 1 << 1;
    
    /**
     *  @private
     */
    private static const EDITABLE_PROPERTY_FLAG:uint = 1 << 2;
        
    /**
     *  @private
     */
    private static const HEIGHT_IN_LINES_PROPERTY_FLAG:uint = 1 << 3;
    
    /**
     *  @private
     */
    private static const IME_MODE_PROPERTY_FLAG:uint = 1 << 4;
    
    /**
     *  @private
     */
    private static const MAX_CHARS_PROPERTY_FLAG:uint = 1 << 5;
       
    /**
     *  @private
     */
    private static const MAX_WIDTH_PROPERTY_FLAG:uint = 1 << 6;
    
    /**
     *  @private
     */
    private static const RESTRICT_PROPERTY_FLAG:uint = 1 << 7;

    /**
     *  @private
     */
    private static const SELECTABLE_PROPERTY_FLAG:uint = 1 << 8;

    /**
     *  @private
     */
    private static const SELECTION_HIGHLIGHTING_FLAG:uint = 1 << 9;

    /**
     *  @private
     */
    private static const TEXT_PROPERTY_FLAG:uint = 1 << 10;

    /**
     *  @private
     */
    private static const TEXT_FLOW_PROPERTY_FLAG:uint = 1 << 11;

    /**
     *  @private
     */
    private static const WIDTH_IN_CHARS_PROPERTY_FLAG:uint = 1 << 12;
        
    //--------------------------------------------------------------------------
    //
