# Button control with XML in Flash 8

**URL:** <https://forum.kirupa.com/t/button-control-with-xml-in-flash-8/165545>\
**Category:** flash\
**Created:** [October 11, 2005, 10:25pm UTC](https://forum.kirupa.com/t/button-control-with-xml-in-flash-8/165545 "2005-10-11T22:25:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrianwilcox](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@adrianwilcox](https://forum.kirupa.com/u/adrianwilcox)\
**Post date:** [October 11, 2005, 10:25pm UTC](https://forum.kirupa.com/t/button-control-with-xml-in-flash-8/165545/1 "2005-10-11T22:25:57Z")

</div>

I’m guessing that there is probably some easy solution that I have not been able to find out there…

I have a flash movie that contains the 50 US states as buttons. I need to be able to control three things about these button externally:

1. Setting the default and mouse over color of the buttons.
2. Setting the URL for the button. (Which contains a string like: stateresults.php?state=arizona )
3. Creating a pop-up menu that contains additional links and appears next to the button. These may contain 1 or more items with different links.

I’ve been told that XML is the solution I am looking for, I just can’t seem to find any direction on how to do it.

Any advice would be appreciated.
