# Dynamic text field height

**URL:** https://forum.kirupa.com/t/dynamic-text-field-height/239954
**Category:** Uncategorized
**Created:** [September 27, 2007, 3:42pm UTC](https://forum.kirupa.com/t/dynamic-text-field-height/239954 "2007-09-27T15:42:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ahs10](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ahs10](https://forum.kirupa.com/u/ahs10)
#### Post date: [September 27, 2007, 3:42pm UTC](https://forum.kirupa.com/t/dynamic-text-field-height/239954/1 "2007-09-27T15:42:51Z")

</div>

i have data being read from an xml file. flash then displays one of the xml attributes in a dynamic text field. my dynamic text file is set to multiline.

how do i create a background for this text that adjusts to the height of the text that is displayed? for example, i must draw an area for the dynamic text field to display up to four lines of data. i would like to create a background below this text that adjusts to how many lines of text there are. how can this be done?

any help is much appreciated. thanks in advance!
