Ты прав!
Работает
Но помимо того, что ты написал, нужно добавить цикл.

Код:
domain = "www.spektr-company.ru";
target = "";
files = new LoadVars();
files.sendAndLoad("http://"+domain+target+"/Amount.php", files, "POST");
files.onLoad = function() {
for (count=0; count<this.n; count++) {
var position = images_mc.createEmptyMovieClip("cell_"+count, images_mc.getNextHighestDepth());
images_mc["cell_"+count].attachMovie("frame_mc", "frame_mc", 1);
position._x = position._width*count;
images_mc["cell_"+count].frame_mc.loaders_mc.loadMovie("http://"+domain+target+"/Resize.php?f="+this["amount"+count]+"&type=0", 1);
for (i=0; i<5; i++) {
images_mc["cell_"+i].i = i;
images_mc["cell_"+i].onPress = function() {
photo_mc.loadMovie("http://"+domain+target+"/Resize.php?f="+files["amount"+this.i]+"&type=2");
};
}
}
};