# Clearing Input Text

**URL:** <https://forum.kirupa.com/t/clearing-input-text/189228>\
**Category:** Uncategorized\
**Created:** [May 15, 2006, 7:20am UTC](https://forum.kirupa.com/t/clearing-input-text/189228 "2006-05-15T07:20:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![funfunfun](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@funfunfun](https://forum.kirupa.com/u/funfunfun)\
**Post date:** [May 15, 2006, 7:20am UTC](https://forum.kirupa.com/t/clearing-input-text/189228/1 "2006-05-15T07:20:40Z")

</div>

How can you clear an input text field?

Say you have a user type a password in a text field, and if they get it wrong, what’s a way actionscript can clear that text field so the user has a blank field to try and type into again?

I have something like this that doesn’t work:

```auto

[LEFT]letrAOne = inputAOne;
if (letrAOne == "A") {
	_root.letterAOne.gotoAndPlay(2);
}
else { inputAOne = "";
	}[/LEFT]

```
