# Disabling other nav buttons

**URL:** <https://forum.kirupa.com/t/disabling-other-nav-buttons/197503>\
**Category:** Uncategorized\
**Created:** [August 16, 2006, 9:49pm UTC](https://forum.kirupa.com/t/disabling-other-nav-buttons/197503 "2006-08-16T21:49:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![horizens](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/horizens/32/2714_2.png) [@horizens](https://forum.kirupa.com/u/horizens)\
**Post date:** [August 16, 2006, 9:49pm UTC](https://forum.kirupa.com/t/disabling-other-nav-buttons/197503/1 "2006-08-16T21:49:25Z")

</div>

hi, hopefully someone can help me out with this one.

everything works in this script except that i’d like to be able to disable every other button than the currently selected one. i’m attaching movieClips from the library and then setting an action for each onRelease with a value in the aNavAction array.

any guidance would be great.

thanks!

```auto

#include "lmc_tween.as"
var aNavAction:Array = ["section1", "section2", "section3"];
for (var i:Number = 0; i<aNavAction.length; i++)
{
    curr_item = attachMovie("button", "button"+i+"_mc", i, {_x:i*101});
    curr_item.section = aNavAction*;
    curr_item.onRollOver = function()
    {
        this.colorTo(0x6699cc, 1, "Linear");
    };
    curr_item.onRollOut = function()
    {
        this.colorTo(0xCDE0EA, 1, "Linear");
    };
    curr_item.onRelease = function()
    {
        trace(this.section+".swf");
    };
}

```
