# Dynamic text boxes

**URL:** <https://forum.kirupa.com/t/dynamic-text-boxes/186290>\
**Category:** Uncategorized\
**Created:** [April 20, 2006, 10:39am UTC](https://forum.kirupa.com/t/dynamic-text-boxes/186290 "2006-04-20T10:39:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abro](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@abro](https://forum.kirupa.com/u/abro)\
**Post date:** [April 20, 2006, 10:39am UTC](https://forum.kirupa.com/t/dynamic-text-boxes/186290/1 "2006-04-20T10:39:36Z")

</div>

Hi  
I need to place a few dynamic text boxes one under other. The problem I have is that the number of lines in the top text box will vary and I want the text boxes underneath to be aligned relative to that text box. Does anyone out there know the best way to do this.

Cheers

---

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [April 20, 2006, 2:24pm UTC](https://forum.kirupa.com/t/dynamic-text-boxes/186290/2 "2006-04-20T14:24:28Z")

</div>

perhaps putting each one in a different layer of its own may help.

---

<div class="post-metadata">

**Author:** ![abro](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@abro](https://forum.kirupa.com/u/abro)\
**Post date:** [April 20, 2006, 2:55pm UTC](https://forum.kirupa.com/t/dynamic-text-boxes/186290/3 "2006-04-20T14:55:23Z")

</div>

> [@chevron8653](#):
>
> perhaps putting each one in a different layer of its own may help.

I can’t see how that will help. Let me explain a bit further; the top dynamic text box is expands downwards (depending on the amount of text in a box) The next text box needs to sit below this, but its vertical position depends on how far the down the top text box has expanded IYSWIM.

I would imagine that the secondtext box can only be set up in action script with its vertical position a variable dependent on the height of the top text box. Any ideas how to progress from here?

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 20, 2006, 3:05pm UTC](https://forum.kirupa.com/t/dynamic-text-boxes/186290/4 "2006-04-20T15:05:35Z")

</div>

well, i would post some code so that it can be modified, you can place the text box with action script like this:

```auto
lowertextbox._x = number(uppertextbox._x)+number(uppertextbox._height)

```

pretty basic
