# Input Text Box Reset?

**URL:** <https://forum.kirupa.com/t/input-text-box-reset/61648>\
**Category:** flash\
**Created:** [August 20, 2004, 8:54am UTC](https://forum.kirupa.com/t/input-text-box-reset/61648 "2004-08-20T08:54:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![B3NKobe](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@B3NKobe](https://forum.kirupa.com/u/B3NKobe)\
**Post date:** [August 20, 2004, 8:54am UTC](https://forum.kirupa.com/t/input-text-box-reset/61648/1 "2004-08-20T08:54:18Z")

</div>

Hi - i have a input text box which i use so u can input text, is there a script i can put on a button which will clear what is in the text box?

Ben…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 20, 2004, 9:22am UTC](https://forum.kirupa.com/t/input-text-box-reset/61648/2 "2004-08-20T09:22:40Z")

</div>

[AS]  
myBut.onRelease = function()  
{  
myText.text = “”;  
};  
[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 20, 2004, 9:42am UTC](https://forum.kirupa.com/t/input-text-box-reset/61648/3 "2004-08-20T09:42:13Z")

</div>

give your input text box an instance name  
for this example lets say : [color=yellowgreen]inputTxt[/color]

[color=black]then on your reset button place this code:[/color]

```auto
on(press){
inputTxt.text = "";
} 

```

this is but one of many ways to do this(-:
