Slideshow photogallery

Hi
All Great Flashers

First of visit this link

www.flashybee.com/sudip

this is a image gallery What I want to make these big images to scroll one by one without clicking the thumbnails, just like possible. Is it possible. I attach herewith the code for your look.

I am trying to make it with set interval. You can find the code in the bottom and the name of the function is slideShow();

Please do something as I need it urgently.

trnghosh



import mx.transitions.Tween;
import mx.transitions.easing.*;
var myGalleryXML = new XML();
myGalleryXML.ignoreWhite = true;
myGalleryXML.load("gallery.xml");
myGalleryXML.onLoad = function() {
    _root.gallery_x = myGalleryXML.firstChild.attributes.gallery_x;
    _root.gallery_y = myGalleryXML.firstChild.attributes.gallery_y;
    _root.gallery_width = myGalleryXML.firstChild.attributes.gallery_width;
    _root.gallery_height = myGalleryXML.firstChild.attributes.gallery_height;
    _root.myImages = myGalleryXML.firstChild.childNodes;
    _root.myImagesTotal = myImages.length;
    _root.thumb_height = myGalleryXML.firstChild.attributes.thumb_height;
    _root.thumb_width = myGalleryXML.firstChild.attributes.thumb_width;
    _root.full_x = myGalleryXML.firstChild.attributes.full_x;
    _root.full_y = myGalleryXML.firstChild.attributes.full_y;
    callThumbs();
    createMask();
    scrolling();
    callFullImage(0);
    slideShow();
};
function callThumbs() {
    _root.createEmptyMovieClip("container_mc", _root.getNextHighestDepth());
    container_mc._x = _root.gallery_x;
    container_mc._y = _root.gallery_y;
    var clipLoader = new MovieClipLoader();
    var preloader = new Object();
    clipLoader.addListener(preloader);
    for (i=0; i<myImagesTotal; i++) {
        thumbURL = myImages*.attributes.thumb_url;
        myThumb_mc = container_mc.createEmptyMovieClip(i, container_mc.getNextHighestDepth());
        myThumb_mc._y = _root.thumb_height*i;
        clipLoader.loadClip("thumbs/"+thumbURL, myThumb_mc);
        preloader.onLoadStart = function(target) {
            target.createTextField("my_txt", target.getNextHighestDepth(), 0, 0, 100, 20);
            target.my_txt.selectable = false;
        };
        preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
            target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
        };
        preloader.onLoadComplete = function(target) {
            new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
            target.my_txt.removeTextField();
            target.onRelease = function() {
                callFullImage(this._name);
            };
            target.onRollOver = function() {
                this._alpha = 50;
            };
            target.onRollOut = function() {
                this._alpha = 100;
            };
        };
    }
}
function callFullImage(myNumber) {
        
    myURL = myImages[myNumber].attributes.full_url;
    myTitle = myImages[myNumber].attributes.title;
    _root.createEmptyMovieClip("fullImage_mc", _root.getNextHighestDepth());
    fullImage_mc._x = _root.full_x;
    fullImage_mc._y = _root.full_y;
    var fullClipLoader = new MovieClipLoader();
    var fullPreloader = new Object();
    fullClipLoader.addListener(fullPreloader);
    fullPreloader.onLoadStart = function(target) {
        target.createTextField("my_txt", fullImage_mc.getNextHighestDepth(), 0, 0, 200, 20);
        target.my_txt.selectable = false;
    };
    fullPreloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
        target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
    };
    fullPreloader.onLoadComplete = function(target) {
        new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
        target.my_txt.text = myTitle;
        target.onRelease = function() {
            getURL(myImages[myNumber].attributes.link);
        };
    };
    fullClipLoader.loadClip("full_images/"+myURL, fullImage_mc);
}
function createMask() {
    _root.createEmptyMovieClip("mask_mc", _root.getNextHighestDepth());
    mask_mc._x = _root.gallery_x;
    mask_mc._y = _root.gallery_y;
    mask_mc.beginFill(0x000000, 100);
    mask_mc.lineTo(_root.gallery_width, 0);
    mask_mc.lineTo(_root.gallery_width, _root.gallery_height);
    mask_mc.lineTo(0, _root.gallery_height);
    mask_mc.lineTo(0, 0);
    container_mc.setMask(mask_mc);
}
function scrolling() {
    _root.onEnterFrame = function() {
        container_mc._y += Math.cos(((mask_mc._ymouse)/mask_mc._height)*Math.PI)*15;
        if (container_mc._y>mask_mc._y) {
            container_mc._y = mask_mc._y;
        }
        if (container_mc._y<(mask_mc._y-(container_mc._height-mask_mc._height))) {
            container_mc._y = mask_mc._y-(container_mc._height-mask_mc._height);
        }
    };
}
// this is the function for slide show I am going to implement.

delay = 3000;

function slideShow() {
    myInterval = setInterval(pause_slideshow, delay);
    function pause_slideshow() {
        //clearInterval(myInterval);
        _root.currentImage = this._name;
        if (_root.currentImage>=_root.myImagesTotal) {
            _root.currentImage = 0;
            callFullImage(_root.currentImage);
            _root.currentImage--;
        } else {
            if (_root.currentImage<0) {
                _root.currentImage = _root.myImagesTotal-1;
            }
            callFullImage(_root.currentImage);
            _root.currentImage++;
        }
    }
}