Frame 1
stop();
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (enterFrame) {
_global.PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this.String_Preloaded = Math.round(_global.PercentLoaded) + "%";
if (PercentLoaded == 100) {
_root.gotoAndPlay(2);
}
}
Frame 2
stop();
_global.String_Mode = "Marathon Mode";
_global.String_Level = 1;
_global.String_Music = "on";
_global.String_Sound = "on";
_global.String_Summary = "Game Over, Bud.";
_global.String_Preview = "on";
_global.String_Background = "on";
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", "true");
fscommand ("showmenu", "false");
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
if (_global.String_Music == "off") {
stopAllSounds();
}
if (_global.String_Sound == "off") {
} else {
change_sound = new Sound();
change_sound.attachSound("change.wav");
drop_sound = new Sound();
drop_sound.attachSound("drop.wav");
pause_sound = new Sound();
pause_sound.attachSound("pause.wav");
start_sound = new Sound();
start_sound.attachSound("start.wav");
levelUp_sound = new Sound();
levelUp_sound.attachSound("levelUp.wav");
line1_sound = new Sound();
line1_sound.attachSound("line1.wav");
line2_sound = new Sound();
line2_sound.attachSound("line2.wav");
line3_sound = new Sound();
line3_sound.attachSound("line3.wav");
line4_sound = new Sound();
line4_sound.attachSound("line4.wav");
music1_sound = new Sound();
music1_sound.attachSound("music1.wav");
music2_sound = new Sound();
music2_sound.attachSound("music2.wav");
music3_sound = new Sound();
music3_sound.attachSound("music3.wav");
PieceMove = new Sound();
PieceMove.attachSound("PieceMove.mp3");
}
Frame 9
function gameTimer() {
if (Key.isDown(40)) {
_global.speedCnt = 46;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedHours < 10) {
hours = "0" + elapsedHours.toString();
} else {
hours = elapsedHours.toString();
}
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
Game_Timer = (((minutes + "'") + seconds) + "'") + "'";
_global.gameTimer_Value = (((minutes + "'") + seconds) + "'") + "'";
}
}
stop();
_global.linesmade = 0;
if (_global.String_Mode == "Marathon Mode") {
Game_Mode = "Marathon Mode";
} else {
Game_Mode = "40-Lines Mode";
}
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
_root.startTime = getTimer();
_root.paused = false;
_root.timing = true;
setInterval(gameTimer, 0.1);
function checkStage() {
rowBonus = 0;
row = 19;
while (row >= 0) {
if (((((((((_global.stage_array[row][0] && (_global.stage_array[row][1])) && (_global.stage_array[row][2])) && (_global.stage_array[row][3])) && (_global.stage_array[row][4])) && (_global.stage_array[row][5])) && (_global.stage_array[row][6])) && (_global.stage_array[row][7])) && (_global.stage_array[row][8])) && (_global.stage_array[row][9])) {
_global.score = _global.score + 500;
_global.clearedLines++;
_global.linesmade = _global.linesmade + 1;
rowBonus++;
inCol = 0;
while (inCol < 10) {
mainWindow_mc[(("tile" + row.toString()) + "|") + inCol.toString()].removeMovieClip();
inCol++;
}
inRow = row;
while (inRow >= 0) {
inCol = 0;
while (inCol < 10) {
_global.stage_array[inRow][inCol] = _global.stage_array[inRow - 1][inCol];
if (_global.stage_array[inRow - 1][inCol]) {
mainWindow_mc.attachMovie("tile" + mainWindow_mc[(("tile" + (inRow - 1).toString()) + "|") + inCol.toString()].saveColor, (("tile" + inRow.toString()) + "|") + inCol.toString(), _global.depth++);
mainWindow_mc[(("tile" + inRow.toString()) + "|") + inCol.toString()].saveColor = mainWindow_mc[(("tile" + (inRow - 1).toString()) + "|") + inCol.toString()].saveColor;
mainWindow_mc[(("tile" + inRow.toString()) + "|") + inCol.toString()]._x = mainWindow_mc[(("tile" + (inRow - 1).toString()) + "|") + inCol.toString()]._x;
mainWindow_mc[(("tile" + inRow.toString()) + "|") + inCol.toString()]._y = mainWindow_mc[(("tile" + (inRow - 1).toString()) + "|") + inCol.toString()]._y + 20;
mainWindow_mc[(("tile" + (inRow - 1).toString()) + "|") + inCol.toString()].removeMovieClip();
}
inCol++;
}
inRow--;
}
col = 0;
while (col < 10) {
_global.stage_array[0][col] = 0;
col++;
}
row++;
}
row--;
}
if (rowBonus > 1) {
_global.score = _global.score + (rowBonus * 7);
}
if (rowBonus == 1) {
line1_sound.start();
} else if (rowBonus == 2) {
line2_sound.start();
} else if (rowBonus == 3) {
line3_sound.start();
} else if (rowBonus == 4) {
line4_sound.start();
}
}
function changePiece() {
if (_global.currentPiece != null) {
pieces[_global.currentPiece].setNext();
change_sound.start();
for (piece in mainWindow_mc) {
if (piece.toString().substr(0, 5) == "piece") {
mainWindow_mc[piece].removeMovieClip();
}
}
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if (pieces[_global.currentPiece].getArray()[row][col]) {
mainWindow_mc.attachMovie("tile" + _global.lastColor, (("piece" + row.toString()) + "|") + col.toString(), _global.depth++);
mainWindow_mc[(("piece" + row.toString()) + "|") + col.toString()].saveColor = pieceColor;
mainWindow_mc[(("piece" + row.toString()) + "|") + col.toString()]._x = (col + _global.currentPiece_col) * 20;
mainWindow_mc[(("piece" + row.toString()) + "|") + col.toString()]._y = (row + _global.currentPiece_row) * 20;
}
col++;
}
row++;
}
}
updateHelpBar();
}
function drawPiece(moveDiag) {
if (_global.currentPiece == null) {
if (_global.nextPiece == null) {
_global.currentPiece = Math.floor(Math.random() * 7);
_global.nextPiece = Math.floor(Math.random() * 7);
pieceColor = Number(Math.floor(Math.random() * 5) + 1);
_global.lastColor = pieceColor;
do {
_global.nextPieceColor = Number(Math.floor(Math.random() * 5) + 1);
} while (_global.nextPieceColor == pieceColor);
updatePreview();
} else {
_global.currentPiece = _global.nextPiece;
pieceColor = (_global.lastColor = _global.nextPieceColor);
_global.nextPiece = Math.floor(Math.random() * 7);
do {
_global.nextPieceColor = Number(Math.floor(Math.random() * 5) + 1);
} while (_global.nextPieceColor == pieceColor);
updatePreview();
}
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if (pieces[_global.currentPiece].getArray()[row][col] && (_global.stage_array[_global.currentPiece_row + row][_global.currentPiece_col + col])) {
_global.runGame = false;
_global.gameOver = true;
_global.String_Status = "Game Over, Bud";
_root.paused = true;
_root.timing = false;
gameOverCtrl.gotoAndPlay(2);
}
col++;
}
row++;
}
if (_global.runGame) {
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if (pieces[_global.currentPiece].getArray()[row][col]) {
mainWindow_mc.attachMovie("tile" + pieceColor, (("piece" + row.toString()) + "|") + col.toString(), _global.depth++);
mainWindow_mc[(("piece" + row.toString()) + "|") + col.toString()].saveColor = pieceColor;
mainWindow_mc[(("piece" + row.toString()) + "|") + col.toString()]._x = (col + _global.currentPiece_col) * 20;
mainWindow_mc[(("piece" + row.toString()) + "|") + col.toString()]._y = (row + _global.currentPiece_row) * 20;
}
col++;
}
row++;
}
updateHelpBar();
}
} else if ((_global.speedCnt >= _global.speed) || (moveDiag)) {
if (moveDownCheck()) {
if (!moveDiag) {
_global.currentPiece_row++;
_global.speedCnt = 0;
}
for (piece in mainWindow_mc) {
if (piece.toString().substr(0, 5) == "piece") {
mainWindow_mc[piece]._x = (Number(piece.toString().substr(7, 1)) * 20) + (_global.currentPiece_col * 20);
mainWindow_mc[piece]._y = (Number(piece.toString().substr(5, 1)) * 20) + (_global.currentPiece_row * 20);
}
}
} else {
_global.score = _global.score + 5;
drop_sound.start();
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if (pieces[_global.currentPiece].getArray()[row][col]) {
_global.stage_array[_global.currentPiece_row + row][col + _global.currentPiece_col] = pieces[_global.currentPiece].getArray()[row][col];
}
col++;
}
row++;
}
for (piece in mainWindow_mc) {
if (piece.toString().substr(0, 5) == "piece") {
mainWindow_mc[piece]._x = (Number(piece.toString().substr(7, 1)) * 20) + (_global.currentPiece_col * 20);
mainWindow_mc[piece]._y = (Number(piece.toString().substr(5, 1)) * 20) + (_global.currentPiece_row * 20);
}
}
_global.currentPiece = null;
_global.currentPiece_row = 0;
_global.currentPiece_col = 4;
for (piece in mainWindow_mc) {
if (piece.toString().substr(0, 5) == "piece") {
tempRow = mainWindow_mc[piece]._y / 20;
tempCol = mainWindow_mc[piece]._x / 20;
mainWindow_mc.attachMovie("tile" + mainWindow_mc[piece].saveColor, (("tile" + tempRow) + "|") + tempCol, _global.depth++);
mainWindow_mc[(("tile" + tempRow) + "|") + tempCol]._x = mainWindow_mc[piece]._x;
mainWindow_mc[(("tile" + tempRow) + "|") + tempCol]._y = mainWindow_mc[piece]._y;
mainWindow_mc[(("tile" + tempRow) + "|") + tempCol].saveColor = mainWindow_mc[piece].saveColor;
mainWindow_mc[piece].removeMovieClip();
}
}
updateHelpBar();
}
} else {
_global.speedCnt++;
}
}
function updatePreview() {
for (piece_mc in previewWindow_mc) {
previewWindow_mc[piece_mc].removeMovieClip();
}
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if (pieces[_global.nextPiece].getArray()[row][col]) {
previewWindow_mc.attachMovie("tile" + _global.nextPieceColor, (("piece" + row.toString()) + "|") + col.toString(), _global.depth++);
previewWindow_mc[(("piece" + row.toString()) + "|") + col.toString()].saveColor = pieceColor;
previewWindow_mc[(("piece" + row.toString()) + "|") + col.toString()]._x = col * 20;
previewWindow_mc[(("piece" + row.toString()) + "|") + col.toString()]._y = row * 20;
}
col++;
}
row++;
}
}
function moveDownCheck() {
var _local2 = true;
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if ((pieces[_global.currentPiece].getArray()[row][col] && (_global.stage_array[(_global.currentPiece_row + row) + 1][col + _global.currentPiece_col])) || (pieces[_global.currentPiece].getArray()[row][col] && (((_global.currentPiece_row + row) + 1) >= 20))) {
_local2 = false;
}
col++;
}
row++;
}
return(_local2);
}
function moveLeftCheck() {
var _local2 = true;
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if ((pieces[_global.currentPiece].getArray()[row][col] && (_global.stage_array[_global.currentPiece_row + row][(col + _global.currentPiece_col) - 1])) || (_global.currentPiece_col <= 0)) {
_local2 = false;
}
col++;
}
row++;
}
return(_local2);
}
function moveRightCheck() {
var _local2 = true;
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if ((pieces[_global.currentPiece].getArray()[row][col] && (_global.stage_array[_global.currentPiece_row + row][(col + _global.currentPiece_col) + 1])) || (pieces[_global.currentPiece].getArray()[row][col] && (((col + _global.currentPiece_col) + 1) > 9))) {
_local2 = false;
}
col++;
}
row++;
}
return(_local2);
}
function pauseGame() {
if ((_global.currentPiece != null) && (!_global.gameOver)) {
_global.runGame = !_global.runGame;
pause_sound.start();
if (_global.runGame) {
stage_mc.pauseSign_mc.removeMovieClip();
} else {
stage_mc.attachMovie("pauseSign", "pauseSign_mc", depth++);
stage_mc.pauseSign_mc._x = 275;
stage_mc.pauseSign_mc._y = 200;
}
}
}
stop();
_global.stage_mc = this;
_global.depth = 0;
_global.runGame = true;
_global.gameOver = false;
_global.score = 0;
_global.level = 0;
_global.clearedLines = 0;
_global.speed = 45;
_global.speedCnt = 0;
_global.currentPiece = null;
_global.nextPiece = null;
_global.nextPieceColor = 0;
_global.currentPiece_row = 0;
_global.currentPiece_col = 4;
_global.lastColor = 0;
_global.windowUp = false;
_global.stage_array = new Array();
_global.stage_array = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
Piece = function (newPiece) {
this.piece_array = newPiece;
};
Piece.prototype.setNext = function () {
temp_array = new Array();
temp_array = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
temp_array[col][3 - row] = this.piece_array[row][col];
col++;
}
row++;
}
this.piece_array = temp_array;
while (!(((this.piece_array[0][0] || (this.piece_array[1][0])) || (this.piece_array[2][0])) || (this.piece_array[3][0]))) {
row = 0;
while (row < 4) {
col = 1;
while (col < 4) {
this.piece_array[row][col - 1] = this.piece_array[row][col];
col++;
}
row++;
}
this.piece_array[0][3] = 0;
this.piece_array[1][3] = 0;
this.piece_array[2][3] = 0;
this.piece_array[3][3] = 0;
}
};
Piece.prototype.testNext = function () {
returnBool = true;
temp_array = new Array();
temp_array = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]];
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
temp_array[col][3 - row] = this.piece_array[row][col];
col++;
}
row++;
}
while (!(((temp_array[0][0] || (temp_array[1][0])) || (temp_array[2][0])) || (temp_array[3][0]))) {
row = 0;
while (row < 4) {
col = 1;
while (col < 4) {
temp_array[row][col - 1] = temp_array[row][col];
col++;
}
row++;
}
temp_array[0][3] = 0;
temp_array[1][3] = 0;
temp_array[2][3] = 0;
temp_array[3][3] = 0;
}
row = 0;
while (row < 4) {
col = 0;
while (col < 4) {
if (((temp_array[row][col] && (_global.stage_array[row + _global.currentPiece_row][col + _global.currentPiece_col])) || (temp_array[row][col] && ((col + _global.currentPiece_col) > 9))) || (temp_array[row][col] && ((row + _global.currentPiece_row) > 19))) {
returnBool = false;
}
col++;
}
row++;
}
return(returnBool);
};
Piece.prototype.getArray = function () {
return(this.piece_array);
};
pieces = new Array();
pieces.push(new Piece([[1, 1, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]));
pieces.push(new Piece([[1, 1, 1, 0], [0, 0, 1, 0], [0, 0, 0, 0], [0, 0, 0, 0]]));
pieces.push(new Piece([[0, 0, 1, 0], [1, 1, 1, 0], [0, 0, 0, 0], [0, 0, 0, 0]]));
pieces.push(new Piece([[0, 1, 0, 0], [1, 1, 1, 0], [0, 0, 0, 0], [0, 0, 0, 0]]));
pieces.push(new Piece([[1, 1, 0, 0], [1, 1, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]));
pieces.push(new Piece([[1, 0, 0, 0], [1, 1, 0, 0], [0, 1, 0, 0], [0, 0, 0, 0]]));
pieces.push(new Piece([[0, 1, 0, 0], [1, 1, 0, 0], [1, 0, 0, 0], [0, 0, 0, 0]]));
keyListener = new Object();
keyListener.onKeyDown = function () {
if (_global.runGame && (_global.currentPiece != null)) {
if (Key.isDown(37)) {
PieceMove.start();
if (moveLeftCheck()) {
_global.currentPiece_col--;
}
drawPiece(true);
updateHelpBar();
} else if (Key.isDown(39)) {
PieceMove.start();
if (moveRightCheck()) {
_global.currentPiece_col++;
}
drawPiece(true);
updateHelpBar();
} else if (Key.isDown(38)) {
if (pieces[_global.currentPiece].testNext()) {
changePiece();
}
} else if (Key.isDown(40)) {
dropPiece();
}
}
};
Key.addListener(keyListener);
playMusic();
stage_mc.createEmptyMovieClip("scoreWindow_mc", depth++);
stage_mc.scoreWindow_mc._x = 105;
stage_mc.scoreWindow_mc._y = 182;
stage_mc.scoreWindow_mc.score = -1;
stage_mc.createEmptyMovieClip("levelWindow_mc", depth++);
stage_mc.levelWindow_mc._x = 20;
stage_mc.levelWindow_mc._y = 182;
stage_mc.scoreWindow_mc.onEnterFrame = function () {
if (stage_mc.scoreWindow_mc.score < _global.score) {
stage_mc.scoreWindow_mc.score++;
for (num in stage_mc.scoreWindow_mc) {
stage_mc.scoreWindow_mc[num].removeMovieClip();
}
newNumString = "000000".concat(stage_mc.scoreWindow_mc.score.toString()).substring(stage_mc.scoreWindow_mc.score.toString().length + 1, stage_mc.scoreWindow_mc.score.toString().length + 6);
pos = 0;
while (pos < newNumString.length) {
stage_mc.scoreWindow_mc.attachMovie("num" + newNumString.substr(pos, 1), "num" + pos, depth++);
stage_mc.scoreWindow_mc["num" + pos]._x = pos * 25;
stage_mc.scoreWindow_mc["num" + pos]._y = 0;
pos++;
}
if ((_global.clearedLines >= _global.levelChange) || (_global.level == 0)) {
for (num in stage_mc.levelWindow_mc) {
stage_mc.levelWindow_mc[num].removeMovieClip();
}
_global.level++;
if (_global.level != 1) {
levelUp_sound.start();
}
_global.clearedLines = 0;
if (_global.speed >= 0) {
_global.speed = _global.speed - 1.9;
}
newNumString = "00".concat(_global.level.toString()).substring(_global.level.toString().length, _global.level.toString().length + 2);
pos = 0;
while (pos < newNumString.length) {
stage_mc.levelWindow_mc.attachMovie("num" + newNumString.substr(pos, 1), "num" + pos, depth++);
stage_mc.levelWindow_mc["num" + pos]._x = pos * 25;
stage_mc.levelWindow_mc["num" + pos]._y = 0;
pos++;
}
}
}
};
stage_mc.pauseGame_btn.onPress = function () {
if (!_global.windowUp) {
pauseGame();
}
};
stage_mc.onEnterFrame = function () {
if (_global.runGame) {
checkStage();
drawPiece();
}
};
if (_global.String_Level == 2) {
_global.level = 2;
_global.speed = 41.5;
}
if (_global.String_Level == 3) {
_global.level = 3;
_global.speed = 38;
}
if (_global.String_Level == 4) {
_global.level = 4;
_global.speed = 34.5;
}
if (_globalString_Level == 5) {
_global.level = 5;
_global.speed = 31;
}
if (_root.String_Level == 6) {
_global.level = 6;
_global.speed = 27.5;
}
if (_global.String_Level == 7) {
_global.level = 7;
_global.speed = 24.5;
}
if (_global.String_Level == 8) {
_global.level = 8;
_global.speed = 20.5;
}
if (_global.String_Level == 9) {
_global.level = 9;
_global.speed = 17;
}
Instance of Symbol 239 MovieClip "scrollingbackground" in Frame 9
onClipEvent (load) {
if (_global.String_Background == "off") {
this.gotoAndStop(14);
this._alpha = 0;
} else {
this._alpha = 100;
}
}
Instance of Symbol 242 MovieClip "mainWindow_mc" in Frame 9
onClipEvent (enterFrame) {
_root.Game_Level = "LEVEL " + _global.level;
_root.Game_Score = _global.score;
if (_global.levelChange == 45) {
_root.Game_Lines = ((_global.linesmade + " (") + Math.round(40 - _global.clearedLines)) + ")";
} else {
_root.Game_Lines = ((_global.linesmade + " (") + Math.round(_global.levelChange - _global.clearedLines)) + ")";
}
if (_global.clearedLines == 40) {
_global.String_Summary = "Hey, nice job!";
_root.gotoAndPlay("GameSummary");
} else {
_global.String_Summary = "Game Over, Bud.";
}
}
Instance of Symbol 261 MovieClip "previewWindow_mc" in Frame 9
onClipEvent (load) {
if (_global.String_Preview == "off") {
this._alpha = 0;
} else {
this._alpha = 100;
}
}
Symbol 22 MovieClip Frame 285
_root.gotoAndPlay("SplashScreen");
Symbol 27 MovieClip Frame 434
gotoAndPlay (5);
Symbol 33 MovieClip Frame 24
gotoAndPlay (1);
Symbol 33 MovieClip Frame 30
stop();
_root.gotoAndPlay(3);
Symbol 35 Button
on (keyPress "<Enter>") {
_root.Logo.gotoAndPlay(6);
}
Symbol 36 MovieClip Frame 5
stop();
Symbol 36 MovieClip Frame 10
_root.gotoAndPlay("MainMenu");
Symbol 64 Button
on (keyPress "<Up>") {
gotoAndPlay (5);
}
on (keyPress "<Down>") {
nextFrame();
}
on (keyPress "<Enter>") {
stopAllSounds();
_global.score = 0;
_global.level = 0;
_global.clearedLines = 0;
_global.speedCnt = 0;
stage_mc.scoreWindow_mc.score = -1;
for (piece in mainWindow_mc) {
_root.mainWindow_mc[piece].removeMovieClip();
}
_global.currentPiece = null;
_global.currentPiece_row = 0;
_global.currentPiece_col = 4;
stage_mc.pauseSign_mc.removeMovieClip();
_global.stage_array = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
_root.gotoAndPlay("GetReady");
}
Symbol 67 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
nextFrame();
}
on (keyPress "<Enter>") {
stopAllSounds();
_global.score = 0;
_global.level = 0;
_global.clearedLines = 0;
_global.speedCnt = 0;
stage_mc.scoreWindow_mc.score = -1;
for (piece in mainWindow_mc) {
_root.mainWindow_mc[piece].removeMovieClip();
}
_global.currentPiece = null;
_global.currentPiece_row = 0;
_global.currentPiece_col = 4;
stage_mc.pauseSign_mc.removeMovieClip();
_global.stage_array = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
_root.gotoAndPlay("GetReady");
}
Symbol 69 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
nextFrame();
}
Symbol 71 Button
on (keyPress "<Left>") {
prevFrame();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 73 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 80 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 82 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
}
Symbol 83 MovieClip Frame 1
stop();
_global.String_Level = 1;
Symbol 83 MovieClip Frame 2
stop();
_global.String_Level = 2;
Symbol 83 MovieClip Frame 3
stop();
_global.String_Level = 3;
Symbol 83 MovieClip Frame 4
stop();
_global.String_Level = 4;
Symbol 83 MovieClip Frame 5
stop();
_global.String_Level = 5;
Symbol 83 MovieClip Frame 6
stop();
_global.String_Level = 6;
Symbol 83 MovieClip Frame 7
stop();
_global.String_Level = 7;
Symbol 83 MovieClip Frame 8
stop();
_global.String_Level = 8;
Symbol 83 MovieClip Frame 9
stop();
_global.String_Level = 9;
Symbol 85 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
nextFrame();
}
on (keyPress "<Enter>") {
_root.gotoAndPlay("Options");
}
Symbol 88 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
gotoAndPlay (1);
}
on (keyPress "<Enter>") {
_root.gotoAndPlay("HighScores");
}
Symbol 90 MovieClip Frame 1
stop();
Game_Level = "Starting Level: " + _global.String_Level;
_global.String_Mode = "Marathon Mode";
_global.levelChange = 20;
Symbol 90 MovieClip Frame 2
stop();
Game_Level = "Starting Level: " + _global.String_Level;
_global.String_Mode = "40-Lines Mode";
_global.levelChange = 45;
Symbol 90 MovieClip Frame 3
stop();
Instance of Symbol 83 MovieClip in Symbol 90 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_global.String_Level);
}
Symbol 90 MovieClip Frame 4
stop();
Game_Level = "Starting Level: " + _global.String_Level;
Symbol 90 MovieClip Frame 5
stop();
Game_Level = "Starting Level: " + _global.String_Level;
Symbol 92 Button
on (release) {
getURL ("http://www.dgsgaming.newgrounds.com/");
}
Symbol 96 Button
on (release) {
getURL ("http://www.newgrounds.com/");
}
Symbol 97 MovieClip Frame 21
Game_Level = "Starting Level: " + _global.String_Level;
Symbol 97 MovieClip Frame 41
stop();
Symbol 117 MovieClip Frame 5
stop();
Symbol 117 MovieClip Frame 11
stop();
Symbol 117 MovieClip Frame 17
stop();
Symbol 117 MovieClip Frame 23
stop();
Symbol 117 MovieClip Frame 29
stop();
Symbol 117 MovieClip Frame 35
stop();
Symbol 123 Button
on (keyPress "<Up>") {
gotoAndPlay (6);
}
on (keyPress "<Down>") {
nextFrame();
}
Symbol 125 Button
on (keyPress "<Left>") {
gotoAndPlay (2);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 127 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
gotoAndPlay (1);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 128 MovieClip Frame 1
stop();
_global.String_Background = "on";
Symbol 128 MovieClip Frame 2
stop();
_global.String_Background = "off";
Symbol 129 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
nextFrame();
}
Symbol 135 Button
on (keyPress "<Left>") {
gotoAndPlay (2);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 137 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
gotoAndPlay (1);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 138 MovieClip Frame 1
stop();
_global.String_Preview = "on";
Symbol 138 MovieClip Frame 2
stop();
_global.String_Preview = "off";
Symbol 144 Button
on (keyPress "<Left>") {
gotoAndPlay (3);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 146 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 148 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
gotoAndPlay (1);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 149 MovieClip Frame 1
stop();
_root._quality = "HIGH";
Symbol 149 MovieClip Frame 2
stop();
_root._quality = "MEDIUM";
Symbol 149 MovieClip Frame 3
stop();
_root._quality = "LOW";
Symbol 155 Button
on (keyPress "<Left>") {
gotoAndPlay (2);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 157 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
gotoAndPlay (1);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 158 MovieClip Frame 1
stop();
_global.String_Music = "on";
Symbol 158 MovieClip Frame 2
stop();
_global.String_Music = "off";
Symbol 164 Button
on (keyPress "<Left>") {
gotoAndPlay (2);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
nextFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 166 Button
on (keyPress "<Left>") {
prevFrame();
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
on (keyPress "<Right>") {
gotoAndPlay (1);
valuemove = new Sound();
valuemove.attachSound("valuemove.mp3");
valuemove.start();
}
Symbol 167 MovieClip Frame 1
stop();
_global.String_Sound = "on";
Symbol 167 MovieClip Frame 2
stop();
_global.String_Sound = "off";
Symbol 168 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
gotoAndPlay (1);
}
on (keyPress "<Enter>") {
_root.gotoAndPlay("MainMenu");
}
Symbol 175 MovieClip Frame 1
stop();
Game_Preview = "Preview Window: " + _global.String_Preview;
Game_Quality = "Game Quality: " + _root._quality;
Game_Music = "Music: " + _global.String_Music;
Game_Sound = "Sound Effects: " + _global.String_Sound;
Animation_Descriptions.gotoAndPlay(1);
Instance of Symbol 128 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
if (_global.String_Background == "on") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 175 MovieClip Frame 2
stop();
Game_Background = "Scrolling Background: " + _global.String_Background;
Game_Quality = "Game Quality: " + _root._quality;
Game_Music = "Music: " + _global.String_Music;
Game_Sound = "Sound Effects: " + _global.String_Sound;
Animation_Descriptions.gotoAndPlay(6);
Instance of Symbol 138 MovieClip in Symbol 175 MovieClip Frame 2
onClipEvent (load) {
if (_global.String_Preview == "on") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 175 MovieClip Frame 3
stop();
Game_Background = "Scrolling Background: " + _global.String_Background;
Game_Preview = "Preview Window: " + _global.String_Preview;
Game_Music = "Music: " + _global.String_Music;
Game_Sound = "Sound Effects: " + _global.String_Sound;
Animation_Descriptions.gotoAndPlay(12);
Instance of Symbol 149 MovieClip in Symbol 175 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_root._quality);
}
Symbol 175 MovieClip Frame 4
stop();
Game_Background = "Scrolling Background: " + _global.String_Background;
Game_Preview = "Preview Window: " + _global.String_Preview;
Game_Quality = "Game Quality: " + _root._quality;
Game_Sound = "Sound Effects: " + _global.String_Sound;
Animation_Descriptions.gotoAndPlay(18);
Instance of Symbol 158 MovieClip in Symbol 175 MovieClip Frame 4
onClipEvent (load) {
if (_global.String_Music == "on") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 175 MovieClip Frame 5
stop();
Game_Background = "Scrolling Background: " + _global.String_Background;
Game_Preview = "Preview Window: " + _global.String_Preview;
Game_Quality = "Game Quality: " + _root._quality;
Game_Music = "Music: " + _global.String_Music;
Animation_Descriptions.gotoAndPlay(24);
Instance of Symbol 167 MovieClip in Symbol 175 MovieClip Frame 5
onClipEvent (load) {
if (_global.String_Sound == "on") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 175 MovieClip Frame 6
stop();
Game_Background = "Scrolling Background: " + _global.String_Background;
Game_Preview = "Preview Window: " + _global.String_Preview;
Game_Quality = "Game Quality: " + _root._quality;
Game_Music = "Music: " + _global.String_Music;
Game_Sound = "Sound Effects: " + _global.String_Sound;
Animation_Descriptions.gotoAndPlay(30);
Symbol 176 MovieClip Frame 5
Game_Background = "Scrolling Background: " + _global.String_Background;
Game_Preview = "Preview Window: " + _global.String_Preview;
Game_Quality = "Game Quality: " + _root._quality;
Game_Music = "Music: " + _global.String_Music;
Game_Sound = "Sound Effects: " + _global.String_Sound;
Symbol 176 MovieClip Frame 41
stop();
Symbol 198 Button
on (keyPress "<Enter>") {
_root.gotoAndPlay("MainMenu");
}
Symbol 200 MovieClip Frame 36
stop();
Symbol 227 Button
on (keyPress "<Up>") {
gotoAndPlay (3);
}
on (keyPress "<Down>") {
nextFrame();
}
on (keyPress "<Enter>") {
stopAllSounds();
_global.score = 0;
_global.level = 0;
_global.clearedLines = 0;
_global.speedCnt = 0;
stage_mc.scoreWindow_mc.score = -1;
for (piece in mainWindow_mc) {
_root.mainWindow_mc[piece].removeMovieClip();
}
_global.currentPiece = null;
_global.currentPiece_row = 0;
_global.currentPiece_col = 4;
stage_mc.pauseSign_mc.removeMovieClip();
_global.stage_array = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
_root.gotoAndPlay("GetReady");
}
Symbol 229 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
nextFrame();
}
on (keyPress "<Enter>") {
_root.gotoAndPlay("HighScores");
}
Symbol 231 Button
on (keyPress "<Up>") {
prevFrame();
}
on (keyPress "<Down>") {
gotoAndPlay (1);
}
on (keyPress "<Enter>") {
_root.gotoAndPlay("MainMenu");
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 3
stop();
Symbol 233 MovieClip Frame 1
Summary_Status = _global.String_Summary;
Summary_Mode = _global.String_Mode + " Summary";
Summary_Score = _global.score;
Summary_Lines = _global.linesmade;
Summary_Time = _global.gameTimer_Value;
Summary_Rank = "N/A";
Symbol 233 MovieClip Frame 51
stop();
Summary_Status = _global.String_Summary;
Summary_Mode = _global.String_Mode + " Summary";
Summary_Score = _global.score;
Summary_Lines = _global.linesmade;
Summary_Rank = "N/A";
Symbol 235 MovieClip Frame 111
_root.gotoAndPlay("Game");
Symbol 239 MovieClip Frame 13
gotoAndPlay (1);
Symbol 239 MovieClip Frame 14
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 5
_root.mainWindow_mc._alpha = 0;
stopAllSounds();
Symbol 244 MovieClip Frame 10
_root.mainWindow_mc._alpha = 100;
Symbol 244 MovieClip Frame 15
_root.mainWindow_mc._alpha = 0;
Symbol 244 MovieClip Frame 20
_root.mainWindow_mc._alpha = 100;
Symbol 244 MovieClip Frame 25
_root.mainWindow_mc._alpha = 0;
Symbol 244 MovieClip Frame 30
_root.mainWindow_mc._alpha = 100;
Symbol 244 MovieClip Frame 35
_root.mainWindow_mc._alpha = 0;
Symbol 244 MovieClip Frame 40
_root.mainWindow_mc._alpha = 100;
Symbol 244 MovieClip Frame 45
_root.mainWindow_mc._alpha = 0;
Symbol 244 MovieClip Frame 50
_root.mainWindow_mc._alpha = 100;
Symbol 244 MovieClip Frame 55
_root.mainWindow_mc._alpha = 0;
Symbol 244 MovieClip Frame 60
_root.gotoAndPlay("GameSummary");
Symbol 250 Button
on (keyPress "p") {
gotoAndPlay (2);
}
on (keyPress "P") {
gotoAndPlay (2);
}
Symbol 252 Button
on (keyPress "p") {
gotoAndPlay (6);
}
on (keyPress "P") {
gotoAndPlay (6);
}
on (keyPress "Q") {
stopAllSounds();
_global.String_Summary = "You were doing so well! Why'd ya quit?";
_root.gotoAndPlay("GameSummary");
}
on (keyPress "q") {
stopAllSounds();
_global.String_Summary = "You were doing so well! Why'd ya quit?";
_root.gotoAndPlay("GameSummary");
}
Symbol 253 MovieClip Frame 1
_root.paused = false;
_root.timing = true;
stop();
if (_global.String_Background == "on") {
_root.scrollingbackground.play();
_global.runGame = true;
}
Symbol 253 MovieClip Frame 2
_root.mainWindow_mc._alpha = 75;
Symbol 253 MovieClip Frame 3
_root.mainWindow_mc._alpha = 50;
Symbol 253 MovieClip Frame 4
_root.mainWindow_mc._alpha = 25;
Symbol 253 MovieClip Frame 5
_root.paused = true;
_root.timing = false;
stop();
_root.scrollingbackground.stop();
_global.runGame = false;
Symbol 253 MovieClip Frame 6
_root.mainWindow_mc._alpha = 25;
Symbol 253 MovieClip Frame 7
_root.mainWindow_mc._alpha = 50;
Symbol 253 MovieClip Frame 8
_root.mainWindow_mc._alpha = 75;
Symbol 253 MovieClip Frame 9
_root.mainWindow_mc._alpha = 100;
_root.startTime = getTimer() - _root.elapsedTime;