             // Note: Must process restrict first, then maxChars,
             // then displayAsPassword last.
             
-            if (restrict != null)
+            if (_restrict != null)
             {
                 textToInsert = StringUtil.restrict(textToInsert, restrict);
                 if (textToInsert.length == 0)

                return;
            }           
            
            if (displayAsPassword)
            {
                _text = splice(_text, flowTextOperation.absoluteStart,
                               flowTextOperation.absoluteEnd, "");
            }
        }
        
        // Dispatch a 'changing' event from the TextView
        // as notification that an editing operation is about to occur.
        var newEvent:TextOperationEvent =
            new TextOperationEvent(TextOperationEvent.CHANGING);
        newEvent.operation = op;
        dispatchEvent(newEvent);
        
        // If the event dispatched from this TextView is canceled,
        // cancel the one from the EditManager, which will prevent
        // the editing operation from being processed.
        if (newEvent.isDefaultPrevented())
            event.preventDefault();
    }
    
    /**

                    textToInsert = textToInsert.substr(0, maxChars - length1);
            }

            if (_displayAsPassword)
            {
                _text = splice(_text, insertTextOperation.absoluteStart,
                               insertTextOperation.absoluteEnd, textToInsert);
