Frame 1
function playSnd(sndStr, loop) {
sndStr = createSound(sndStr, sndStr, 100, loop);
}
_root.mccreatc = 0;
var myGame = this;
var createSound = function (mcName, sndName, sndVolume, loop) {
var _local3 = myGame.createEmptyMovieClip(mcName, (myGame.getNextHighestDepth() + 50000) + _root.mccreatc);
_root.mccreatc++;
var _local2 = new Sound(_local3);
_local2.setVolume(sndVolume);
_local2.attachSound(sndName);
_local2.start(0, loop);
};
Frame 2
gamename = "shootingufo";
furl = "www.gamesonly.com.cn";
onEnterFrame = function () {
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
loadper = Math.round((loadsize / totalsize) * 100) + "%";
if (((loadsize >= 1) && (totalsize >= 1)) && (loadsize == totalsize)) {
load_Mc.nextFrame();
delete onEnterFrame;
}
};
stop();
Frame 3
function updateScore() {
if (scoreFlag) {
switch (removedSum) {
case 5 :
score = score + (80 - (score$ * 5));
break;
case 6 :
score = score + (160 - (score$ * 6));
break;
case 7 :
score = score + (320 - (score$ * 7));
break;
case 8 :
score = score + ((80 * removedSum) - (score$ * removedSum));
}
scoreFlag = false;
}
}
var initialDepressTime = 8000;
var depressTimeVss = 360;
var score$ = 80;
var chargingSp = 300;
var scoreFlag = true;
var matrix_orixxxx = Array();
var matrixx = Array(4);
function reset_sBrickArr(level_num) {
sBrickArr = [];
var _local2 = 0;
while (_local2 <= 9) {
sBrickArr.push(_root[(("l" + level_num) + "_") + _local2]);
_local2++;
}
}
this._lockroot = true;
var \u7EA2 = "red_mc";
var \u9EC4 = "yellow_mc";
var \u7EFF = "green_mc";
var \u84DD = "bule_mc";
var \u70B8 = "bomb_mc";
var \u95EA = "Lightning_mc";
var \u56FA = "stone_mc";
var sBrickArr;
l1_0 = [\u84DD, \u9EC4, \u84DD, \u7EFF, \u84DD, \u84DD, \u7EA2, \u9EC4, \u84DD, \u7EFF];
l1_1 = [\u7EA2, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u7EFF, \u7EA2, \u7EFF, \u84DD, \u84DD];
l1_2 = [\u9EC4, \u9EC4, \u9EC4, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u9EC4, \u7EA2, \u9EC4];
l1_3 = [\u7EFF, \u84DD, \u7EA2, \u84DD, \u7EFF, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u7EFF];
l1_4 = [\u7EFF, \u84DD, \u7EA2, \u9EC4, \u7EA2, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u84DD];
l1_0 = [\u7EA2, \u7EA2, \u70B8, \u7EA2, \u9EC4, \u7EFF, \u7EA2, \u7EFF, \u84DD, \u84DD];
l1_1 = [\u84DD, \u9EC4, \u84DD, \u7EFF, \u84DD, \u84DD, \u7EA2, \u9EC4, \u84DD, \u7EFF];
l1_2 = [\u9EC4, \u9EC4, \u9EC4, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u95EA, \u7EA2, \u9EC4];
l1_3 = [\u7EFF, \u84DD, \u7EA2, \u9EC4, \u7EA2, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u84DD];
l1_4 = [\u7EFF, \u84DD, \u7EA2, \u84DD, \u7EFF, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u7EFF];
l1_0 = [\u84DD, \u9EC4, \u84DD, \u7EFF, \u84DD, \u84DD, \u7EA2, \u9EC4, \u84DD, \u7EFF];
l1_1 = [\u9EC4, \u9EC4, \u9EC4, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u95EA, \u7EA2, \u9EC4];
l1_2 = [\u7EA2, \u7EA2, \u70B8, \u7EA2, \u9EC4, \u7EFF, \u7EA2, \u7EFF, \u84DD, \u84DD];
l1_3 = [\u7EFF, \u84DD, \u7EA2, \u84DD, \u7EFF, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u7EFF];
l1_4 = [\u7EFF, \u84DD, \u7EA2, \u9EC4, \u7EA2, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u84DD];
l1_0 = [\u84DD, \u9EC4, \u84DD, \u7EFF, \u84DD, \u84DD, \u7EA2, \u9EC4, \u84DD, \u7EFF];
l1_1 = [\u7EA2, \u7EA2, \u70B8, \u7EA2, \u9EC4, \u7EFF, \u7EA2, \u7EFF, \u84DD, \u84DD];
l1_2 = [\u9EC4, \u9EC4, \u9EC4, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u95EA, \u7EA2, \u9EC4];
l1_3 = [\u7EFF, \u84DD, \u7EA2, \u84DD, \u7EFF, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u7EFF];
l1_4 = [\u7EFF, \u84DD, \u7EA2, \u9EC4, \u7EA2, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u84DD];
l1_0 = [\u84DD, \u9EC4, \u84DD, \u7EFF, \u84DD, \u84DD, \u7EA2, \u9EC4, \u84DD, \u7EFF];
l1_1 = [\u7EA2, \u7EA2, \u70B8, \u7EA2, \u9EC4, \u7EFF, \u7EA2, \u7EFF, \u84DD, \u84DD];
l1_2 = [\u9EC4, \u9EC4, \u9EC4, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u95EA, \u7EA2, \u9EC4];
l1_3 = [\u7EFF, \u84DD, \u7EA2, \u84DD, \u7EFF, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u7EFF];
l1_4 = [\u7EFF, \u84DD, \u7EA2, \u9EC4, \u7EA2, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u84DD];
l1_0 = [\u84DD, \u9EC4, \u84DD, \u7EFF, \u84DD, \u84DD, \u7EA2, \u9EC4, \u84DD, \u7EFF];
l1_1 = [\u7EA2, \u7EA2, \u70B8, \u7EA2, \u9EC4, \u7EFF, \u7EA2, \u7EFF, \u84DD, \u84DD];
l1_2 = [\u9EC4, \u9EC4, \u9EC4, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u95EA, \u7EA2, \u9EC4];
l1_3 = [\u7EFF, \u84DD, \u7EA2, \u84DD, \u7EFF, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u7EFF];
l1_4 = [\u7EFF, \u84DD, \u7EA2, \u9EC4, \u7EA2, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u84DD];
_root.createEmptyMovieClip("l_mc", _root.getNextHighestDepth());
l_mc.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndStop("main");
delete this.onEnterFrame;
} else {
var _local3 = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loading_txt.text = ("Now loading..." + _local3) + "%";
_root.stop();
}
};
music.setVolume(0);
Mouse.show();
cursor_mc._visible = false;
clearInterval(dp);
clearInterval(dp2);
var dp;
var dp2;
Frame 8
Mouse.show();
cursor_mc._visible = false;
clearInterval(dp);
clearInterval(dp2);
var music = new Sound(_root);
var m_v = 50;
ppp = 0;
playSnd("intro", 999);
Instance of Symbol 170 MovieClip in Frame 8
on (release) {
getURL (("http://" + _root.furl) + "/highscore.php", _blank);
}
Instance of Symbol 172 MovieClip in Frame 8
on (release) {
getURL ("http://" + _root.furl, _blank);
}
Frame 13
Mouse.show();
cursor_mc._visible = false;
clearInterval(dp);
clearInterval(dp2);
Frame 18
function lightOn(mc) {
mc.filters = new Array(filter);
}
function lightOff(mc) {
mc.filters = new Array(filter_ori);
}
function reset_sBrickArr(level_num) {
sBrickArr = [];
var _local2 = 0;
while (_local2 <= 9) {
sBrickArr.push(_root[(("l" + level_num) + "_") + _local2]);
_local2++;
}
}
function setWave(bb) {
waveBoolean = bb;
(waveBoolean ? ((wave_mc._visible = true)) : ((wave_mc._visible = false)));
}
function addStartBrickS(l_num) {
reset_sBrickArr(l_num);
addForWave_mc();
myArr = [];
var _local2 = 0;
while (_local2 < 18) {
myArr.push([]);
var _local3 = 0;
while (_local3 < 10) {
var _local1 = game_mc.attachMovie(sBrickArr[_local2][_local3], "b_" + (n++), game_mc.getNextHighestDepth());
_local1.stop();
_local1._x = _local3 * b_wid;
_local1._y = _local2 * b_hei;
_local1.grab = false;
_local1.color = sBrickArr[_local2][_local3].split("_")[0];
_local1.hang = _local2;
_local1.lie = _local3;
(_local1 ? (myArr[_local2].push(_local1)) : (myArr[_local2].push(undefined)));
_local3++;
}
_local2++;
}
}
function addForWave_mc() {
var _local1 = 0;
while (_local1 < sBrickArr[0].length) {
var _local2 = wave_mc.attachMovie(sBrickArr[0][_local1], "wave_" + (m++), wave_mc.getNextHighestDepth());
_local2._x = _local1 * b_wid;
_local2.stop();
_local1++;
}
}
function getFrogLie() {
return(int((Froganimation_mc._x - game_x) / b_wid));
}
function sumOfLie(lie) {
var _local2 = 0;
var _local1 = 0;
while (_local1 < myArr.length) {
if (myArr[_local1][lie] != undefined) {
_local2++;
} else {
return(_local2);
}
_local1++;
}
}
function canMove(lie) {
var _local1 = sumOfLie(lie);
if ((_local1 + grab_Arr.length) < 16) {
return(true);
}
return(false);
}
function Left() {
if ((Key.getCode() == 37) && (Froganimation_mc._x > game_x)) {
if (canMove(getFrogLie() - 1)) {
oldLie = getFrogLie();
lightOffOri();
Froganimation_mc._x = Froganimation_mc._x - b_wid;
if (!shooting) {
move_grab();
}
sameColorArr = getSameColorArr(getFrogLie());
light_same(getFrogLie());
flag_l = true;
}
}
}
function Right() {
if (canMove(getFrogLie() + 1)) {
oldLie = getFrogLie();
lightOffOri();
Froganimation_mc._x = Froganimation_mc._x + b_wid;
if (!shooting) {
move_grab();
}
sameColorArr = getSameColorArr(getFrogLie());
light_same(getFrogLie());
flag_r = true;
}
}
function traceflag() {
trace(b_loaded);
trace(flag_u);
trace(Froganimation_mc.flash_mc._currentframe);
trace(suckUping);
}
function playFlash() {
((Froganimation_mc.flash_mc._currentframe == 2) || (Froganimation_mc.flash_mc._currentframe == 14)) && (Froganimation_mc.flash_mc.play());
}
function getSameColorArr(lie) {
var _local4 = [];
var _local3;
var _local1 = myArr.length - 1;
while (_local1 >= 0) {
if (myArr[_local1][lie] != undefined) {
_local3 = myArr[_local1][lie].color;
break;
}
_local1--;
}
_local1 = myArr.length - 1;
while (_local1 >= 0) {
if ((myArr[_local1][lie].color == _local3) && (myArr[_local1][lie] != undefined)) {
_local4.push(myArr[_local1][lie]);
} else if (myArr[_local1][lie] != undefined) {
break;
}
_local1--;
}
return(_local4);
}
function light_same(lie) {
sameColorArr = getSameColorArr(lie);
if ((sameColorArr[0].color == grab_Arr[0].color) || (grab_Arr.length == 0)) {
var _local1 = 0;
while (_local1 < sameColorArr.length) {
sameColorArr[_local1]._mc.gotoAndStop(2);
_local1++;
}
}
}
function lightOffOri() {
sameColorArrOld = getSameColorArr(oldLie);
var _local1 = 0;
while (_local1 < sameColorArrOld.length) {
sameColorArr[_local1]._mc.gotoAndStop(1);
_local1++;
}
}
function getLastHang(lie) {
var _local1 = 0;
while (_local1 < myArr.length) {
if (myArr[_local1][lie] == undefined) {
return(_local1 - 1);
}
_local1++;
}
return(0);
}
function fall() {
var lastHang = getLastHang(getFrogLie());
if (lastHang >= 0) {
isFalling = true;
var allnum = sameColorArr.length;
var sndPlayed = false;
var _local3 = 0;
while (_local3 < sameColorArr.length) {
myArr[getBrickHang(sameColorArr[_local3])][getBrickLie(sameColorArr[_local3])] = undefined;
grab_Arr.push(sameColorArr[_local3]);
sameColorArr[_local3].sp = 20;
sameColorArr[_local3].grab = true;
sameColorArr[_local3].onEnterFrame = function () {
if (Math.abs(((_root.Froganimation_mc._y - (((lastHang - this.hang) + grab_num) * b_hei)) - b_hei) - this._y) >= this.sp) {
this._y = this._y + ((this.sp = this.sp + 20));
} else {
this._y = (_root.Froganimation_mc._y - (((lastHang - this.hang) + grab_num) * b_hei)) - b_hei;
this.g_y = this._y;
(!sndPlayed) & [playSnd("hitFrog"), (sndPlayed = true)];
if (this.sp > 5) {
_root.Froganimation_mc.ori_hei = _root.Froganimation_mc._height;
if (this.color == "Lightning") {
_root.Froganimation_mc.flash_mc.gotoAndStop("flash");
}
if (this.color == "bomb") {
_root.Froganimation_mc.flash_mc.gotoAndStop("bomb");
}
var did = false;
_root.Froganimation_mc.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < grab_Arr.length) {
grab_Arr[_local2]._y = grab_Arr[_local2].g_y + (71.1 - this.f._height);
grab_Arr[_local2]._mc.gotoAndStop(1);
_local2++;
}
((this._currentframe == 1) && (did)) && ([delete this.onEnterFrame, (isFalling = false)]);
did = true;
};
}
allnum--;
if (allnum == 0) {
grab_num = grab_Arr.length;
this.sp = 5;
Froganimation_mc.play();
}
delete this.onEnterFrame;
}
};
_local3++;
}
}
}
function move_grab() {
var _local1 = 0;
while (_local1 < grab_Arr.length) {
grab_Arr[_local1]._x = Froganimation_mc._x - game_x;
_local1++;
}
}
function playSnd(sndStr, loop) {
var _local2 = new Sound(game_mc);
_local2.attachSound(sndStr);
_local2.setVolume(_root.fxVolume);
_local2.start();
}
function getLowestHang() {
var _local1 = 0;
while (_local1 < 18) {
if (myArr[_local1][getFrogLie()] == undefined) {
return(_local1);
}
_local1++;
}
return(null);
}
function shoot() {
var goY = (getLowestHang() * b_hei);
var allN = grab_Arr.length;
var allN2 = allN;
(allN > 0) && ([(shooting = true), playSnd("shoot")]);
var _local5 = 0;
while (_local5 < grab_Arr.length) {
grab_Arr[_local5].usp = 10;
grab_Arr[_local5].id = _local5;
grab_Arr[_local5].onEnterFrame = function () {
if ((this._y - ((goY + ((grab_Arr.length + 1) * b_hei)) - (this.id * b_hei))) > this.usp) {
this._y = this._y - this.usp;
this.usp = this.usp + 20;
} else {
this._y = (goY - (this.id * b_hei)) + ((grab_Arr.length - 1) * b_hei);
this.hang = Math.floor(this._y / b_hei);
this.lie = Math.floor(this._x / b_wid);
myArr[this.hang][this.lie] = this;
this._mc.gotoAndStop(1);
allN--;
if ((this.color == "Lightning") && (!hasflash)) {
_root.flash2_mc._y = this._y + (b_hei / 2);
_root.flash2_mc.removeHang = this.hang;
_root.flash2_mc.play();
playSnd("Thunderbolt");
hasflash = true;
}
if ((this.color == "bomb") && (!hasflash)) {
_root.bombFire_mc._y = this._y + (b_hei / 2);
_root.bombFire_mc._x = this._x + game_x;
_root.bombFire_mc.hh = this.hang;
_root.bombFire_mc.ll = this.lie;
_root.bombFire_mc.play();
playSnd("explode3");
hasflash = true;
}
delete this.onEnterFrame;
if (allN == 0) {
var _local4 = 0;
while (_local4 < sameColorArr.length) {
sameColorArr[_local4]._mc.gotoAndStop(1);
_local4++;
}
var _local3 = 0;
while (_local3 < myArr.length) {
if (myArr[_local3][this.lie] != undefined) {
myArr[_local3][this.lie].oriy = myArr[_local3][this.lie]._y;
myArr[_local3][this.lie].tsp = -6;
myArr[_local3][this.lie].onEnterFrame = function () {
this._y = this._y + ((this.tsp = this.tsp + 3));
if (this.tsp >= 6) {
this._y = this.oriy;
shooting = false;
this.grab = false;
allN2--;
if (allN2 == 0) {
matchFour();
}
delete this.onEnterFrame;
}
};
} else {
break;
}
_local3++;
}
grab_Arr = [];
grab_num = 0;
playSnd("blockhit");
}
}
};
_local5++;
}
}
function removeWithFlash(hang) {
var _local2 = 0;
while (_local2 < 10) {
myArr[hang][_local2] && (_root.removedSum++);
myArr[hang][_local2].play();
_local2++;
}
playing = true;
}
function removeWithBomb(hh, ll) {
myArr[hh - 1][ll - 1].play();
myArr[hh - 1][ll - 1] && (_root.removedSum++);
myArr[hh - 1][ll].play();
myArr[hh - 1][ll] && (_root.removedSum++);
myArr[hh - 1][ll + 1].play();
myArr[hh - 1][ll + 1] && (_root.removedSum++);
myArr[hh][ll - 1].play();
myArr[hh][ll - 1] && (_root.removedSum++);
myArr[hh][ll].play();
myArr[hh][ll] && (_root.removedSum++);
myArr[hh][ll + 1].play();
myArr[hh][ll + 1] && (_root.removedSum++);
myArr[hh + 1][ll - 1].play();
myArr[hh + 1][ll - 1] && (_root.removedSum++);
myArr[hh + 1][ll].play();
myArr[hh + 1][ll] && (_root.removedSum++);
myArr[hh + 1][ll + 1].play();
myArr[hh + 1][ll + 1] && (_root.removedSum++);
}
function removeWithWeapon() {
var _local4 = getLowestHang() - 1;
var _local3 = getFrogLie();
bloodYX = [(_local4 * b_hei) + (b_hei * 0.5), (_local3 * b_wid) + game_x];
var _local2 = 0;
while (_local2 < 3) {
myArr[_local4][(_local3 - 1) + _local2] && (_root.removedSum++);
myArr[_local4][(_local3 - 1) + _local2].play();
_local2++;
}
playing = true;
}
function addBrickPrepare() {
var _local4 = [];
var _local2 = 0;
while (_local2 < 10) {
var _local7 = myArr[0][_local2].color + "_mc";
var _local8 = _local4[_local2 - 1].color + "_mc";
var _local5 = _local4[_local2 - 2].color + "_mc";
var _local6 = _local4[_local2 - 3].color + "_mc";
var _local3 = getDifferentLinkId(_local7, _local8, _local5, _local6);
var _local1 = game_mc.attachMovie(_local3, _local3 + (n++), game_mc.getNextHighestDepth());
_local1._x = _local2 * b_wid;
_local1._y = -b_hei;
_local1.color = _local3.split("_")[0];
_local1.hang = undefined;
_local1.lie = i;
_local1.stop();
_local4.push(_local1);
_local2++;
}
}
function getDifferentLinkId(str, str2, str3, str4) {
var _local1 = 0;
var _local2;
if (random(8) == 0) {
_local2 = brickArr.length;
} else {
_local2 = brickArr.length - 2;
}
do {
_local1 = _local1 + random(_local2);
(_local1 >= _local2) && ([_local1 = 0]);
} while ((brickArr[_local1] == str) || (((brickArr[_local1] == str2) && (str3 == brickArr[_local1])) && (str4 == brickArr[_local1])));
return(brickArr[_local1]);
}
function depress() {
addBrickPrepare();
for (var _local2 in game_mc) {
if ((typeof(game_mc[_local2]) == "movieclip") && (game_mc[_local2]._name != "txt")) {
var _local1 = game_mc[_local2];
if (!_local1.grab) {
_local1._y = _local1._y + b_hei;
_local1.hang = Math.floor(_local1._y / b_hei);
_local1.lie = Math.floor(_local1._x / b_wid);
if ((!gameOver) && ((_local1.hang > 15) || ((_local1.lie == getFrogLie()) && ((grab_Arr.length + _local1.hang) > 14)))) {
gameOver_mc.play();
gameOver = true;
}
myArr[_local1.hang][_local1.lie] = _local1;
}
}
}
de = false;
}
function setTimerDepress() {
clearInterval(dp);
dp = setInterval(function () {
if ((getLow() >= 3) && (!help)) {
depressNum++;
}
}, depressTime);
}
function getLow() {
var _local3;
var _local2 = 0;
while (_local2 < myArr.length) {
_local3 = false;
var _local1 = 0;
while (_local1 < 10) {
if (myArr[_local2][_local1]) {
_local3 = true;
break;
}
_local1++;
}
if (!_local3) {
return(_local2);
}
_local2++;
}
}
function selectColor(Arr) {
var _local4 = 0;
while (_local4 < myObjArr.length) {
var _local2 = 0;
while (_local2 < myObjArr.length) {
myObj[myObjArr[_local2]] = [];
_local2++;
}
_local2 = 0;
while (_local2 < Arr.length) {
var _local1 = 0;
while (_local1 < Arr[_local2].length) {
myObj[Arr[_local2][_local1].color].push([Arr[_local2][_local1]]);
_local1++;
}
_local2++;
}
_local4++;
}
}
function groupColor() {
var _local1 = 0;
while (_local1 < myObjArr.length) {
var _local3 = 0;
while (_local3 < myObj[myObjArr[_local1]].length) {
var _local2 = 0;
while (_local2 < myObj[myObjArr[_local1]].length) {
if (_local3 != _local2) {
if (same(myObj[myObjArr[_local1]][_local3], myObj[myObjArr[_local1]][_local2])) {
myObj[myObjArr[_local1]][_local3] = myObj[myObjArr[_local1]][_local3].concat(myObj[myObjArr[_local1]][_local2]);
myObj[myObjArr[_local1]].splice(_local2, 1);
_local3 = _local3 - 1;
break;
}
}
_local2++;
}
_local3++;
}
_local1++;
}
}
function same(arr1, arr2) {
var _local2 = 0;
while (_local2 < arr1.length) {
var _local1 = 0;
while (_local1 < arr2.length) {
if (((Math.abs(arr1[_local2].hang - arr2[_local1].hang) == 1) && (arr1[_local2].lie == arr2[_local1].lie)) || ((Math.abs(arr1[_local2].lie - arr2[_local1].lie) == 1) && (arr1[_local2].hang == arr2[_local1].hang))) {
return(true);
}
_local1++;
}
_local2++;
}
return(false);
}
function matchFour() {
selectColor(myArr);
groupColor();
if (removeBrick()) {
return(true);
}
return(false);
}
function removeBrick() {
var _local4 = false;
removedSum = 0;
var _local3 = 0;
while (_local3 < myObjArr.length) {
var _local1 = 0;
while (_local1 < myObj[myObjArr[_local3]].length) {
if (myObj[myObjArr[_local3]][_local1].length >= 4) {
var _local2 = 0;
while (_local2 < myObj[myObjArr[_local3]][_local1].length) {
removedSum++;
(removedSum == 1) && (playSnd("ex"));
playing = true;
myObj[myObjArr[_local3]][_local1][_local2].play();
_local4 = true;
_local2++;
}
}
_local1++;
}
_local3++;
}
return(_local4);
}
function setMerter() {
meterNum = meterNum + random(meterNumSp);
_root.meter_mc.onEnterFrame = function () {
if (this._currentframe < _root.meterNum) {
this.nextFrame();
} else {
delete this.onEnterFrame;
}
};
}
function suckUp() {
suckUpArr = [];
var _local2 = 0;
while (_local2 < 10) {
ok = false;
undefinedSum = 0;
var _local4 = 0;
while (_local4 < myArr.length) {
var _local3 = myArr[_local4][_local2];
if ((!ok) && (_local3 == undefined)) {
ok = true;
}
if ((_local3 == undefined) && (ok)) {
undefinedSum++;
} else if (ok) {
suckUpArr.push(_local3);
_local3.undefinedSum = undefinedSum;
_local3.gogoY = _local3._y - (undefinedSum * b_hei);
_local3.spY = 5;
}
_local4++;
}
_local2++;
}
upNum = suckUpArr.length;
(upNum > 0) && ([(suckUping = true)]);
if (upNum > 0) {
var _local4 = 0;
while (_local4 < suckUpArr.length) {
var _local3 = suckUpArr[_local4];
myArr[_local3.hang][_local3.lie] = undefined;
_local3.onEnterFrame = function () {
if ((this._y - this.gogoY) > this.spY) {
this._y = this._y - this.spY;
this.spY = this.spY + 100;
} else {
this._y = this.gogoY;
this.hang = Math.floor(this._y / b_hei);
this.lie = Math.floor(this._x / b_wid);
myArr[this.hang][this.lie] = this;
upNum--;
if (upNum == 0) {
suckUpArr = [];
playSnd("blockhit");
var s = setInterval(function () {
suckUping = matchFour();
suckUping && (comboNum++);
clearInterval(s);
}, 300);
}
delete this.onEnterFrame;
}
};
_local4++;
}
}
__cccc.gotoAndPlay(2);
}
function playCombo() {
playSnd("combo" + comboNum);
if (comboNum > 0) {
_root.combo_mc.gotoAndPlay("c" + comboNum);
_root.combo_mc._visible = 1;
}
comboNum = 0;
}
function getBrickHang(brick_mc) {
return(Math.floor(brick_mc._y / b_hei));
}
function getBrickLie(brick_mc) {
return(Math.floor(brick_mc._x / b_wid));
}
function mmm() {
_root.cursor_mc._y = _ymouse;
_root.cursor_mc._x = _xmouse;
updateAfterEvent();
}
function checkGameOver() {
}
function addBlood(x, y) {
var _local5 = 0;
while (_local5 < 10) {
var _local3 = _root.attachMovie("blood_mc", "blood_mc" + (_root.n++), _root.getNextHighestDepth());
_local3._x = x;
_local3._y = y;
_local3.ori_y = y;
_local3._gox = (random(300) - 150) + x;
_local3._goy = -random(8);
_local3.goTime = random(5);
_local3._xscale = (_local3._yscale = random(50) + 50);
_local3.onEnterFrame = function () {
if (((((this._y - this.ori_y) < (random(300) + 150)) && (this._y < Stage.height)) && (this._x > 0)) && (this._x < Stage.width)) {
var _local3 = _root.attachMovie("blood_mc", "dddd" + (_root.n++), _root.getNextHighestDepth());
_local3._x = this._x;
_local3._y = this._y;
this.goTime--;
if (this.goTime <= 0) {
this._y = this._y + ((this._goy = this._goy + 1));
this._x = this._x + ((this._gox - this._x) / 15);
}
} else {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
_local5++;
}
}
function clearGame_mc() {
for (var _local4 in grab_Arr) {
grab_Arr[_local4].removeMovieClip();
}
grab_Arr = [];
grab_num = 0;
var hhh = (myArr.length - 1);
re = setInterval(function () {
var _local3 = 0;
while (_local3 < 10) {
var _local2 = myArr[hhh][_local3];
myArr[_local2.hang][_local2.lie] = undefined;
_local2.removeMovieClip();
_local3++;
}
hhh--;
if (hhh == -1) {
var addnum = 5;
Add = setInterval(function () {
depress();
addnum--;
if (addnum == 0) {
gameOver = false;
levelUp = false;
meter_mc.gotoAndStop(1);
depressNum = 0;
_root.charging_mc.gotoAndStop(1);
useWeapon = (weaponReady = false);
_root.Froganimation_mc.flash_mc.gotoAndStop(1);
clearInterval(Add);
}
}, 40);
clearInterval(re);
}
}, 30);
}
var matrix = new Array();
var matrix_ori = new Array();
var brightNum = 1.2;
hasflash = false;
matrix = matrix.concat([brightNum, 0, 0, 0, 0]);
matrix = matrix.concat([0, brightNum, 0, 0, 0]);
matrix = matrix.concat([0, 0, brightNum, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
matrix_ori = matrix_ori.concat([1, 0, 0, 0, 0]);
matrix_ori = matrix_ori.concat([0, 1, 0, 0, 0]);
matrix_ori = matrix_ori.concat([0, 0, 1, 0, 0]);
matrix_ori = matrix_ori.concat([0, 0, 0, 1, 0]);
var filter = (new flash.filters.ColorMatrixFilter(matrix));
var filter_ori = (new flash.filters.ColorMatrixFilter(matrix_ori));
var b_loaded = true;
var \u7EA2 = "red_mc";
var \u9EC4 = "yellow_mc";
var \u7EFF = "green_mc";
var \u84DD = "bule_mc";
var \u70B8 = "bomb_mc";
var \u95EA = "Lightning_mc";
var \u56FA = "stone_mc";
var sBrickArr;
l1_0 = [\u84DD, \u9EC4, \u84DD, \u7EFF, \u84DD, \u84DD, \u7EA2, \u9EC4, \u84DD, \u7EFF];
l1_1 = [\u7EA2, \u7EA2, \u70B8, \u7EA2, \u9EC4, \u7EFF, \u7EA2, \u7EFF, \u84DD, \u84DD];
l1_2 = [\u9EC4, \u9EC4, \u9EC4, \u7EA2, \u7EFF, \u7EA2, \u9EC4, \u95EA, \u7EA2, \u9EC4];
l1_3 = [\u7EFF, \u84DD, \u7EA2, \u84DD, \u7EFF, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u7EFF];
l1_4 = [\u7EFF, \u84DD, \u7EA2, \u9EC4, \u7EA2, \u9EC4, \u7EA2, \u7EFF, \u9EC4, \u84DD];
var meterNumSp = 2;
var meterNum = 0;
var score = 0;
var depressTime = initialDepressTime;
var b_wid = 46;
var b_hei = 27;
var game_x = ((game_mc._x = net_mc._x + (b_wid / 2)));
var geme_y = ((game_mc._y = net_mc._y + (b_hei / 2)));
var waveBoolean = false;
wave_mc._x = game_mc._x;
wave_mc._y = game_mc._y + 3;
setWave(false);
wave_mc.ori_x = wave_mc._x;
var limitHang = 18;
var hang = 4;
var lie = 9;
var myArr = [];
var n = 0;
net_mc._visible = 0;
m = 0;
addStartBrickS(1);
Froganimation_mc._x = (b_wid * 5) + game_x;
Froganimation_mc._y = 418.5;
var myListener = new Object();
var flag_d = false;
var flag_u = false;
var flag_l = false;
var flag_r = false;
Key.removeListener(myListener);
if (hasListener == undefined) {
Key.addListener(myListener);
hasListener = true;
}
help = false;
myListener.onKeyUp = function () {
if ((Key.getCode() == 38) || (Key.getCode() == 32)) {
flag_u = false;
}
if (Key.getCode() == 40) {
flag_d = false;
}
if (Key.getCode() == 37) {
flag_l = false;
}
if (Key.getCode() == 39) {
flag_r = false;
}
};
var flag_d_mouse = false;
var ttt;
onMouseUp = function () {
flag_d = false;
flag_d_mouse = false;
};
onMouseDown = function () {
okLie = getFrogLie();
};
var j = 0;
while (j < 10) {
_root["r_" + j].useHandCursor = false;
_root["r_" + j]._alpha = 0;
j++;
}
myListener.onKeyDown = function () {
if (((!help) && (!gameOver)) && (!levelUp)) {
if ((Key.getCode() == 37) && (Froganimation_mc._x > game_x)) {
Left();
} else if ((Key.getCode() == 39) && (Froganimation_mc._x < (game_x + (b_wid * 9)))) {
Right();
}
}
if ((weaponReady && (Key.getCode() == 17)) && (!gameOver)) {
useWeapon = true;
weaponReady = false;
_root.Froganimation_mc.flash_mc.gotoAndStop("weapon");
_root.charging_mc.txt_mc.gotoAndStop("num");
_root.charging_mc.txt_mc.txt.text = "ENERGY:" + bulletNum;
playSnd("v_weaponupgrade");
_root.bulletNum = 5;
}
};
_root.onEnterFrame = function () {
if (((!help) && (!gameOver)) && (!levelUp)) {
if (((Key.isDown(40) && (!Key.isDown(37))) && (!Key.isDown(37))) || (((okLie == getFrogLie()) && (Key.isDown(1))) && (_xmouse >= (game_x - (b_wid / 2))))) {
if (!useWeapon) {
if ((((!flag_d) && (!suckUping)) && (!playing)) && (!de)) {
sameColorArr = getSameColorArr(getFrogLie());
if (sameColorArr.length > 0) {
var _local2 = grab_Arr.length + sameColorArr.length;
if (_local2 > 6) {
sameColorArr.splice(6 - grab_Arr.length, _local2 - (6 - grab_Arr.length));
}
if ((grab_Arr.length >= 6) && (!flag_d)) {
flag_d = true;
playSnd("wpn_denyselect");
}
if ((((((!hasflash) && (!shooting)) && (_root.isFalling == false)) && ((grab_Arr.length == 0) || (grab_Arr[0].color == sameColorArr[0].color))) && ((grab_Arr[0].color != "flash") && (grab_Arr[0].color != "bomb"))) && (grab_Arr.length <= 6)) {
playSnd("suck");
grab_Arr.concat(sameColorArr);
fall();
}
}
}
}
} else if (Key.isDown(38) || (Key.isDown(32))) {
if (!useWeapon) {
if (((((!flag_u) && (!suckUping)) && (!playing)) && (!de)) && (!hasflash)) {
if ((!isFalling) && (!shooting)) {
shoot();
playFlash();
}
}
} else {
if (_root.bulletNum > 0) {
}
if (((b_loaded && (!flag_u)) && (Froganimation_mc.flash_mc._currentframe == 24)) && (!suckUping)) {
Froganimation_mc.flash_mc.gotoAndPlay("weapon");
}
}
}
}
cc.sp();
};
var sameColorArr = [];
var sameColorArrOld = [];
var oldLie;
var grab_Arr = [];
light_same(getFrogLie());
var grab_num = 0;
var isFalling = false;
var fxVolume = 200;
shooting = false;
var bloodYX = [];
var brickArr = [\u7EA2, \u9EC4, \u7EFF, \u84DD, \u95EA, \u70B8];
de = false;
gameOver = false;
var depressNum = 0;
setTimerDepress();
dp2 = setInterval(function () {
if ((((!levelUp) && (!gameOver)) && ((depressNum > 0) || (getLow() < 3))) && (!hasflash)) {
if (((((!shooting) && (!isFalling)) && (!suckUping)) && (!hasflash)) && (!playing)) {
de = true;
depress();
depressNum--;
}
}
}, 100);
var myObj = {red:(Array = []), yellow:(Array = []), green:(Array = []), bule:(Array = [])};
var myObjArr = ["red", "yellow", "green", "bule", "bomb"];
red = (yellow = (green = (bule = false)));
playing = false;
var levelUp = false;
var WeaponControl = false;
var removedSum = 0;
var undefinedSum = 0;
var suckUpArr = [];
var suckUping = false;
comboNum = 0;
var pp;
var combo = false;
m_v = 20;
var music = new Sound(_root);
music.setVolume(_root.m_v);
music.attachSound("\u9F13\u58F003.mp3");
ppp = 0;
music.stop();
music.start(0, 99999);
_root.createEmptyMovieClip("shake_mc", _root.getNextHighestDepth());
var __x = 5;
var ___x;
var x2 = (game_x + (b_wid * 9));
var x1 = game_x;
onMouseMove = function () {
mmm();
if (((_xmouse >= x1) && (_xmouse <= x2)) && (!levelUp)) {
___x = Math.floor(((_xmouse - game_x) + (b_wid / 2)) / b_wid);
if (__x != ___x) {
if (((__x > ___x) && (canMove(__x - 1))) || ((__x < ___x) && (canMove(__x + 1)))) {
__x = ___x;
oldLie = getFrogLie();
lightOffOri();
Froganimation_mc._x = (__x * b_wid) + game_x;
if (!shooting) {
move_grab();
}
sameColorArr = getSameColorArr(getFrogLie());
light_same(getFrogLie());
flag_l = true;
}
}
}
};
mmm();
if ((((_xmouse > 0) && (_ymouse > 0)) && (_xmouse < Stage.width)) && (_ymouse < Stage.height)) {
Mouse.hide();
}
_root.cursor_mc._xscale = (_root.cursor_mc._yscale = 100);
flash2_mc._x = game_x - (b_wid / 2);
var charging_s = setInterval(function () {
if ((!gameOver) && (!help)) {
if (_root.charging_mc._currentframe != _root.charging_mc._totalframes) {
_root.charging_mc.nextFrame();
}
}
}, chargingSp);
var useWeapon = false;
var weaponReady = false;
var bulletNum;
var Add;
LEVEL = 1;
score_mc.txt.text = 0;
Instance of Symbol 398 MovieClip "roll_for_cu" in Frame 18
onClipEvent (load) {
_alpha = 0;
}
on (rollOver) {
_root.cursor_mc._visible = true;
Mouse.hide();
}
on (rollOut) {
_root.cursor_mc._visible = false;
Mouse.show();
}
Instance of Symbol 415 MovieClip in Frame 18
on (release) {
_root.gotoAndStop("main");
}
Instance of Symbol 421 MovieClip "sound_btn" in Frame 18
onClipEvent (load) {
function gtap() {
(f ? ([this.gotoAndStop(1), _root.music.start(0, 66000)]) : ([this.gotoAndStop(2), _root.music.stop()]));
}
f = true;
}
on (release) {
f = !f;
gtap();
}
on (rollOver) {
_root.lightOn(this);
Mouse.hide();
_root.cursor_mc._visible = true;
_root.cursor_mc.gotoAndStop(2);
_root.cursor_mc._mc.gotoAndPlay("so_h");
}
on (rollOut) {
_root.lightOff(this);
_root.cursor_mc.gotoAndStop(1);
_root.cursor_mc._mc.gotoAndStop(1);
}
Instance of Symbol 282 MovieClip "charging_mc" in Frame 18
on (rollOver) {
_root.lightOn(this);
Mouse.hide();
_root.cursor_mc._visible = true;
_root.cursor_mc.gotoAndStop(2);
_root.cursor_mc._mc.gotoAndPlay("ch_h");
}
on (rollOut) {
_root.lightOff(this);
_root.cursor_mc.gotoAndStop(1);
_root.cursor_mc._mc.gotoAndStop(1);
}
on (release) {
if (_root.weaponReady && (!_root.gameOver)) {
_root.Froganimation_mc.flash_mc.gotoAndStop("weapon");
_root.useWeapon = true;
WeaponControl = true;
_root.bulletNum = 5;
_root.playSnd("v_weaponupgrade");
_root.weaponReady = false;
this.txt_mc.gotoAndStop("num");
this.txt_mc.txt.text = "ENERGY:" + _root.bulletNum;
_root.Froganimation_mc.flash_mc.gotoAndStop("weapon");
}
}
Instance of Symbol 429 MovieClip "HELP_MC" in Frame 18
onClipEvent (load) {
if (this._name == "HELP_MC") {
this._visible = false;
}
}
Instance of Symbol 433 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (WeaponControl == true) {
if (_root.Froganimation_mc.flash_mc._currentframe != 24) {
_root.Froganimation_mc.flash_mc.gotoAndStop("weapon");
WeaponControl = false;
}
}
}
Frame 27
stop();
cursor_mc._visible = false;
music.stop();
Mouse.show();
clearInterval(dp);
clearInterval(dp2);
_root.finalscore.text = score;
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
matrixx[0] = _local4;
matrixx[1] = _local3;
matrixx[2] = _local2;
matrixx[3] = _local1;
return(matrixx[_local1]);
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local3 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
matrix_orixxxx[_local1 >> 5] = matrix_orixxxx[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local3) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(matrix_orixxxx);
}
function binl2hex(xx) {
if (hexcase) {
}
var _local3 = "0123456789abcdef";
var _local2 = "";
var _local1 = 0;
while (_local1 < (matrixx.length * 4)) {
_local2 = _local2 + (_local3.charAt((matrixx[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((matrixx[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
trace(_local2);
return(_local2);
}
function submitScore() {
hash = md5(((furl + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
var hexcase = 0;
var strsize = 8;
Symbol 27 MovieClip [star_mc] Frame 1
stop();
Symbol 29 MovieClip [blood_mc] Frame 1
if (_name.charAt(0) == "d") {
life = 3;
onEnterFrame = function () {
life--;
if (life == 0) {
this.removeMovieClip();
} else {
this._xscale = (this._yscale = 33);
}
};
}
Symbol 38 MovieClip [flash2_mc] Frame 1
stop();
Symbol 38 MovieClip [flash2_mc] Frame 2
this._visible = true;
Symbol 38 MovieClip [flash2_mc] Frame 20
_root.removeWithFlash(this.removeHang);
_root.hasflash = false;
delete this.onEnterFrame;
this._visible = false;
gotoAndStop (1);
Symbol 64 MovieClip Frame 80
stop();
Symbol 68 MovieClip Frame 107
stop();
Symbol 91 Button
on (release) {
stopAllSounds();
_root.play();
}
Symbol 104 MovieClip Frame 1
_root.playSnd("sndls1", 3);
Symbol 104 MovieClip Frame 174
stopAllSounds();
_root.play();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 114 MovieClip [bule_mc] Frame 1
stop();
Symbol 114 MovieClip [bule_mc] Frame 10
_root.updateScore();
_root.meterNum++;
_root.setMerter();
_root.score = _root.score + _root.score$;
_root.score_mc.txt.text = _root.score;
_root.myArr[_root.getBrickHang(this)][_root.getBrickLie(this)] = undefined;
_root.removedSum--;
if (_root.removedSum == 0) {
_root.playing = false;
_root.suckUping = false;
_root.suckUp();
_root.scoreFlag = true;
}
this.removeMovieClip();
Symbol 119 MovieClip Frame 1
stop();
Symbol 123 MovieClip [red_mc] Frame 1
stop();
Symbol 123 MovieClip [red_mc] Frame 10
_root.updateScore();
_root.meterNum++;
_root.setMerter();
_root.score = _root.score + _root.score$;
_root.score_mc.txt.text = _root.score;
_root.myArr[_root.getBrickHang(this)][_root.getBrickLie(this)] = undefined;
_root.removedSum--;
if (_root.removedSum == 0) {
_root.playing = false;
_root.suckUping = false;
_root.suckUp();
_root.scoreFlag = true;
}
this.removeMovieClip();
Symbol 128 MovieClip Frame 1
stop();
Symbol 131 MovieClip [yellow_mc] Frame 1
stop();
Symbol 131 MovieClip [yellow_mc] Frame 10
_root.updateScore();
_root.meterNum++;
_root.setMerter();
_root.score = _root.score + _root.score$;
_root.score_mc.txt.text = _root.score;
_root.myArr[_root.getBrickHang(this)][_root.getBrickLie(this)] = undefined;
_root.removedSum--;
if (_root.removedSum == 0) {
_root.playing = false;
_root.suckUping = false;
_root.suckUp();
_root.scoreFlag = true;
}
this.removeMovieClip();
Symbol 136 MovieClip Frame 1
stop();
Symbol 139 MovieClip [green_mc] Frame 1
stop();
Symbol 139 MovieClip [green_mc] Frame 10
_root.updateScore();
_root.meterNum++;
_root.setMerter();
_root.score = _root.score + _root.score$;
_root.score_mc.txt.text = _root.score;
_root.myArr[_root.getBrickHang(this)][_root.getBrickLie(this)] = undefined;
_root.removedSum--;
if (_root.removedSum == 0) {
_root.playing = false;
_root.suckUping = false;
_root.suckUp();
_root.scoreFlag = true;
}
this.removeMovieClip();
Symbol 144 MovieClip [Lightning_mc] Frame 9
_root.updateScore();
_root.meterNum++;
_root.setMerter();
_root.score = _root.score + (_root.score$ / 2);
_root.score_mc.txt.text = _root.score;
_root.myArr[_root.getBrickHang(this)][_root.getBrickLie(this)] = undefined;
_root.removedSum--;
if (_root.removedSum == 0) {
_root.playing = false;
_root.suckUping = false;
_root.suckUp();
_root.scoreFlag = true;
}
this.removeMovieClip();
Symbol 149 MovieClip [bomb_mc] Frame 10
_root.updateScore();
_root.meterNum++;
_root.setMerter();
_root.score = _root.score + (_root.score$ / 2);
_root.score_mc.txt.text = _root.score;
_root.myArr[_root.getBrickHang(this)][_root.getBrickLie(this)] = undefined;
_root.removedSum--;
if (_root.removedSum == 0) {
_root.playing = false;
_root.suckUping = false;
_root.suckUp();
_root.scoreFlag = true;
}
_root.hasflash = false;
this.removeMovieClip();
Symbol 150 MovieClip Frame 1
stop();
Symbol 160 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("playing");
}
Symbol 161 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 162 Button
on (release) {
getURL (("http://" + _root.furl) + "/highscore.php", _blank);
}
Symbol 163 Button
on (release) {
getURL ("http://" + _root.furl, _blank);
}
Symbol 168 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("playing");
}
Symbol 175 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 246 MovieClip Frame 1
stop();
_visible = false;
Symbol 246 MovieClip Frame 11
_visible = true;
Symbol 246 MovieClip Frame 25
stop();
Symbol 246 MovieClip Frame 36
_visible = true;
Symbol 246 MovieClip Frame 50
stop();
Symbol 246 MovieClip Frame 62
_visible = true;
Symbol 246 MovieClip Frame 76
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 264 Button
on (release) {
_root.help_btn._visible = (_root.sound_btn._visible = (_root.charging_mc._visible = true));
var j = 0;
while (j < 10) {
_root["r_" + j]._visible = true;
j++;
}
this._visible = false;
_root.help = false;
}
Symbol 268 Button
on (release) {
gotoAndStop (2);
}
Symbol 271 Button
on (release) {
gotoAndStop (2);
}
Symbol 281 MovieClip Frame 20
stop();
Symbol 282 MovieClip Frame 1
function LoadBullet() {
var _local1 = new Sound();
_local1.attachSound("CS02");
_local1.start(0);
}
stop();
Symbol 282 MovieClip Frame 20
LoadBullet();
Symbol 282 MovieClip Frame 40
LoadBullet();
Symbol 282 MovieClip Frame 60
LoadBullet();
Symbol 282 MovieClip Frame 80
LoadBullet();
Symbol 282 MovieClip Frame 98
LoadBullet();
Symbol 282 MovieClip Frame 101
stop();
_root.weaponReady = true;
_root.playSnd("v_weaponready");
_root.bulletNum = 5;
Symbol 287 Button
on (release) {
gotoAndStop (1);
}
Symbol 289 Button
on (release) {
gotoAndStop (1);
}
Symbol 290 MovieClip [HELP_MC] Frame 1
stop();
Instance of Symbol 256 MovieClip in Symbol 290 MovieClip [HELP_MC] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOut) {
}
on (rollOver) {
gotoAndPlay (1);
}
Instance of Symbol 261 MovieClip in Symbol 290 MovieClip [HELP_MC] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (rollOut) {
}
on (rollOver) {
gotoAndPlay (1);
}
Symbol 290 MovieClip [HELP_MC] Frame 2
stop();
Symbol 292 Button
on (release) {
stopAllSounds();
gotoAndStop ("playing");
}
Symbol 296 Button
on (release) {
stopAllSounds();
gotoAndStop ("playing");
}
Symbol 308 MovieClip Frame 1
if (_root.bulletNum > 0) {
gotoAndStop ("weapon");
}
stop();
delete this.onEnterFrame;
Symbol 308 MovieClip Frame 2
var ss = 0;
stop();
onEnterFrame = function () {
if ((ss % 20) == 0) {
var _local2 = this.attachMovie("star_mc", "star_mc" + ss, this.getNextHighestDepth());
_local2.spy = random(8) + 8;
_local2._x = random(20) - 10;
_local2._y = -random(20);
_local2.oriscale = (_local2.xyscale = (_local2._xscale = (_local2._yscale = random(30) + 10)));
_local2.onEnterFrame = function () {
if (this._xscale > 0) {
this._xscale = (this._yscale = this._yscale - (this.xyscale / 100));
} else {
this._xscale = (this._yscale = this.oriscale);
}
if (this._y > -460) {
this._y = this._y - this.spy;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
ss++;
};
Symbol 308 MovieClip Frame 3
delete this.onEnterFrame;
Symbol 308 MovieClip Frame 13
gotoAndStop (1);
Symbol 308 MovieClip Frame 14
var ss = 0;
stop();
onEnterFrame = function () {
if ((ss % 20) == 0) {
var _local2 = this.attachMovie("star_mc", "star_mc" + ss, this.getNextHighestDepth());
_local2.spy = random(8) + 8;
_local2._x = random(20) - 10;
_local2._y = -random(20);
_local2.oriscale = (_local2.xyscale = (_local2._xscale = (_local2._yscale = random(30) + 10)));
_local2.onEnterFrame = function () {
if (this._xscale > 0) {
this._xscale = (this._yscale = this._yscale - (this.xyscale / 100));
} else {
this._xscale = (this._yscale = this.oriscale);
}
if (this._y > -460) {
this._y = this._y - this.spy;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
ss++;
};
Symbol 308 MovieClip Frame 15
delete this.onEnterFrame;
Symbol 308 MovieClip Frame 23
gotoAndStop (1);
Symbol 308 MovieClip Frame 24
stop();
if (_root.bulletNum == 0) {
_root.WeaponControl = false;
_root.useWeapon = false;
_root.weaponReady = false;
_root.charging_mc.gotoAndStop(1);
gotoAndStop (1);
}
_root.b_loaded = true;
var ss = 0;
onEnterFrame = function () {
if ((ss % 20) == 0) {
var _local2 = this.attachMovie("star_mc", "star_mc" + ss, this.getNextHighestDepth());
_local2.spy = random(8) + 8;
_local2._x = random(20) - 10;
_local2._y = -random(20);
_local2.oriscale = (_local2.xyscale = (_local2._xscale = (_local2._yscale = random(30) + 10)));
_local2.onEnterFrame = function () {
if (this._xscale > 0) {
this._xscale = (this._yscale = this._yscale - (this.xyscale / 100));
} else {
this._xscale = (this._yscale = this.oriscale);
}
if (this._y > -460) {
this._y = this._y - this.spy;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
ss++;
};
Symbol 308 MovieClip Frame 25
delete this.onEnterFrame;
_root.bulletNum--;
_root.charging_mc.txt_mc.txt.text = "ENERGY:" + _root.bulletNum;
_root.playSnd("CS01");
_root.b_loaded = false;
Symbol 308 MovieClip Frame 28
_root.removeWithWeapon();
_root.addBlood(_root.bloodYX[1], _root.bloodYX[0]);
_root.playSnd("blood");
Symbol 308 MovieClip Frame 55
gotoAndStop ("weapon");
trace(123565555);
_root.b_loaded = true;
Symbol 317 MovieClip Frame 1
stop();
Instance of Symbol 308 MovieClip "flash_mc" in Symbol 317 MovieClip Frame 1
onClipEvent (enterFrame) {
trace(this._currentframe);
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
this._name = "txt";
this.unloadMovie();
}
Symbol 334 Button
on (release) {
_root.roll_for_cu._visible = true;
_root.LEVEL = 1;
_root.lc_mc.txt.text = 1;
_root.score = 0;
_root.meter_mc.gotoAndStop(1);
_root.meterNum = 0;
_root.clearGame_mc();
_root.useWeapon = false;
_root.weaponReady = false;
_root.score_mc.txt.text = 0;
_root.depressTime = _root.initialDepressTime;
gotoAndStop (1);
}
Symbol 339 Button
on (release) {
if (_root.score < _root.lowest_score) {
this.INFO_txt.text = "your score is too low";
} else {
_root.uploadScore();
}
}
Symbol 346 Button
on (release) {
_root.roll_for_cu._visible = true;
_root.LEVEL = 1;
_root.lc_mc.txt.text = 1;
_root.score = 0;
_root.meter_mc.gotoAndStop(1);
_root.meterNum = 0;
_root.clearGame_mc();
_root.useWeapon = false;
_root.weaponReady = false;
_root.score_mc.txt.text = 0;
_root.depressTime = _root.initialDepressTime;
gotoAndStop (1);
}
Symbol 347 MovieClip Frame 1
stop();
_visible = false;
Symbol 347 MovieClip Frame 2
_visible = true;
swapDepths(_root.getNextHighestDepth());
_root.cursor_mc.swapDepths(_root.getNextHighestDepth());
cursor_mc._visible = false;
stopAllSounds();
Symbol 347 MovieClip Frame 26
_root.playSnd("v_gameover");
Symbol 347 MovieClip Frame 44
_root.gameOver = true;
_root.roll_for_cu._visible = false;
_root.clearGame_mc();
_root.gotoAndStop("gameover");
_root.gameOver_mc.removeMovieClip();
stop();
Symbol 347 MovieClip Frame 45
_root.gameOver = true;
_root.roll_for_cu._visible = false;
txt.text = _root.score;
stop();
Symbol 357 MovieClip Frame 1
_visible = false;
stop();
Symbol 357 MovieClip Frame 2
_root.score = _root.score + 5;
Symbol 357 MovieClip Frame 31
gotoAndStop (1);
Symbol 357 MovieClip Frame 32
_root.score = _root.score + 8;
Symbol 357 MovieClip Frame 60
gotoAndStop (1);
Symbol 357 MovieClip Frame 61
_root.score = _root.score + 12;
Symbol 357 MovieClip Frame 92
gotoAndStop (1);
Symbol 357 MovieClip Frame 93
_root.score = _root.score + 15;
Symbol 357 MovieClip Frame 119
gotoAndStop (1);
Symbol 366 MovieClip Frame 1
stop();
_visible = false;
Symbol 366 MovieClip Frame 2
_visible = true;
Symbol 366 MovieClip Frame 182
_root.meterNum = 0;
_root.meter_mc.gotoAndStop(1);
_root.Froganimation_mc.flash_mc.gotoAndStop(1);
_root.clearGame_mc();
if (_root.depressTime > 1000) {
_root.depressTime = _root.depressTime - _root.depressTimeVss;
}
trace(_root.depressTime);
_root.setTimerDepress();
_root.LEVEL++;
_root.level_mc.txt.text = _root.LEVEL;
gotoAndStop (1);
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
var j = 0;
while (j < 30) {
var _mc;
_mc._x = this._x;
_mc._y = this._y;
_mc.ori_y = this._y;
_mc._gox = (random(300) - 150) + this._x;
_mc._goy = -random(8);
_mc.goTime = random(5);
_mc._xscale = (_mc._yscale = random(50) + 50);
_mc.onEnterFrame = function () {
if (((((this._y - this.ori_y) < (random(300) + 150)) && (this._y < Stage.height)) && (this._x > 0)) && (this._x < Stage.width)) {
var _local2;
_local2._x = this._x;
_local2._y = this._y;
this.goTime--;
if (this.goTime <= 0) {
this._y = this._y + ((this._goy = this._goy + 1));
this._x = this._x + ((this._gox - this._x) / 15);
}
} else {
this.removeMovieClip();
delete this.onEnterFrame;
}
};
j++;
}
this._visible = true;
Symbol 374 MovieClip Frame 6
_root.playSnd("blood");
Symbol 374 MovieClip Frame 9
_root.removeWithBomb(this.hh, this.ll);
delete this.onEnterFrame;
this._visible = false;
gotoAndStop (1);
Instance of Symbol 379 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
unloadMovie (this);
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 100
_root.levelUp = true;
stop();
_root.lc_mc.play();
Symbol 395 MovieClip Frame 169
stop();
Symbol 408 Button
on (release) {
_root.gotoAndStop("main");
}
Symbol 411 Button
on (release) {
_root.HELP_MC._visible = true;
_root.sound_btn._visible = (_root.charging_mc._visible = false);
var j = 0;
while (j < 10) {
_root["r_" + j]._visible = false;
j++;
}
_root.help = true;
}
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
stop();
Symbol 428 Button
on (release) {
_root.help_btn._visible = (_root.sound_btn._visible = (_root.charging_mc._visible = true));
var j = 0;
while (j < 10) {
_root["r_" + j]._visible = true;
j++;
}
this._visible = false;
_root.help = false;
}
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 30
_root.playCombo();
stop();
Symbol 432 MovieClip Frame 1
function sp() {
if ((((Key.isDown(85) && (Key.isDown(73))) && (Key.isDown(38))) && (Key.isDown(40))) && (Key.isDown(68))) {
_root.score_mc.txt.text = (_root.score = _root.score + 1000);
}
}
Symbol 439 Button
on (release) {
_root.roll_for_cu._visible = true;
_root.LEVEL = 1;
_root.lc_mc.txt.text = 1;
_root.score = 0;
_root.meter_mc.gotoAndStop(1);
_root.meterNum = 0;
_root.clearGame_mc();
_root.useWeapon = false;
_root.weaponReady = false;
_root.score_mc.txt.text = 0;
_root.depressTime = _root.initialDepressTime;
gotoAndStop ("loading");
}
Symbol 442 Button
on (release) {
submitScore();
}