ActionScript: Store Mouse Clicks?

I have a bunch of buttons on my screen. Is there was a way to store the name of each button the user clicks into an array?