# MC Height According to textHeight

**URL:** <https://forum.kirupa.com/t/mc-height-according-to-textheight/149280>\
**Category:** flash\
**Created:** [May 27, 2005, 2:30pm UTC](https://forum.kirupa.com/t/mc-height-according-to-textheight/149280 "2005-05-27T14:30:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghjr](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@ghjr](https://forum.kirupa.com/u/ghjr)\
**Post date:** [May 27, 2005, 2:30pm UTC](https://forum.kirupa.com/t/mc-height-according-to-textheight/149280/1 "2005-05-27T14:30:47Z")

</div>

I have a dynamic textField that is inside a MC (for scrolling). I can get the textfield to grow according to the length of the text, but the MC that hold’s it stays the same.

If I try to strech it like this:

```auto
textMovie_mc.height = textMovie_mc.myTextField_txt.textHeight;

```

But that just distorts the text. So what have I done for now, I put a dot at coordinate 1400 \_y of the movieclip since no text will be longer than that, and then set the bottom of the scroll to the textHeight of the textField. This of course is not the correct way to accomplish this hehe, so I would like to hear some other suggestions.

Cheers!
