     //--------------------------------------------------------------------------
     
     //----------------------------------
-    //  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
     //----------------------------------
     

    {        
        var newTextDisplayProperties:Object = {};
        
        if (BitFlagUtil.isSet(uint(textDisplayProperties), 
            CONTEXT_MENU_PROPERTY_FLAG))
        {
            newTextDisplayProperties.contextMenu = textDisplay.contextMenu;
        }

        if (BitFlagUtil.isSet(uint(textDisplayProperties), 
                              DISPLAY_AS_PASSWORD_PROPERTY_FLAG))
        {

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

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