User input capturing?

I have a inputbox that caputure the name user enter. However it always ignore the first character user has enter for some reason, is there a way to solve it?

The following is my code for it

public static var nameofPlayer1:String;

name_txt.addEventListener(TextEvent.TEXT_INPUT, inputEventCapture);

public function inputEventCapture(event:TextEvent):void {
nameofPlayer1=name_txt.text;
trace(nameofPlayer1)
btnglow.mouseEnabled=true;
btnglow.gotoAndPlay(2);
btnglow.addEventListener(MouseEvent.CLICK,nextframe);
}