Infinate scroller
does anyone know how I can make this image scroller inifate, so its one big loop, and also how to slow it down?
Thanks
stop();
//Build gallery
for (i = 0; i < total; i++){
contentMC.attachMovie("attachMC", "images" + i, i);
path = contentMC["images" + i];
path._x = contentLength * i;
path.title_txt.htmlText = Title;
path.caption_txt.htmlText = Caption;
path.caption_txt.autoSize = true;
contentLength = Space;
path.linkButton._link = Link;
loadMovie(Image, path.holderMC);
// linkButton setting [ Active & Pasif ]
if (Link != null && Link != " " && Link != undefined){
path.linkButton._visible = true;
}else{
path.linkButton._visible = false;
}
}//end for
scrollTSpeed = 0.1; //slider control move
var speedY:Number = 10;
//setMask
contentMC.setMask(maskMC);
// Scroll slide function
function slideFunction() {
if(this._ymouse>0 && this._ymouse<maskMC._height) {
if(this._ymouse>0 && this._ymouse<maskMC._width) {
speedY = -this._xmouse/maskMC._width*(contentMC._width-maskMC._width);
}
}
contentMC._x +=( speedY-contentMC._x )* scrollTSpeed;
}
onEnterFrame = function() {
slideFunction();
};
// Resize objects of stage
Stage.align = "TL";
Stage.scaleMode = "noscale";
stageListener = new Object();
Stage.addListener(stageListener);
resizeObjects = function () {
backgroundMC._x = 0;
backgroundMC._y = 0;
backgroundMC._width = Stage.width;
backgroundMC._height = Stage.height;
maskMC._x = 0;
maskMC._y = 0;
maskMC._width = 1000; //Stage.width;
maskMC._height = Stage.height;
contentMC._x = 0;
contentMC._y = Stage.height / 2 - contentMC._height / 2;
}
stageListener.onResize = function() {
resizeObjects();
}
resizeObjects();