Flash slideshoowtje

Het moet heeeeel simpel zijn maar mij duurt het nu gewoon te lang. Ik heb een slideshowtje gemaakt. Alle elementen van een array faden automatisch in. Ik wil dat hij gewoon weer opnieuw begint. Van voor af aan. Dit krijg ik echter niet voorelkaar.

[code:1:913473e5ec]allPics = new Array();
allPics[1] = photo1_mc;
allPics[2] = photo2_mc;
allPics[3] = photo3_mc;
allPics[4] = photo4_mc;
allPics[5] = photo5_mc;
allPics[6] = photo6_mc;
allPics[7] = photo7_mc;
allPics[8] = photo8_mc;
allPics[9] = photo9_mc;
allPics[10] = photo10_mc;
allPics[11] = photo11_mc;
allPics[12] = photo12_mc;
allPics[13] = photo13_mc;
allPics[14] = photo14_mc;
allPics[15] = photo15_mc;
allPics[16] = photo16_mc;
allPics[17] = photo17_mc;
allPics[18] = photo18_mc;
allPics[19] = photo19_mc;
allPics[20] = photo20_mc;
allPics[21] = photo21_mc;
allPics[22] = photo22_mc;
allPics[23] = photo23_mc;
allPics[24] = photo24_mc;
allPics[25] = photo25_mc;
allPics[26] = photo26_mc;
allPics[27] = photo27_mc;
allPics[28] = photo28_mc;

var current_number = 1;
var delay = 1;
var len = allPics.length;
var counter = 0;

for(var i = 0; i < len; i++)
{
allPics[i].attachMovie("shade_mc", "shade_mc", this.getNextHighestDepth, {_x:-3, _y:-2});
}

for(var i = 7; i < len; i++)
{
allPics[i]._alpha = 0;
}

function fadeIn()
{
current_item = allPics[current_number];
counter++;
if(current_number == 28){current_number == 1;}
if(current_item._alpha < 100)
{
current_item._alpha++
current_item.shade_mc._alpha–;
//trace(counter);
}
else
{
current_item._alpha = 100;
current_number++;
counter = 0;
clearInterval(fadeInterval);
fadeInterval = setInterval(fadeIn, delay);
}
}

var fadeInterval = setInterval(fadeIn, delay);[/code:1:913473e5ec]

Ik heb de oplossing gevonden op: [url=http://www.a3d.nl/index.php/?p=271]deze[/url] site.