# \[flash8\] forLOOP not working

**URL:** <https://forum.kirupa.com/t/flash8-forloop-not-working/217275>\
**Category:** flash\
**Created:** [February 25, 2007, 2:06am UTC](https://forum.kirupa.com/t/flash8-forloop-not-working/217275 "2007-02-25T02:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jargon](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jargon](https://forum.kirupa.com/u/jargon)\
**Post date:** [February 25, 2007, 2:06am UTC](https://forum.kirupa.com/t/flash8-forloop-not-working/217275/1 "2007-02-25T02:06:04Z")

</div>

Im having some trouble with some code. buttons are not working.

```auto

menuLoc = new Array("menu_main", "menu_philosophy", "menu_portfolio", "menu_resume", "menu_contact");
for(i=0; i < menuLoc.length; ++i){
        _level0.navMenu.menuLoc*.onRelease = function() {
            trace("hit");
        }
}

```

the array has the instance names of the movieclips which are located in navMenu.
