# Building Dynamic Menu

**URL:** <https://forum.kirupa.com/t/building-dynamic-menu/122859>\
**Category:** Uncategorized\
**Created:** [September 17, 2004, 5:37pm UTC](https://forum.kirupa.com/t/building-dynamic-menu/122859 "2004-09-17T17:37:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjory](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bjory](https://forum.kirupa.com/u/bjory)\
**Post date:** [September 17, 2004, 5:37pm UTC](https://forum.kirupa.com/t/building-dynamic-menu/122859/1 "2004-09-17T17:37:30Z")

</div>

Hi guys, I have managed to get data out from Mysql database.

All it returns to me are:

1. Name of the button
2. Where it link to
3. Number of Buttons for the menu

So now, how can I build a menu of buttons such that I can display according to the database return on the number of buttons?

Can someone point me to the exactly codes on how I should do it?

I have already create a movieclip which is the image of a single button. With dynamic text on top of the button in the movieclip.

I just need to loop it thru the number of buttons and display the buttons on screen. But i can’t seems to get it right.

I have looked through the XML dynamic menu but it’s not very similar to mine as I’m using PHP script to connect to the database.
