Fade buttons with array?

Hello, I have 6 “status” buttons as movieclips… and I have a separate menu with the same options as the 6 status buttons. When I click a menu option from that separate menu, I’m trying to dim out the 5 buttons that are inactive leaving the item chosen active.

Here is the code that I have so far but when I click one of the menu items, all of the buttons dim instead of all but the item clicked.

var buttons = [_root.animations, _root.photos, _root.drawings, _root.cult, _root.brochure, _root.powerpoint];
dobuttons = function () {
      for (var j=0; j < buttons.length; j++) {
         if (buttons[j] !== this) {
            buttons[j]._alpha = 50 ;
         else {

The above function is put in the root and called when a menu item is clicked.

If you have any suggestions, let me know!

Thanks :slight_smile: