Hallo,
ich gebe dir hier nochmal eine Steilvorlage und ich war mal so frei und habe deinen Code um ca. 200 Zeilen gekürzt 
Das Dingen sollte wie gehabt sofort anfangen zu laufen und lädt im Hintergrund alle Bilder nach. Man kann es alles noch verfeinern, aber dafür fehlen dir die Kenntnisse und mir die Zeit dir alles anzupassen.
PHP-Code:
//initialize variables and properties
square._alpha = 0;
whichPic = 1;
var bildNamen = "../tnm_images/p";
var bildAnzahl = 97;
var zaehler = 2;
function ladeBild() {
if (zaehler<bildAnzahl) {
var obj = _root.createEmptyMovieClip("bild_con_"+zaehler,zaehler +200);
obj.loadMovie(bildNamen+zaehler+".jpg");
obj._x = obj._y=-100000;
b1.obj = obj;
b1.onEnterFrame = function() {
gesamt = this.obj.getBytesTotal();
geladen = this.obj.getBytesLoaded();
prozent = geladen*100/gesamt;
if (geladen == gesamt && geladen>4) {
removeMovieClip(this.obj);
ladeBild();
}
};
} else {
delete b1.onEnterFrame;
}
}
ladeBild();
//initiate change to new image when buttons are clicked
next.onPress = function() {
if (whichPic<96 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
for (var i = 1; i<97; i++) {
var btnObj = this["b"+i];
btnObj.pNr = i;
btnObj.onPress = function() {
fadeOut = true;
whichpic;
fadeOut = true;
input = whichPic=this.pNr;
};
}
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("../tnm_images/p"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
// limit input field
if (input>95) {
input = 1;
}
// initiate change to new image when Enter key is pressed
if (Key.isDown(Key.ENTER)) {
fadeOut = true;
whichpic = input;
}
};
// if a number is entered in the input field but Enter is not pressed, change
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
input = whichPic;
};