i’ve been hacking away at this and can’t seem to get it…i need to close the space between the date,pipe_mc and title fields and can’t seem to figure out how to do it right…
var pipe_mc:MovieClip = new PipeMC();
pipe_mc.y = 1;
var dateline:Sprite = new Sprite();
dateline.x = 0;
dateline.y = -51;
addChild(dateline);
dateline.addChild(date_txt);
dateline.addChild(title_txt);
dateline.addChild(pipe_mc);
date_txt.x = 3;
var spacer:Number = 10;
if (date_txt.textWidth >= 90) {
var pipeX = pipe_mc.x;
pipeX = 90;
pipeX = date_txt.x + date_txt.width + 18;
title_txt.x = pipeX + pipe_mc.width + spacer;
}
else if (date_txt.textWidth <= 90) {
var pipeX = 80;
pipeX = date_txt.x + date_txt.width - 18;
title_txt.x = pipeX + pipe_mc.width + spacer;
}