1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
this._lockroot = true
strReflot = reflotselec;
_global.photos = ["65-S_"+ strReflot +"_0.jpg", "65-S_"+ strReflot +"_1.jpg", "65-S_"+ strReflot +"_2.jpg", "65-S_"+ strReflot +"_3.jpg", "65-S_"+ strReflot +"_4.jpg", "65-S_"+ strReflot +"_5.jpg", "65-S_"+ strReflot +"_6.jpg", "65-S_"+ strReflot +"_7.jpg", "65-S_"+ strReflot +"_8.jpg", "65-S_"+ strReflot +"_9.jpg", "65-S_"+ strReflot +"_10.jpg","65-S_"+ strReflot +"_11.jpg"];
_global.grandesPhotos = ["65-S_"+ strReflot +"_0.jpg", "65-S_"+ strReflot +"_1.jpg", "65-S_"+ strReflot +"_2.jpg", "65-S_"+ strReflot +"_3.jpg", "65-S_"+ strReflot +"_4.jpg", "65-S_"+ strReflot +"_5.jpg", "65-S_"+ strReflot +"_6.jpg", "65-S_"+ strReflot +"_7.jpg", "65-S_"+ strReflot +"_8.jpg", "65-S_"+ strReflot +"_9.jpg","65-S_"+ strReflot +"_10.jpg","65-S_"+ strReflot +"_11.jpg"];
_root.attachMovie("cadre", "cadreGrandePhoto", 15);
cadreGrandePhoto._x = -130;
cadreGrandePhoto._y = 30;
cadreGrandePhoto.loadMovie("site/"+grandesPhotos[0]);
j=0;
h=0;
for (i=0; i<=11; i++) {
placement = _root.attachMovie("cadre", "photo"+i, i);
if (i<=3) {
placement._x = 325+i*140;
placement._y = 30;
}
else {
if (i<=7) {
placement._x = 325+j*140;
placement._y = 155;
j = j +1;
}
else {
placement._x = 325+h*140;
placement._y = 270;
h = h +1;
}
}
_root["chargeur"+i] = new MovieClipLoader();
_root["chargeur"+i].exemplaire = i;
_root["chargeur"+i].onloadComplete = function() {
_root["photo"+this.exemplaire].compteur = this.exemplaire;
_root["photo"+this.exemplaire].onPress = function() {
cadreGrandePhoto.loadMovie("site/"+grandesPhotos[this.compteur]);
};
};
var mclListener = new Object();
mclListener.onloadInit = function(target_mc) {
target_mc._height = 86;
target_mc._width = 130;
}
_root["chargeur"+i].addListener(mclListener);
_root["chargeur"+i].loadClip("site/"+photos[i], placement);
} |
Partager