//COPIEUR par Walter Siracusa import flash.display.BitmapData; function newGrille(){ //Grille source bmp_src=BitmapData.loadBitmap("img"+Num_img+".png"); for(j=0;j=0 && _xmouse<342 && _ymouse>Y_DST && _ymouse<436){ i_dst=Math.floor(_xmouse/LG_BLOC); j_dst=Math.floor((_ymouse-Y_DST-1)/HT_BLOC); if(i_dst!=i_dst0 || j_dst!=j_dst0){ i_dst0=i_dst; j_dst0=j_dst; Tab_dst[i_dst][j_dst]=1-Tab_dst[i_dst][j_dst]; //Inverse les valeurs 0 ou 1 clip=_root["bloc_dst_mc"+(j_dst*LG_GRILLE+i_dst)]; if(Tab_dst[i_dst][j_dst]==1) clip.gotoAndPlay("on"); else clip.gotoAndPlay("off"); checkGrille(); } } //Score if(Score>0){ Score--; score_txt.text=Score; //Apparition du bouton d'abandon if(Score==3500) abandon_but._visible=true; } }else if(Game==3){ //End Game endGame(); } } newGrille();