# "Best Structure..." XML button menu mod?

**URL:** <https://forum.kirupa.com/t/best-structure-xml-button-menu-mod/242543>\
**Category:** Uncategorized\
**Created:** [October 27, 2007, 7:12am UTC](https://forum.kirupa.com/t/best-structure-xml-button-menu-mod/242543 "2007-10-27T07:12:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![websmythe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/websmythe/32/3129_2.png) [@websmythe](https://forum.kirupa.com/u/websmythe)\
**Post date:** [October 27, 2007, 7:12am UTC](https://forum.kirupa.com/t/best-structure-xml-button-menu-mod/242543/1 "2007-10-27T07:12:52Z")

</div>

Hi. I’ve doing a mod to Kirupa’s button menu found in _The Best Structure for your Flash Site_ tutorial [http://www.kirupa.com/developer/flash8/best\_structure\_flash\_site.htm](http://www.kirupa.com/developer/flash8/best_structure_flash_site.htm) I have updated the code & the XML to handle user defined spacing, pressColor, releaseColor & releaseOutsideColor, but I’m kinda stuck on doing the rolloverColor, and on cleaning up resetting the textcolors in the OnRelease function in frame 4.

After drowning Flash’s help system, I figure there’s probably at least a couple of different ways to do the rollover thing, but one of my goals is to try and work within the existing code model. So I was wondering if someone might offer some advice on which direction I might go with it.

1. I notice that when I run Debug that OnRollover var in the buttons is “undefined” and am not sure why. Maybe this is an indication of the source rollover problem?

2. I figure that using the “amcButtons” array the way I have is a cludge (& I’m not that impressed with the flicker). It seems to me that the “image\_mcl” movieclip is acting like a

```auto
struct{
  navbutton0;
  navbutton1;
  navbutton2;
  navbutton3;
}

```

but I’m not sure how to loop thru the sub-objects to change the textcolor in the OnRelease functon.
