6 Replies Latest reply on Jul 16, 2006 11:47 AM by Tjisana

    Double click issue on menu navigation

      I have some buttons on my nav bar that need to remain highlighted once clicked so users know were they are. The script works well except for the first click. The mc changes however the button is not highliged. Ont he second click all goes to normal.

      That gives? Any help would be greatly appreciated.

      Thanks,


      Tjisana


      stop();

      var num:Number = 2;
      _global.link = 0;

      //Mouse RollOver function: change colour when mouse passes over button
      this.onRollOver = function() {
      if(_global.link != num) {
      this.gotoAndStop("focus");
      }
      };

      //Mouse or Pointer Rollout & ReleaseOutslide function: go back to original colour
      this.onRollOut = this.onReleaseOutside = function() {
      if(_global.link != num) {
      this.gotoAndStop("no_focus");
      }
      };

      this.onRelease = function() {
      if(_global.link != num) {
      _global.link=num;
      for(var i=1; i<=6; i++) {
      this._parent["space" + i].gotoAndStop("1");
      }
      this._parent.gotoAndStop("P2");
      this.gotoAndStop("focus");
      }
      };