1 Reply Latest reply on Sep 5, 2007 8:15 AM by kglad

    Convert gallery to slideshow

    VMount
      Hi

      I've got a user-controlled gallery on a webpage which is working fine at the moment: Aztec site

      The client now wants it to be a slideshow however. Rather than start from scratch, is there any way to keep it as it is, but make it act as if the user is clicking on each thumbnail every 10 seconds or so. I'd be hiding the thumbnails.

      In effect, I want to convert it from an interactive gallery to a passive slideshow, but keep the scrolling effect.

      Here's the flash file: link

      And here's the ActionScript:

      this.createEmptyMovieClip("images", 100);
      this.attachMovie("mask", "mask", 101);
      mask._x = images._x =5;
      mask._y = target = 5;
      images.setMask(mask);
      images._y = -1000;
      speed = 5;
      for (var i = 0; i<8; i++) {
      var img = images.attachMovie("image"+i, "image"+i, i);
      img._y = img._height*i;
      var thumb = this["thumb"+i];
      thumb._alpha = 60;
      thumb.pos = target+(i*-img._height);
      thumb.onPress = function() {
      target = this.pos;
      };
      thumb.onRollOver = function() {
      this._alpha = 100;
      };
      thumb.onRollOut = function() {
      this._alpha = 60;
      };
      }
      this.onEnterFrame = function() {
      images._y += (target-images._y)/speed;
      };