Multiple buttons in as3

Hi everyone,

I’m trying but I can’t work this out.
I have a single movieclip named button, and I want to use a “for” to multiply that movieclip, that way I can have multiple buttons and edit them all in a single function.

It would be something like this:

var _button = new button;

for(i=0; i<5;i++){
_button*:button = new button;
addChild(button*);
}

I’ve searched but I can’t find any thread with this.
Thanks in advance.