         
         action = UNKNOWN;
         insertedText = null;
-        endInternalEdit();
-        trace(_text);
     }
 
     private function revealCharacter(charIndex:int):void


    private function onFieldChange(event:Event):void
    {
        beginInternalEdit();
        
        if (action == INSERT)
        {
            _text = StringUtil.splice(_text, selectionStart, selectionEnd, insertedText);
        }
        else if (textField.length < _text.length)
        {
            if (selectionStart == selectionEnd)
            {
                if (action == DELETE_AFTER)
                {
                    _text = StringUtil.splice(_text, selectionStart, selectionStart + 1, "");

            }
            else
            {
                // there was a selection, so in all cases, remove the selected
                // characters from the string
                _text = StringUtil.splice(_text, selectionStart, selectionEnd, "");
            }
        }
