How to obtain the name of a button dynamically?

To associate a list of buttons with a list of images or URLs,
you need to set up a list of the button components, and a lookup table
that can take a button component and return the matching data (URL, sound, etc) .

Here is a sample app or two ...