# Get to textfield

**URL:** <https://forum.kirupa.com/t/get-to-textfield/295281>\
**Category:** Uncategorized\
**Created:** [August 27, 2009, 4:19pm UTC](https://forum.kirupa.com/t/get-to-textfield/295281 "2009-08-27T16:19:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Post date:** [August 27, 2009, 4:19pm UTC](https://forum.kirupa.com/t/get-to-textfield/295281/1 "2009-08-27T16:19:37Z")

</div>

i have a dynamic textfield inside a movieclip, and currently i am accessing it this way:

(because i know textfield is called “textBox”)

mc.textBox.textColor = 0XFFFFFF;  
e.target.textBox.textColor = 0XFF0000;

is there a way to get to the textfield regardless of its name?

getChildAt(number) isnt going to help me because there might be other shapes inside that movieclip (but only one textfield though) and lets suppose i dont know at what child index textfield actually is.
