0 Replies Latest reply on Sep 17, 2006 10:58 AM by cgulotta

    Need help with modifications to Scrolling Thumbnails tutorial

    cgulotta
      I created a slideshow with thumbnails as links from the tutorial http://www.kirupa.com/developer/mx2004/thumbnails.htm
      The tutorial creates the thumbnails on a horizontal. I changed the code to make it display on the vertical but I can tell that the area to scroll left to right is still there when i need it to go up and down. I have pasted my code below. Thanks for any help. I know I am almost there.

      function thumbNailScroller() {
      // thumbnail code
      this.createEmptyMovieClip("tscroller", 1000);
      scroll_speed = 5;
      tscroller.onEnterFrame = function() {
      if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
      if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
      thumbnail_mc._y -= scroll_speed;
      } else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
      thumbnail_mc._y += scroll_speed;
      }
      } else {
      delete tscroller.onEnterFrame;
      }
      };
      }