# Stringing together 3 textfields on one line

**URL:** <https://forum.kirupa.com/t/stringing-together-3-textfields-on-one-line/289212>\
**Category:** Uncategorized\
**Created:** [May 27, 2009, 3:48pm UTC](https://forum.kirupa.com/t/stringing-together-3-textfields-on-one-line/289212 "2009-05-27T15:48:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![icebot07](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@icebot07](https://forum.kirupa.com/u/icebot07)\
**Post date:** [May 27, 2009, 3:48pm UTC](https://forum.kirupa.com/t/stringing-together-3-textfields-on-one-line/289212/1 "2009-05-27T15:48:16Z")

</div>

so, i have some dynamic textfields…i need to set the space between them so that they line up, one after the other. the data reloads when you click on a mouse, and the widths have to be variable.

here’s what i did:

```auto
var dateline:Sprite = new Sprite();
            dateline.x = 0;
            dateline.y = -51;
            addChild(dateline);
            dateline.addChild(title_txt);            
            dateline.addChild(pipe_txt);            
            dateline.addChild(date_txt);
** date_txt.x = 0;
            pipe_txt.x = date_txt.width + 10;
            title_txt.x = date_txt.width + pipe_txt.x + 10;**

```

any thoughts on how to do this correctly? it’s not working now.
