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
| for(var i1=0; i1 < Constant.DETAILSIMAGES.length; i1++)
{
if( calcul%6 == 0 && calcul!=0)
{
coordY += 130;
coordX = 10;
}
if (Constant.DETAILSIMAGES[idTAb].vignette != undefined && Constant.DETAILSIMAGES[idTAb].urlimage != undefined && Constant.DETAILSIMAGES[idTAb].nomrepertoire == Constant.NOMREPCHOISI)
{
if(debutIMG >= _debut)
{
_cadre.attachMovie("cartemini","vignette"+i1,_niveau++,{_x:coordX, _y:coordY, _width:130, _height:87})
_cadre["vignette"+i1].createEmptyMovieClip("image"+i1, _niveau++);
// à ne faire qu'une fois booléen, idem onLoadComplete
_cadre["vignette"+i1]["image"+i1]._x = Constant.DECALAGE;
_cadre["vignette"+i1]["image"+i1]._y = Constant.DECALAGE;
loadingQueue.loadClip (Constant.DETAILSIMAGES[idTAb].vignette, _cadre["vignette"+i1]["image"+i1]);
_cadre["vignette"+i1]["image"+i1]._visible = false;
_cadre["vignette"+i1]["image"+i1]._alpha = 0;
coordX += 130;
Constant.NBVIGNETTESTROUVEES = i1+1;
calcul++;
}
debutIMG++;
}
idTAb++;
if(calcul >= Constant.NBVIGNETTES )
{
Constant.NBVIGNETTESTROUVEES = i1+1;
i1 = Constant.DETAILSIMAGES.length;
}
} |
Partager