# Clearing multiple textfields w/ for loop

**URL:** <https://forum.kirupa.com/t/clearing-multiple-textfields-w-for-loop/307760>\
**Category:** Uncategorized\
**Created:** [April 9, 2010, 5:10pm UTC](https://forum.kirupa.com/t/clearing-multiple-textfields-w-for-loop/307760 "2010-04-09T17:10:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [April 9, 2010, 5:10pm UTC](https://forum.kirupa.com/t/clearing-multiple-textfields-w-for-loop/307760/1 "2010-04-09T17:10:24Z")

</div>

I am trying to use a for loop to clear a bunch to textfields. The textfields were not created dynamically and they are inside of a movieclip named mcContentOnStage. I need help assigning the number to the textfield name.

```auto

for (var i:uint=2; i<=22; i++)
 {
  this.mcContentOnStage.txtField*.text="";
 }

```
