7 Replies Latest reply on May 13, 2008 11:26 PM by posterboy

    button.enabled question

    posterboy
      When i load an mc i turn off the buttons of the _parent.mc this way...

      function buttonOff(item) {
      if (_parent[item].enabled==true) { // default button is off
      _parent[item].enabled = false;
      }
      }

      buttonOff ("icon_csm_mc")
      buttonOff ("icon_saturn_mc")
      buttonOff ("icon_sr_mc")
      buttonOff ("icon_lm_mc")

      When i try to turn the buttons on using the same method I fail...

      function buttonOn (item) {
      close_acronyms_btn.onRelease = function () { // child of above mc
      _parent.gotoAndPlay (2);
      if (_parent._parent[item].enabled = false) {
      _parent._parent[item].enabled = true;
      }
      }
      }

      buttonOn ("icon_csm_mc")
      buttonOn ("icon_saturn_mc")
      buttonOn ("icon_sr_mc")
      buttonOn ("icon_lm_mc")

      Any help?