 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.managers.SystemManager;
-import mx.utils.MatrixUtil;
 import mx.utils.Platform;
 
 import spark.components.Application;

        stageText.removeEventListener(Event.COMPLETE, stageText_completeHandler);
        stageText.removeEventListener(FocusEvent.FOCUS_IN, stageText_focusInHandler);
        stageText.removeEventListener(FocusEvent.FOCUS_OUT, stageText_focusOutHandler);
        stageText.removeEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, stageText_softKeyboardActivateHandler);
        stageText.removeEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, stageText_softKeyboardDeactivateHandler);
        stageText.removeEventListener(KeyboardEvent.KEY_DOWN, stageText_keyDownHandler);
        stageText.removeEventListener(KeyboardEvent.KEY_UP, stageText_keyUpHandler);


        }
    }


    /*  start edition and  bubbles up the event */
    private function stageText_softKeyboardActivateHandler(event:SoftKeyboardEvent):void
    {

        startTextEdit();
        dispatchEvent(new SoftKeyboardEvent(event.type,
                    true, event.cancelable, this, event.triggerType));
    }

    /*  just bubbles up the event */
    private function stageText_softKeyboardHandler(event:SoftKeyboardEvent):void
    {
          dispatchEvent(new SoftKeyboardEvent(event.type,
                    true, event.cancelable, this, event.triggerType));
    }

