Do you guys know how to get this thumbnail scroller to keep scrolling when it runs out of external images? For instance … right now, I have three images in my external folder. When I scroll using the button, it stops scrolling once the third image has been displayed – Instead I want it to keep scrolling to the first image, and so on.
Any ideas?? I can’t seem to get this one working …
Here’s the thumbnail scroller code
function thumbNailScroller() {
// Photo Slideshow
this.createEmptyMovieClip("tscroller", this.getNextHighestDepth());
scroll_speed = 35;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc2._y) && (_root._ymouse<=thumbnail_mc2._y+thumbnail_mc2._height)) {
if ((_root._xmouse>=(hit_right._x-0)) && (thumbnail_mc2.hitTest(hit_right))) {
thumbnail_mc2._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+0)) && (thumbnail_mc2.hitTest(hit_left))) {
thumbnail_mc2._x += scroll_speed;
}
}
};
}
function thumbnails_fn(k) {
thumbnail_mc2.createEmptyMovieClip("t"+k, thumbnail_mc2.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
p++;
getlink();
};
target_mc.onRollOver = function() {
this._alpha = 100;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc2.t"+k);
}