# Menu Script HELP!

**URL:** <https://forum.kirupa.com/t/menu-script-help/266767>\
**Category:** Uncategorized\
**Created:** [July 24, 2008, 4:58am UTC](https://forum.kirupa.com/t/menu-script-help/266767 "2008-07-24T04:58:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bossman](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@Bossman](https://forum.kirupa.com/u/Bossman)\
**Post date:** [July 24, 2008, 4:58am UTC](https://forum.kirupa.com/t/menu-script-help/266767/1 "2008-07-24T04:58:35Z")

</div>

I found some code in a tutorial and I am having problems making it work. I have updated all the code and everything seems to check out accept this bit of code.

```php
function setMenuClose() {
    for (z==1; z<10; z++) {
        if (eval("menuleftopen"+z) == true) {
            eval("menu.menu"+z).gotoAndPlay("Swoop Up");
        }
    }
}
stop();

```

You may have seen this before. Hope so. This checks through a series of menu items and variables. Can anyone help??! Thanks a bunch.
