# How do you make dynamic buttons in Flash?

**URL:** <https://forum.kirupa.com/t/how-do-you-make-dynamic-buttons-in-flash/219939>\
**Category:** flash\
**Created:** [March 21, 2007, 10:30am UTC](https://forum.kirupa.com/t/how-do-you-make-dynamic-buttons-in-flash/219939 "2007-03-21T10:30:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vthok](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vthok](https://forum.kirupa.com/u/vthok)\
**Post date:** [March 21, 2007, 10:30am UTC](https://forum.kirupa.com/t/how-do-you-make-dynamic-buttons-in-flash/219939/1 "2007-03-21T10:30:40Z")

</div>

I am trying to create my first Flash website for my wife’s cousin (she’s a photographer).

I want to have navigation buttons that are dynamically created. For example I can use XML, PHP, etc to read folders from the server and it thus creates those choices under the menu button.

Example: Under her Gallery section button when I click it I want it to show me: Babies, Weddings, Portraits, etc as sub-buttons under this main button. The names of this are found from folder names on server. How would I do this?

Also say I want the buttons to do some special animation do I first create a template of a button in flash that behaves how I want it (fading in, stretchiing, etc) and then somehow my XML/PHP/etc can inherit these properities when its creating multiple buttons dynamically on the fly?

Thanks.
