# Reset all text fileds to ""

**URL:** https://forum.kirupa.com/t/reset-all-text-fileds-to/241244
**Category:** Uncategorized
**Created:** [October 11, 2007, 12:17pm UTC](https://forum.kirupa.com/t/reset-all-text-fileds-to/241244 "2007-10-11T12:17:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![benh](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@benh](https://forum.kirupa.com/u/benh)
#### Post date: [October 11, 2007, 12:17pm UTC](https://forum.kirupa.com/t/reset-all-text-fileds-to/241244/1 "2007-10-11T12:17:26Z")

</div>

Another schoolboy grade question from me I’m afraid…

I just want to reset all text fields within a movie clip to “”.

I’ve got this;

```auto

            var child:TextField;
            for (var i:uint=0; i < thisMC.numChildren; i++){
                child = thisMC.getChildAt(i);
                child.text = "";
            }

```

But of course they aren’t all Text Objects so I get an error like;

```auto

Type Coercion failed: cannot convert flash.display::Shape@39fa8c9 to flash.text.TextField.

```

Is there a way to just select children of a specific type maybe?

Thank you kind people!
