2 Replies Latest reply on Oct 10, 2007 6:44 AM by wonderwilson

    Slowing Down Scrolling Thumbnails

    wonderwilson
      Hello everyone,

      I've put together one of those great masked scrolling thumbnail panels by working through a tutorial. I'd like to slow it down a bit, could someone suggest how this is done. Here's the code:

      panel.onRollOver = panelOver;

      function panelOver() {
      this.onEnterFrame = scrollPanel;
      delete this.onRollOver;
      }

      var b = stroke.getBounds(_root);

      function scrollPanel() {
      if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
      this.onRollOver = panelOver;
      delete this.onEnterFrame;
      }

      if(panel._y >= 60) {
      panel._y = 60;
      }

      if(panel._y <= -1000) {
      panel._y = -1000;
      }

      var xdist = _ymouse - 250;

      panel._y += Math.round(-xdist / 7);
      }

      Thanks.

      Darren.