1 Reply Latest reply on Nov 16, 2007 10:25 PM by kglad

    slider control speed

    redsox05 Level 1
      I have a slider that changes the color of my background. If you move it too fast back and forth it doesn't work right. Is there a way I can limit the slider speed that you can drag it?
      here's my code thanks

      sq1.onPress = function() {
      startDrag(this, false, 195, 0, 0, 0);
      this.slide = true;
      };
      sq1.onRelease=sq1.onReleaseOutside = function() {
      this.stopDrag();
      this.slide = false;
      };
      sq1.onEnterFrame = function() {
      if (this.slide == true) {
      this._parent._parent.box.backSQ.backMC.gotoAndStop(Math.floor(this._x));
      }
      };