home *** CD-ROM | disk | FTP | other *** search
- stopclick = false;
- currentx = 0;
- currenty = 0;
- numx = 8;
- numy = 6;
- numbad = 10;
- tempcount = new Array(numx * numy);
- numleft = numx * numy - numbad;
- tempx = 0;
- tempy = 0;
- distx = getProperty("/baseapple", _width) - getProperty("/baseapple", _width) / 10 + 22;
- disty = getProperty("/baseapple", _height) - getProperty("/baseapple", _height) / 10 + 25;
- startx = 315 - numx / 2 * distx;
- starty = 225 - numy / 2 * disty + 30;
- countx = 1;
- county = 1;
- countbad = 0;
- countI = 0;
- while(numx >= countx)
- {
- while(numy >= county)
- {
- set("bad" add countx add county,0);
- tempCount[countI] = 0;
- county += 1;
- countI++;
- }
- county = 1;
- countx += 1;
- }
- while(countbad < numbad)
- {
- tempx = random(numx) + 1;
- tempy = random(numy) + 1;
- while("bad" add tempx add tempy == 1)
- {
- tempx = random(numx) + 1;
- tempy = random(numy) + 1;
- }
- set("bad" add tempx add tempy,1);
- countbad += 1;
- }
- gotoAndPlay(11);
-