Looking for some logic

Hi all,

I am wondering if anyone can explain how i would go about doing the following below.

I have got some information in a database (MYSQL) and I want to display that flash, but for every record in the database I want it represented in flash as a movie clip (guessing) at some random location on the stage. Each movie clip must act as a button as well so when hovered over it display the text for that record from the database it represents.

So I am thinking tell me if I am right or wrong…

Use php to build the XML dynamically and arrays to hold the value.
create a movie clip to hold the xml info
duplicate the movie clip for each record in the database

Am I on the right track