Hello guys ^_^

Before posting for help, i always do an exhaustive research on the web. \
This time, i need to know how to detect when typing in a textbox in realtime, without using onEnterFrame, as onEnterFrame use a lot of CPU. You type in an input textbox, and then show that in a dynamic textbox as you type.
I already have this
Actionscript Code:
stop();


var texto:String;


textobtn.onPress=function(){
    if(texto!=""){
       
               
textoMC.texto=texto;
gotoAndPlay(2);

}
    else {
       
        trace("textbox is empty");
       
    }
};

But it only shows when you press a button.