1 Reply Latest reply on Sep 27, 2006 7:34 AM by kglad

    scrollbar problem

    jaanakapradeep
      hi,
      using this script can i create scrollbar then how can i do that i tried but not working

      var textheight:Number;
      var scrollbarbottom:Number = scrollbar5._y + (mask5._height - scrollbar5._height);
      var scrollbarrange:Number = scrollbarbottom - mask5._y;
      function scrollOnMouseMove() {
      this.startDrag(false, this._x, mask5._y, this._x, scrollbarbottom);
      this.onMouseMove = function() {
      descrip5._y = mask5._y - (textheight - mask5._height) * ((this._y-mask5._y) / scrollbarrange);
      }
      }

      function stopScrollOnMouseMove() {
      this.stopDrag();
      delete this.onMouseMove;
      }
      descrip5.autoSize = "left";
      scrollbar5.onPress = scrollOnMouseMove;
      scrollbar5.onRelease = scrollbar5.onReleaseOutside = stopScrollOnMouseMove;