textInput

How do i save the input text in a variabel, i´ve tried this code but cant get it to work…

var inText:String = textIn.text;

btn_1.onRelease = function(){
trace(inText);

}

the problem is when i trace it comes up blank. but vhen i trace(texIn.text); the text is shown???