Stringing together 3 textfields on one line

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:

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.