Frame 1
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 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
play();
Frame 5
removeMovieClip("gameover2");
f = 1;
while (f <= 2000) {
removeMovieClip("block" add f);
f++;
}
_root.zakif = 1;
level = 1;
stop();
sb_score = 0;
Frame 7
_root.zakif = 0;
setProperty("extras", _visible , true);
removeMovieClip("gameover2");
removeMovieClip("nextlevel2");
f = 1;
while (f <= 2000) {
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 (f <= gridsize) {
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 (y <= startrows) {
xpos = startx;
x = 1;
while (x <= startcolumns) {
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 8
if (search == true) {
gotoAndPlay (16);
}
delay = getTimer() - addstart;
if (delay > addspeed) {
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 (f <= gridsize) {
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 (f <= gridx) {
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 (f <= gridsize) {
check = grid[f];
if (check != 0) {
gameover = true;
}
f++;
}
if (sb_lines < 0) {
gotoAndPlay (10);
}
Frame 9
if (gameover == false) {
gotoAndPlay (8);
} else {
gotoAndPlay (11);
}
Frame 10
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 11
stopAllSounds();
gameover2._x = 197;
gameover2._y = 251;
gotoAndStop (21);
setProperty("extras", _visible , false);
Frame 16
blocknum = grid[gridpos];
blockcolour = _root["block" add blocknum]._currentframe;
f = 1;
while (f <= gridsize) {
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 17
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 (xpos > 1) {
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 (ypos > 0) {
check = colourgrid[currentpos - gridx];
}
if (check != 0) {
nextpos = currentpos - gridx;
}
if (nextpos > 0) {
found = found + 1;
foundptr = found;
currentpos = nextpos;
repeat = true;
} else if (foundptr > 1) {
foundptr = foundptr - 1;
currentpos = match[foundptr];
repeat = true;
}
}
if (found >= foundmin) {
_root.base = found;
tellTarget ("base") {
gotoAndPlay (2);
};
f = 1;
while (f <= found) {
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 18
fall = false;
f = 1;
while (f <= (gridsize - gridx)) {
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 19
if (fall == true) {
gotoAndPlay (18);
} else {
side = false;
fall = false;
mid = gridx / 2;
f = 2;
while (f < gridx) {
check = grid[f];
if (check == 0) {
if (f <= mid) {
y = 0;
while (y < gridy) {
newf = f + (y * gridx);
fcount = f;
while (fcount > 1) {
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 20
if (side == false) {
search = false;
gotoAndPlay (8);
} else {
gotoAndPlay (19);
}
Frame 21
_root.zakif = 1;
f = 1;
while (f <= 2000) {
removeMovieClip("block" add f);
f++;
}
Symbol 10 MovieClip Frame 1
rndt = random(100) + 1;
Symbol 10 MovieClip Frame 2
if (_root.zakif < 1) {
stop();
}
Symbol 10 MovieClip Frame 4
if (rndt < 80) {
gotoAndPlay (1);
}
Symbol 45 Button
on (release, keyPress "<Enter>") {
hsObj.data.player10.name = newname;
hsObj.data.player10.score = newscore;
gogo();
play();
}
Symbol 81 MovieClip Frame 1
maxscore = 10000000 /* 0x989680 */;
rndnames = new Array("Gemini", "Saturn", "Vampress", "Jane-Doe", "Vantasia", "Loca", "Sunny-D", "Jelli", "Mosquito", "Beanbag", "Havoc", "HellSmurf", "Blue", "DragonLord", "LiquidBlaze", "PurpleHaze", "Vampyre", "Frost", "Letter-X", "Beaner", "ToxicatedOil", "Hydro", "Akeno", "Benjiro", "Chiko", "Dai", "Danno", "Jiro", "Joben", "Jomei", "Juro", "Kaemon", "Kamlyn", "Kane", "Kannon", "Kano", "Kaor", "Keiji", "Keitaro", "ken", "Kenji", "Kenjiro", "Kentaro", "Makoto", "Manzo", "Mareo", "Marise", "Akiko", "Anda", "Aneko", "Chiko", "Chiyo", "Eriko", "Hana", "Hoshi", "Kameko", "Kami", "Kamlyn", "Kammi", "Kammie", "Kaya", "Kumiko", "Kyoko", "Maeko", "Maemi", "Maiya", "Mariko", "Marise", "Matsuko", "Michie", "Michiko", "Midori", "Maro", "Michio", "Miki", "Mikio", "Minoru", "Montaro", "Morio", "Nikki", "Nikko", "Rai", "Rei", "Reizo", "Renjiro", "Renzo", "Rinji", "Roka", "Sachio", "Saniiro", "Seiji", "Shoda", "Suzu", "Tadao", "Taji", "Takeo", "Tanjiro", "Mieko", "Miki", "Mitsu", "Miya", "Nariko", "Nikki", "Noriko", "Suzu", "Taji", "Tamae", "Tami", "Tamika", "Taree", "Taura", "Taya", "Toya", "Yumiko", "Yuriko", "Andre", "Andy", "Angelino", "Angelo", "Artur", "Bernardo", "Cruz", "Eduardo", "Edwardo", "Javier", "Joao", "Jorge", "Jose", "Justino", "Leonardo", "Leopoldo", "Luciano", "Lucio", "Marco", "Marcos", "Marques", "Mateus", "Maureo", "Mauricio", "Miguel", "Catalina", "Caterina", "Catrina", "Izabel", "Vidonia", "Finbar", "Finn", "Fintan", "Flann", "Francis", "Frank", "Frederick", "Garrett", "Geoffrey", "George", "Gerald", "Gilbert", "Gordon", "Gregory", "Harold", "Henry", "Hugh", "Ian", "Isaac", "Luke", "Malcolm", "Mark", "Martin", "Mat", "Matthew", "Maurice", "Michael", "Mickey", "Mike", "Cheerio", "Egghead", "Wishbone", "Vickie", "Santae", "wingnut", "bikini", "chesnut", "Beast", "Saladhed", "Banana", "Ghost", "Loca", "Banana", "Munchkin", "Genius", "Mamas", "Meathed", "Frumpshkin", "Topper", "Pickles", "Dino", "Cloe", "Moon-pie", "Eyeless", "Aries", "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", "Y.C is king");
newscore = _root.sb_score;
Symbol 81 MovieClip Frame 10
function numberSort(first, sec) {
return(sec.score > first.score);
}
function domeize() {
var dome = new Array();
i = 0;
loop = 0;
while (loop < 11) {
dome.push({name:hsObj.data["player" + loop].name, score:Number(hsObj.data["player" + loop].score)});
loop++;
}
dome.sort();
i = 0;
while (i < 11) {
hsObj.data["player" + i] = dome[i];
i = i + 1;
}
hsObj.flush();
}
function gogo() {
domeize();
i = 0;
loop = 0;
while (loop < 10) {
donow = ("hsObj.data.player" add loop) add ".name";
donow2 = ("hsObj.data.player" add loop) add ".score";
Set("n" add loop, eval (donow));
Set("s" add loop, eval (donow2));
loop++;
}
}
function createPlayer(name, score) {
hsObj.data.player10.name = name;
hsObj.data.player10.score = score;
gogo();
}
rndl = rndnames.length;
Array.prototype.sort = function () {
var i = 0;
while (i < (this.length - 1)) {
var tmp1 = this[i];
var tmp2 = this[i + 1];
if (numberSort(tmp1, tmp2)) {
this[i + 1] = tmp1;
this[i] = tmp2;
this.sort();
}
i = i + 1;
}
return(this);
};
player = function (name, score) {
this.name = name;
this.score = score;
};
hsObj = SharedObject.getLocal("hsb");
if (hsObj.data.player0.name == null) {
i = 0;
maxscore2 = maxscore;
while (i < 11) {
defplayer = new player(rndnames[random(rndl)], random(maxscore2) + 10);
maxscore2 = int(maxscore2 * 0.7);
hsObj.data["player" + i] = defplayer;
i = i + 1;
}
hsObj.flush();
}
gogo();
Symbol 81 MovieClip Frame 11
if (newscore >= s9) {
gotoAndStop (19);
} else {
play();
}
Symbol 81 MovieClip Frame 18
stop();
rndmore = random(100) + 1;
if (rndmore > 80) {
hsObj.data.player10.name = rndnames[random(rndl)];
hsObj.data.player10.score = int(s0 * ((random(80) + 15) / 80));
gogo();
}
Symbol 81 MovieClip Frame 19
stop();
Symbol 81 MovieClip Frame 20
stop();
Symbol 83 Button
on (release) {
gotoAndStop (22);
}
Symbol 85 Button
on (release) {
gotoAndPlay (7);
}
Symbol 89 MovieClip Frame 15
stop();
Symbol 90 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 92 MovieClip Frame 15
stop();
Symbol 93 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 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 17
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 20
gotoAndStop (1);
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 7
stop();
Symbol 136 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 149 Button
on (press) {
delay = getTimer() - /:gameovertime;
if (delay > 50) {
tellTarget ("_root.bg") {
nextFrame();
};
tellTarget ("_root.bg.shield") {
gotoAndStop (1);
};
tellTarget ("/") {
gotoAndPlay ("gamestart");
};
}
}
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
play();
loopme = 0;
Symbol 150 MovieClip Frame 24
if (loopme < 3) {
loopme = loopme + 1;
gotoAndPlay (3);
}
Symbol 150 MovieClip Frame 25
stop();
Symbol 152 MovieClip Frame 2
removeMovieClip(this);
Symbol 154 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
_root.sb_score = int(_root.sb_score * 0.9);
Symbol 157 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 3
tellTarget ("../") {
gotoAndStop(random(9) + 2);
};
Symbol 172 MovieClip Frame 4
stop();
Symbol 172 MovieClip Frame 8
tellTarget ("../") {
gotoAndStop (1);
};
Symbol 175 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
starttimer = getTimer();
Symbol 178 MovieClip Frame 2
wintime = getTimer() - starttimer;
wintime = 15 - int(wintime / 1000);
Symbol 178 MovieClip Frame 3
if (wintime <= 0) {
tellTarget ("_root.extras.cover") {
play();
};
} else {
tellTarget ("_root.extras.timeleft") {
gotoAndStop(this.wintime);
};
gotoAndPlay (2);
}
Symbol 183 Button
on (release) {
f = 1;
while (f <= 10) {
rndblast = random(500) + 1;
tellTarget ("_root.block" add rndblast) {
gotoAndStop (1);
};
f++;
}
}
Symbol 187 MovieClip Frame 1
starttimer = getTimer();
Symbol 187 MovieClip Frame 2
wintime = getTimer() - starttimer;
wintime = 8 - int(wintime / 1000);
Symbol 187 MovieClip Frame 3
if (wintime <= 0) {
tellTarget ("_root.extras.cover") {
play();
};
} else {
tellTarget ("_root.extras.timeleft") {
gotoAndStop(this.wintime);
};
gotoAndPlay (2);
}
Symbol 189 Button
on (release) {
f = 1;
while (f <= 200) {
rrr = random(400);
tellTarget ("_root.block" add rrr) {
gotoAndStop (3);
};
f++;
}
}
Symbol 191 Button
on (release) {
f = 1;
while (f <= 300) {
tellTarget ("_root.block" add random(500)) {
gotoAndStop (5);
};
f++;
}
}
Symbol 196 Button
on (release) {
play();
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
_root.sb_score = _root.sb_score + 5000;
Symbol 199 MovieClip Frame 25
stop();
Symbol 200 Button
on (release) {
play();
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
_root.addspeed = _root.addspeed / 2;
Symbol 203 MovieClip Frame 6
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 50
_root.sb_lines = int(sb_lines * 2);
_root.addspeed = int(_root.addspeed * 1.5);
stop();
Symbol 212 MovieClip Frame 1
pointsrnd = random(50) + 5;
pointsrnd = pointsrnd * 1000;
stop();
Symbol 212 MovieClip Frame 2
_root.sb_score = _root.sb_score + pointsrnd;
Symbol 212 MovieClip Frame 30
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
_root.addspeed = _root.addspeed * 2;
Symbol 215 MovieClip Frame 7
stop();
Symbol 218 Button
on (release) {
play();
}
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
_root.sb_score = _root.sb_score + 88888;
Symbol 220 MovieClip Frame 20
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
_root.base = _root.base - 1;
Symbol 224 MovieClip Frame 3
if (_root.base < 1) {
gotoAndStop (1);
}
if (_root.base > 10) {
_root.base = 11;
}
gotoAndPlay (2);
Symbol 229 Button
on (release) {
gotoAndStop (5);
}
Symbol 240 Button
on (release) {
gotoAndStop (5);
}