          * @param event the TextEvent
          */
         protected function overrideText(event:TextEvent):void {
+            //windows insert mode on (note that Flash Player does not track insertion mode state before running a SWF)
+            if (EditManager.overwriteMode) {
+                return;
+            }
+
             var an:int = selectionAnchorPosition;
             var ac:int = selectionActivePosition;
 

    import flash.events.Event;
    import flash.events.TextEvent;

    import flashx.textLayout.edit.SelectionState;
    import flashx.textLayout.operations.CompositeOperation;
    import flashx.textLayout.operations.CopyOperation;

                        ac = ac + 1;
                    }
                } else {
                    //INSERT (TEXT NOT COMPLETE)
                    for (var i:int = 0; i < maskText.length; i++) {
                        if (stack.length == 0) {
                            break;
