Trying to position and size dynamically generated MCs

I’m trying to create a dynamically generated navigation submenus. Basically I’m creating instances of a MC using attachMovie, I’m populating it’s text field sizing it’s background image’s width (subGlow_mc) based on the width of it’s text field(link_txt). I get the movies on the stage but hey dont position how I would like them and the backgound images are not resizing consistantly. I have pasted the AS that loops through the flash remoting call to generate the movies below.

You can see the SWF here:
http://qc.accelerateu.org/dm/index…=main.showChart

Any help would be greatly appreciated.

function createSubMenus() {
////Setting the intial X and Y coordinates.
var initX = 800;
var initY = 80;
//////////// DUPLICATING THE TEXT LINKS
for (var i = 0; i<aSubMenuItems.length; i++) {
newSubMenuItem = this.attachMovie(“mcSubMenuButton”,“subMenuButton”+i+"_mc", i+1, subMenuBlueprint);
for (var j in aSubMenuItems*) {
newSubMenuItem[j] = aSubMenuItems*[j];
}
newSubMenuItem.link_txt.autoSize=“right”;
newSubMenuItem.link_txt.text = “[”+newSubMenuItem.linkName+"]";
newSubMenuItem.subGlow_mc._width = (newSubMenuItem.link_txt._width);
newSubMenuItem._y = initY;
newSubMenuItem._x = initX - newSubMenuItem._width;
newSubMenuItem.index = i;
initX = newSubMenuItem._x;
}