Create buttons menu from XML

I’m going to create a simple flash menu page that can be fully edited by the customer themselves, so all this has to be done dynamic by using XML.

For the application i have to tell:

  1. How many buttons that are to be used
  2. Logo to be used
  3. Which soundfile that are to be used for the application.

And for each button i have to tell:

  1. image to be used
  2. image after the button has been clicked once.(the image should then stay this way)
  3. The url link
  4. The target frame.

The loaded buttons are to be centered on screen, and there will be only maximum 4 buttons on a row. But there can of course be more, and then we have to “wrap” down to place more buttons.

Do i have to use 2 xml files (one for all the buttons and one for the initial values) ?? I really do not know where to start with this, so therefore i’m asking anyone at this forum.

Can anyone direct me to a head start for this functionallity? Any .fla or example would be just great… i’ll appreciate any tip !