Flash drum beat generator

does anyone know a tutorial out there on creating a simple drum beat generator in flash? or, have any suggestions in how to make one. basically, what im thinking is:

eight buttons in an 8 frame movie clip
the buttons are able to be turned “on” and “off”
each of the eight frames checks one of the buttons asking “if button is on, play sound”
and it loops and thats it. i dont know how to pull this off, if anyone can whip up an example thatd be cool.

anyways, examples, link, idea’s whatever. all welcome.

Thanks,
Ben