Frame 1
function strToBool(conv) {
if (conv == "true") {
conv = true;
return(conv);
}
if (conv == "false") {
conv = false;
return(conv);
}
}
function strToNum(conv) {
if (conv == "1") {
conv = 1;
return(conv);
}
if (conv == "2") {
conv = 2;
return(conv);
}
}
_root.gamedemo = true;
_root.so = SharedObject.getLocal("se");
loadVariables ("saveconfig.txt", _root);
loadVariables ("savequality.txt", _root);
_root.onEnterFrame = function () {
_root.bytesloadedresult = (_root.getBytesLoaded() + " / ") + _root.getBytesTotal();
_root.preloadergage.gotoAndStop(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + 5);
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.onEnterFrame = null;
if (_root.gamedemo == false) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
}
};
stop();
Frame 3
_root.Bskip.onRelease = function () {
gotoAndPlay (68);
};
Frame 68
_root.Bskip.onRelease = function () {
gotoAndStop (324);
};
Frame 133
_root.Bskip.onRelease = function () {
gotoAndStop (324);
};
Frame 324
_root.displaymode = 1;
_root.pa_setting.window.gotoAndStop(strToNum(_root.win_act));
_root.pa_setting.full_low.gotoAndStop(strToNum(_root.low_act));
_root.pa_setting.full_mid.gotoAndStop(strToNum(_root.mid_act));
_root.pa_setting.full_high.gotoAndStop(strToNum(_root.high_act));
_root.pa_setting.q_low.gotoAndStop(strToNum(_root.q_low));
_root.pa_setting.q_mid.gotoAndStop(strToNum(_root.q_mid));
_root.pa_setting.q_high.gotoAndStop(strToNum(_root.q_high));
if (strToNum(_root.q_low) == 2) {
_root._quality = "LOW";
}
if (strToNum(_root.q_mid) == 2) {
_root._quality = "MEDIUM";
}
if (strToNum(_root.q_high) == 2) {
_root._quality = "HIGH";
}
_root.pa_setting.Bcancel.onRelease = function () {
_root.pa_setting.window.gotoAndStop(strToNum(_root.win_act));
_root.pa_setting.full_low.gotoAndStop(strToNum(_root.low_act));
_root.pa_setting.full_mid.gotoAndStop(strToNum(_root.mid_act));
_root.pa_setting.full_high.gotoAndStop(strToNum(_root.high_act));
_root.pa_setting.q_low.gotoAndStop(strToNum(_root.q_low));
_root.pa_setting.q_mid.gotoAndStop(strToNum(_root.q_mid));
_root.pa_setting.q_high.gotoAndStop(strToNum(_root.q_high));
if (strToNum(_root.q_low) == 2) {
_root._quality = "LOW";
}
if (strToNum(_root.q_mid) == 2) {
_root._quality = "MEDIUM";
}
if (strToNum(_root.q_high) == 2) {
_root._quality = "HIGH";
}
_root.pa_setting._visible = false;
};
_root.pa_setting.Bok.onRelease = function () {
_root.pa_setting._visible = false;
_root.displaymode = (((_root.pa_setting.window._currentframe * 1000) + (_root.pa_setting.full_low._currentframe * 100)) + (_root.pa_setting.full_mid._currentframe * 10)) + _root.pa_setting.full_high._currentframe;
fscommand ("open", "config.txt");
fscommand ("write", _root.displaymode);
fscommand ("close");
fscommand ("open", "saveconfig.txt");
fscommand ("write", (((((("win_act=" + _root.pa_setting.window._currentframe) + "&low_act=") + _root.pa_setting.full_low._currentframe) + "&mid_act=") + _root.pa_setting.full_mid._currentframe) + "&high_act=") + _root.pa_setting.full_high._currentframe);
fscommand ("close");
fscommand ("open", "savequality.txt");
fscommand ("write", (((("q_low=" + _root.pa_setting.q_low._currentframe) + "&q_mid=") + _root.pa_setting.q_mid._currentframe) + "&q_high=") + _root.pa_setting.q_high._currentframe);
fscommand ("close");
};
stop();
_root.Bstart.onRelease = function () {
if (_root.pa_setting._visible != true) {
gotoAndStop ("game");
}
};
if (_root.so.data.gamesave == true) {
_root.Bcontinue._alpha = 255;
}
if (_root.so.data.gamesave != true) {
_root.Bcontinue._alpha = 30;
}
_root.Bcontinue.onRelease = function () {
if (_root.so.data.gamesave == true) {
_root.so.data.continued = true;
play();
}
};
_root.Bseti.onRelease = function () {
_root.pa_setting._visible = true;
};
_root.pa_setting._visible = false;
_root.Bhelp.onRelease = function () {
if (_root.pa_setting._visible != true) {
_root.in_pa_help._visible = true;
}
};
_root.in_pa_help._visible = false;
_root.Bquit.onRelease = function () {
getURL ("http://www.gamebrew.com", "_self");
};
if (_root.gamedemo != true) {
_root.fx_demomask._visible = false;
} else if (_root.gamedemo == true) {
_root.fx_demomask._visible = true;
}
Frame 325
if (_root.gamedemo != true) {
_root.fx_demomask._visible = false;
} else if (_root.gamedemo == true) {
_root.fx_demomask._visible = true;
}
_root.GHPuzzleObject = new Object();
_root.GHCanMove = true;
GHPuzzleObject.removeTable = function (imaster, col, row, bwidth, bheight, effx, effy) {
GHPuzzleObject.col = col;
GHPuzzleObject.row = row;
GHPuzzleObject.bwidth = bwidth;
GHPuzzleObject.bheight = bheight;
i = 0;
while (i < col) {
j = 0;
while (j < row) {
_root[(("block" + i) + "x") + j].removeMovieClip();
j++;
}
i++;
}
};
GHPuzzleObject.createTable = function (imaster, col, row, bwidth, bheight, effx, effy) {
GHPuzzleObject.col = col;
GHPuzzleObject.row = row;
GHPuzzleObject.bwidth = bwidth;
GHPuzzleObject.bheight = bheight;
i = 0;
while (i < col) {
j = 0;
while (j < row) {
imaster.duplicateMovieClip((("block" + i) + "x") + j, _root.getNextHighestDepth());
_root[(("block" + i) + "x") + j]._x = (i * bwidth) + effx;
_root[(("block" + i) + "x") + j]._y = (j * bheight) + effy;
_root[(("block" + i) + "x") + j].i = i;
_root[(("block" + i) + "x") + j].j = j;
_root[(("block" + i) + "x") + j].stype = _root.GHFreeFrame;
_root[(("block" + i) + "x") + j].ptype = _root.GHFreeFrame;
_root[(("block" + i) + "x") + j].gotoAndStop(_root[(("block" + i) + "x") + j].ptype);
_root[(("block" + i) + "x") + j].mask = false;
_root[(("block" + i) + "x") + j].kill = false;
_root.GHGetBlock(obj._parent.i, obj._parent.j).iskillung = false;
_root.GHBlockDefine(_root[(("block" + i) + "x") + j]);
_root[(("block" + i) + "x") + j].onRollOver = function () {
_root.GHBlockOver(this);
};
j++;
}
i++;
}
};
_root.GHSet = function (i, j, stype, ptype, startAt) {
_root[(("block" + i) + "x") + j].stype = stype;
_root[(("block" + i) + "x") + j].ptype = ptype;
_root[(("block" + i) + "x") + j].gotoAndStop(_root[(("block" + i) + "x") + j].ptype);
if (startAt != 0) {
_root[(("block" + i) + "x") + j].block.gotoAndPlay(startAt);
} else {
_root[(("block" + i) + "x") + j].block.gotoAndPlay(_root.GHStaticFrame);
}
_root.GHGetBlock(obj._parent.i, obj._parent.j).iskilling = false;
};
_root.GHGetBlock = function (i, j) {
return(_root[(("block" + i) + "x") + j]);
};
_root.GHSmoothMove = function (obj) {
obj._x = obj._x + ((obj.movex - obj._x) / 3);
obj._y = obj._y + ((obj.movey - obj._y) / 3);
};
_root.GHPlayClear = function (obj) {
obj.block.gotoAndPlay("clear");
};
_root.GHShift3x3RH = function (obj) {
ci = obj.i;
cj = obj.j;
bk = _root[(("block" + (ci + 1)) + "x") + (cj - 1)].stype;
_root[(("block" + (ci + 1)) + "x") + (cj - 1)].stype = _root[(("block" + ci) + "x") + (cj - 1)].stype;
_root[(("block" + ci) + "x") + (cj - 1)].stype = _root[(("block" + (ci - 1)) + "x") + (cj - 1)].stype;
_root[(("block" + (ci - 1)) + "x") + (cj - 1)].stype = _root[(("block" + (ci - 1)) + "x") + cj].stype;
_root[(("block" + (ci - 1)) + "x") + cj].stype = _root[(("block" + (ci - 1)) + "x") + (cj + 1)].stype;
_root[(("block" + (ci - 1)) + "x") + (cj + 1)].stype = _root[(("block" + ci) + "x") + (cj + 1)].stype;
_root[(("block" + ci) + "x") + (cj + 1)].stype = _root[(("block" + (ci + 1)) + "x") + (cj + 1)].stype;
_root[(("block" + (ci + 1)) + "x") + (cj + 1)].stype = _root[(("block" + (ci + 1)) + "x") + cj].stype;
_root[(("block" + (ci + 1)) + "x") + cj].stype = bk;
bk = _root[(("block" + (ci + 1)) + "x") + (cj - 1)].ptype;
_root[(("block" + (ci + 1)) + "x") + (cj - 1)].ptype = _root[(("block" + ci) + "x") + (cj - 1)].ptype;
_root[(("block" + ci) + "x") + (cj - 1)].ptype = _root[(("block" + (ci - 1)) + "x") + (cj - 1)].ptype;
_root[(("block" + (ci - 1)) + "x") + (cj - 1)].ptype = _root[(("block" + (ci - 1)) + "x") + cj].ptype;
_root[(("block" + (ci - 1)) + "x") + cj].ptype = _root[(("block" + (ci - 1)) + "x") + (cj + 1)].ptype;
_root[(("block" + (ci - 1)) + "x") + (cj + 1)].ptype = _root[(("block" + ci) + "x") + (cj + 1)].ptype;
_root[(("block" + ci) + "x") + (cj + 1)].ptype = _root[(("block" + (ci + 1)) + "x") + (cj + 1)].ptype;
_root[(("block" + (ci + 1)) + "x") + (cj + 1)].ptype = _root[(("block" + (ci + 1)) + "x") + cj].ptype;
_root[(("block" + (ci + 1)) + "x") + cj].ptype = bk;
_root[(("block" + ci) + "x") + (cj - 1)].gotoAndStop(_root[(("block" + ci) + "x") + (cj - 1)].ptype);
_root[(("block" + ci) + "x") + (cj + 1)].gotoAndStop(_root[(("block" + ci) + "x") + (cj + 1)].ptype);
_root[(("block" + (ci - 1)) + "x") + (cj - 1)].gotoAndStop(_root[(("block" + (ci - 1)) + "x") + (cj - 1)].ptype);
_root[(("block" + (ci - 1)) + "x") + cj].gotoAndStop(_root[(("block" + (ci - 1)) + "x") + cj].ptype);
_root[(("block" + (ci - 1)) + "x") + (cj + 1)].gotoAndStop(_root[(("block" + (ci - 1)) + "x") + (cj + 1)].ptype);
_root[(("block" + (ci + 1)) + "x") + (cj - 1)].gotoAndStop(_root[(("block" + (ci + 1)) + "x") + (cj - 1)].ptype);
_root[(("block" + (ci + 1)) + "x") + cj].gotoAndStop(_root[(("block" + (ci + 1)) + "x") + cj].ptype);
_root[(("block" + (ci + 1)) + "x") + (cj + 1)].gotoAndStop(_root[(("block" + (ci + 1)) + "x") + (cj + 1)].ptype);
_root[(("block" + ci) + "x") + (cj - 1)].block.gotoAndPlay(_root.GHStaticFrame);
_root[(("block" + ci) + "x") + (cj + 1)].block.gotoAndPlay(_root.GHStaticFrame);
_root[(("block" + (ci - 1)) + "x") + (cj - 1)].block.gotoAndPlay(_root.GHStaticFrame);
_root[(("block" + (ci - 1)) + "x") + cj].block.gotoAndPlay(_root.GHStaticFrame);
_root[(("block" + (ci - 1)) + "x") + (cj + 1)].block.gotoAndPlay(_root.GHStaticFrame);
_root[(("block" + (ci + 1)) + "x") + (cj - 1)].block.gotoAndPlay(_root.GHStaticFrame);
_root[(("block" + (ci + 1)) + "x") + cj].block.gotoAndPlay(_root.GHStaticFrame);
_root[(("block" + (ci + 1)) + "x") + (cj + 1)].block.gotoAndPlay(_root.GHStaticFrame);
};
_root.GHRecursiveKillWithSameTypePreset = function () {
_root.GHRecursiveKillWithSameTypeCount = 0;
_root.GHDeMaskAll();
};
_root.GHSetKill = function (finish) {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
if (_root.GHRecursiveKillWithSameTypeCount >= finish) {
if (_root.GHGetBlock(_local3, _local2).mask) {
_root.GHGetBlock(_local3, _local2).kill = true;
}
}
_local2++;
}
_local3++;
}
};
_root.GHDeKillAll = function () {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
_root.GHGetBlock(_local3, _local2).mask = false;
_root.GHGetBlock(_local3, _local2).kill = false;
_local2++;
}
_local3++;
}
};
_root.GHDeMaskAll = function () {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
_root.GHGetBlock(_local3, _local2).mask = false;
_local2++;
}
_local3++;
}
};
_root.GHKill = function (i, j) {
_root.GHGetBlock(ic, jc).iskilling = true;
_root.GHGetBlock(i, j).block.gotoAndPlay("clear");
};
_root.GHStartKill = function () {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
if (_root.GHGetBlock(_local3, _local2).kill) {
_root.GHAddScore(_root.GHGetBlock(_local3, _local2));
_root.GHGetBlock(_local3, _local2).mask = false;
_root.GHGetBlock(_local3, _local2).kill = false;
_root.GHKill(_local3, _local2);
}
_local2++;
}
_local3++;
}
};
_root.GHRecursiveKillWithSameType = function (i, j, finish, count) {
var _local5;
var _local4;
if (i > (GHPuzzleObject.col - 1)) {
return(0);
}
if (j > (GHPuzzleObject.row - 1)) {
return(0);
}
if (i < 0) {
return(0);
}
if (j < 0) {
return(0);
}
if (_root.GHGetBlock(i, j).stype != _root.GHFreeFrame) {
_root.GHRecursiveOriginI = i;
_root.GHRecursiveOriginJ = j;
_root.GHRecursiveAddtion(i - 1, j);
_root.GHRecursiveAddtion(i + 1, j);
_root.GHRecursiveAddtion(i, j + 1);
_root.GHRecursiveAddtion(i, j - 1);
if (!_root.GHGetBlock(i, j).mask) {
_root.GHRecursiveKillWithSameTypeCount++;
_root.GHGetBlock(i, j).mask = true;
_local5 = i - 1;
_local4 = j;
if (_root.GHGetBlock(_local5, _local4).stype == _root.GHGetBlock(i, j).stype) {
_root.GHRecursiveKillWithSameType(_local5, _local4, 4, count + 1);
}
_local5 = i + 1;
_local4 = j;
if (_root.GHGetBlock(_local5, _local4).stype == _root.GHGetBlock(i, j).stype) {
_root.GHRecursiveKillWithSameType(_local5, _local4, 4, count + 1);
}
_local5 = i;
_local4 = j - 1;
if (_root.GHGetBlock(_local5, _local4).stype == _root.GHGetBlock(i, j).stype) {
_root.GHRecursiveKillWithSameType(_local5, _local4, 4, count + 1);
}
_local5 = i;
_local4 = j + 1;
if (_root.GHGetBlock(_local5, _local4).stype == _root.GHGetBlock(i, j).stype) {
_root.GHRecursiveKillWithSameType(_local5, _local4, 4, count + 1);
}
}
}
};
_root.GHActiveAfterOrdit = function () {
if (_root.GHActiveAfterCount == _root.GHActiveAfter) {
_root.GHCanMove = true;
}
_root.GHActiveAfterCount++;
};
_root.GHActiveAfterStart = function () {
_root.GHActiveAfterCount = 0;
_root.GHCanMove = false;
};
_root.playerlevel = 1;
_root.bombavilable = false;
_root.bombspeed = 0;
_root.superbomb = false;
_root.antiavilable = false;
_root.antispeed = 0;
_root.superanti = 0;
_root.heartrecoveryadd = 0;
_root.heartshieldadd = 0;
_root.antibodyadd = 0;
_root.lifeMAX = 4;
_root.power = 500;
_root.powerMAX = 1000;
sfx = 0;
while (sfx < 4) {
_root["fx_laugh" + sfx] = new Sound();
_root["fx_laugh" + sfx].attachSound("fx_laugh" + sfx);
sfx++;
}
_root.bgm = new Sound();
_root.bgm.attachSound("bgm");
_root.bgm.start(0, 9999);
_root.fx_heart = new Sound();
_root.fx_heart.attachSound("fx_heart");
_root.fx_clear0 = new Sound();
_root.fx_clear0.attachSound("fx_clear0");
_root.fx_clear0play = 0;
_root.fx_clear = new Sound();
_root.fx_clear.attachSound("fx_clear");
_root.fx_rotate = new Sound();
_root.fx_rotate.attachSound("fx_rotate");
_root.fx_lock = new Sound();
_root.fx_lock.attachSound("fx_lock");
_root.GHStaticFrame = 10;
_root.GHFreeFrame = 21;
_root.GHActiveAfter = 15;
_root.score = 0;
_root.level = 1;
_root.levelMAX = 60;
_root.needscore = 0;
_root.viruscolor = 0;
_root.clickpause = false;
_root.gamepause = false;
_root.life = 1;
_root.bombcooldown = 0;
_root.anticooldown = 0;
_root.heartrecovery = 0;
_root.heartrecoverytricker = 100;
_root.virus = 0;
_root.virusMAX = 80;
_root.locknum = 0;
_root.locknumMAX = 0;
_root.objselected = null;
_root.lockperc = 10;
_root.virusperc = 90;
_root.overallperc = 0;
_root.createframe = 0;
_root.createspeed = 0;
_root.gagedelay = 0;
_root.ReGenerate = function () {
_root.needscore = 0;
_root.needscore = ((4 + _root.level) * 2) + (((_root.level * _root.level) * Math.round(_root.level / 2)) * Math.round(_root.level / 6));
return(_root.needscore);
};
GHPuzzleObject.removeTable(master, 12, 10, 40, 40, 15, 20);
GHPuzzleObject.createTable(master, 12, 10, 40, 40, 15, 20);
_root.viruscolor = random(3 + Math.floor(_root.level / 18)) + 1;
newblock = _root.viruscolor;
_root.GHSet(0, 0, newblock, newblock, 1);
_root.GHSet(11, 9, 60, 60, 1);
_root.selector.removeMovieClip();
_root.cursor.duplicateMovieClip("selector", _root.getNextHighestDepth());
_root.pa_powerup.removeMovieClip();
_root.pa_powerup_origin.duplicateMovieClip("pa_powerup", _root.getNextHighestDepth());
_root.pa_powerup._visible = false;
_root.pa_powerup_origin._visible = false;
_root.tip.removeMovieClip();
_root.tip_origin.duplicateMovieClip("tip", _root.getNextHighestDepth());
_root.fx_credit.removeMovieClip();
_root.fx_credit_origin.duplicateMovieClip("fx_credit", _root.getNextHighestDepth());
_root.tip_origin._visible = false;
_root.tip._visible = false;
_root.fx_levelclear.removeMovieClip();
_root.fx_levelclear_origin.duplicateMovieClip("fx_levelclear", _root.getNextHighestDepth());
_root.fx_levelclear_origin._visible = false;
_root.fx_gameover.removeMovieClip();
_root.fx_gameover_origin.duplicateMovieClip("fx_gameover", _root.getNextHighestDepth());
_root.fx_gameover_origin._visible = false;
_root.ReGenerate();
_root.GHAddScore = function (obj) {
if (obj.stype == 60) {
return(undefined);
}
if (_root.fx_clear0play == 0) {
_root.fx_clear0.start(0, 1);
_root.fx_clear0play = 2;
}
_root.addscore = 1 + (_root.level * _root.life);
_root.fx_addscore.play();
_root.score = _root.score + _root.addscore;
_root.fx_clear0play--;
if (_root.fx_clear0play < 0) {
_root.fx_clear0play = 0;
}
};
_root.GHBlockOver = function (obj) {
if (_root.selector.fixed) {
return(undefined);
}
if ((obj.i < (GHPuzzleObject.col - 1)) && (obj.i > 0)) {
_root.selector.movex = obj._x;
}
if ((obj.j < (GHPuzzleObject.row - 1)) && (obj.j > 0)) {
_root.selector.movey = obj._y;
}
};
_root.GHRecursiveAddtion = function (i, j) {
if (i > (GHPuzzleObject.col - 1)) {
return(0);
}
if (j > (GHPuzzleObject.row - 1)) {
return(0);
}
if (i < 0) {
return(0);
}
if (j < 0) {
return(0);
}
if (((_root.GHGetBlock(i, j).ptype == 61) || (_root.GHGetBlock(i, j).ptype == 62)) || (_root.GHGetBlock(i, j).ptype == 63)) {
_root.GHGetBlock(i, j).mask = true;
}
};
_root.GHBlockDefine = function (obj) {
};
_root.MaskKill = function (obj) {
var _local3;
var _local2;
_local3 = int(obj.i);
_local2 = int(obj.j);
_root.GHDeKillAll();
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3 - 1, _local2 - 1, 4, 0);
_root.GHSetKill(4);
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3, _local2 - 1, 4, 0);
_root.GHSetKill(4);
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3 + 1, _local2 - 1, 4, 0);
_root.GHSetKill(4);
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3 - 1, _local2, 4, 0);
_root.GHSetKill(4);
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3 + 1, _local2, 4, 0);
_root.GHSetKill(4);
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3 - 1, _local2 + 1, 4, 0);
_root.GHSetKill(4);
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3, _local2 + 1, 4, 0);
_root.GHSetKill(4);
_root.GHRecursiveKillWithSameTypePreset();
_root.GHRecursiveKillWithSameType(_local3 + 1, _local2 + 1, 4, 0);
_root.GHSetKill(4);
_root.fx_rotate.start(0, 1);
};
_root.MouseDown = function () {
if ((((_root.gamepause != true) and (_root.clickpause != true)) and ((_root._xmouse >= 12) and (_root._xmouse <= 500))) and ((_root._ymouse >= 22) and (_root._ymouse <= 420))) {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
if (_root.selector.movex == _root.GHGetBlock(_local3, _local2)._x) {
if (_root.selector.movey == _root.GHGetBlock(_local3, _local2)._y) {
_root.objselected = _root.GHGetBlock(_local3, _local2);
}
}
_local2++;
}
_local3++;
}
var _local4 = false;
_local3 = _root.objselected.i - 1;
while (_local3 < (_root.objselected.i + 2)) {
_local2 = _root.objselected.j - 1;
while (_local2 < (_root.objselected.j + 2)) {
if ((_root.GHGetBlock(_local3, _local2).ptype == 63) or (_root.GHGetBlock(_local3, _local2).ptype == 64)) {
_local4 = true;
_root.selector.gotoAndPlay(2);
_root.fx_lock.start(0, 1);
}
if (_root.GHGetBlock(_local3, _local2).iskilling) {
_local4 = true;
}
_local2++;
}
_local3++;
}
if (!_local4) {
_local3 = _root.objselected.i;
_local2 = _root.objselected.j;
if (_root.selector.fixed) {
return(undefined);
}
_root.selector._x = _root.selector.movex;
_root.selector._y = _root.selector.movey;
_root.selector.fixed = true;
_root.selector.gotoAndPlay(11);
_root.selector.bl0.gotoAndStop(_root.GHGetBlock(_local3 - 1, _local2 - 1)._currentframe);
_root.selector.bl0.block.gotoAndStop(5);
_root.selector.bl1.gotoAndStop(_root.GHGetBlock(_local3, _local2 - 1)._currentframe);
_root.selector.bl1.block.gotoAndStop(5);
_root.selector.bl2.gotoAndStop(_root.GHGetBlock(_local3 + 1, _local2 - 1)._currentframe);
_root.selector.bl2.block.gotoAndStop(5);
_root.selector.bl3.gotoAndStop(_root.GHGetBlock(_local3 + 1, _local2)._currentframe);
_root.selector.bl3.block.gotoAndStop(5);
_root.selector.bl4.gotoAndStop(_root.GHGetBlock(_local3 + 1, _local2 + 1)._currentframe);
_root.selector.bl4.block.gotoAndStop(5);
_root.selector.bl5.gotoAndStop(_root.GHGetBlock(_local3, _local2 + 1)._currentframe);
_root.selector.bl5.block.gotoAndStop(5);
_root.selector.bl6.gotoAndStop(_root.GHGetBlock(_local3 - 1, _local2 + 1)._currentframe);
_root.selector.bl6.block.gotoAndStop(5);
_root.selector.bl7.gotoAndStop(_root.GHGetBlock(_local3 - 1, _local2)._currentframe);
_root.selector.bl7.block.gotoAndStop(5);
_root.GHShift3x3RH(_root.objselected);
_root.checkcount = 0;
}
}
};
_root.UpdateVirus = function () {
var _local3;
var _local2;
_root.life = 0;
_root.virus = 0;
_root.locknum = 0;
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
if (_root.GHGetBlock(_local3, _local2).stype == 60) {
_root.life++;
}
if (_root.GHGetBlock(_local3, _local2).stype == 63) {
_root.locknum++;
}
if (_root.GHGetBlock(_local3, _local2).stype < 7) {
if (_root.virus < _root.virusMAX) {
_root.virus++;
}
}
_local2++;
}
_local3++;
}
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
k = _local3 - 1;
while (k < (_local3 + 1)) {
l = _local2 - 1;
while (l < (_local2 + 1)) {
if ((_root.GHGetBlock(k, l).stype == _root.GHFreeFrame) or (_root.GHGetBlock(k, l).stype == 60)) {
_root.overallperc = random(100);
if ((_root.overallperc <= _root.virusperc) or (_root.level < 5)) {
_root.fx_vgage.play();
_root.viruscolor = random(3 + Math.floor(_root.level / 18)) + 1;
newblock = _root.viruscolor;
if ((((random(100) < _root.lockperc) and (_root.level >= 15)) and (_root.locknum < _root.locknumMAX)) and (_root.lockcooldown <= 0)) {
newblock = 63;
_root.lockcooldown = 480;
_root.locknum++;
}
} else {
itemtype = random(100);
if (((_root.bombavilable == true) and (_root.bombcooldown <= 0)) and (itemtype > 10)) {
newblock = 62;
_root.bombcooldown = 360 - _root.bombspeed;
} else if ((_root.antiavilable == true) and (_root.anticooldown <= 0)) {
newblock = 61;
_root.anticooldown = 720 - _root.antispeed;
} else {
_root.fx_vgage.play();
_root.viruscolor = random(3 + Math.floor(_root.level / 18)) + 1;
newblock = _root.viruscolor;
if ((((random(100) < _root.lockperc) and (_root.level >= 15)) and (_root.locknum < _root.locknumMAX)) and (_root.lockcooldown <= 0)) {
newblock = 63;
_root.lockcooldown = 144;
_root.locknum++;
}
}
}
_root.GHSet(k, l, newblock, newblock, 1);
return(undefined);
}
l++;
}
k++;
}
_local2++;
}
_local3++;
}
};
_root.clearOK = function (obj) {
var _local3;
var _local2;
if (_root.gamedemo != true) {
_root.power = _root.power + (6 / _root.playerlevel);
}
if (obj._parent.ptype == 61) {
_root.gagedelay = _root.gagedelay + (96 + _root.superanti);
}
if (((obj._parent.ptype == 62) and (_root.superbomb == true)) and (random(100) < 25)) {
_local3 = obj._parent.i - 2;
while (_local3 < (obj._parent.i + 3)) {
_local2 = obj._parent.j - 2;
while (_local2 < (obj._parent.j + 3)) {
_root.GHGetBlock(_local3, _local2).mask = false;
_root.GHGetBlock(_local3, _local2).kill = false;
_root.GHKill(_local3, _local2);
_local2++;
}
_local3++;
}
} else if (obj._parent.ptype == 62) {
_local3 = obj._parent.i - 1;
while (_local3 < (obj._parent.i + 2)) {
_local2 = obj._parent.j - 1;
while (_local2 < (obj._parent.j + 2)) {
_root.GHGetBlock(_local3, _local2).mask = false;
_root.GHGetBlock(_local3, _local2).kill = false;
_root.GHKill(_local3, _local2);
_local2++;
}
_local3++;
}
}
if (obj._parent.ptype == 63) {
_root.locknum--;
_root.gagedelay = _root.gagedelay + (_root.antibodyadd * 3);
_root.heartrecovery = _root.heartrecovery + (_root.heartrecoveryadd * 4);
}
if (obj._parent.ptype < 7) {
_root.gagedelay = _root.gagedelay + _root.antibodyadd;
_root.heartrecovery = _root.heartrecovery + (_root.heartrecoveryadd * 2);
}
_root.GHSet(obj._parent.i, obj._parent.j, _root.GHFreeFrame, _root.GHFreeFrame, 1);
i = 1;
while (i < 7) {
if (_root["c" + i] > 0) {
return(undefined);
}
i++;
}
if (_root.score >= _root.needscore) {
if (_root.level < _root.levelMAX) {
_root.level++;
_root.im_bg.gotoAndStop(1 + Math.floor(_root.level / 6));
if ((_root.level % 2) == 0) {
_root.RemoveStage();
_root.SetStage(_root.level);
_root.fx_levelclear.play();
}
if (_root.level == _root.levelMAX) {
_root.fx_credit.play();
}
_root.ReGenerate();
}
}
};
_root.Run = function () {
if (_root.gamepause != true) {
_root.GHSmoothMove(_root.selector);
_root.heartrecoverytext = _root.heartrecoverytricker - _root.heartrecovery;
_root.gagedelay--;
_root.checkcount++;
_root.lockcooldown--;
_root.bombcooldown--;
if (_root.bombcooldown < 0) {
_root.bombcooldown = 0;
}
_root.anticooldown--;
if (_root.anticooldown < 0) {
_root.anticooldown = 0;
}
_root.createspeed = (1.2 + (_root.level / 15)) + ((_root.virusMAX - _root.virus) / 100);
_root.locknumMAX = 2 + Math.floor(_root.level / 12);
if (_root.checkcount == 1) {
_root.GHDeKillAll();
_root.MaskKill(_root.objselected);
_root.GHStartKill();
_root.GHActiveAfterStart();
}
_root.life = 0;
_root.virus = 0;
i = 0;
while (i < GHPuzzleObject.col) {
j = 0;
while (j < GHPuzzleObject.row) {
if (_root.GHGetBlock(i, j).stype == 60) {
_root.life++;
}
j++;
}
i++;
}
if (life <= 0) {
GHPuzzleObject.removeTable(master, 12, 10, 40, 40, 15, 20);
_root.fx_gameover.play();
removeMovieClip(_root.selector);
_root.NotDoAll();
}
_root.showpower = Math.floor(_root.power);
_root.powergage.gotoAndStop(5 + Math.floor((_root.power * 100) / _root.powerMAX));
if (_root.power >= _root.powerMAX) {
_root.power = _root.powerMAX;
_root.tip_powerup._visible = true;
} else {
_root.tip_powerup._visible = false;
}
if (_root.gagedelay <= 0) {
_root.gagedelay = 0;
_root.createframe = _root.createframe + _root.createspeed;
_root.creategage.gotoAndStop(Math.floor(_root.createframe) + 5);
} else if (_root.gagedela >= 0) {
_root.score = _root.score + Math.round(_root.level / 20);
}
if (Math.floor(_root.createframe) >= 100) {
_root.UpdateVirus();
_root.createframe = 5;
if (_root.virus <= 0) {
_root.viruscolor = random(3 + Math.floor(_root.level / 18)) + 1;
newblock = _root.viruscolor;
_root.GHSet(0, 0, newblock, newblock, 1);
}
}
_root.heartrecovery = _root.heartrecovery + (0.012 + _root.heartrecoveryadd);
_root.recovergage.gotoAndStop(5 + Math.floor((_root.heartrecovery * 100) / _root.heartrecoverytricker));
if (_root.heartrecovery >= _root.heartrecoverytricker) {
_root.heartrecovery = 0;
if (_root.life < _root.lifeMAX) {
_root.fx_tgage.play();
_root.fx_lifeup.play();
_root.fx_heart.start(0, 1);
_root.GHSet(random(12), random(10), 60, 60, 1);
_root.gagedelay = _root.gagedelay + _root.heartshieldadd;
}
}
_root.GHActiveAfterOrdit();
}
};
_root.SetStage = function (st) {
if (st == 6) {
_root.GHSet(0, 1, 1, 1, 1);
_root.GHSet(0, 8, 1, 1, 1);
_root.GHSet(1, 0, 1, 1, 1);
_root.GHSet(1, 2, 1, 1, 1);
_root.GHSet(1, 7, 1, 1, 1);
_root.GHSet(1, 8, 64, 64, 1);
_root.GHSet(1, 9, 1, 1, 1);
_root.GHSet(2, 1, 1, 1, 1);
_root.GHSet(2, 8, 1, 1, 1);
return(undefined);
}
if (st == 8) {
_root.GHSet(1, 1, 4, 4, 1);
_root.GHSet(1, 2, 4, 4, 1);
_root.GHSet(1, 3, 4, 4, 1);
_root.GHSet(1, 6, 2, 2, 1);
_root.GHSet(1, 7, 2, 2, 1);
_root.GHSet(1, 8, 2, 2, 1);
_root.GHSet(2, 1, 4, 4, 1);
_root.GHSet(2, 2, 4, 4, 1);
_root.GHSet(2, 3, 4, 4, 1);
_root.GHSet(2, 6, 2, 2, 1);
_root.GHSet(2, 7, 2, 2, 1);
_root.GHSet(2, 8, 2, 2, 1);
_root.GHSet(3, 1, 1, 1, 1);
_root.GHSet(3, 2, 1, 1, 1);
_root.GHSet(3, 3, 1, 1, 1);
_root.GHSet(3, 6, 4, 4, 1);
_root.GHSet(3, 7, 4, 4, 1);
_root.GHSet(3, 8, 4, 4, 1);
_root.GHSet(4, 1, 1, 1, 1);
_root.GHSet(4, 2, 1, 1, 1);
_root.GHSet(4, 3, 64, 64, 1);
_root.GHSet(4, 6, 64, 64, 1);
_root.GHSet(4, 7, 4, 4, 1);
_root.GHSet(4, 8, 4, 4, 1);
return(undefined);
}
if (st == 10) {
_root.GHSet(2, 2, 3, 3, 1);
_root.GHSet(2, 3, 3, 3, 1);
_root.GHSet(2, 4, 1, 1, 1);
_root.GHSet(2, 5, 1, 1, 1);
_root.GHSet(2, 6, 3, 3, 1);
_root.GHSet(2, 7, 3, 3, 1);
_root.GHSet(3, 2, 3, 3, 1);
_root.GHSet(3, 3, 3, 3, 1);
_root.GHSet(3, 4, 1, 1, 1);
_root.GHSet(3, 5, 1, 1, 1);
_root.GHSet(3, 6, 3, 3, 1);
_root.GHSet(3, 7, 3, 3, 1);
_root.GHSet(4, 2, 1, 1, 1);
_root.GHSet(4, 3, 1, 1, 1);
_root.GHSet(4, 4, 3, 3, 1);
_root.GHSet(4, 5, 3, 3, 1);
_root.GHSet(4, 6, 1, 1, 1);
_root.GHSet(4, 7, 1, 1, 1);
_root.GHSet(5, 2, 1, 1, 1);
_root.GHSet(5, 3, 1, 1, 1);
_root.GHSet(5, 4, 64, 64, 1);
_root.GHSet(5, 5, 3, 3, 1);
_root.GHSet(5, 6, 1, 1, 1);
_root.GHSet(5, 7, 1, 1, 1);
_root.GHSet(6, 2, 3, 3, 1);
_root.GHSet(6, 3, 3, 3, 1);
_root.GHSet(6, 4, 1, 1, 1);
_root.GHSet(6, 5, 1, 1, 1);
_root.GHSet(6, 6, 3, 3, 1);
_root.GHSet(6, 7, 3, 3, 1);
_root.GHSet(7, 2, 3, 3, 1);
_root.GHSet(7, 3, 3, 3, 1);
_root.GHSet(7, 4, 1, 1, 1);
_root.GHSet(7, 5, 1, 1, 1);
_root.GHSet(7, 6, 3, 3, 1);
_root.GHSet(7, 7, 3, 3, 1);
_root.GHSet(8, 2, 1, 1, 1);
_root.GHSet(8, 3, 1, 1, 1);
_root.GHSet(8, 4, 64, 64, 1);
_root.GHSet(8, 5, 3, 3, 1);
_root.GHSet(8, 6, 1, 1, 1);
_root.GHSet(8, 7, 1, 1, 1);
_root.GHSet(9, 2, 1, 1, 1);
_root.GHSet(9, 3, 1, 1, 1);
_root.GHSet(9, 4, 3, 3, 1);
_root.GHSet(9, 5, 3, 3, 1);
_root.GHSet(9, 6, 1, 1, 1);
_root.GHSet(9, 7, 1, 1, 1);
return(undefined);
}
if (st == 12) {
_root.GHSet(1, 1, 4, 4, 1);
_root.GHSet(1, 2, 4, 4, 1);
_root.GHSet(1, 3, 4, 4, 1);
_root.GHSet(1, 4, 64, 64, 1);
_root.GHSet(1, 6, 4, 4, 1);
_root.GHSet(1, 7, 4, 4, 1);
_root.GHSet(1, 8, 4, 4, 1);
_root.GHSet(3, 1, 1, 1, 1);
_root.GHSet(3, 2, 1, 1, 1);
_root.GHSet(3, 3, 1, 1, 1);
_root.GHSet(3, 5, 64, 64, 1);
_root.GHSet(3, 6, 1, 1, 1);
_root.GHSet(3, 7, 1, 1, 1);
_root.GHSet(3, 8, 1, 1, 1);
_root.GHSet(5, 1, 2, 2, 1);
_root.GHSet(5, 2, 2, 2, 1);
_root.GHSet(5, 3, 2, 2, 1);
_root.GHSet(5, 4, 64, 64, 1);
_root.GHSet(5, 6, 2, 2, 1);
_root.GHSet(5, 7, 2, 2, 1);
_root.GHSet(5, 8, 2, 2, 1);
_root.GHSet(7, 1, 3, 3, 1);
_root.GHSet(7, 2, 3, 3, 1);
_root.GHSet(7, 3, 3, 3, 1);
_root.GHSet(7, 5, 64, 64, 1);
_root.GHSet(7, 6, 3, 3, 1);
_root.GHSet(7, 7, 3, 3, 1);
_root.GHSet(7, 8, 3, 3, 1);
return(undefined);
}
if (st == 14) {
_root.GHSet(1, 1, 64, 64, 1);
_root.GHSet(1, 8, 64, 64, 1);
_root.GHSet(5, 3, 64, 64, 1);
_root.GHSet(5, 6, 64, 64, 1);
_root.GHSet(9, 0, 3, 3, 1);
_root.GHSet(9, 1, 3, 3, 1);
_root.GHSet(9, 2, 3, 3, 1);
_root.GHSet(9, 7, 4, 4, 1);
_root.GHSet(9, 8, 4, 4, 1);
_root.GHSet(9, 9, 4, 4, 1);
_root.GHSet(10, 0, 3, 3, 1);
_root.GHSet(10, 1, 64, 64, 1);
_root.GHSet(10, 2, 3, 3, 1);
_root.GHSet(10, 7, 4, 4, 1);
_root.GHSet(10, 8, 64, 64, 1);
_root.GHSet(10, 9, 4, 4, 1);
_root.GHSet(11, 1, 3, 3, 1);
_root.GHSet(11, 2, 3, 3, 1);
_root.GHSet(11, 7, 4, 4, 1);
_root.GHSet(11, 8, 4, 4, 1);
return(undefined);
}
if (st == 16) {
_root.GHSet(1, 3, 64, 64, 1);
_root.GHSet(1, 4, 64, 64, 1);
_root.GHSet(1, 5, 64, 64, 1);
_root.GHSet(1, 6, 64, 64, 1);
_root.GHSet(1, 7, 64, 64, 1);
_root.GHSet(1, 8, 64, 64, 1);
_root.GHSet(1, 9, 64, 64, 1);
xx = 0;
while (xx < 7) {
_root.GHSet(3, xx, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 10) {
_root.GHSet(5, xx, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 10) {
_root.GHSet(9, xx, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 10) {
_root.GHSet(10, xx, 63, 63, 1);
xx++;
}
return(undefined);
}
if (st == 18) {
xx = 0;
while (xx < 3) {
_root.GHSet(0, xx, 63, 63, 1);
xx++;
}
xx = 7;
while (xx < 10) {
_root.GHSet(0, xx, 63, 63, 1);
xx++;
}
_root.GHSet(1, 0, 63, 63, 1);
_root.GHSet(1, 1, 64, 64, 1);
_root.GHSet(1, 2, 63, 63, 1);
_root.GHSet(1, 7, 63, 63, 1);
_root.GHSet(1, 8, 64, 64, 1);
_root.GHSet(1, 9, 63, 63, 1);
xx = 0;
while (xx < 3) {
_root.GHSet(2, xx, 63, 63, 1);
xx++;
}
xx = 7;
while (xx < 10) {
_root.GHSet(2, xx, 63, 63, 1);
xx++;
}
xx = 3;
while (xx < 7) {
_root.GHSet(3, xx, 63, 63, 1);
xx++;
}
_root.GHSet(4, 0, 64, 64, 1);
_root.GHSet(4, 3, 63, 63, 1);
_root.GHSet(4, 4, 64, 64, 1);
_root.GHSet(4, 5, 64, 64, 1);
_root.GHSet(4, 6, 63, 63, 1);
_root.GHSet(4, 9, 64, 64, 1);
xx = 3;
while (xx < 7) {
_root.GHSet(5, xx, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 3) {
_root.GHSet(6, xx, 63, 63, 1);
xx++;
}
xx = 7;
while (xx < 10) {
_root.GHSet(6, xx, 63, 63, 1);
xx++;
}
_root.GHSet(7, 0, 63, 63, 1);
_root.GHSet(7, 1, 64, 64, 1);
_root.GHSet(7, 2, 63, 63, 1);
_root.GHSet(7, 7, 63, 63, 1);
_root.GHSet(7, 8, 64, 64, 1);
_root.GHSet(7, 9, 63, 63, 1);
xx = 0;
while (xx < 3) {
_root.GHSet(8, xx, 63, 63, 1);
xx++;
}
xx = 7;
while (xx < 10) {
_root.GHSet(8, xx, 63, 63, 1);
xx++;
}
return(undefined);
}
if (st == 20) {
_root.GHSet(0, 4, 64, 64, 1);
_root.GHSet(0, 5, 64, 64, 1);
xx = 2;
while (xx < 8) {
_root.GHSet(1, xx, 63, 63, 1);
xx++;
}
_root.GHSet(2, 1, 63, 63, 1);
_root.GHSet(2, 2, 64, 64, 1);
_root.GHSet(2, 7, 64, 64, 1);
_root.GHSet(2, 8, 63, 63, 1);
_root.GHSet(3, 1, 63, 63, 1);
_root.GHSet(3, 2, 63, 63, 1);
_root.GHSet(3, 7, 63, 63, 1);
_root.GHSet(3, 8, 63, 63, 1);
_root.GHSet(4, 1, 63, 63, 1);
_root.GHSet(4, 2, 63, 63, 1);
_root.GHSet(4, 7, 63, 63, 1);
_root.GHSet(4, 8, 63, 63, 1);
_root.GHSet(5, 0, 64, 64, 1);
_root.GHSet(5, 1, 63, 63, 1);
_root.GHSet(5, 2, 63, 63, 1);
_root.GHSet(5, 7, 63, 63, 1);
_root.GHSet(5, 8, 63, 63, 1);
_root.GHSet(5, 9, 64, 64, 1);
_root.GHSet(6, 0, 64, 64, 1);
_root.GHSet(6, 1, 63, 63, 1);
_root.GHSet(6, 2, 63, 63, 1);
_root.GHSet(6, 7, 63, 63, 1);
_root.GHSet(6, 8, 63, 63, 1);
_root.GHSet(6, 9, 64, 64, 1);
_root.GHSet(7, 1, 63, 63, 1);
_root.GHSet(7, 2, 63, 63, 1);
_root.GHSet(7, 7, 63, 63, 1);
_root.GHSet(7, 8, 63, 63, 1);
_root.GHSet(8, 1, 63, 63, 1);
_root.GHSet(8, 2, 63, 63, 1);
_root.GHSet(8, 7, 63, 63, 1);
_root.GHSet(8, 8, 63, 63, 1);
_root.GHSet(9, 1, 63, 63, 1);
_root.GHSet(9, 2, 64, 64, 1);
_root.GHSet(9, 7, 64, 64, 1);
_root.GHSet(9, 8, 63, 63, 1);
xx = 2;
while (xx < 8) {
_root.GHSet(10, xx, 63, 63, 1);
xx++;
}
_root.GHSet(11, 4, 64, 64, 1);
_root.GHSet(11, 5, 64, 64, 1);
return(undefined);
}
if (st == 22) {
_root.GHSet(0, 0, 63, 63, 1);
_root.GHSet(0, 1, 63, 63, 1);
_root.GHSet(0, 2, 63, 63, 1);
_root.GHSet(0, 7, 63, 63, 1);
_root.GHSet(0, 8, 63, 63, 1);
_root.GHSet(0, 9, 63, 63, 1);
_root.GHSet(1, 0, 63, 63, 1);
_root.GHSet(1, 1, 64, 64, 1);
_root.GHSet(1, 2, 63, 63, 1);
_root.GHSet(1, 4, 64, 64, 1);
_root.GHSet(1, 5, 64, 64, 1);
_root.GHSet(1, 7, 63, 63, 1);
_root.GHSet(1, 8, 64, 64, 1);
_root.GHSet(1, 9, 63, 63, 1);
_root.GHSet(2, 0, 63, 63, 1);
_root.GHSet(2, 1, 63, 63, 1);
_root.GHSet(2, 2, 63, 63, 1);
_root.GHSet(2, 7, 63, 63, 1);
_root.GHSet(2, 8, 63, 63, 1);
_root.GHSet(2, 9, 63, 63, 1);
_root.GHSet(5, 0, 63, 63, 1);
_root.GHSet(5, 1, 63, 63, 1);
_root.GHSet(5, 2, 63, 63, 1);
_root.GHSet(5, 3, 63, 63, 1);
_root.GHSet(5, 4, 63, 63, 1);
_root.GHSet(5, 5, 63, 63, 1);
_root.GHSet(5, 6, 63, 63, 1);
_root.GHSet(5, 7, 63, 63, 1);
_root.GHSet(5, 8, 63, 63, 1);
_root.GHSet(5, 9, 63, 63, 1);
_root.GHSet(6, 0, 63, 63, 1);
_root.GHSet(6, 1, 63, 63, 1);
_root.GHSet(6, 2, 63, 63, 1);
_root.GHSet(6, 3, 64, 64, 1);
_root.GHSet(6, 4, 63, 63, 1);
_root.GHSet(6, 5, 63, 63, 1);
_root.GHSet(6, 6, 64, 64, 1);
_root.GHSet(6, 7, 63, 63, 1);
_root.GHSet(6, 8, 63, 63, 1);
_root.GHSet(6, 9, 63, 63, 1);
_root.GHSet(7, 0, 63, 63, 1);
_root.GHSet(7, 1, 63, 63, 1);
_root.GHSet(7, 2, 63, 63, 1);
_root.GHSet(7, 3, 63, 63, 1);
_root.GHSet(7, 4, 63, 63, 1);
_root.GHSet(7, 5, 63, 63, 1);
_root.GHSet(7, 6, 63, 63, 1);
_root.GHSet(7, 7, 63, 63, 1);
_root.GHSet(7, 8, 63, 63, 1);
_root.GHSet(7, 9, 63, 63, 1);
_root.GHSet(10, 1, 64, 64, 1);
_root.GHSet(10, 8, 64, 64, 1);
return(undefined);
}
if (st == 24) {
_root.GHSet(1, 1, 64, 64, 1);
_root.GHSet(1, 8, 64, 64, 1);
_root.GHSet(2, 2, 63, 63, 1);
_root.GHSet(2, 7, 63, 63, 1);
_root.GHSet(3, 3, 64, 64, 1);
_root.GHSet(3, 4, 63, 63, 1);
_root.GHSet(3, 5, 63, 63, 1);
_root.GHSet(3, 6, 64, 64, 1);
_root.GHSet(4, 2, 64, 64, 1);
_root.GHSet(4, 7, 64, 64, 1);
_root.GHSet(5, 2, 63, 63, 1);
_root.GHSet(5, 7, 63, 63, 1);
_root.GHSet(6, 2, 63, 63, 1);
_root.GHSet(6, 7, 63, 63, 1);
_root.GHSet(7, 2, 63, 63, 1);
_root.GHSet(7, 3, 63, 63, 1);
_root.GHSet(7, 6, 63, 63, 1);
_root.GHSet(7, 7, 63, 63, 1);
_root.GHSet(8, 3, 64, 64, 1);
_root.GHSet(8, 4, 63, 63, 1);
_root.GHSet(8, 5, 63, 63, 1);
_root.GHSet(8, 6, 64, 64, 1);
_root.GHSet(9, 2, 63, 63, 1);
_root.GHSet(9, 7, 63, 63, 1);
_root.GHSet(10, 1, 64, 64, 1);
_root.GHSet(10, 8, 64, 64, 1);
return(undefined);
}
if (st == 26) {
_root.GHSet(0, 1, 64, 64, 1);
_root.GHSet(0, 2, 63, 63, 1);
_root.GHSet(0, 7, 63, 63, 1);
_root.GHSet(0, 8, 64, 64, 1);
_root.GHSet(1, 1, 63, 63, 1);
_root.GHSet(1, 8, 63, 63, 1);
_root.GHSet(2, 1, 64, 64, 1);
_root.GHSet(2, 2, 63, 63, 1);
_root.GHSet(2, 7, 63, 63, 1);
_root.GHSet(2, 8, 64, 64, 1);
_root.GHSet(3, 2, 64, 64, 1);
_root.GHSet(3, 3, 63, 63, 1);
_root.GHSet(3, 4, 63, 63, 1);
_root.GHSet(3, 5, 63, 63, 1);
_root.GHSet(3, 6, 63, 63, 1);
_root.GHSet(3, 7, 64, 64, 1);
_root.GHSet(4, 4, 64, 64, 1);
_root.GHSet(4, 5, 64, 64, 1);
_root.GHSet(5, 0, 64, 64, 1);
_root.GHSet(5, 9, 64, 64, 1);
_root.GHSet(6, 0, 64, 64, 1);
_root.GHSet(6, 9, 64, 64, 1);
_root.GHSet(7, 4, 64, 64, 1);
_root.GHSet(7, 5, 64, 64, 1);
_root.GHSet(8, 2, 64, 64, 1);
_root.GHSet(8, 3, 63, 63, 1);
_root.GHSet(8, 4, 63, 63, 1);
_root.GHSet(8, 5, 63, 63, 1);
_root.GHSet(8, 6, 63, 63, 1);
_root.GHSet(8, 7, 64, 64, 1);
_root.GHSet(9, 1, 64, 64, 1);
_root.GHSet(9, 2, 63, 63, 1);
_root.GHSet(9, 7, 63, 63, 1);
_root.GHSet(9, 8, 64, 64, 1);
_root.GHSet(10, 1, 63, 63, 1);
_root.GHSet(10, 8, 63, 63, 1);
_root.GHSet(11, 1, 64, 64, 1);
_root.GHSet(11, 2, 63, 63, 1);
_root.GHSet(11, 7, 63, 63, 1);
_root.GHSet(11, 8, 64, 64, 1);
return(undefined);
}
if (st == 28) {
_root.GHSet(0, 3, 64, 64, 1);
_root.GHSet(0, 6, 64, 64, 1);
_root.GHSet(3, 4, 64, 64, 1);
_root.GHSet(3, 5, 64, 64, 1);
_root.GHSet(3, 9, 64, 64, 1);
_root.GHSet(4, 0, 64, 64, 1);
_root.GHSet(4, 4, 64, 64, 1);
_root.GHSet(4, 5, 64, 64, 1);
_root.GHSet(5, 3, 64, 64, 1);
_root.GHSet(5, 4, 64, 64, 1);
_root.GHSet(5, 5, 64, 64, 1);
_root.GHSet(5, 6, 64, 64, 1);
_root.GHSet(6, 3, 64, 64, 1);
_root.GHSet(6, 4, 64, 64, 1);
_root.GHSet(6, 5, 64, 64, 1);
_root.GHSet(6, 6, 64, 64, 1);
_root.GHSet(7, 4, 64, 64, 1);
_root.GHSet(7, 5, 64, 64, 1);
_root.GHSet(7, 9, 64, 64, 1);
_root.GHSet(8, 0, 64, 64, 1);
_root.GHSet(8, 4, 64, 64, 1);
_root.GHSet(8, 5, 64, 64, 1);
_root.GHSet(11, 3, 64, 64, 1);
_root.GHSet(11, 6, 64, 64, 1);
return(undefined);
}
if (st == 30) {
_root.GHSet(1, 3, 64, 64, 1);
_root.GHSet(1, 4, 64, 64, 1);
_root.GHSet(1, 5, 64, 64, 1);
_root.GHSet(1, 6, 64, 64, 1);
_root.GHSet(1, 7, 64, 64, 1);
_root.GHSet(2, 1, 64, 64, 1);
_root.GHSet(2, 2, 64, 64, 1);
_root.GHSet(2, 3, 64, 64, 1);
_root.GHSet(2, 4, 63, 63, 1);
_root.GHSet(2, 5, 63, 63, 1);
_root.GHSet(2, 6, 63, 63, 1);
_root.GHSet(2, 7, 64, 64, 1);
_root.GHSet(2, 8, 64, 64, 1);
_root.GHSet(3, 1, 64, 64, 1);
_root.GHSet(3, 2, 63, 63, 1);
_root.GHSet(3, 3, 63, 63, 1);
_root.GHSet(3, 4, 63, 63, 1);
_root.GHSet(3, 5, 63, 63, 1);
_root.GHSet(3, 6, 63, 63, 1);
_root.GHSet(3, 7, 63, 63, 1);
_root.GHSet(3, 8, 64, 64, 1);
_root.GHSet(4, 1, 64, 64, 1);
_root.GHSet(4, 2, 63, 63, 1);
_root.GHSet(4, 3, 63, 63, 1);
_root.GHSet(4, 4, 63, 63, 1);
_root.GHSet(4, 5, 63, 63, 1);
_root.GHSet(4, 6, 63, 63, 1);
_root.GHSet(4, 7, 63, 63, 1);
_root.GHSet(4, 8, 64, 64, 1);
_root.GHSet(5, 1, 64, 64, 1);
_root.GHSet(5, 2, 63, 63, 1);
_root.GHSet(5, 3, 63, 63, 1);
_root.GHSet(5, 4, 63, 63, 1);
_root.GHSet(5, 5, 63, 63, 1);
_root.GHSet(5, 6, 63, 63, 1);
_root.GHSet(5, 7, 63, 63, 1);
_root.GHSet(5, 8, 64, 64, 1);
_root.GHSet(6, 1, 64, 64, 1);
_root.GHSet(6, 8, 64, 64, 1);
_root.GHSet(7, 1, 64, 64, 1);
_root.GHSet(7, 8, 64, 64, 1);
_root.GHSet(8, 1, 64, 64, 1);
_root.GHSet(8, 8, 64, 64, 1);
_root.GHSet(9, 1, 64, 64, 1);
_root.GHSet(9, 2, 64, 64, 1);
_root.GHSet(9, 6, 64, 64, 1);
_root.GHSet(9, 7, 64, 64, 1);
_root.GHSet(9, 8, 64, 64, 1);
_root.GHSet(10, 2, 64, 64, 1);
_root.GHSet(10, 3, 64, 64, 1);
_root.GHSet(10, 4, 64, 64, 1);
_root.GHSet(10, 5, 64, 64, 1);
_root.GHSet(10, 6, 64, 64, 1);
return(undefined);
}
if (st == 32) {
xx = 0;
while (xx < 7) {
_root.GHSet(0, xx, 64, 64, 1);
_root.GHSet(4, xx, 64, 64, 1);
_root.GHSet(5, xx, 64, 64, 1);
_root.GHSet(9, xx, 64, 64, 1);
_root.GHSet(10, xx, 64, 64, 1);
_root.GHSet(11, xx, 64, 64, 1);
xx++;
}
xx = 0;
while (xx < 4) {
_root.GHSet(1, xx, 64, 64, 1);
_root.GHSet(2, xx, 64, 64, 1);
_root.GHSet(3, xx, 64, 64, 1);
xx++;
}
xx = 4;
while (xx < 7) {
_root.GHSet(1, xx, 63, 63, 1);
_root.GHSet(2, xx, 63, 63, 1);
_root.GHSet(3, xx, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 3) {
_root.GHSet(6, xx, 64, 64, 1);
_root.GHSet(7, xx, 64, 64, 1);
_root.GHSet(8, xx, 64, 64, 1);
xx++;
}
xx = 3;
while (xx < 7) {
_root.GHSet(6, xx, 63, 63, 1);
_root.GHSet(7, xx, 63, 63, 1);
_root.GHSet(8, xx, 63, 63, 1);
xx++;
}
return(undefined);
}
if (st == 34) {
xx = 0;
while (xx < 10) {
_root.GHSet(1, xx, 64, 64, 1);
_root.GHSet(5, xx, 63, 63, 1);
_root.GHSet(7, xx, 63, 63, 1);
_root.GHSet(8, xx, 63, 63, 1);
_root.GHSet(9, xx, 63, 63, 1);
_root.GHSet(10, xx, 64, 64, 1);
xx++;
}
_root.GHSet(2, 0, 64, 64, 1);
_root.GHSet(2, 1, 64, 64, 1);
_root.GHSet(2, 8, 64, 64, 1);
_root.GHSet(2, 9, 64, 64, 1);
_root.GHSet(6, 0, 63, 63, 1);
_root.GHSet(6, 1, 63, 63, 1);
_root.GHSet(6, 2, 63, 63, 1);
_root.GHSet(6, 3, 64, 64, 1);
_root.GHSet(6, 4, 64, 64, 1);
_root.GHSet(6, 5, 64, 64, 1);
_root.GHSet(6, 6, 64, 64, 1);
_root.GHSet(6, 7, 63, 63, 1);
_root.GHSet(6, 8, 63, 63, 1);
_root.GHSet(6, 9, 63, 63, 1);
return(undefined);
}
if (st == 36) {
xx = 2;
while (xx < 10) {
_root.GHSet(0, xx, 63, 63, 1);
xx++;
}
xx = 3;
while (xx < 10) {
_root.GHSet(1, xx, 63, 63, 1);
xx++;
}
xx = 4;
while (xx < 10) {
_root.GHSet(2, xx, 63, 63, 1);
xx++;
}
xx = 5;
while (xx < 10) {
_root.GHSet(3, xx, 63, 63, 1);
xx++;
}
_root.GHSet(4, 0, 63, 63, 1);
xx = 6;
while (xx < 10) {
_root.GHSet(4, xx, 63, 63, 1);
xx++;
}
_root.GHSet(5, 0, 63, 63, 1);
_root.GHSet(5, 1, 63, 63, 1);
xx = 7;
while (xx < 10) {
_root.GHSet(5, xx, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 3) {
_root.GHSet(6, xx, 63, 63, 1);
xx++;
}
_root.GHSet(6, 8, 63, 63, 1);
_root.GHSet(6, 9, 63, 63, 1);
xx = 0;
while (xx < 4) {
_root.GHSet(7, xx, 63, 63, 1);
xx++;
}
xx = 4;
while (xx < 9) {
_root.GHSet(7, xx, 64, 64, 1);
xx++;
}
_root.GHSet(7, 9, 63, 63, 1);
xx = 0;
while (xx < 5) {
_root.GHSet(8, xx, 63, 63, 1);
xx++;
}
xx = 5;
while (xx < 10) {
_root.GHSet(8, xx, 64, 64, 1);
xx++;
}
xx = 0;
while (xx < 6) {
_root.GHSet(9, xx, 63, 63, 1);
_root.GHSet(10, xx, 63, 63, 1);
_root.GHSet(11, xx, 63, 63, 1);
xx++;
}
xx = 6;
while (xx < 10) {
_root.GHSet(9, xx, 64, 64, 1);
xx++;
}
return(undefined);
}
if (st == 38) {
_root.GHSet(1, 1, 64, 64, 1);
_root.GHSet(1, 2, 64, 64, 1);
_root.GHSet(1, 3, 63, 63, 1);
_root.GHSet(1, 4, 63, 63, 1);
xx = 5;
while (xx < 9) {
_root.GHSet(1, xx, 64, 64, 1);
xx++;
}
_root.GHSet(2, 1, 64, 64, 1);
_root.GHSet(2, 2, 63, 63, 1);
_root.GHSet(2, 7, 63, 63, 1);
_root.GHSet(2, 8, 64, 64, 1);
_root.GHSet(3, 1, 64, 64, 1);
_root.GHSet(3, 2, 63, 63, 1);
_root.GHSet(3, 7, 63, 63, 1);
_root.GHSet(3, 8, 64, 64, 1);
_root.GHSet(4, 1, 64, 64, 1);
_root.GHSet(4, 8, 63, 63, 1);
_root.GHSet(5, 1, 64, 64, 1);
_root.GHSet(5, 8, 63, 63, 1);
_root.GHSet(6, 1, 63, 63, 1);
_root.GHSet(6, 8, 64, 64, 1);
_root.GHSet(7, 1, 63, 63, 1);
_root.GHSet(7, 8, 64, 64, 1);
_root.GHSet(8, 1, 64, 64, 1);
_root.GHSet(8, 2, 63, 63, 1);
_root.GHSet(8, 7, 63, 63, 1);
_root.GHSet(8, 8, 64, 64, 1);
_root.GHSet(9, 1, 64, 64, 1);
_root.GHSet(9, 2, 63, 63, 1);
_root.GHSet(9, 7, 63, 63, 1);
_root.GHSet(9, 8, 64, 64, 1);
xx = 1;
while (xx < 5) {
_root.GHSet(10, xx, 64, 64, 1);
xx++;
}
_root.GHSet(10, 5, 63, 63, 1);
_root.GHSet(10, 6, 63, 63, 1);
_root.GHSet(10, 7, 64, 64, 1);
_root.GHSet(10, 8, 64, 64, 1);
return(undefined);
}
if (st == 40) {
xx = 2;
while (xx < 8) {
_root.GHSet(2, xx, 63, 63, 1);
_root.GHSet(9, xx, 63, 63, 1);
xx++;
}
_root.GHSet(3, 2, 64, 64, 1);
_root.GHSet(3, 3, 63, 63, 1);
_root.GHSet(3, 4, 64, 64, 1);
_root.GHSet(3, 5, 64, 64, 1);
_root.GHSet(3, 6, 63, 63, 1);
_root.GHSet(3, 7, 64, 64, 1);
xx = 4;
while (xx < 9) {
_root.GHSet(xx, 3, 63, 63, 1);
_root.GHSet(xx, 4, 64, 64, 1);
_root.GHSet(xx, 5, 64, 64, 1);
_root.GHSet(xx, 6, 63, 63, 1);
xx++;
}
_root.GHSet(8, 2, 64, 64, 1);
_root.GHSet(8, 7, 64, 64, 1);
return(undefined);
}
if (st == 42) {
_root.GHSet(1, 1, 63, 63, 1);
_root.GHSet(1, 2, 63, 63, 1);
_root.GHSet(1, 3, 63, 63, 1);
_root.GHSet(1, 4, 64, 64, 1);
_root.GHSet(1, 6, 63, 63, 1);
_root.GHSet(1, 7, 63, 63, 1);
_root.GHSet(1, 8, 63, 63, 1);
_root.GHSet(1, 9, 64, 64, 1);
_root.GHSet(3, 0, 64, 64, 1);
_root.GHSet(3, 1, 63, 63, 1);
_root.GHSet(3, 2, 63, 63, 1);
_root.GHSet(3, 3, 63, 63, 1);
_root.GHSet(3, 5, 64, 64, 1);
_root.GHSet(3, 6, 63, 63, 1);
_root.GHSet(3, 7, 63, 63, 1);
_root.GHSet(3, 8, 63, 63, 1);
_root.GHSet(5, 1, 63, 63, 1);
_root.GHSet(5, 2, 63, 63, 1);
_root.GHSet(5, 3, 63, 63, 1);
_root.GHSet(5, 4, 64, 64, 1);
_root.GHSet(5, 6, 63, 63, 1);
_root.GHSet(5, 7, 63, 63, 1);
_root.GHSet(5, 8, 63, 63, 1);
_root.GHSet(5, 9, 64, 64, 1);
_root.GHSet(7, 0, 64, 64, 1);
_root.GHSet(7, 1, 63, 63, 1);
_root.GHSet(7, 2, 63, 63, 1);
_root.GHSet(7, 3, 63, 63, 1);
_root.GHSet(7, 5, 64, 64, 1);
_root.GHSet(7, 6, 63, 63, 1);
_root.GHSet(7, 7, 63, 63, 1);
_root.GHSet(7, 8, 63, 63, 1);
return(undefined);
}
if (st == 44) {
xx = 0;
while (xx < 10) {
_root.GHSet(0, xx, 63, 63, 1);
_root.GHSet(3, xx, 63, 63, 1);
_root.GHSet(4, xx, 63, 63, 1);
xx++;
}
xx = 1;
while (xx < 3) {
_root.GHSet(xx, 0, 63, 63, 1);
_root.GHSet(xx, 1, 64, 64, 1);
_root.GHSet(xx, 2, 64, 64, 1);
_root.GHSet(xx, 3, 63, 63, 1);
_root.GHSet(xx, 4, 63, 63, 1);
_root.GHSet(xx, 5, 63, 63, 1);
_root.GHSet(xx, 6, 63, 63, 1);
_root.GHSet(xx, 7, 64, 64, 1);
_root.GHSet(xx, 8, 64, 64, 1);
_root.GHSet(xx, 9, 63, 63, 1);
xx++;
}
xx = 3;
while (xx < 7) {
_root.GHSet(5, xx, 64, 64, 1);
_root.GHSet(6, xx, 64, 64, 1);
xx++;
}
xx = 9;
while (xx < 11) {
_root.GHSet(xx, 1, 64, 64, 1);
_root.GHSet(xx, 2, 64, 64, 1);
_root.GHSet(xx, 7, 64, 64, 1);
_root.GHSet(xx, 8, 64, 64, 1);
xx++;
}
return(undefined);
}
if (st == 46) {
xx = 3;
while (xx < 7) {
_root.GHSet(1, xx, 64, 64, 1);
_root.GHSet(3, xx, 64, 64, 1);
_root.GHSet(5, xx, 64, 64, 1);
xx++;
}
_root.GHSet(5, 0, 63, 63, 1);
_root.GHSet(5, 1, 63, 63, 1);
_root.GHSet(5, 2, 63, 63, 1);
_root.GHSet(5, 7, 63, 63, 1);
_root.GHSet(5, 8, 63, 63, 1);
_root.GHSet(5, 9, 63, 63, 1);
xx = 0;
while (xx < 10) {
_root.GHSet(6, xx, 63, 63, 1);
_root.GHSet(7, xx, 63, 63, 1);
xx++;
}
xx = 1;
while (xx < 9) {
_root.GHSet(8, xx, 63, 63, 1);
xx++;
}
_root.GHSet(8, 0, 64, 64, 1);
_root.GHSet(8, 9, 64, 64, 1);
xx = 0;
while (xx < 10) {
_root.GHSet(9, xx, 64, 64, 1);
_root.GHSet(10, xx, 64, 64, 1);
xx++;
}
return(undefined);
}
if (st == 48) {
xx = 0;
while (xx < 3) {
_root.GHSet(xx, 0, 64, 64, 1);
_root.GHSet(xx, 1, 64, 64, 1);
_root.GHSet(xx, 2, 64, 64, 1);
_root.GHSet(xx, 7, 64, 64, 1);
_root.GHSet(xx, 8, 64, 64, 1);
_root.GHSet(xx, 9, 64, 64, 1);
xx++;
}
xx = 3;
while (xx < 7) {
_root.GHSet(3, xx, 64, 64, 1);
_root.GHSet(4, xx, 64, 64, 1);
_root.GHSet(5, xx, 64, 64, 1);
xx++;
}
xx = 6;
while (xx < 9) {
_root.GHSet(xx, 0, 64, 64, 1);
_root.GHSet(xx, 1, 64, 64, 1);
_root.GHSet(xx, 2, 64, 64, 1);
_root.GHSet(xx, 7, 64, 64, 1);
_root.GHSet(xx, 8, 64, 64, 1);
_root.GHSet(xx, 9, 64, 64, 1);
xx++;
}
xx = 0;
while (xx < 10) {
_root.GHSet(9, xx, 63, 63, 1);
_root.GHSet(10, xx, 63, 63, 1);
xx++;
}
return(undefined);
}
if (st == 50) {
_root.GHSet(0, 4, 64, 64, 1);
_root.GHSet(0, 5, 64, 64, 1);
xx = 2;
while (xx < 8) {
_root.GHSet(1, xx, 64, 64, 1);
_root.GHSet(10, xx, 64, 64, 1);
xx++;
}
_root.GHSet(2, 1, 64, 64, 1);
_root.GHSet(2, 2, 64, 64, 1);
_root.GHSet(2, 7, 64, 64, 1);
_root.GHSet(2, 8, 64, 64, 1);
_root.GHSet(9, 1, 64, 64, 1);
_root.GHSet(9, 2, 64, 64, 1);
_root.GHSet(9, 7, 64, 64, 1);
_root.GHSet(9, 8, 64, 64, 1);
xx = 3;
while (xx < 9) {
_root.GHSet(xx, 1, 63, 63, 1);
_root.GHSet(xx, 2, 63, 63, 1);
_root.GHSet(xx, 7, 63, 63, 1);
_root.GHSet(xx, 8, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 7) {
_root.GHSet(5, xx, 63, 63, 1);
_root.GHSet(6, xx, 63, 63, 1);
xx++;
}
_root.GHSet(5, 0, 64, 64, 1);
_root.GHSet(5, 9, 64, 64, 1);
_root.GHSet(6, 0, 64, 64, 1);
_root.GHSet(6, 9, 64, 64, 1);
_root.GHSet(11, 4, 64, 64, 1);
_root.GHSet(11, 5, 64, 64, 1);
return(undefined);
}
if (st == 52) {
xx = 2;
while (xx < 10) {
_root.GHSet(0, xx, 64, 64, 1);
xx++;
}
xx = 3;
while (xx < 10) {
_root.GHSet(1, xx, 64, 64, 1);
xx++;
}
xx = 4;
while (xx < 10) {
_root.GHSet(2, xx, 64, 64, 1);
xx++;
}
xx = 5;
while (xx < 10) {
_root.GHSet(3, xx, 64, 64, 1);
xx++;
}
_root.GHSet(4, 0, 64, 64, 1);
xx = 6;
while (xx < 10) {
_root.GHSet(4, xx, 64, 64, 1);
xx++;
}
_root.GHSet(5, 0, 64, 64, 1);
_root.GHSet(5, 1, 64, 64, 1);
xx = 7;
while (xx < 10) {
_root.GHSet(5, xx, 64, 64, 1);
xx++;
}
xx = 0;
while (xx < 3) {
_root.GHSet(6, xx, 64, 64, 1);
xx++;
}
_root.GHSet(6, 8, 64, 64, 1);
_root.GHSet(6, 9, 64, 64, 1);
xx = 0;
while (xx < 4) {
_root.GHSet(7, xx, 64, 64, 1);
xx++;
}
xx = 4;
while (xx < 9) {
_root.GHSet(7, xx, 63, 63, 1);
xx++;
}
_root.GHSet(7, 9, 64, 64, 1);
xx = 0;
while (xx < 5) {
_root.GHSet(8, xx, 64, 64, 1);
xx++;
}
xx = 5;
while (xx < 10) {
_root.GHSet(8, xx, 63, 63, 1);
xx++;
}
xx = 0;
while (xx < 6) {
_root.GHSet(9, xx, 64, 64, 1);
_root.GHSet(10, xx, 64, 64, 1);
_root.GHSet(11, xx, 64, 64, 1);
xx++;
}
xx = 6;
while (xx < 10) {
_root.GHSet(9, xx, 63, 63, 1);
xx++;
}
return(undefined);
}
if (st == 54) {
_root.GHSet(1, 1, 64, 64, 1);
_root.GHSet(1, 8, 64, 64, 1);
_root.GHSet(2, 1, 63, 63, 1);
_root.GHSet(2, 2, 64, 64, 1);
_root.GHSet(2, 7, 64, 64, 1);
_root.GHSet(2, 8, 63, 63, 1);
_root.GHSet(3, 1, 63, 63, 1);
xx = 3;
while (xx < 7) {
_root.GHSet(3, xx, 64, 64, 1);
xx++;
}
_root.GHSet(3, 8, 63, 63, 1);
_root.GHSet(4, 1, 63, 63, 1);
_root.GHSet(4, 7, 64, 64, 1);
_root.GHSet(4, 8, 63, 63, 1);
_root.GHSet(5, 1, 63, 63, 1);
_root.GHSet(5, 7, 64, 64, 1);
_root.GHSet(5, 8, 63, 63, 1);
_root.GHSet(6, 1, 63, 63, 1);
_root.GHSet(6, 2, 64, 64, 1);
_root.GHSet(6, 8, 63, 63, 1);
_root.GHSet(7, 1, 63, 63, 1);
_root.GHSet(7, 2, 64, 64, 1);
_root.GHSet(7, 8, 63, 63, 1);
_root.GHSet(8, 1, 63, 63, 1);
xx = 3;
while (xx < 7) {
_root.GHSet(8, xx, 64, 64, 1);
xx++;
}
_root.GHSet(8, 8, 63, 63, 1);
_root.GHSet(9, 1, 63, 63, 1);
_root.GHSet(9, 2, 64, 64, 1);
_root.GHSet(9, 7, 64, 64, 1);
_root.GHSet(9, 8, 63, 63, 1);
_root.GHSet(10, 1, 64, 64, 1);
_root.GHSet(10, 8, 64, 64, 1);
return(undefined);
}
if (st == 56) {
_root.GHSet(1, 3, 64, 64, 1);
_root.GHSet(1, 4, 64, 64, 1);
_root.GHSet(1, 5, 64, 64, 1);
_root.GHSet(1, 6, 64, 64, 1);
_root.GHSet(2, 2, 64, 64, 1);
_root.GHSet(2, 3, 63, 63, 1);
_root.GHSet(2, 4, 63, 63, 1);
_root.GHSet(2, 5, 63, 63, 1);
_root.GHSet(2, 6, 63, 63, 1);
_root.GHSet(2, 7, 64, 64, 1);
_root.GHSet(3, 1, 64, 64, 1);
_root.GHSet(3, 2, 63, 63, 1);
_root.GHSet(3, 3, 63, 63, 1);
_root.GHSet(3, 4, 63, 63, 1);
_root.GHSet(3, 5, 63, 63, 1);
_root.GHSet(3, 6, 63, 63, 1);
_root.GHSet(3, 7, 63, 63, 1);
_root.GHSet(3, 8, 64, 64, 1);
_root.GHSet(4, 1, 64, 64, 1);
_root.GHSet(4, 2, 63, 63, 1);
_root.GHSet(4, 3, 63, 63, 1);
_root.GHSet(4, 4, 63, 63, 1);
_root.GHSet(4, 5, 63, 63, 1);
_root.GHSet(4, 6, 63, 63, 1);
_root.GHSet(4, 7, 63, 63, 1);
_root.GHSet(4, 8, 64, 64, 1);
_root.GHSet(5, 1, 64, 64, 1);
_root.GHSet(5, 2, 63, 63, 1);
_root.GHSet(5, 3, 63, 63, 1);
_root.GHSet(5, 4, 63, 63, 1);
_root.GHSet(5, 5, 63, 63, 1);
_root.GHSet(5, 6, 63, 63, 1);
_root.GHSet(5, 7, 63, 63, 1);
_root.GHSet(5, 8, 64, 64, 1);
_root.GHSet(6, 1, 64, 64, 1);
_root.GHSet(6, 8, 64, 64, 1);
_root.GHSet(7, 1, 64, 64, 1);
_root.GHSet(7, 8, 64, 64, 1);
_root.GHSet(8, 1, 64, 64, 1);
_root.GHSet(8, 8, 64, 64, 1);
_root.GHSet(9, 2, 64, 64, 1);
_root.GHSet(9, 3, 64, 64, 1);
_root.GHSet(9, 4, 64, 64, 1);
_root.GHSet(9, 5, 64, 64, 1);
_root.GHSet(9, 6, 64, 64, 1);
_root.GHSet(9, 7, 64, 64, 1);
return(undefined);
}
if (st == 58) {
_root.GHSet(0, 3, 64, 64, 1);
_root.GHSet(0, 6, 64, 64, 1);
_root.GHSet(3, 4, 64, 64, 1);
_root.GHSet(3, 5, 64, 64, 1);
_root.GHSet(3, 6, 63, 63, 1);
_root.GHSet(3, 7, 63, 63, 1);
_root.GHSet(3, 8, 63, 63, 1);
_root.GHSet(3, 9, 64, 64, 1);
_root.GHSet(4, 0, 64, 64, 1);
_root.GHSet(4, 1, 63, 63, 1);
_root.GHSet(4, 2, 63, 63, 1);
_root.GHSet(4, 3, 63, 63, 1);
_root.GHSet(4, 4, 64, 64, 1);
_root.GHSet(4, 5, 64, 64, 1);
_root.GHSet(4, 6, 63, 63, 1);
_root.GHSet(5, 3, 64, 64, 1);
_root.GHSet(5, 4, 64, 64, 1);
_root.GHSet(5, 5, 64, 64, 1);
_root.GHSet(5, 6, 64, 64, 1);
_root.GHSet(6, 3, 64, 64, 1);
_root.GHSet(6, 4, 64, 64, 1);
_root.GHSet(6, 5, 64, 64, 1);
_root.GHSet(6, 6, 64, 64, 1);
_root.GHSet(7, 3, 63, 63, 1);
_root.GHSet(7, 4, 64, 64, 1);
_root.GHSet(7, 5, 64, 64, 1);
_root.GHSet(7, 6, 63, 63, 1);
_root.GHSet(7, 7, 63, 63, 1);
_root.GHSet(7, 8, 63, 63, 1);
_root.GHSet(7, 9, 64, 64, 1);
_root.GHSet(8, 0, 64, 64, 1);
_root.GHSet(8, 1, 63, 63, 1);
_root.GHSet(8, 2, 63, 63, 1);
_root.GHSet(8, 3, 63, 63, 1);
_root.GHSet(8, 4, 64, 64, 1);
_root.GHSet(8, 5, 64, 64, 1);
_root.GHSet(11, 3, 64, 64, 1);
_root.GHSet(11, 6, 64, 64, 1);
return(undefined);
}
if (st == 60) {
xx = 1;
while (xx < 9) {
_root.GHSet(xx, 3, 64, 64, 1);
_root.GHSet(xx, 4, 64, 64, 1);
_root.GHSet(xx, 5, 64, 64, 1);
_root.GHSet(xx, 6, 64, 64, 1);
xx++;
}
_root.GHSet(3, 2, 64, 64, 1);
_root.GHSet(3, 7, 64, 64, 1);
_root.GHSet(7, 2, 64, 64, 1);
_root.GHSet(7, 7, 64, 64, 1);
_root.GHSet(9, 4, 64, 64, 1);
_root.GHSet(9, 5, 64, 64, 1);
return(undefined);
}
};
_root.RemoveStage = function () {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < GHPuzzleObject.col) {
_local2 = 0;
while (_local2 < GHPuzzleObject.row) {
if (_root.GHGetBlock(_local3, _local2).stype == 64) {
_root.GHSet(_local3, _local2, _root.GHFreeFrame, _root.GHFreeFrame, 1);
}
if (_root.GHGetBlock(_local3, _local2).stype == 63) {
_root.GHSet(_local3, _local2, _root.GHFreeFrame, _root.GHFreeFrame, 1);
}
_local2++;
}
_local3++;
}
return(undefined);
};
_root.NotDoAll = function () {
_root.onEnterFrame = null;
_root.onMouseDown = null;
GHPuzzleObject.removeTable(master, 12, 10, 40, 40, 15, 20);
};
_root.DoAll = function () {
_root.onMouseDown = _root.MouseDown;
_root.onEnterFrame = _root.Run;
};
if ((_root.level % 2) == 0) {
_root.RemoveStage();
_root.SetStage(_root.level);
} else if ((_root.level % 2) != 0) {
_root.RemoveStage();
_root.SetStage(_root.level - 1);
}
_root.im_bg.gotoAndStop(1 + Math.floor(_root.level / 6));
_root.DoAll();
stop();
_root.pa_save._visible = false;
_root.pa_save_origin._visible = false;
if (_root.so.data.continued == true) {
_root.level = _root.so.data.level;
_root.score = _root.so.data.score;
_root.playerlevel = _root.so.data.playerlevel;
_root.bombavilable = _root.so.data.bombavilable;
_root.bombspeed = _root.so.data.bombspeed;
_root.superbomb = _root.so.data.superbomb;
_root.antiavilable = _root.so.data.antiavilable;
_root.antispeed = _root.so.data.antispeed;
_root.superanti = _root.so.data.superanti;
_root.heartrecoveryadd = _root.so.data.heartrecoveryadd;
_root.heartshieldadd = _root.so.data.heartshieldadd;
_root.antibodyadd = _root.so.data.antibodyadd;
_root.lifeMAX = _root.so.data.lifeMAX;
_root.power = _root.so.data.power;
if ((_root.level % 2) == 0) {
_root.RemoveStage();
_root.SetStage(_root.level);
} else if ((_root.level % 2) != 0) {
_root.RemoveStage();
_root.SetStage(_root.level - 1);
}
_root.im_bg.gotoAndStop(1 + Math.floor(_root.level / 6));
_root.SetStage(_root.level);
_root.ReGenerate();
_root.so.data.continued = false;
}
Frame 326
_root.gameover = false;
stopAllSounds();
if (_root.gamedemo == true) {
gotoAndStop (324);
} else {
play();
}
Frame 327
scoresURL = "http://www.gamebrew.com/process/hiscore.php";
if (_root.score > 0) {
stop();
pos = Selection.getCaretIndex();
if (pos == -1) {
Selection.setFocus("newName");
}
} else {
gotoAndStop ("scorelist");
}
Frame 329
function loadScores() {
Scores.rank = "";
i = 1;
while (i < 11) {
Scores["pname" + i] = Scores["name" + (i + page)].toUpperCase();
Scores["pscore" + i] = Scores["score" + (i + page)];
Scores.rank = Scores.rank + (String(i + page) + ".\n");
i++;
}
}
stop();
ii = 1;
while (ii <= 10) {
Scores["pname" + ii] = "----";
Scores["pscore" + ii] = "----";
ii++;
}
page = 0;
maxScores = 100;
i = 1;
while (i <= maxScores) {
Scores["name" + i] = "...";
Scores["score" + i] = "0";
i++;
}
_root.Poster.game = "germ-attack";
tellTarget ("Poster") {
loadVariables (_root.scoresURL, _root.Scores, "POST");
};
Instance of Symbol 408 MovieClip "Scores" in Frame 329
onClipEvent (data) {
_root.ScoreText.gotoAndStop(2);
_root.loadScores();
}
Symbol 19 MovieClip Frame 5
stop();
Symbol 20 MovieClip [v0] Frame 5
gotoAndPlay("p" + random(4));
Symbol 20 MovieClip [v0] Frame 50
gotoAndPlay("p" + random(4));
Symbol 20 MovieClip [v0] Frame 115
gotoAndPlay("p" + random(4));
Symbol 20 MovieClip [v0] Frame 190
gotoAndPlay("p" + random(4));
Symbol 20 MovieClip [v0] Frame 195
_root.clickpause = true;
Symbol 20 MovieClip [v0] Frame 210
_root.clickpause = false;
_root.clearOK(this);
Symbol 27 MovieClip Frame 1
stop();
Symbol 86 Button
on (release) {
gotoAndStop (2);
_root._quality = "LOW";
_parent.q_mid.gotoAndStop(1);
_parent.q_high.gotoAndStop(1);
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 90 Button
on (release) {
gotoAndStop (2);
_root._quality = "MEDIUM";
_parent.q_low.gotoAndStop(1);
_parent.q_high.gotoAndStop(1);
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 92 Button
on (release) {
gotoAndStop (2);
_root._quality = "HIGH";
_parent.q_low.gotoAndStop(1);
_parent.q_mid.gotoAndStop(1);
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) {
if (_root.gamepause == true) {
_root.gamepause = false;
}
this._visible = false;
}
Symbol 118 Button
on (release) {
if (this._currentframe == 1) {
this.gotoAndStop(this._totalframes);
} else {
prevFrame();
}
}
Symbol 120 Button
on (release) {
if (this._currentframe == this._totalframes) {
this.gotoAndStop(1);
} else {
nextFrame();
}
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 5
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 134 Button
on (release) {
if (_root.pa_save._visible != true) {
_root.pa_powerup.gotoAndPlay(3);
_root.pa_powerup._visible = true;
_root.gamepause = true;
}
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 5
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 5
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
_root["fx_laugh" + random(4)].start(0, 1);
Symbol 145 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this._visible == true) {
this.pagenum = this._currentframe;
this.allpagenum = this._totalframes;
}
};
Symbol 184 MovieClip Frame 1
stop();
Symbol 203 Button
on (press) {
if ((_root.pa_save._visible != true) and (_root.pa_powerup._visible != true)) {
_root.gamepause = !_root.gamepause;
_root.fx_pause._visible = !_root.fx_pause._visible;
}
}
Symbol 206 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.gamepause == true) {
this.gotoAndStop(2);
}
if (_root.gamepause == false) {
this.gotoAndStop(1);
}
};
Symbol 206 MovieClip Frame 2
stop();
Symbol 209 Button
on (release) {
_root.fx_mute._visible = !_root.fx_mute._visible;
play();
}
Symbol 210 MovieClip Frame 1
_root.bgm.setVolume(100);
stop();
Symbol 210 MovieClip Frame 2
_root.bgm.setVolume(0);
stop();
Symbol 211 Button
on (release) {
if ((_root.pa_save._visible != true) and (_root.pa_powerup._visible != true)) {
_root.pa_powerup.gotoAndPlay(3);
_root.pa_powerup._visible = true;
_root.gamepause = true;
}
}
Symbol 213 Button
on (release) {
_root.gamepause = false;
_root.pa_save.removeMovieClip();
}
Symbol 216 Button
on (release) {
_root.so.data.level = _root.level;
_root.so.data.score = _root.score;
_root.so.data.playerlevel = _root.playerlevel;
_root.so.data.bombavilable = _root.bombavilable;
_root.so.data.bombspeed = _root.bombspeed;
_root.so.data.superbomb = _root.superbomb;
_root.so.data.antiavilable = _root.antiavilable;
_root.so.data.antispeed = _root.antispeed;
_root.so.data.superanti = _root.superanti;
_root.so.data.heartrecoveryadd = _root.heartrecoveryadd;
_root.so.data.heartshieldadd = _root.heartshieldadd;
_root.so.data.antibodyadd = _root.antibodyadd;
_root.so.data.lifeMAX = _root.lifeMAX;
_root.so.data.power = _root.power;
_root.so.data.gamesave = true;
if (_root.so.data.gamesave == true) {
GHPuzzleObject.removeTable(master, 12, 10, 40, 40, 15, 20);
removeMovieClip(_root.selector);
_root.NotDoAll();
_root.gamepause = false;
stopAllSounds();
_root.gotoAndStop("Title", "title");
_root.pa_save.removeMovieClip();
}
}
Symbol 219 Button
on (release) {
GHPuzzleObject.removeTable(master, 12, 10, 40, 40, 15, 20);
removeMovieClip(_root.selector);
_root.NotDoAll();
_root.gamepause = false;
stopAllSounds();
_root.gotoAndStop("Title", "title");
_root.pa_save.removeMovieClip();
}
Symbol 223 Button
on (release) {
if ((_root.pa_save._visible != true) and (_root.pa_powerup._visible != true)) {
_root.pa_save_origin.duplicateMovieClip("pa_save", _root.getNextHighestDepth());
_root.pa_save._visible = true;
_root.gamepause = true;
}
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 276 Button
on (release) {
if (_root.gamepause == true) {
_root.gamepause = false;
}
gotoAndStop (2);
this._visible = false;
}
Symbol 304 MovieClip Frame 1
stop();
_root.bomb0req = 300;
_root.bomb1req = 300;
_root.bomb2req = 800;
_root.anti0req = 600;
_root.anti1req = 450;
_root.anti2req = 600;
_root.hreco0req = 900;
_root.hreco1req = 400;
_root.hshield0req = 700;
_root.hshield1req = 450;
_root.lifeupreq = 550;
_root.antibodyreq = 500;
_root.impstatusreq = 999;
if (_root.pa_powerup._visible == true) {
this.onEnterFrame = function () {
_root.showpower = Math.floor(_root.power);
if ((_root.power < _root.bomb0req) or (_root.Bbomb0clicked == true)) {
this.Bbomb0._alpha = 30;
} else {
this.Bbomb0._alpha = 100;
}
if (((_root.power < _root.bomb1req) or (_root.bombavilable == false)) or (_root.Bbomb1clicked == true)) {
this.Bbomb1._alpha = 30;
} else {
this.Bbomb1._alpha = 100;
}
if (((_root.power < _root.bomb2req) or (_root.bombavilable == false)) or (_root.Bbomb2clicked == true)) {
this.Bbomb2._alpha = 30;
} else {
this.Bbomb2._alpha = 100;
}
if ((_root.power < _root.anti0req) or (_root.Banti0clicked == true)) {
this.Banti0._alpha = 30;
} else {
this.Banti0._alpha = 100;
}
if (((_root.power < _root.anti1req) or (_root.antiavilable == false)) or (_root.Banti1clicked == true)) {
this.Banti1._alpha = 30;
} else {
this.Banti1._alpha = 100;
}
if (((_root.power < _root.anti2req) or (_root.antiavilable == false)) or (_root.Banti2clicked == true)) {
this.Banti2._alpha = 30;
} else {
this.Banti2._alpha = 100;
}
if ((_root.power < _root.hreco0req) or (_root.Bhreco0clicked == true)) {
this.Bhreco0._alpha = 30;
} else {
this.Bhreco0._alpha = 100;
}
if (((_root.power < _root.hreco1req) or (_root.heartrecoveryadd == 0)) or (_root.Bhreco1clicked == true)) {
this.Bhreco1._alpha = 30;
} else {
this.Bhreco1._alpha = 100;
}
if ((_root.power < _root.hshield0req) or (_root.Bhshield0clicked == true)) {
this.Bhshield0._alpha = 30;
} else {
this.Bhshield0._alpha = 100;
}
if (((_root.power < _root.hshield1req) or (_root.heartshieldadd == 0)) or (_root.Bhshield1clicked == true)) {
this.Bhshield1._alpha = 30;
} else {
this.Bhshield1._alpha = 100;
}
if ((_root.power < _root.lifeupreq) or (_root.Blifeupclicked == true)) {
this.Blifeup._alpha = 30;
} else {
this.Blifeup._alpha = 100;
}
if ((_root.power < _root.antibodyreq) or (_root.Bantibodyclicked == true)) {
this.Bantibody._alpha = 30;
} else {
this.Bantibody._alpha = 100;
}
if ((_root.power < _root.impstatusreq) or (_root.playerlevel < 13)) {
this.Bimpstatus._alpha = 30;
} else {
this.Bimpstatus._alpha = 100;
}
};
}
this.Bbomb0.onRelease = function () {
if (((_root.bombavilable == false) and (_root.power >= _root.bomb0req)) and (this.clicked != true)) {
_root.power = _root.power - _root.bomb0req;
_root.bombavilable = true;
_root.playerlevel++;
_root.Bbomb0clicked = true;
}
};
this.Bbomb1.onRelease = function () {
if (((_root.bombavilable == true) and (_root.power >= _root.bomb1req)) and (this.clicked != true)) {
_root.power = _root.power - _root.bomb1req;
_root.bombspeed = 120;
_root.playerlevel++;
_root.Bbomb1clicked = true;
}
};
this.Bbomb2.onRelease = function () {
if (((_root.bombavilable == true) and (_root.power >= _root.bomb2req)) and (this.clicked != true)) {
_root.power = _root.power - _root.bomb2req;
_root.superbomb = true;
_root.playerlevel++;
_root.Bbomb2clicked = true;
}
};
this.Banti0.onRelease = function () {
if (((_root.antiavilable == false) and (_root.power >= _root.anti0req)) and (this.clicked != true)) {
_root.power = _root.power - _root.anti0req;
_root.antiavilable = true;
_root.playerlevel++;
_root.Banti0clicked = true;
}
};
this.Banti1.onRelease = function () {
if (((_root.antiavilable == true) and (_root.power >= _root.anti1req)) and (this.clicked != true)) {
_root.power = _root.power - _root.anti1req;
_root.antispeed = 120;
_root.playerlevel++;
_root.Banti1clicked = true;
}
};
this.Banti2.onRelease = function () {
if (((_root.antiavilable == true) and (_root.power >= _root.anti2req)) and (this.clicked != true)) {
_root.power = _root.power - _root.anti2req;
_root.superanti = 96;
_root.playerlevel++;
_root.Banti2clicked = true;
}
};
this.Bhreco0.onRelease = function () {
if ((_root.power >= _root.hreco0req) and (this.clicked != true)) {
_root.power = _root.power - _root.hreco0req;
_root.heartrecoveryadd = 0.01;
_root.playerlevel++;
_root.Bhreco0clicked = true;
}
};
this.Bhreco1.onRelease = function () {
if (((_root.heartrecoveryadd == 0.01) and (_root.power >= _root.hreco1req)) and (this.clicked != true)) {
_root.power = _root.power - _root.hreco1req;
_root.heartrecoveryadd = 0.025;
_root.playerlevel++;
_root.Bhreco1clicked = true;
}
};
this.Bhshield0.onRelease = function () {
if ((_root.power >= _root.hshield0req) and (this.clicked != true)) {
_root.power = _root.power - _root.hshield0req;
_root.heartshieldadd = 120;
_root.playerlevel++;
_root.Bhshield0clicked = true;
}
};
this.Bhshield1.onRelease = function () {
if (((_root.heartshieldadd == 120) and (_root.power >= _root.hshield1req)) and (this.clicked != true)) {
_root.power = _root.power - _root.hshield1req;
_root.heartshieldadd = 240;
_root.playerlevel++;
_root.Bhshield1clicked = true;
}
};
this.Blifeup.onRelease = function () {
if ((_root.power >= _root.lifeupreq) and (this.clicked != true)) {
_root.power = _root.power - _root.lifeupreq;
_root.lifeMAX = 9;
_root.playerlevel++;
_root.Blifeupclicked = true;
}
};
this.Bantibody.onRelease = function () {
if ((_root.power >= _root.antibodyreq) and (this.clicked != true)) {
_root.power = _root.power - _root.antibodyreq;
_root.antibodyadd = 3;
_root.playerlevel++;
_root.Bantibodyclicked = true;
}
};
this.Bimpstatus.onRelease = function () {
if ((_root.power >= _root.impstatusreq) and (_root.playerlevel >= 13)) {
if (_root.heartshieldadd < 480) {
_root.heartshieldadd = _root.heartshieldadd + 1;
}
if (_root.superanti < 144) {
_root.superanti = _root.superanti + 0.5;
}
if (_root.bombspeed < 200) {
_root.bombspeed = _root.bombspeed + 0.5;
}
if (_root.antispeed < 200) {
_root.antispeed = _root.antispeed + 0.5;
}
_root.power = _root.power - _root.impstatusreq;
}
};
Symbol 304 MovieClip Frame 2
stop();
this.onEnterFrame = null;
Symbol 309 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 641
_root.gamepause = true;
Symbol 332 MovieClip Frame 730
stop();
_root.gamepause = false;
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 130
_root.gotoAndPlay("Over", "over");
_root.fx_gameover.removeMovieClip();
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 5
gotoAndPlay("p" + random(4));
Symbol 341 MovieClip Frame 50
gotoAndPlay("p" + random(4));
Symbol 341 MovieClip Frame 115
gotoAndPlay("p" + random(4));
Symbol 341 MovieClip Frame 190
gotoAndPlay("p" + random(4));
Symbol 341 MovieClip Frame 195
_root.clickpause = true;
Symbol 341 MovieClip Frame 203
_root.clickpause = false;
_root.clearOK(this);
Symbol 344 MovieClip Frame 5
gotoAndPlay("p" + random(4));
Symbol 344 MovieClip Frame 50
gotoAndPlay("p" + random(4));
Symbol 344 MovieClip Frame 115
gotoAndPlay("p" + random(4));
Symbol 344 MovieClip Frame 190
gotoAndPlay("p" + random(4));
Symbol 344 MovieClip Frame 195
_root.clickpause = true;
Symbol 344 MovieClip Frame 203
_root.clickpause = false;
_root.clearOK(this);
Symbol 345 MovieClip Frame 5
gotoAndPlay("p" + random(4));
Symbol 345 MovieClip Frame 50
gotoAndPlay("p" + random(4));
Symbol 345 MovieClip Frame 115
gotoAndPlay("p" + random(4));
Symbol 345 MovieClip Frame 190
gotoAndPlay("p" + random(4));
Symbol 345 MovieClip Frame 195
_root.clickpause = true;
Symbol 345 MovieClip Frame 203
_root.clickpause = false;
_root.clearOK(this);
Symbol 346 MovieClip Frame 5
gotoAndPlay("p" + random(4));
Symbol 346 MovieClip Frame 50
gotoAndPlay("p" + random(4));
Symbol 346 MovieClip Frame 115
gotoAndPlay("p" + random(4));
Symbol 346 MovieClip Frame 190
gotoAndPlay("p" + random(4));
Symbol 346 MovieClip Frame 195
_root.clickpause = true;
Symbol 346 MovieClip Frame 205
_root.clickpause = false;
_root.clearOK(this);
Symbol 347 MovieClip Frame 5
gotoAndPlay("p" + random(4));
Symbol 347 MovieClip Frame 50
gotoAndPlay("p" + random(4));
Symbol 347 MovieClip Frame 115
gotoAndPlay("p" + random(4));
Symbol 347 MovieClip Frame 190
gotoAndPlay("p" + random(4));
Symbol 347 MovieClip Frame 195
_root.clickpause = true;
Symbol 347 MovieClip Frame 205
_root.clickpause = false;
_root.clearOK(this);
Symbol 350 MovieClip Frame 5
gotoAndPlay("p" + random(4));
Symbol 350 MovieClip Frame 50
gotoAndPlay("p" + random(4));
Symbol 350 MovieClip Frame 115
gotoAndPlay("p" + random(4));
Symbol 350 MovieClip Frame 190
gotoAndPlay("p" + random(4));
Symbol 350 MovieClip Frame 195
_root.clickpause = true;
Symbol 350 MovieClip Frame 205
_root.clickpause = false;
_root.clearOK(this);
Symbol 352 MovieClip Frame 10
stop();
Symbol 352 MovieClip Frame 15
_root.clickpause = true;
Symbol 352 MovieClip Frame 25
_root.clickpause = false;
_root.clearOK(this);
Symbol 355 MovieClip Frame 10
stop();
Symbol 355 MovieClip Frame 15
_root.clickpause = true;
_root.fx_clear.start(0, 1);
Symbol 355 MovieClip Frame 25
_root.clickpause = false;
_root.clearOK(this);
Symbol 356 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 150
gotoAndPlay (1);
Symbol 364 MovieClip Frame 1
this.fixed = false;
stop();
Symbol 364 MovieClip Frame 9
gotoAndStop (1);
Symbol 364 MovieClip Frame 10
this.fixed = true;
Symbol 364 MovieClip Frame 11
this.fixed = true;
Symbol 371 Button
on (release, keyPress "<Enter>") {
_root.Poster.name = newName;
_root.Poster.score = _root.score;
_root.play();
}
Symbol 378 Button
on (release) {
tellTarget (_root) {
page = page - 10;
if (page < 0) {
page = 0;
}
loadScores();
ScoreText.Next._visible = true;
};
if (_root.page < 5) {
_visible = false;
}
}
Symbol 381 Button
on (release) {
tellTarget (_root) {
page = page + 10;
if (page > maxScores) {
page = maxScores;
}
loadScores();
ScoreText.Last._visible = true;
};
if (_root.page > (_root.maxScores - 20)) {
_visible = false;
}
}
Symbol 383 MovieClip Frame 1
stop();
Instance of Symbol 379 MovieClip "Last" in Symbol 383 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 386 Button
on (release) {
_root.so = SharedObject.getLocal("se");
gotoAndStop (324);
}