I have followed the example of adding multiple instance names from an item from the library as shown below. The question is how do I add multiple instances with each having a MCname +* form a created geometry. Here is what I have so far.
var buttonDimension:Number =20
var button:MovieClip = new MovieClip;
button.graphics.lineStyle(1,0xffffff);
button.graphics.beginFill(0x696969);
button.graphics.drawRect(0, 0, 20,20)
addChild(button);
var numberOfButtons:int = 5;
var buttons:Array = new Array(numberOfButtons);
for(var i:int = 0 ; i < numberOfButtons;i++) {
buttons* = new button();
addChild(buttons*);
buttons.x = (buttonDimension*i)+buttonDimension
buttons.y = (buttonDimension*i)+buttonDimension
}