Dynamically position button with action inside

I have 100 button icon, when flash program runs, how to dynamically choose button i want and put it on canvas using action script?

for example, when user choose computer - all icon button related to computer will get put on canvas … etc

each button will have action script attach to it and do something.

any examples?