Slideshow array, root problem

hi everyone,
somewhere in the forum i found this slideshow:
http://actionscript-toolbox.com/samplemx_slideshow.php

the script reads:
var pic_arr = [“image01.swf”, “image02.swf”, “image03.swf”, “image04.swf”,
“image05.swf”];
var color_arr = [0xffffff, 0xffffff, 0xffffff, 0xffffff, 0xffffff];
var currentSlide = 0;

// specify pic locations, alpha increment each frame, and
// number of frames to keep current picture displayed before
// transitioning to the next one

this.attachMovie(“slideshow”, “show”, 1, {
_x:0, _y:0, _visible:false, fps:40, nFrames:100, alphaIncr:30,
slides_arr:pic_arr, slideDepth:1, repeat:true,
slideTracker:“currentSlide”});

// tell _root (this) to listen for events broadcast by show
show.addListener(this);

this.onSlideLoaded = function(i) {
(new Color(this[“dot”+i+"_mc"])).setRGB(color_arr*);
// trace('slide ‘+ i + ’ loaded’);
};

this.onAllSlidesLoaded = function() {
show._visible = true;
show.beginTransitions();
};

my problem is, that i load the slideshow into a mc. that works. yet it is trying to load the pics from the main directory and for some reason i cant figure out how to add the specify pic location (the pathToPics) into this script. slideshow.swf and the pics are in the same folder, so why does’nt this work???
could anyone please help?
thanks in advance

It’s probably in there:

var pathToPic = "" ; // you'll have to fill that
Slideshow.prototype.loadInSeq = function(i) {
    var slide = this.createEmptyMovieClip("slide" + i, this.slideDepth++);
    // hide all slides loading on top of first one
    if (i > 0) slide._alpha = 0;
    slide.loadMovie(pathToPic + this.slides_arr*);
    checkLoadedID = setInterval(function(i, mc) {
        if (mc["slide" + i]._width > 0) {
            mc.broadcastMessage("onSlideLoaded", i);
            clearInterval(checkLoadedID);
            // start next one loading (if not last)
            if (i < mc.slides_arr.length-1) {
                mc.loadInSeq(i + 1);
            } else {
                mc.broadcastMessage("onAllSlidesLoaded");
            }	
        }
        }, 1000/this.fps, i, this);
};

hi ilyas,
thanks for reply. well, the component, didn’t think of that.
got really happy … but now i am still pulling my hair.

i tried everything i could come up with:
var pathToPic = “./folder1/folder2/folder3/”;
var pathToPic = “/folder1/folder2/folder3/”;
var pathToPic = “folder1/folder2/folder3/”;
to explain … my main directory has a folder, in it another and yet another with the images and the slideshow …

and i even left it blank as i thought they are in the same directory???
var pathToPic = “” ;

…%§&/(&(/&??? i always get the output message:
Error opening URL “file:///D|/%5FmySite/flash/image01.swf”

apparently it always looks in the main directory. why is this???
is there a trick? at this point i’ll take any advice.
thanks