I can’t seem to get my movie clips to display evenly on the x axis… here is what I have
var mb:MovieClip;
for (var i:int=0; i<btnArray.length; i++)
{
mb = new menuButton;
mb.menuText.autoSize = TextFieldAutoSize.LEFT;
mb.menuText.text = btnArray*.name;
mb.buttonMode = true;
mb.mouseChildren = false;
mb.addEventListener(MouseEvent.MOUSE_OVER, mouseActions);
mb.addEventListener(MouseEvent.MOUSE_OUT, mouseActions);
mb.addEventListener(MouseEvent.CLICK, mouseActions);
//This is the part that is not working…
btnArray*.x =i * 10;
btnArray* = mb;
trace(btnArray*.x);
this.addChild(mb);
}
All the objects just pile on top of one another, I know I’m missing a simple piece of the equation, but I just can’t seem to figure it out…
Thanks in advance!!