Frame 98
gotoAndPlay (99);
Frame 99
bgzakif = 10;
_root.interfirance = 20;
_root.scoregame = 1;
_root.lockthingy = 1;
txtPercentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
tellTarget ("loader") {
gotoAndPlay(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
};
Frame 100
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (101);
} else {
gotoAndPlay (99);
}
Frame 101
ratio = 0.004;
myDate0 = new Date().getday();
myDate1 = new Date().getmonth();
myDate2 = new Date().getfullyear();
highseed = int(((mydate0 * 1000) + (mydate1 * 100000)) + ((mydate2 * 1000) * ratio));
highs1 = highseed;
highs2 = int(highseed * 0.58);
highs3 = int(highseed * 0.38);
rndnames = new Array("MaTriX", "NinjaBoy", "Kathy", "Dave123", "SuperGirl", "Jean", "Gman", "Sweet Girl", "CyberDog", "Tai Fu", "Zipnav", "ZZ9`ZA", "I rule", "Kim", "David", "Peggy", "Jackie Chan", "MadMan", "Vini", "Bridght lin", "Tina", "BigMan", "SuperToy", "Player707", "Kamil", "Kabila", "Doppy", "Rasta", "BangBang", "18f Italy", "SheD", "David", "Jean", "Joe", "Joe3003", "DeltaV", "Fufu", "Lufi san", "S.A", "Y.C is king", "Nasha", "Smooother", "RabbitFeet", "TheDog", "Kamikaze", "Sharon", "Sharon002", "Dan32", "e=MC2", "Joron", "Gorgoron", "Havita", "Kai law", "Hong Fei", "Brazil!", "JojO", "Fishface", "CyberFish", "Karnafish", "Zeta", "Fabi", "CoC", "WestSide", "MaTriX", "RubiTamTam", "AliG", "BigUp", "Kalistro", "Boyakasha", "BBTRR", "Mai", "Wicked", "Ha Ha", "Tomas", "Jamil", "James543", "JJ cool", "Neo", "Giorgio", "Latifa", "Mohamad", "Sade", "Belmer", "Luti", "Luther", "Basta", "No more...");
givenames = 1;
while (givenames < 4) {
rndpicker = ((mydate0 * 2) + givenames) + mydate1;
Set("highname" add givenames, rndnames[rndpicker]);
givenames++;
}
play();
Frame 102
removeMovieClip("gameover2");
f = 1;
while (2000 >= f) {
removeMovieClip("block" add f);
f++;
}
_root.zakif = 1;
level = 1;
stop();
Frame 104
_root.zakif = 0;
setProperty("extras", _visible , true);
removeMovieClip("gameover2");
removeMovieClip("nextlevel2");
f = 1;
while (2000 >= f) {
removeMovieClip("block" add f);
f++;
}
if (level == 1) {
sb_score = 0;
maxcolour = 3;
sb_lines = 12;
addspeed = 150;
startrows = 10;
}
if (level == 2) {
maxcolour = 3;
sb_lines = 18;
addspeed = 140;
startrows = 5;
}
if (level == 3) {
maxcolour = 4;
sb_lines = 24;
addspeed = 130;
startrows = 6;
}
if (level == 4) {
maxcolour = 4;
sb_lines = 25;
addspeed = 120;
startrows = 7;
}
if (level == 5) {
maxcolour = 4;
sb_lines = 26;
addspeed = 100;
startrows = 8;
}
if (level == 6) {
maxcolour = 5;
sb_lines = 27;
addspeed = 90;
startrows = 9;
}
if (level == 7) {
maxcolour = 5;
sb_lines = 28;
addspeed = 80;
startrows = 10;
}
if (level == 8) {
maxcolour = 5;
sb_lines = 29;
addspeed = 70;
startrows = 10;
}
if (level == 9) {
maxcolour = 5;
sb_lines = 30;
addspeed = 100;
startrows = 10;
}
if (level == 10) {
maxcolour = 6;
sb_lines = 35;
addspeed = 50;
startrows = 10;
}
if (level == 11) {
maxcolour = 6;
sb_lines = 32;
addspeed = 40;
startrows = 10;
}
if (level == 12) {
maxcolour = 6;
sb_lines = 40;
addspeed = 35;
startrows = 10;
}
if (level == 13) {
maxcolour = 6;
sb_lines = 45;
addspeed = 30;
startrows = 10;
}
if (level == 14) {
maxcolour = 6;
sb_lines = 50;
addspeed = 20;
startrows = 11;
}
if (level >= 15) {
maxcolour = 7;
sb_lines = 55;
addspeed = 10;
startrows = 11;
}
sb_level = level;
sfx4.gotoAndPlay(2);
grid = new Array();
gridy = 21;
gridx = 15;
gridsize = gridy * gridx;
f = 0;
while (gridsize >= f) {
grid[f] = 0;
f++;
}
colourgrid = new Array();
match = new Array();
addblocks = new Array();
search = false;
foundmin = 3;
startx = 31;
starty = 487;
xpos = startx;
ypos = starty;
xdif = 24;
ydif = 24;
blockcount = 1;
startcolumns = gridx;
y = 1;
while (startrows >= y) {
xpos = startx;
x = 1;
while (startcolumns >= x) {
duplicateMovieClip ("blocks", "block" add blockcount, blockcount);
blockname = eval ("block" add blockcount);
blockname._x = xpos;
blockname._y = ypos;
colour = random(maxcolour) + 1;
blockname.gotoAndStop(colour);
grid[blockcount] = blockcount;
xpos = xpos + xdif;
blockcount = blockcount + 1;
x++;
}
ypos = ypos - ydif;
y++;
}
addnum = 0;
addx = startx;
addy = (starty + ydif) + 19;
speedchange = 50;
leveltime = 10;
addstart = getTimer();
levelstart = getTimer();
Frame 105
if (search == true) {
gotoAndPlay (113);
}
delay = getTimer() - addstart;
if (addspeed < delay) {
addnum = addnum + 1;
newcount = 1000 + addnum;
duplicateMovieClip ("blocks", "block" add newcount, newcount);
blockname = eval ("block" add newcount);
blockname._x = addx;
blockname._y = addy;
colour = random(maxcolour) + 1;
addblocks[addnum] = colour;
blockname.gotoAndStop(colour);
addx = addx + xdif;
addstart = getTimer();
if (addnum == gridx) {
f = gridx + 1;
while (gridsize >= f) {
tempf = (gridsize - f) + 1;
grid[tempf] = grid[tempf - gridx];
blocknum = eval ("block" add grid[tempf - gridx]);
blocknum._y = blocknum._y - ydif;
f++;
}
xpos = startx;
ypos = starty;
f = 1;
while (gridx >= f) {
newcount = 1000 + f;
removeMovieClip("block" add newcount);
duplicateMovieClip ("blocks", "block" add blockcount, blockcount);
blockname = eval ("block" add blockcount);
blockname._x = xpos;
blockname._y = ypos;
colour = addblocks[f];
blockname.gotoAndStop(colour);
grid[f] = blockcount;
xpos = xpos + xdif;
blockcount = blockcount + 1;
f++;
}
addnum = 0;
addx = startx;
sb_lines = sb_lines - 1;
if (sb_lines == 3) {
sfx8.gotoAndPlay(2);
}
}
}
gridcheck = (gridsize - (gridx * 2)) + 1;
gameover = false;
f = gridcheck;
while (gridsize >= f) {
check = grid[f];
if (check != 0) {
gameover = true;
}
f++;
}
if (sb_lines < 0) {
gotoAndPlay (107);
}
Frame 106
if (gameover == false) {
gotoAndPlay (105);
} else {
gotoAndPlay (108);
}
Frame 107
setProperty("extras", _visible , false);
gameovertime = getTimer();
sfx4.gotoAndStop(1);
sb_lines = 0;
duplicateMovieClip ("nextlevel", "nextlevel2", 10000);
tellTarget ("_root.bg.shield") {
play();
};
tellTarget ("_root.nextlevel2") {
nextFrame();
};
nextlevel2._x = 205;
nextlevel2._y = 230;
sfx7.gotoAndPlay(2);
level = level + 1;
stop();
Frame 108
stopAllSounds();
gameover2._x = 197;
gameover2._y = 251;
gotoAndStop (118);
setProperty("extras", _visible , false);
Frame 113
blocknum = grid[gridpos];
blockcolour = _root["block" add blocknum]._currentframe;
f = 1;
while (gridsize >= f) {
blocknum = grid[f];
tempcolour = _root["block" add blocknum]._currentframe;
if (tempcolour == blockcolour) {
newval = blockcolour;
} else {
newval = 0;
}
colourgrid[f] = newval;
match[f] = 0;
f++;
}
Frame 114
currentpos = gridpos;
found = 1;
foundptr = 1;
repeat = true;
while (repeat == true) {
if (found == foundptr) {
match[found] = currentpos;
colourgrid[currentpos] = 0;
}
xpos = ((currentpos - 1) % gridx) + 1;
ypos = int((currentpos - 1) / gridx);
nextpos = -1;
repeat = false;
check = 0;
if (1 < xpos) {
check = colourgrid[currentpos - 1];
}
if (check != 0) {
nextpos = currentpos - 1;
}
check = 0;
if (xpos < gridx) {
check = colourgrid[currentpos + 1];
}
if (check != 0) {
nextpos = currentpos + 1;
}
check = 0;
if (ypos < gridy) {
check = colourgrid[currentpos + gridx];
}
if (check != 0) {
nextpos = currentpos + gridx;
}
check = 0;
if (0 < ypos) {
check = colourgrid[currentpos - gridx];
}
if (check != 0) {
nextpos = currentpos - gridx;
}
if (0 < nextpos) {
found = found + 1;
foundptr = found;
currentpos = nextpos;
repeat = true;
} else if (1 < foundptr) {
foundptr = foundptr - 1;
currentpos = match[foundptr];
repeat = true;
}
}
if (found >= foundmin) {
_root.base = found;
tellTarget ("base") {
gotoAndPlay (2);
};
f = 1;
while (found >= f) {
num = match[f];
duplicateMovieClip ("kaboom", "kaboom" add f, 1000 + f);
setProperty("kaboom" add f, _x , getProperty("block" add grid[num], _x));
setProperty("kaboom" add f, _y , getProperty("block" add grid[num], _y));
removeMovieClip("block" add grid[num]);
grid[num] = 0;
f++;
}
sfx3.gotoAndPlay(2);
newscore = (found - 2) * found;
if (found >= 10) {
newscore = newscore * 20;
}
sb_score = sb_score + newscore;
} else {
sfx2.gotoAndPlay(2);
}
Frame 115
fall = false;
f = 1;
while ((gridsize - gridx) >= f) {
temp = grid[f];
temp2 = grid[f + gridx];
if (temp == 0) {
if (temp2 != 0) {
fall = true;
}
blocknum = eval ("block" add temp2);
blocknum._y = blocknum._y + ydif;
grid[f] = temp2;
grid[f + gridx] = 0;
}
f++;
}
Frame 116
if (fall == true) {
gotoAndPlay (115);
} else {
side = false;
fall = false;
mid = gridx / 2;
f = 2;
while (f < gridx) {
check = grid[f];
if (check == 0) {
if (mid >= f) {
y = 0;
while (y < gridy) {
newf = f + (y * gridx);
fcount = f;
while (1 < fcount) {
check2 = grid[newf - 1];
if (check2 != 0) {
side = true;
}
blocknum = eval ("block" add grid[newf - 1]);
blocknum._x = blocknum._x + xdif;
grid[newf] = grid[newf - 1];
newf = newf - 1;
fcount = fcount - 1;
}
grid[newf] = 0;
y++;
}
} else {
y = 0;
while (y < gridy) {
newf = f + (y * gridx);
fcount = f;
while (fcount < gridx) {
check2 = grid[newf + 1];
if (check2 != 0) {
side = true;
}
blocknum = eval ("block" add grid[newf + 1]);
blocknum._x = blocknum._x - xdif;
grid[newf] = grid[newf + 1];
newf = newf + 1;
fcount = fcount + 1;
}
grid[newf] = 0;
y++;
}
}
}
f++;
}
}
Frame 117
if (side == false) {
search = false;
gotoAndPlay (105);
} else {
gotoAndPlay (116);
}
Frame 118
stop();
_root.zakif = 1;
f = 1;
while (2000 >= f) {
removeMovieClip("block" add f);
f++;
}
Frame 119
Frame 121
Frame 122
gotoAndPlay (102);
Symbol 8 Button
on (release, keyPress "<Enter>") {
this.preventcache = getTime();
this.username = username;
this.gamename = this.gamename;
this.score = _root.sb_score;
this.formaction = "sethighscore";
play();
}
Symbol 20 Button
on (release) {
_root.play();
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
pos = parseInt(_parent.position) - 1;
records = parseInt(_parent.records) - 1;
unit = 330 / records;
distance = parseInt(unit * pos);
Symbol 35 MovieClip Frame 4
if (parseInt(arrow._x) >= distance) {
stop();
} else {
arrow._x = arrow._x + 2;
gotoAndPlay (3);
}
Symbol 46 MovieClip Frame 1
x = this._name.substring(4, this._name.length);
this.user_name.txt = _parent["user_name" + x];
this.score.txt = _parent["score" + x];
this.date.txt = " " + _parent["date" + x];
this.num.txt = parseInt(x) + 1;
Symbol 46 MovieClip Frame 32
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 2
slider.play();
Symbol 47 MovieClip Frame 11
stop();
Symbol 48 MovieClip [hstable] Frame 1
this.score = _root.sb_Score;
stop();
Symbol 48 MovieClip [hstable] Frame 2
function getHighScores(returnTarget, gamename, low, high) {
this.low = low;
this.high = high;
this.gamename = gamename;
this.formaction = "gethighscores";
loadVariables ("proxy.php", returnTarget, "GET");
}
getHighScores(hs, this.gamename, 0, 10);
Symbol 48 MovieClip [hstable] Frame 3
if (hs.user_name0 != null) {
gotoAndPlay (6);
} else {
this.loading = "Contacting Mothership..";
play();
}
Symbol 48 MovieClip [hstable] Frame 5
this.loading = "Contacting Mothership...";
gotoAndPlay (3);
Symbol 48 MovieClip [hstable] Frame 6
hs.play();
stop();
Symbol 63 MovieClip Frame 99
stop();
Symbol 75 Button
on (release) {
getURL ("http://www.miniclip.com/Homepage.htm", "_blank");
}
Symbol 77 MovieClip Frame 1
rndt = random(100) + 1;
Symbol 77 MovieClip Frame 2
if (_root.zakif < 1) {
stop();
}
Symbol 77 MovieClip Frame 4
if (rndt < 80) {
gotoAndPlay (1);
}
Symbol 79 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 81 Button
on (release) {
gotoAndPlay (104);
}
Symbol 83 Button
on (release) {
gotoAndStop (123);
}
Symbol 90 Button
on (release) {
getURL ("http://www.miniclip.com/download_cube.htm", "_blank");
}
Symbol 99 MovieClip Frame 15
stop();
Symbol 100 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 102 MovieClip Frame 15
stop();
Symbol 103 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 17
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 20
gotoAndStop (1);
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 7
stop();
Symbol 145 Button
on (press) {
blockname = substring(_name, 6, 3);
thiscolour = _currentframe;
xpos = ((_x - /:startx) / /:xdif) + 1;
ypos = (-(_y - /:starty)) / /:ydif;
gridpos = (ypos * /:gridx) + xpos;
Set("/:search", true);
Set("/:gridpos", gridpos);
}
Symbol 159 Button
on (press) {
delay = getTimer() - /:gameovertime;
if (50 < delay) {
tellTarget ("_root.bg") {
nextFrame();
};
tellTarget ("_root.bg.shield") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndPlay ("gamestart");
};
}
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
play();
loopme = 0;
Symbol 160 MovieClip Frame 24
if (loopme < 3) {
loopme = loopme + 1;
gotoAndPlay (3);
}
Symbol 160 MovieClip Frame 25
stop();
Symbol 162 MovieClip Frame 2
removeMovieClip(this);
Symbol 164 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
_root.sb_score = int(_root.sb_score * 0.9);
Symbol 167 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 3
tellTarget ("../") {
gotoAndStop(random(9) + 2);
};
Symbol 181 MovieClip Frame 4
stop();
Symbol 181 MovieClip Frame 8
tellTarget ("../") {
gotoAndStop (1);
};
Symbol 184 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
starttimer = getTimer();
Symbol 187 MovieClip Frame 2
wintime = getTimer() - starttimer;
wintime = 15 - int(wintime / 1000);
Symbol 187 MovieClip Frame 3
if (0 >= wintime) {
tellTarget ("_root.extras.cover") {
play();
};
} else {
tellTarget ("_root.extras.timeleft") {
gotoAndStop(this.wintime);
};
gotoAndPlay (2);
}
Symbol 192 Button
on (release) {
f = 1;
while (10 >= f) {
rndblast = random(500) + 1;
tellTarget ("_root.block" add rndblast) {
gotoAndStop (1);
};
f++;
}
}
Symbol 196 MovieClip Frame 1
starttimer = getTimer();
Symbol 196 MovieClip Frame 2
wintime = getTimer() - starttimer;
wintime = 8 - int(wintime / 1000);
Symbol 196 MovieClip Frame 3
if (0 >= wintime) {
tellTarget ("_root.extras.cover") {
play();
};
} else {
tellTarget ("_root.extras.timeleft") {
gotoAndStop(this.wintime);
};
gotoAndPlay (2);
}
Symbol 198 Button
on (release) {
f = 1;
while (200 >= f) {
rrr = random(400);
tellTarget ("_root.block" add rrr) {
gotoAndStop (3);
};
f++;
}
}
Symbol 200 Button
on (release) {
f = 1;
while (300 >= f) {
tellTarget ("_root.block" add random(500)) {
gotoAndStop (5);
};
f++;
}
}
Symbol 205 Button
on (release) {
play();
}
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 2
_root.sb_score = _root.sb_score + 5000;
Symbol 208 MovieClip Frame 25
stop();
Symbol 209 Button
on (release) {
play();
}
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
_root.addspeed = _root.addspeed / 2;
Symbol 212 MovieClip Frame 6
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 50
_root.sb_lines = int(sb_lines * 2);
_root.addspeed = int(_root.addspeed * 1.5);
stop();
Symbol 221 MovieClip Frame 1
pointsrnd = random(50) + 5;
pointsrnd = pointsrnd * 1000;
stop();
Symbol 221 MovieClip Frame 2
_root.sb_score = _root.sb_score + pointsrnd;
Symbol 221 MovieClip Frame 30
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
_root.addspeed = _root.addspeed * 2;
Symbol 224 MovieClip Frame 7
stop();
Symbol 227 Button
on (release) {
play();
}
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
_root.sb_score = _root.sb_score + 88888;
Symbol 229 MovieClip Frame 20
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
_root.base = _root.base - 1;
Symbol 233 MovieClip Frame 3
if (_root.base < 1) {
gotoAndStop (1);
}
if (10 < _root.base) {
_root.base = 11;
}
gotoAndPlay (2);
Symbol 242 Button
on (release) {
stopAllSounds();
gotoAndPlay (102);
}
Symbol 243 Button
on (release) {
getURL ("http://www.miniclip.com/cubebuster.htm", "_blank");
}
Symbol 252 Button
on (release) {
gotoAndStop (102);
}