# User input capturing?

**URL:** <https://forum.kirupa.com/t/user-input-capturing/311032>\
**Category:** Uncategorized\
**Created:** [June 25, 2010, 4:05pm UTC](https://forum.kirupa.com/t/user-input-capturing/311032 "2010-06-25T16:05:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandaforever](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@pandaforever](https://forum.kirupa.com/u/pandaforever)\
**Post date:** [June 25, 2010, 4:05pm UTC](https://forum.kirupa.com/t/user-input-capturing/311032/1 "2010-06-25T16:05:19Z")

</div>

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);  
}
