0 Replies Latest reply on Sep 7, 2007 1:57 PM by noir1210

    Scrolling bar issue

    noir1210
      i created a slideshow of scrolling images when moused over. when the images is placed on the right side of the document it scrolls quickly to the right but really slow to the left. the speed of the rollovers are even only when the movie clip of images are placed in the center of the document. is there a way to restrict dimensions of a movie clip?

      panel.onRollOver = panelOver;

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

      var b = stroke.getBounds (_rollover);

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

      if (panel._x >= -115) {
      panel._x = -115
      }

      if (panel._x <= -465) {
      panel._x = -465
      }

      var xdist = _xmouse - 0

      panel._x += -xdist / 25;
      }