# Looking for some logic

**URL:** <https://forum.kirupa.com/t/looking-for-some-logic/168771>\
**Category:** flash\
**Created:** [November 9, 2005, 9:46pm UTC](https://forum.kirupa.com/t/looking-for-some-logic/168771 "2005-11-09T21:46:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kungFuChris](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@kungFuChris](https://forum.kirupa.com/u/kungFuChris)\
**Post date:** [November 9, 2005, 9:46pm UTC](https://forum.kirupa.com/t/looking-for-some-logic/168771/1 "2005-11-09T21:46:41Z")

</div>

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
