Frame 15
stop();
loader_mc.onEnterFrame = function () {
var _local3 = this;
var _local2 = _root.getBytesTotal();
var _local1 = _root.getBytesLoaded();
trace(_root.getBytesLoaded());
if ((_local2 > 4) && (_local1 > 4)) {
_local3.gotoAndStop(Math.ceil((100 * _local1) / _local2));
}
if ((_local1 == _local2) && (_local1 > 4)) {
_local3.onEnterFrame = null;
_local3._parent.gotoAndPlay("done");
}
};
Frame 16
stackfruit();
newgame();
music_intro = new Sound();
music_intro.attachSound("music-intro");
music_intro.start(0, 2000);
function displayHighScores() {
var _local2 = this;
checkScore_mc.gameID = _global.gameID;
checkScore_mc.onData = function () {
var _local2 = this;
if (_local2.result == "success") {
var playerID_str = new String(_local2.players);
var playerInitials_str = new String(_local2.initials);
var playerScores_str = new String(_local2.scores);
var playerID_array = playerID_str.split(":");
var _local3 = playerInitials_str.split(":");
var playerScore_array = playerScores_str.split(":");
var _local1 = 1;
while (_local1 <= playerID_array.length) {
_local2.highScores_mc["line" + _local1].initials = (_local1 + ") ") + _local3[_local1 - 1];
_local2.highScores_mc["line" + _local1].score = playerScore_array[_local1 - 1];
if ((playerInitials == _local3[_local1 - 1]) && (playerID == playerID_array[_local1 - 1])) {
}
_local1++;
}
}
};
checkScore_mc.loadVariables(sitePath + "getScores.php", "POST");
}
function checkForHighScore() {
var _local1 = _global;
var _local2 = this;
gameOver_mc.gameID = _local1.gameID;
gameOver_mc.score = (score = _root.scoredisplay_txt.text);
trace("score: " + _local1._score);
gameOver_mc.onData = function () {
var _local1 = this;
trace("result: " + _local1.result);
if (_local1.result == "success") {
_global.isHighScore = true;
} else {
_global.isHighScore = false;
}
_local1._parent.gotoAndStop("scores");
};
gameOver_mc.loadVariables(sitePath + "checkScore.php", "POST");
}
function submitHighScore() {
checkScore_mc.gameID = _global.gameID;
checkScore_mc.initials = checkScore_mc.submitScore_mc.initials_txt.text;
checkScore_mc.score = _root.scoredisplay_txt.text;
checkScore_mc.onData = function () {
if (this.result == "success") {
this.gotoAndStop("high score");
}
};
checkScore_mc.loadVariables(sitePath + "putScore.php", "POST");
}
_global.gameID = 1;
_global.isHighScore = false;
_global.screenWaitInterval;
_global.isNextScreen = false;
var playerID;
var playerInitials;
var sitePath = "";
function clearcol() {
var _local1 = _global;
i = 1;
while (i <= 9) {
_local1["_col_" + i] = ["0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"];
i++;
}
}
function clearbingo() {
var _local1 = _global;
i = 1;
while (i <= 9) {
_local1["_bingo_" + i] = ["0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"];
i++;
}
}
function cleareat() {
var _local1 = _global;
i = 1;
while (i <= 9) {
_local1["_eat_" + i] = ["0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"];
i++;
}
}
function newgame() {
var _local1 = _global;
var _local2 = _root;
clearcol();
clearbingo();
cleareat();
_local1._speed = 1;
_local1._speedlimit = 1;
_local1._zip = 15;
_local1._drop = "STOP";
_local1._control = "OFF";
_local1._fruit_a = 0;
_local1._fruit_b = 0;
_local1._fruit_a_next = 0;
_local1._fruit_b_next = 0;
i = 1;
while (i <= 9) {
_local2["bump" + i]._height = 1;
i++;
}
_local2.drop1._x = -1000;
_local2.drop2._x = -1000;
_local2.next1._x = -1000;
_local2.next2._x = -1000;
_local1._scancount = 0;
_local1._scantarget = 0;
_local1._eatchanged = "NO";
_local1._leftside = 1;
_local1._rightside = 9;
_local1._topside = 12;
_local1._bottomside = 0;
_local1._passcolumn = 0;
_local1._music = "ON";
_local1._tune = 1;
_local1._gumpack = "OFF";
_local1._packscore = "OFF";
_local1._packtarget = 0;
_local1._pack_aCol = _local2;
_local1._pack_bCol = _local2;
_local1._pack_aRow = _local2;
_local1._pack_bRow = _local2;
_local1._packcount = 0;
_local1._lastscore = _score;
_local1._score = 0;
_local1._increment1 = 0;
_local1._increment2 = 0;
_local1._scorecount1 = 0;
_local1._scorecount2 = 0;
_local1._floodgate = 0;
_local1._bonus = ["0", "0", "0", "0", "0", "0"];
_local1._bonusScan = "OFF";
_local1._bonusamount1 = 1;
_local1._bonusamount2 = 1;
_local1._nextlevel = 20;
_local1._nextscore = 300000 /* 0x0493E0 */;
_local2.bonus.fc1.gotoandstop(1);
_local2.bonus.fc2.gotoandstop(1);
_local2.bonus.fc3.gotoandstop(1);
_local2.bonus.fc4.gotoandstop(1);
_local2.bonus.fc5.gotoandstop(1);
_local2.bonus.fc6.gotoandstop(1);
_local1._lastgamelevel = _gamelevel;
_local1._gamelevel = 1;
_local2.levelup._x = -500;
_local2.level_txt.text = 1;
_local2.levelshadow_txt.text = 1;
_local2.scoredisplay_txt.text = 0;
_local2.scoredisplayshadow_txt.text = 0;
}
music1 = new Sound();
music1.attachSound("music-1");
music2 = new Sound();
music2.attachSound("music-2");
packfall = new Sound();
packfall.attachSound("pack");
pop = new Sound();
pop.attachSound("clear");
frotate = new Sound();
frotate.attachSound("rotate");
function startDrop() {
var _local1 = _global;
var _local2 = _root;
_local1._packcount++;
if ((_fruit_a == 0) || (_fruit_b == 0)) {
_local1._fruit_a = math.floor((math.random() * 6) + 1);
_local1._fruit_b = math.floor((math.random() * 6) + 1);
_local1._fruit_a_next = math.floor((math.random() * 6) + 1);
_local1._fruit_b_next = math.floor((math.random() * 6) + 1);
} else if (_packcount == 40) {
_local1._packcount = 0;
_local1._fruit_a = _fruit_a_next;
_local1._fruit_b = _fruit_b_next;
_local1._fruit_a_next = 7;
_local1._fruit_b_next = 8;
} else {
_local1._fruit_a = _fruit_a_next;
_local1._fruit_b = _fruit_b_next;
_local1._fruit_a_next = math.floor((math.random() * 6) + 1);
_local1._fruit_b_next = math.floor((math.random() * 6) + 1);
}
_local2.next1.gotoandstop(_fruit_a_next + 1);
_local2.next2.gotoandstop(_fruit_b_next + 1);
_local2.drop1.gotoandstop(_fruit_a + 1);
_local2.drop2.gotoandstop(_fruit_b + 1);
_local2.drop1._x = 81;
_local2.drop1._y = 10;
_local2.drop2._x = _local2.drop1._x;
_local2.drop2._y = Number(_local2.drop1._y) - 20;
if (_fruit_a == 7) {
_local1._gumpack = "ON";
_local2.packfall.start();
}
_local2.next1._x = 201;
_local2.next1._y = 38;
_local2.next2._x = 201;
_local2.next2._y = 18;
_local1._position = "U";
_local1._drop = "GO";
_local1._control = "ON";
}
function fall() {
var _local1 = _root;
var _local2 = _global;
_local1.drop1._y = Number(_local1.drop1._y) + _speed;
_local1.drop2._y = Number(_local1.drop2._y) + _speed;
_local2._firstfruit = "0";
i = 1;
while (i <= 9) {
if (_local1.drop1.hitTest(["_root.bump" + i])) {
_local2._control = "OFF";
addDrop(i, "a");
_local2._speed = _zip;
_local1.drop1._x = -1000;
break;
}
i++;
}
j = 1;
while (j <= 9) {
if (_local1.drop2.hitTest(["_root.bump" + j])) {
_local2._control = "OFF";
addDrop(j, "b");
_local2._speed = _zip;
_local1.drop2._x = -1000;
_local2._passcolumn = j;
break;
}
j++;
}
if (((_local1.drop1._y == (Number(_local1.drop2._y) - 20)) && (_control == "OFF")) && (_local1.drop1._x != -1000)) {
addDrop(_passcolumn, "a");
_local1.drop1._x = -1000;
}
if ((_local1.drop1._x == -1000) && (_local1.drop2._x == -1000)) {
_local1.spacer.play();
}
}
function addDrop(_hitcolumn, _hitfruit) {
var _local1 = _global;
var _local2 = _hitcolumn;
var _local3 = _root;
if (_local1._gumpack == "OFF") {
_local3["bump" + _local2]._height = Number(_local3["bump" + _local2]._height) + 20;
}
i = 0;
while (i <= 11) {
if (_local1["_col_" + _local2][i] == "0") {
if (_hitfruit == "a") {
_local1["_col_" + _local2][i] = _fruit_a;
if (_local1._gumpack == "ON") {
_local3.drop1._x = -1000;
_local3.drop2._x = -1000;
_local1._packtarget = _local1["_col_" + _local2][i - 1];
_local1._pack_aCol = _local2;
_local1._pack_bCol = _local2;
_local1._pack_aRow = i;
_local1._pack_bRow = i + 1;
}
} else if (_hitfruit == "b") {
_local1["_col_" + _local2][i] = _fruit_b;
}
stackfruit();
return;
}
i++;
}
}
function rotate() {
var _local1 = _root;
var _local2 = _global;
var _1prev_x = Number(_local1.drop1._x);
var _1prev_y = Number(_local1.drop1._y);
var _2prev_x = Number(_local1.drop2._x);
var _2prev_y = Number(_local1.drop2._y);
if (_position == "U") {
_local1.drop2._x = Number(_local1.drop1._x) + 20;
_local1.drop2._y = _local1.drop1._y;
_local2._position = "R";
} else if (_position == "R") {
_local1.drop2._x = _local1.drop1._x;
_local1.drop2._y = Number(_local1.drop1._y) + 20;
_local2._position = "D";
} else if (_position == "D") {
_local1.drop2._x = Number(_local1.drop1._x) - 20;
_local1.drop2._y = _local1.drop1._y;
_local2._position = "L";
} else if (_position == "L") {
_local1.drop2._x = _local1.drop1._x;
_local1.drop2._y = Number(_local1.drop1._y) - 20;
_local2._position = "U";
}
var _local3 = movetest();
if (_local3 == "bump") {
_local1.drop1._x = _1prev_x;
_local1.drop1._y = _1prev_y;
_local1.drop2._x = _2prev_x;
_local1.drop2._y = _2prev_y;
if (_position == "U") {
_local2._position = "L";
} else if (_position == "L") {
_local2._position = "D";
} else if (_position == "D") {
_local2._position = "R";
} else if (_position == "R") {
_local2._position = "U";
}
}
_local1.frotate.start();
}
function move(_direction) {
var _local1 = _root;
var _local3 = Number(_local1.drop1._x);
var _1prev_y = Number(_local1.drop1._y);
var _2prev_x = Number(_local1.drop2._x);
var _2prev_y = Number(_local1.drop2._y);
if (_direction == "R") {
_local1.drop1._x = Number(_local1.drop1._x) + 20;
_local1.drop2._x = Number(_local1.drop2._x) + 20;
} else if (_direction == "L") {
_local1.drop1._x = Number(_local1.drop1._x) - 20;
_local1.drop2._x = Number(_local1.drop2._x) - 20;
}
var _local2 = movetest();
if (_local2 == "bump") {
_local1.drop1._x = _local3;
_local1.drop1._y = _1prev_y;
_local1.drop2._x = _2prev_x;
_local1.drop2._y = _2prev_y;
}
}
function moveTest() {
var _local1 = _root;
i = 1;
while (i <= 9) {
if (_local1.drop1.hitTest(["_root.bump" + i])) {
return("bump");
}
i++;
}
i = 1;
while (i <= 9) {
if (_local1.drop2.hitTest(["_root.bump" + i])) {
return("bump");
}
i++;
}
if ((((_local1.drop1._x < 1) || (_local1.drop1._x > 161)) || (_local1.drop2._x < 1)) || (_local1.drop2._x > 161)) {
return("bump");
}
return(undefined);
}
myListener = new Object();
myListener.onKeyDown = function () {
if ((key.getcode() == 40) && (_control == "ON")) {
_global._speed = _zip;
}
};
myListener.onKeyUp = function () {
if ((key.getcode() == 40) && (_control == "ON")) {
_global._speed = _speedlimit;
}
};
Key.addListener(myListener);
userkey = new Object();
userkey.onKeyDown = function () {
if (((key.getcode() == 38) && (_control == "ON")) && (_global._gumpack == "OFF")) {
rotate();
} else if ((key.getcode() == 37) && (_control == "ON")) {
move("L");
} else if ((key.getcode() == 39) && (_control == "ON")) {
move("R");
}
};
Key.addListener(userKey);
function checkgamelevel() {
var _local1 = _global;
if ((_score >= 3000) && (_gamelevel < 2)) {
raisegamelevel(2);
} else if ((_score >= 6000) && (_gamelevel < 3)) {
_local1._speedlimit = _speedlimit + 1;
raisegamelevel(3);
} else if ((_score >= 10000) && (_gamelevel < 4)) {
raisegamelevel(4);
} else if ((_score >= 15000) && (_gamelevel < 5)) {
raisegamelevel(5);
} else if ((_score >= 20000) && (_gamelevel < 6)) {
_local1._speedlimit = _speedlimit + 1;
raisegamelevel(6);
} else if ((_score >= 25000) && (_gamelevel < 7)) {
raisegamelevel(7);
} else if ((_score >= 35000) && (_gamelevel < 8)) {
raisegamelevel(8);
} else if ((_score >= 50000) && (_gamelevel < 9)) {
_local1._speedlimit = _speedlimit + 1;
raisegamelevel(9);
} else if ((_score >= 60000) && (_gamelevel < 10)) {
raisegamelevel(10);
} else if ((_score >= 70000) && (_gamelevel < 11)) {
raisegamelevel(11);
} else if ((_score >= 80000) && (_gamelevel < 12)) {
_local1._speedlimit = _speedlimit + 1;
raisegamelevel(12);
} else if ((_score >= 100000) && (_gamelevel < 13)) {
raisegamelevel(13);
} else if ((_score >= 120000) && (_gamelevel < 14)) {
raisegamelevel(14);
} else if ((_score >= 150000) && (_gamelevel < 15)) {
_local1._speedlimit = _speedlimit + 1;
raisegamelevel(15);
} else if ((_score >= 180000) && (_gamelevel < 16)) {
raisegamelevel(16);
} else if ((_score >= 200000) && (_gamelevel < 17)) {
raisegamelevel(17);
} else if ((_score >= 220000) && (_gamelevel < 18)) {
_local1._speedlimit = _speedlimit + 1;
raisegamelevel(18);
} else if ((_score >= 260000) && (_gamelevel < 19)) {
raisegamelevel(19);
} else if ((_score >= _nextscore) && (_gamelevel < _nextlevel)) {
raisegamelevel(_nextlevel);
_local1._nextlevel++;
_local1._nextscore = _nextscore + 50000;
}
}
function raisegamelevel(level) {
var _local1 = _root;
_global._gamelevel = level;
_local1.background.play();
_local1.levelup.levelup_txt.text = "LEVEL " + _gamelevel;
_local1.level_txt.text = _gamelevel;
_local1.levelshadow_txt.text = _gamelevel;
_local1.levelup._x = 220;
_local1.levelup.play();
}
function checkbonus() {
var _local1 = _global;
var _local2 = _root;
_local1._bonus[_scantarget - 1] = 1;
_local2.bonus["fc" + _scantarget].gotoandplay(2);
if ((_scantarget <= 3) && (_scantarget > 0)) {
_local1._bonus[3] = 0;
_local2.bonus.fc4.gotoandstop(1);
_local1._bonus[4] = 0;
_local2.bonus.fc5.gotoandstop(1);
_local1._bonus[5] = 0;
_local2.bonus.fc6.gotoandstop(1);
} else if ((_scantarget >= 4) && (_scantarget < 7)) {
_local1._bonus[0] = 0;
_local2.bonus.fc1.gotoandstop(1);
_local1._bonus[1] = 0;
_local2.bonus.fc2.gotoandstop(1);
_local1._bonus[2] = 0;
_local2.bonus.fc3.gotoandstop(1);
}
if (((_bonus[0] == 1) && (_bonus[1] == 1)) && (_bonus[2] == 1)) {
i = 0;
while (i <= 5) {
_local1._bonus[i] = 0;
i++;
}
_local2.bonus.play();
scorebonus();
} else if (((_bonus[3] == 1) && (_bonus[4] == 1)) && (_bonus[5] == 1)) {
i = 0;
while (i <= 5) {
_local1._bonus[i] = 0;
i++;
}
_local2.bonus.play();
scorebonus();
}
}
function scorebonus() {
_global._score = _score + 3000;
_root.bonusmessage.play();
}
function groupscore(amount) {
var _local1 = _global;
var _local2 = _root;
_local1._increment1 = 0;
_local1._increment2 = 0;
if (_local1._packscore == "OFF") {
if (_scorecount1 != 0) {
_local1._increment1 = 250;
trace("_scorecount1");
trace(_scorecount1);
i = 5;
while (i <= 20) {
if (i > _scorecount1) {
break;
}
_local1._increment1 = _increment1 * 2;
trace("_increment1");
trace(_increment1);
i++;
}
}
if (_scorecount2 != 0) {
_local1._increment2 = 250;
trace("_scorecount2");
trace(_scorecount2);
i = 5;
while (i <= 20) {
if (i > _scorecount2) {
break;
}
_local1._increment2 = _increment2 * 2;
trace("_increment2");
trace(_increment2);
i++;
}
}
_local2.combo.combomessage.combo_txt.text = _increment1 + _increment2;
_local2.combo.combomessage.comboshadow_txt.text = _increment1 + _increment2;
_local2.combo.play();
} else {
_local1._packscore = "OFF";
_local1._increment1 = amount * 50;
}
_local1._score = (_score + _increment1) + _increment2;
_local2.scoredisplay_txt.text = _score;
_local2.scoredisplayshadow_txt.text = _score;
}
function stackfruit() {
var _local1 = _global;
var _local2 = _root;
i = 0;
while (i <= 11) {
_local2["a" + i].gotoandstop(Number(_local1._col_1[i]) + 1);
_local2["b" + i].gotoandstop(Number(_local1._col_2[i]) + 1);
_local2["c" + i].gotoandstop(Number(_local1._col_3[i]) + 1);
_local2["d" + i].gotoandstop(Number(_local1._col_4[i]) + 1);
_local2["e" + i].gotoandstop(Number(_local1._col_5[i]) + 1);
_local2["f" + i].gotoandstop(Number(_local1._col_6[i]) + 1);
_local2["g" + i].gotoandstop(Number(_local1._col_7[i]) + 1);
_local2["h" + i].gotoandstop(Number(_local1._col_8[i]) + 1);
_local2["i" + i].gotoandstop(Number(_local1._col_9[i]) + 1);
i++;
}
}
function activate() {
var _local1 = _global;
var _local2 = _root;
_local1._floodgate = 0;
_local1._bonusScan = "ON";
j = 0;
while (j <= 11) {
if (_local1._col_1[j] == 0) {
} else {
_local1._scantarget = _local1._col_1[j];
scan(1, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_2[j] == 0) {
} else {
_local1._scantarget = _local1._col_2[j];
scan(2, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_3[j] == 0) {
} else {
_local1._scantarget = _local1._col_3[j];
scan(3, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_4[j] == 0) {
} else {
_local1._scantarget = _local1._col_4[j];
scan(4, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_5[j] == 0) {
} else {
_local1._scantarget = _local1._col_5[j];
scan(5, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_6[j] == 0) {
} else {
_local1._scantarget = _local1._col_6[j];
scan(6, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_7[j] == 0) {
} else {
_local1._scantarget = _local1._col_7[j];
scan(7, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_8[j] == 0) {
} else {
_local1._scantarget = _local1._col_8[j];
scan(8, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
j = 0;
while (j <= 11) {
if (_local1._col_9[j] == 0) {
} else {
_local1._scantarget = _local1._col_9[j];
scan(9, j, _local2, _local2);
testlinks();
clearbingo();
}
j++;
}
}
function scan(_scandepth, _row, _colname, bingoname) {
var _local1 = _scandepth;
var _local2 = _row;
var _local3 = _colname;
if (_local1 == 1) {
_local3 = _col_1;
_bingoname = _global._bingo_1;
} else if (_local1 == 2) {
_local3 = _col_2;
_bingoname = _global._bingo_2;
} else if (_local1 == 3) {
_local3 = _col_3;
_bingoname = _global._bingo_3;
} else if (_local1 == 4) {
_local3 = _col_4;
_bingoname = _global._bingo_4;
} else if (_local1 == 5) {
_local3 = _col_5;
_bingoname = _global._bingo_5;
} else if (_local1 == 6) {
_local3 = _col_6;
_bingoname = _global._bingo_6;
} else if (_local1 == 7) {
_local3 = _col_7;
_bingoname = _global._bingo_7;
} else if (_local1 == 8) {
_local3 = _col_8;
_bingoname = _global._bingo_8;
} else if (_local1 == 9) {
_local3 = _col_9;
_bingoname = _global._bingo_9;
}
if ((_local3[_local2] == _scantarget) && (_bingoname[_local2] != _scantarget)) {
_bingoname[_local2] = _scantarget;
if (_local1 < _rightside) {
_local1++;
scan(_local1, _local2, 0);
_local1--;
}
if (_local1 > _leftside) {
_local1--;
scan(_local1, _local2, 0);
_local1++;
}
if (_local2 < _topside) {
_local2++;
scan(_local1, _local2, 0);
_local2--;
}
if (_local2 > _bottomside) {
_local2--;
scan(_local1, _local2, 0);
_local2++;
}
}
}
function packscan() {
var _local1 = _root;
var _local2 = _global;
i = 0;
while (i <= 11) {
if (_local2._col_1[i] == _packtarget) {
_local2._eat_1[i] = 1;
if (_local1["a" + i]._currentframe < 10) {
_local1["a" + i].gotoandstop(Number(_local1["a" + i]._currentframe + 10));
}
}
if (_local2._col_2[i] == _packtarget) {
_local2._eat_2[i] = 1;
if (_local1["b" + i]._currentframe < 10) {
_local1["b" + i].gotoandstop(Number(_local1["b" + i]._currentframe + 10));
}
}
if (_local2._col_3[i] == _packtarget) {
_local2._eat_3[i] = 1;
if (_local1["c" + i]._currentframe < 10) {
_local1["c" + i].gotoandstop(Number(_local1["c" + i]._currentframe + 10));
}
}
if (_local2._col_4[i] == _packtarget) {
_local2._eat_4[i] = 1;
if (_local1["d" + i]._currentframe < 10) {
_local1["d" + i].gotoandstop(Number(_local1["d" + i]._currentframe + 10));
}
}
if (_local2._col_5[i] == _packtarget) {
_local2._eat_5[i] = 1;
if (_local1["e" + i]._currentframe < 10) {
_local1["e" + i].gotoandstop(Number(_local1["e" + i]._currentframe + 10));
}
}
if (_local2._col_6[i] == _packtarget) {
_local2._eat_6[i] = 1;
if (_local1["f" + i]._currentframe < 10) {
_local1["f" + i].gotoandstop(Number(_local1["f" + i]._currentframe + 10));
}
}
if (_local2._col_7[i] == _packtarget) {
_local2._eat_7[i] = 1;
if (_local1["g" + i]._currentframe < 10) {
_local1["g" + i].gotoandstop(Number(_local1["g" + i]._currentframe + 10));
}
}
if (_local2._col_8[i] == _packtarget) {
_local2._eat_8[i] = 1;
if (_local1["h" + i]._currentframe < 10) {
_local1["h" + i].gotoandstop(Number(_local1["h" + i]._currentframe + 10));
}
}
if (_local2._col_9[i] == _packtarget) {
_local2._eat_9[i] = 1;
if (_local1["i" + i]._currentframe < 10) {
_local1["i" + i].gotoandstop(Number(_local1["i" + i]._currentframe + 10));
}
}
i++;
}
_local2._gumpack = "OFF";
_local2._packscore = "ON";
_local2._eatchanged = "YES";
}
function testlinks() {
var _local1 = _global;
var _local2 = _root;
_local1._scancount = 0;
i = 11;
while (i >= 0) {
if (_local1._bingo_1[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_2[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_3[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_4[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_5[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_6[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_7[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_8[i] == _scantarget) {
_local1._scancount++;
}
if (_local1._bingo_9[i] == _scantarget) {
_local1._scancount++;
}
i--;
}
if (_local1._scancount >= 4) {
_local1._eatchanged = "YES";
if ((_scorecount1 == 0) && (_floodgate == 0)) {
_local1._scorecount1 = _scancount;
} else if ((_scorecount2 == 0) && (_floodgate == 0)) {
_local1._scorecount2 = _scancount;
}
_local1._floodgate++;
if (_floodgate == _scancount) {
_local1._floodgate = 0;
}
if (_bonusScan == "ON") {
checkbonus();
_local1._bonusScan = "OFF";
}
i = 11;
while (i >= 0) {
if (_local1._bingo_1[i] == _scantarget) {
_local1._eat_1[i] = 1;
if (_local2["a" + i]._currentframe < 10) {
_local2["a" + i].gotoandstop(Number(_local2["a" + i]._currentframe + 10));
}
}
if (_local1._bingo_2[i] == _scantarget) {
_local1._eat_2[i] = 1;
if (_local2["b" + i]._currentframe < 10) {
_local2["b" + i].gotoandstop(Number(_local2["b" + i]._currentframe + 10));
}
}
if (_local1._bingo_3[i] == _scantarget) {
_local1._eat_3[i] = 1;
if (_local2["c" + i]._currentframe < 10) {
_local2["c" + i].gotoandstop(Number(_local2["c" + i]._currentframe + 10));
}
}
if (_local1._bingo_4[i] == _scantarget) {
_local1._eat_4[i] = 1;
if (_local2["d" + i]._currentframe < 10) {
_local2["d" + i].gotoandstop(Number(_local2["d" + i]._currentframe + 10));
}
}
if (_local1._bingo_5[i] == _scantarget) {
_local1._eat_5[i] = 1;
if (_local2["e" + i]._currentframe < 10) {
_local2["e" + i].gotoandstop(Number(_local2["e" + i]._currentframe + 10));
}
}
if (_local1._bingo_6[i] == _scantarget) {
_local1._eat_6[i] = 1;
if (_local2["f" + i]._currentframe < 10) {
_local2["f" + i].gotoandstop(Number(_local2["f" + i]._currentframe + 10));
}
}
if (_local1._bingo_7[i] == _scantarget) {
_local1._eat_7[i] = 1;
if (_local2["g" + i]._currentframe < 10) {
_local2["g" + i].gotoandstop(Number(_local2["g" + i]._currentframe + 10));
}
}
if (_local1._bingo_8[i] == _scantarget) {
_local1._eat_8[i] = 1;
if (_local2["h" + i]._currentframe < 10) {
_local2["h" + i].gotoandstop(Number(_local2["h" + i]._currentframe + 10));
}
}
if (_local1._bingo_9[i] == _scantarget) {
_local1._eat_9[i] = 1;
if (_local2["i" + i]._currentframe < 10) {
_local2["i" + i].gotoandstop(Number(_local2["i" + i]._currentframe + 10));
}
}
i--;
}
}
}
function eatfruit() {
var _local1 = _global;
var _local2 = _root;
if (_local1._packscore == "ON") {
_local1["_col_" + _pack_aCol][_pack_aRow] = 0;
_local1["_col_" + _pack_bCol][_pack_bRow] = 0;
_local2.pop.start();
}
var _local3 = 0;
i = 11;
while (i >= 0) {
if (_local1._eat_1[i] != 0) {
_local1._col_1.splice(i, 1);
_local1._col_1.push("0");
_local2.bump1._height = Number(_local2.bump1._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_2[i] != 0) {
_local1._col_2.splice(i, 1);
_local1._col_2.push("0");
_local2.bump2._height = Number(_local2.bump2._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_3[i] != 0) {
_local1._col_3.splice(i, 1);
_local1._col_3.push("0");
_local2.bump3._height = Number(_local2.bump3._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_4[i] != 0) {
_local1._col_4.splice(i, 1);
_local1._col_4.push("0");
_local2.bump4._height = Number(_local2.bump4._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_5[i] != 0) {
_local1._col_5.splice(i, 1);
_local1._col_5.push("0");
_local2.bump5._height = Number(_local2.bump5._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_6[i] != 0) {
_local1._col_6.splice(i, 1);
_local1._col_6.push("0");
_local2.bump6._height = Number(_local2.bump6._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_7[i] != 0) {
_local1._col_7.splice(i, 1);
_local1._col_7.push("0");
_local2.bump7._height = Number(_local2.bump7._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_8[i] != 0) {
_local1._col_8.splice(i, 1);
_local1._col_8.push("0");
_local2.bump8._height = Number(_local2.bump8._height) - 20;
_local3++;
}
i--;
}
i = 11;
while (i >= 0) {
if (_local1._eat_9[i] != 0) {
_local1._col_9.splice(i, 1);
_local1._col_9.push("0");
_local2.bump9._height = Number(_local2.bump9._height) - 20;
_local3++;
}
i--;
}
groupscore(_local3);
cleareat();
}
Instance of Symbol 157 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_drop == "GO") {
_root.fall();
}
}
Frame 21
stop();
Frame 27
music1.start(0, 2000);
stop();
Frame 33
stopAllSounds();
stop();
var waitInterval;
if (waitInterval != undefined) {
clearInterval(waitInterval);
}
waitInterval = setInterval(function () {
clearInterval(waitInterval);
music_intro.start(0, 2000);
checkForHighScore();
}, 3000);
Frame 41
stop();
trace("isHighScore: " + _global.isHighScore);
if (_global.isHighScore) {
checkScore_mc.gotoAndStop("enter score");
_global.isHighScore = false;
} else {
checkScore_mc.gotoAndStop("high score");
}
_global.scoreForCode = 10000;
if (score >= _global.scoreForCode) {
checkScore_mc.receiveCode_mc.gotoAndPlay("show");
}
Instance of Symbol 4 MovieClip in Symbol 5 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.5);
if (_rotation < -360) {
_rotation = 0;
}
}
Symbol 13 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
if (_tune == 1) {
_global._tune = 2;
if (_music == "ON") {
_root.music1.stop();
_root.music2.start(0, 2000);
}
} else if (_tune == 2) {
_global._tune = 1;
if (_music == "ON") {
_root.music2.stop();
_root.music1.start(0, 2000);
}
}
stop();
Symbol 23 MovieClip Frame 3
if (_tune == 1) {
_global._tune = 2;
if (_music == "ON") {
_root.music1.stop();
_root.music2.start(0, 2000);
}
} else if (_tune == 2) {
_global._tune = 1;
if (_music == "ON") {
_root.music2.stop();
_root.music1.start(0, 2000);
}
}
stop();
Symbol 23 MovieClip Frame 4
if (_tune == 1) {
_global._tune = 2;
if (_music == "ON") {
_root.music1.stop();
_root.music2.start(0, 2000);
}
} else if (_tune == 2) {
_global._tune = 1;
if (_music == "ON") {
_root.music2.stop();
_root.music1.start(0, 2000);
}
}
stop();
Symbol 23 MovieClip Frame 5
if (_tune == 1) {
_global._tune = 2;
if (_music == "ON") {
_root.music1.stop();
_root.music2.start(0, 2000);
}
} else if (_tune == 2) {
_global._tune = 1;
if (_music == "ON") {
_root.music2.stop();
_root.music1.start(0, 2000);
}
}
stop();
Symbol 23 MovieClip Frame 6
if (_tune == 1) {
_global._tune = 2;
if (_music == "ON") {
_root.music1.stop();
_root.music2.start(0, 2000);
}
} else if (_tune == 2) {
_global._tune = 1;
if (_music == "ON") {
_root.music2.stop();
_root.music1.start(0, 2000);
}
}
stop();
Symbol 23 MovieClip Frame 7
if (_tune == 1) {
_global._tune = 2;
if (_music == "ON") {
_root.music1.stop();
_root.music2.start(0, 2000);
}
} else if (_tune == 2) {
_global._tune = 1;
if (_music == "ON") {
_root.music2.stop();
_root.music1.start(0, 2000);
}
}
stop();
Symbol 23 MovieClip Frame 8
if (_tune == 1) {
_global._tune = 2;
if (_music == "ON") {
_root.music1.stop();
_root.music2.start(0, 2000);
}
} else if (_tune == 2) {
_global._tune = 1;
if (_music == "ON") {
_root.music2.stop();
_root.music1.start(0, 2000);
}
}
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 26
gotoAndStop (1);
Symbol 62 MovieClip Frame 1
Symbol 78 MovieClip Frame 8
stop();
Symbol 81 MovieClip Frame 8
stop();
Symbol 84 MovieClip Frame 8
stop();
Symbol 87 MovieClip Frame 8
stop();
Symbol 90 MovieClip Frame 8
stop();
Symbol 93 MovieClip Frame 8
stop();
Symbol 98 MovieClip Frame 8
stop();
Symbol 99 MovieClip Frame 12
stop();
Symbol 99 MovieClip Frame 13
stop();
Symbol 99 MovieClip Frame 14
stop();
Symbol 99 MovieClip Frame 15
stop();
Symbol 99 MovieClip Frame 16
stop();
Symbol 99 MovieClip Frame 17
stop();
Symbol 99 MovieClip Frame 18
stop();
Symbol 99 MovieClip Frame 19
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 21
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 21
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 21
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 21
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 21
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 21
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 20
_root.bonus.fc1.gotoandstop(1);
_root.bonus.fc2.gotoandstop(1);
_root.bonus.fc3.gotoandstop(1);
_root.bonus.fc4.gotoandstop(1);
_root.bonus.fc5.gotoandstop(1);
_root.bonus.fc6.gotoandstop(1);
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 7
music.start(0, 2000);
Symbol 161 MovieClip Frame 31
_global._speed = _speedlimit;
_root.startDrop();
stop();
Symbol 161 MovieClip Frame 36
_global._scorecount1 = 0;
_global._scorecount2 = 0;
if (_global._gumpack == "ON") {
_root.packscan();
} else {
_root.activate();
}
Symbol 161 MovieClip Frame 44
i = 1;
while (i <= 9) {
if (_root["bump" + i]._height >= 240) {
_root.newgame();
_root.level_txt.text = _lastgamelevel;
_root.levelshadow_txt.text = _lastgamelevel;
_root.scoredisplay_txt.text = _lastscore;
_root.scoredisplayshadow_txt.text = _lastscore;
_root.gotoandstop("gameover");
break;
}
i++;
}
if ((_global._eatchanged == "YES") && (_global._drop != "STOP")) {
_global._eatchanged = "NO";
_root.eatfruit();
_root.stackfruit();
_root.checkgamelevel();
gotoAndPlay ("stopdrop");
} else if ((_global._eatchanged == "NO") && (_global._drop != "STOP")) {
_root.stackfruit();
gotoAndPlay ("drop");
} else {
gotoAndStop ("stopped");
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 20
_root.combo.combomessage.combo_txt.text = "0";
_root.combo.combomessageshadow.combo_txt.text = "0";
gotoAndStop (1);
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 22
gotoAndStop (1);
this._x = -1000;
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
stop();
Symbol 191 Button
on (release) {
clearInterval(_global.screenWaitInterval);
stopAllSounds();
music.start(0, 2000);
_root.scoredisplay1_txt.text = 0;
_root.background.gotoAndStop(1);
_parent.stackfruit();
_parent.newgame();
_root.spacer.gotoandplay("countdown");
_root.gotoAndStop("play");
}
Symbol 194 Button
on (release) {
clearInterval(_global.screenWaitInterval);
gotoAndPlay ("instructions");
}
Symbol 201 Button
on (release) {
_parent._parent.gotoAndPlay("intro");
}
Symbol 207 Button
on (press) {
startDrag ("_parent.drag", false, this._x, _parent.dragbgn + _parent.scroller, this._x, _parent.dragbgn);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 209 MovieClip Frame 1
dragbgn = drag._y;
contentbgn = content._y;
scroller = scrolllength._height;
Instance of Symbol 208 MovieClip "drag" in Symbol 209 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.content._y = _parent.contentbgn - (((_parent.content._height - _parent.scroller) / _parent.scroller) * (_parent.drag._y - _parent.dragbgn));
}
Symbol 209 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 50
stop();
if (_global.screenWaitInterval != undefined) {
clearInterval(_global.screenWaitInterval);
}
_global.screenWaitInterval = setInterval(function () {
clearInterval(_global.screenWaitInterval);
_global.isNextScreen = true;
gotoAndPlay ("instructions");
}, 10000);
Symbol 210 MovieClip Frame 74
if (_global.isNextScreen) {
stop();
_global.isNextScreen = false;
_parent.gotoAndStop("scores");
}
Symbol 210 MovieClip Frame 75
stop();
Symbol 212 Button
on (release) {
_global._music = "OFF";
stopAllSounds();
gotoAndStop (2);
}
Symbol 214 Button
on (release) {
if (_global._tune == 1) {
_root.music1.start(0, 2000);
} else if (_tune == 2) {
_root.music2.start(0, 2000);
}
_global._music = "ON";
gotoAndStop (1);
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 237 Button
on (release) {
_quality = "LOW";
gotoAndPlay ("hide");
}
Symbol 242 Button
on (release) {
getURL ("javascript:gotoCodeSection();");
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 12
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
play();
Symbol 251 MovieClip Frame 7
stop();
_quality = "HIGH";
var codeVars = new LoadVars();
codeVars.id = 1;
codeVars.onLoad = function (success) {
if (success) {
var _local1 = new String(codeVars.code);
code_txt.text = _local1.toUpperCase();
} else {
trace("error loading code data");
}
};
codeVars.sendAndLoad("../getCode.php", codeVars, "POST");
Symbol 251 MovieClip Frame 12
gotoAndStop (1);
Symbol 258 MovieClip Frame 1
stop();
Symbol 264 Button
on (release) {
_parent._parent.submitHighScore();
}
Symbol 265 MovieClip Frame 1
stop();
Selection.setFocus(initials_txt);
Selection.setSelection(0, 3);
Symbol 272 MovieClip Frame 1
stop();
Instance of Symbol 222 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.4);
if (_rotation <= -90) {
_rotation = 0;
}
}
Symbol 272 MovieClip Frame 2
stop();
_parent.displayHighScores();
if (_parent.score < _global.scoreForCode) {
if (_global.screenWaitInterval != undefined) {
clearInterval(_global.screenWaitInterval);
}
_global.screenWaitInterval = setInterval(function () {
clearInterval(_global.screenWaitInterval);
_parent.gotoAndStop("menu");
}, 10000);
}
Symbol 272 MovieClip Frame 11
stop();