STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228129
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/20082198?noj=FRM20082198-15DC" width="1" height="1"></div>

Tetrix 2.swf

This is the info page for
Flash #22881

(Click the ID number above for more basic data on this flash file.)


Text
loading...

www.ultimatearcade.com

loadin
g...

TO PLAY THE HIGH SCORE VERSION PLEASE CLICK HERE

TO PLAY THE HIGH SCORE VERSION PLEASE CLICK HERE

text1

saving
...

text1

v1.0

name1

score1

name1

score1

name1

score1

name1

score1

name1

score1

v1.0

name1

Press "P" to
Pause the Game!

00

ActionScript [AS1/AS2]

Frame 1
c1 = _url.indexOf("://") + 3; c2 = _url.indexOf("/", c1); domain = _url.substring(c1, c2); if ((domain == "70.84.129.52") || (domain == "www.ultimatearcade.com")) { url = "yes"; } else { url = "no"; } fscommand ("fullscreen", "false"); fscommand ("allowscale", "false"); fscommand ("showmenu", "false"); stop();
Instance of Symbol 14 MovieClip "loadingLogo" in Frame 1
onClipEvent (load) { total = _root.getBytesTotal(); } onClipEvent (enterFrame) { loaded = _root.getBytesLoaded(); percent = int((loaded / total) * 100); text = ("Loaded " + percent) + "%"; gotoAndStop(percent); if (loaded == total) { _root.gotoAndStop(3); } else { stop(); } }
Frame 3
_global.stage_mc = this; stop();
Frame 21
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 + 10; _global.clearedLines++; 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 * 5); } 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; showGameOverWindow(); } 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 + 2; 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 updateHelpBar() { farCol = 0; row = 0; while (row < 4) { col = 0; while (col < 4) { if (pieces[_global.currentPiece].getArray()[row][col] && (farCol < col)) { farCol = col; } col++; } row++; } helpBarWindow_mc.helpBar_mc._x = _global.currentPiece_col * 20; helpBarWindow_mc.helpBar_mc._width = (farCol + 1) * 20; } 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 dropPiece() { while (moveDownCheck()) { _global.currentPiece_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.speedCnt = 0; drawPiece(); } 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; } } } function playMusic() { stage_mc.title_mc.removeMovieClip(); stage_mc.attachMovie("title" + _global.currentMusic, "title_mc", depth++); stage_mc.title_mc._x = 12; stage_mc.title_mc._y = 1420; if (_global.currentMusic == 1) { music1_sound.start(); music1_sound.onSoundComplete = function () { music1_sound.start(); }; } else if (_global.currentMusic == 2) { music2_sound.start(); music2_sound.onSoundComplete = function () { music2_sound.start(); }; } else if (_global.currentMusic == 3) { music3_sound.start(); music3_sound.onSoundComplete = function () { music3_sound.start(); }; } } function showGameOverWindow() { if (!_global.windowUp) { stage_mc.attachMovie("gameOverWindow", "gameOverWindow_mc", depth++); stage_mc.gameOverWindow_mc._x = 145; stage_mc.gameOverWindow_mc._y = 180; _global.windowUp = true; } } function stopMusic() { if (_global.currentMusic == 1) { music1_sound.stop("music1.wav"); } else if (_global.currentMusic == 2) { music2_sound.stop("music2.wav"); } else if (_global.currentMusic == 3) { music3_sound.stop("music3.wav"); } } function startNew() { _global.depth = 0; _global.runGame = false; _global.gameOver = false; _global.windowUp = false; stage_mc.gameOverWindow_mc.removeMovieClip(); if (!_global.windowUp) { start_sound.start(); _global.runGame = true; _global.gameOver = false; _global.score = 0; _global.level = 0; _global.clearedLines = 0; _global.speed = 18; _global.speedCnt = 0; stage_mc.scoreWindow_mc.score = -1; for (piece in mainWindow_mc) { 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]]; } } 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"); _global.currentMusic = 2; _global.depth = 0; _global.runGame = false; _global.gameOver = false; _global.score = 0; _global.level = 0; _global.levelChange = 20; _global.clearedLines = 0; _global.speed = 18; _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)) { if (moveLeftCheck()) { _global.currentPiece_col--; } drawPiece(true); updateHelpBar(); } else if (Key.isDown(39)) { 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 = 75; stage_mc.scoreWindow_mc._y = 255; stage_mc.scoreWindow_mc.score = -1; stage_mc.createEmptyMovieClip("levelWindow_mc", depth++); stage_mc.levelWindow_mc._x = 525; stage_mc.levelWindow_mc._y = 330; 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--; } 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.pause_mc.onPress = function () { stopMusic(); }; stage_mc.play_mc.onPress = function () { playMusic(); }; stage_mc.ff_mc.onPress = function () { stopMusic(); if ((++_global.currentMusic) > 3) { _global.currentMusic = 1; } playMusic(); }; stage_mc.rewind_mc.onPress = function () { stopMusic(); if ((--_global.currentMusic) < 1) { _global.currentMusic = 3; } playMusic(); }; stage_mc.highScores_btn.onPress = function () { if (_global.runGame) { pauseGame(); } if (!_global.windowUp) { stage_mc.attachMovie("highScoresWindow", "highScoresWindow_mc", depth++); stage_mc.highScoresWindow_mc._x = 175; stage_mc.highScoresWindow_mc._y = 100; _global.windowUp = true; } }; stage_mc.newGame_btn.onPress = function () { _global.depth = 0; _global.runGame = false; _global.gameOver = false; _global.windowUp = false; stage_mc.gameOverWindow_mc.removeMovieClip(); if (!_global.windowUp) { start_sound.start(); _global.runGame = true; _global.gameOver = false; _global.score = 0; _global.level = 0; _global.clearedLines = 0; _global.speed = 18; _global.speedCnt = 0; stage_mc.scoreWindow_mc.score = -1; for (piece in mainWindow_mc) { 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]]; } }; stage_mc.onEnterFrame = function () { if (_global.runGame) { checkStage(); drawPiece(); } if (_root.startNewGame == "yes") { startNew(); _root.startNewGame = "no"; } if (_root.pauseTimer < 10) { _root.pauseTimer++; } if (Key.isDown(80) and (_root.pauseTimer > 5)) { if (!_global.windowUp) { pauseGame(); _root.pauseTimer = 0; } } }; _root.points = 0; _root.pauseTimer = 0;
Instance of Symbol 157 MovieClip "previewWindow_mc" in Frame 21
onClipEvent (enterFrame) { this._x = _root.shape._x - (this._width / 2); this._y = _root.shape._y - (this._height / 2); }
Instance of Symbol 163 MovieClip "shape" in Frame 21
onClipEvent (load) { this._visible = 0; }
Instance of Symbol 166 MovieClip in Frame 21
onClipEvent (enterFrame) { _root.points = _global.score; }
Symbol 17 Button
on (release) { getURL ("http://www.ultimatearcade.com/", "_blank"); }
Symbol 25 MovieClip Frame 81
_root.gotoAndStop("start"); stop();
Symbol 51 Button
on (release) { _root.startNewGame = "yes"; }
Symbol 55 Button
on (release) { getURL ("http://www.ultimatearcade.com/downloads/", "_blank"); } on (rollOver) { hsversion.gotoAndStop(1); }
Symbol 56 Button
on (release) { getURL ("http://www.ultimatearcade.com/", "_blank"); } on (rollOver) { hsversion.gotoAndStop(1); }
Symbol 57 Button
on (rollOver) { hsversion.gotoAndStop(2); }
Symbol 62 Button
on (release) { getURL ("http://www.ultimatearcade.com/puzzles/games/tetrix_2.html", "_top"); }
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 66 Button
on (release) { getURL ("http://www.ultimatearcade.com/downloads/", "_blank"); }
Symbol 67 Button
on (release) { if (_root.url != "yes") { getURL ("http://www.ultimatearcade.com/puzzles/games/tetrix_2.html", "_top"); } else { _root.view_scores = 1; loadMovieNum ("scores.xml", 25); } }
Symbol 68 MovieClip Frame 49
stop();
Symbol 68 MovieClip Frame 50
stop();
Symbol 73 MovieClip [gameOverWindow] Frame 1
stop();
Symbol 73 MovieClip [gameOverWindow] Frame 2
function order(a, b) { if (Number(a.score) < Number(b.score)) { return(-1); } if (Number(a.score) > Number(b.score)) { return(1); } return(0); } gameOver_mc = this; depth = 0; dataSender = new LoadVars(); dataReceiver = new LoadVars(); dataReceiver.onLoad = function () { gameOver_mc.gotoAndStop("loaded"); gameOver_mc.highScores_array = new Array(); gameOver_mc.highScores_array.push({name:this.name1, score:this.score1}); gameOver_mc.highScores_array.push({name:this.name2, score:this.score2}); gameOver_mc.highScores_array.push({name:this.name3, score:this.score3}); gameOver_mc.highScores_array.push({name:this.name4, score:this.score4}); gameOver_mc.highScores_array.push({name:this.name5, score:this.score5}); gameOver_mc.highScores_array.push({name:"enter your name", score:_global.score}); gameOver_mc.highScores_array.sort(order); if (gameOver_mc.highScores_array[0].name != "enter your name") { gameOver_mc.desc = "Congratulations! You have reached a high score!"; gameOver_mc.attachMovie("newName", "inName_mc", depth++); gameOver_mc.inName_mc._x = 45; gameOver_mc.inName_mc._y = 145; gameOver_mc.inName_mc.inName = "enter your name"; Selection.setFocus("gameOver_mc.inName_mc.inName_txt"); } else { gameOver_mc.desc = "Good try, but you did not get a high score."; gameOver_mc.gotoAndStop("lowScore"); } }; dataSender.cacheKiller = new Date().getTime(); dataSender.action = "getScores"; dataSender.sendAndLoad(_global.highScoresScript, dataReceiver, "GET"); gameOver_mc.gotoAndStop("loading");
Symbol 73 MovieClip [gameOverWindow] Frame 5
dataSender = new LoadVars(); dataReceiver = new LoadVars(); dataReceiver.onLoad = function () { _global.windowUp = false; gameOver_mc.removeMovieClip(); }; gameOver_mc.save_btn.onRelease = function () { counter = 1; while (counter <= 5) { if (gameOver_mc.highScores_array[counter].name == "enter your name") { if (gameOver_mc.inName_mc.inName == "enter your name") { gameOver_mc.highScores_array[counter].name = "Anonymous"; } else { gameOver_mc.highScores_array[counter].name = gameOver_mc.inName_mc.inName; } } counter++; } dataSender.cacheKiller = new Date().getTime(); dataSender.action = "saveScores"; dataSender.name1 = gameOver_mc.highScores_array[5].name; dataSender.name2 = gameOver_mc.highScores_array[4].name; dataSender.name3 = gameOver_mc.highScores_array[3].name; dataSender.name4 = gameOver_mc.highScores_array[2].name; dataSender.name5 = gameOver_mc.highScores_array[1].name; dataSender.score1 = gameOver_mc.highScores_array[5].score; dataSender.score2 = gameOver_mc.highScores_array[4].score; dataSender.score3 = gameOver_mc.highScores_array[3].score; dataSender.score4 = gameOver_mc.highScores_array[2].score; dataSender.score5 = gameOver_mc.highScores_array[1].score; dataSender.sendAndLoad(_global.highScoresScript, dataReceiver, "GET"); gameOver_mc.gotoAndStop("saving"); }; stop();
Symbol 73 MovieClip [gameOverWindow] Frame 15
gameOver_mc.close_btn.onRelease = function () { _global.windowUp = false; gameOver_mc.removeMovieClip(); };
Symbol 89 MovieClip [highScoresWindow] Frame 1
highScores_mc = this; highScores_mc.close_btn.onRelease = function () { _global.windowUp = false; highScores_mc.removeMovieClip(); }; dataSender = new LoadVars(); dataReceiver = new LoadVars(); dataReceiver.onLoad = function () { highScores_mc.gotoAndStop("loaded"); highScores_mc.name1 = this.name1; highScores_mc.name2 = this.name2; highScores_mc.name3 = this.name3; highScores_mc.name4 = this.name4; highScores_mc.name5 = this.name5; highScores_mc.score1 = this.score1; highScores_mc.score2 = this.score2; highScores_mc.score3 = this.score3; highScores_mc.score4 = this.score4; highScores_mc.score5 = this.score5; }; dataSender.cacheKiller = new Date().getTime(); dataSender.action = "getScores"; dataSender.sendAndLoad(_global.highScoresScript, dataReceiver, "GET"); highScores_mc.gotoAndStop("loading");
Symbol 156 Button
on (release) { _root.links.gotoAndStop(2); _root.newGame_btn._visible = 0; }
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
stop();

Library Items

Symbol 1 Sound [stop]
Symbol 2 Sound [bg]
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:Timeline
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:11
Symbol 7 ShapeTweeningUsed by:11
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:11
Symbol 10 GraphicUsed by:11 94 95 96 97 98 99 100 101 102 103 122 125 128 131 134
Symbol 11 MovieClipUses:6 7 9 10Used by:14
Symbol 12 FontUsed by:13 59 60 155
Symbol 13 TextUses:12Used by:14
Symbol 14 MovieClipUses:11 13Used by:Timeline
Symbol 15 GraphicUsed by:Timeline
Symbol 16 GraphicUsed by:17 55 56 57 66 67
Symbol 17 ButtonUses:16Used by:68  Timeline
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:18Used by:20
Symbol 20 MovieClipUses:19Used by:24
Symbol 21 FontUsed by:22
Symbol 22 TextUses:21Used by:23
Symbol 23 MovieClipUses:22Used by:24
Symbol 24 MovieClipUses:20 23Used by:25
Symbol 25 MovieClipUses:24Used by:Timeline
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:28
Symbol 28 MovieClipUses:27Used by:Timeline
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:33
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:33
Symbol 33 Button [close]Uses:30 32Used by:73 89  Timeline
Symbol 34 BitmapUsed by:35
Symbol 35 GraphicUses:34Used by:38
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:38
Symbol 38 Button [save]Uses:35 37Used by:73  Timeline
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:73
Symbol 41 FontUsed by:42 71
Symbol 42 TextUses:41Used by:73 89
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:45
Symbol 45 MovieClipUses:44Used by:68
Symbol 46 BitmapUsed by:47 50
Symbol 47 GraphicUses:46Used by:48 51 156
Symbol 48 MovieClipUses:47Used by:49
Symbol 49 MovieClipUses:48Used by:51 156
Symbol 50 GraphicUses:46Used by:51 156
Symbol 51 ButtonUses:49 47 50Used by:68
Symbol 52 BitmapUsed by:53
Symbol 53 GraphicUses:52Used by:54
Symbol 54 MovieClipUses:53Used by:68 164
Symbol 55 ButtonUses:16Used by:68 164
Symbol 56 ButtonUses:16Used by:68 164
Symbol 57 ButtonUses:16Used by:68 164
Symbol 58 GraphicUsed by:63
Symbol 59 TextUses:12Used by:62
Symbol 60 TextUses:12Used by:62
Symbol 61 GraphicUsed by:62
Symbol 62 ButtonUses:59 60 61Used by:63
Symbol 63 MovieClipUses:58 62Used by:64
Symbol 64 MovieClipUses:63Used by:68 164
Symbol 65 SoundUsed by:68
Symbol 66 ButtonUses:16Used by:68
Symbol 67 ButtonUses:16Used by:68
Symbol 68 MovieClipUses:45 51 54 55 56 57 64 65 66 17 67Used by:73
Symbol 69 FontUsed by:70 72 78 79 80 81 82 83 84 85 86 87 90
Symbol 70 EditableTextUses:69Used by:73
Symbol 71 TextUses:41Used by:73
Symbol 72 EditableTextUses:69Used by:73
Symbol 73 MovieClip [gameOverWindow]Uses:40 42 68 70 38 71 72 33Used by:Timeline
Symbol 74 BitmapUsed by:75
Symbol 75 GraphicUses:74Used by:89
Symbol 76 FontUsed by:77 88
Symbol 77 EditableTextUses:76Used by:89
Symbol 78 EditableTextUses:69Used by:89
Symbol 79 EditableTextUses:69Used by:89
Symbol 80 EditableTextUses:69Used by:89
Symbol 81 EditableTextUses:69Used by:89
Symbol 82 EditableTextUses:69Used by:89
Symbol 83 EditableTextUses:69Used by:89
Symbol 84 EditableTextUses:69Used by:89
Symbol 85 EditableTextUses:69Used by:89
Symbol 86 EditableTextUses:69Used by:89
Symbol 87 EditableTextUses:69Used by:89
Symbol 88 EditableTextUses:76Used by:89
Symbol 89 MovieClip [highScoresWindow]Uses:75 33 42 77 78 79 80 81 82 83 84 85 86 87 88Used by:Timeline
Symbol 90 EditableTextUses:69Used by:91
Symbol 91 MovieClip [newName]Uses:90Used by:Timeline
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:94 95 96 97 98 99 100 101 102 103
Symbol 94 MovieClip [num0]Uses:10 93Used by:Timeline
Symbol 95 MovieClip [num1]Uses:10 93Used by:Timeline
Symbol 96 MovieClip [num2]Uses:10 93Used by:Timeline
Symbol 97 MovieClip [num3]Uses:10 93Used by:Timeline
Symbol 98 MovieClip [num4]Uses:10 93Used by:Timeline
Symbol 99 MovieClip [num5]Uses:10 93Used by:Timeline
Symbol 100 MovieClip [num6]Uses:10 93Used by:Timeline
Symbol 101 MovieClip [num7]Uses:10 93Used by:Timeline
Symbol 102 MovieClip [num8]Uses:10 93Used by:Timeline
Symbol 103 MovieClip [num9]Uses:10 93Used by:Timeline
Symbol 104 BitmapUsed by:105
Symbol 105 GraphicUses:104Used by:122
Symbol 106 GraphicUsed by:121
Symbol 107 GraphicUsed by:121
Symbol 108 GraphicUsed by:121
Symbol 109 GraphicUsed by:121
Symbol 110 GraphicUsed by:121
Symbol 111 GraphicUsed by:121
Symbol 112 GraphicUsed by:121
Symbol 113 GraphicUsed by:121
Symbol 114 GraphicUsed by:121
Symbol 115 GraphicUsed by:121
Symbol 116 GraphicUsed by:121
Symbol 117 GraphicUsed by:121
Symbol 118 GraphicUsed by:121
Symbol 119 GraphicUsed by:121
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClipUses:106 107 108 109 110 111 112 113 114 115 116 117 118 119 120Used by:122 125 128 131 134
Symbol 122 MovieClip [tile1]Uses:10 105 121Used by:Timeline
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:125
Symbol 125 MovieClip [tile2]Uses:124 10 121Used by:Timeline
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:128
Symbol 128 MovieClip [tile3]Uses:127 10 121Used by:Timeline
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:131
Symbol 131 MovieClip [tile4]Uses:130 10 121Used by:Timeline
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:134
Symbol 134 MovieClip [tile5]Uses:133 10 121Used by:Timeline
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:137
Symbol 137 MovieClip [title1]Uses:136Used by:Timeline
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:140
Symbol 140 MovieClip [title2]Uses:139Used by:Timeline
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:143
Symbol 143 MovieClip [title3]Uses:142Used by:Timeline
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:146
Symbol 146 MovieClip [pauseSign]Uses:145Used by:Timeline
Symbol 147 Sound [change.wav]Used by:Timeline
Symbol 148 Sound [drop.wav]Used by:Timeline
Symbol 149 Sound [levelUp.WAV]Used by:156  Timeline
Symbol 150 Sound [line1.wav]Used by:Timeline
Symbol 151 Sound [line2.wav]Used by:Timeline
Symbol 152 Sound [line3.wav]Used by:Timeline
Symbol 153 Sound [line4.wav]Used by:Timeline
Symbol 154 Sound [pause.wav]Used by:Timeline
Symbol 155 TextUses:12Used by:156
Symbol 156 ButtonUses:49 155 47 50 149Used by:Timeline
Symbol 157 MovieClipUsed by:Timeline
Symbol 158 MovieClipUsed by:Timeline
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:159Used by:161
Symbol 161 MovieClipUses:160Used by:Timeline
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClipUses:162Used by:Timeline
Symbol 164 MovieClipUses:54 64 55 56 57Used by:Timeline
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClipUses:165Used by:Timeline
Symbol 167 FontUsed by:168
Symbol 168 EditableTextUses:167Used by:Timeline

Instance Names

"loadingLogo"Frame 1Symbol 14 MovieClip
"newGame_btn"Frame 21Symbol 156 Button
"previewWindow_mc"Frame 21Symbol 157 MovieClip
"mainWindow_mc"Frame 21Symbol 158 MovieClip
"helpBarWindow_mc"Frame 21Symbol 161 MovieClip
"shape"Frame 21Symbol 163 MovieClip
"links"Frame 21Symbol 164 MovieClip
"hsversion"Symbol 68 MovieClip Frame 1Symbol 64 MovieClip
"save_btn"Symbol 73 MovieClip [gameOverWindow] Frame 5Symbol 38 Button [save]
"close_btn"Symbol 73 MovieClip [gameOverWindow] Frame 15Symbol 33 Button [close]
"close_btn"Symbol 89 MovieClip [highScoresWindow] Frame 1Symbol 33 Button [close]
"inName_txt"Symbol 91 MovieClip [newName] Frame 1Symbol 90 EditableText
"helpBar_mc"Symbol 161 MovieClip Frame 1Symbol 160 MovieClip
"hsversion"Symbol 164 MovieClip Frame 1Symbol 64 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "stop"
ExportAssets (56)Timeline Frame 1Symbol 2 as "bg"
ExportAssets (56)Timeline Frame 9Symbol 33 as "close"
ExportAssets (56)Timeline Frame 9Symbol 38 as "save"
ExportAssets (56)Timeline Frame 9Symbol 73 as "gameOverWindow"
ExportAssets (56)Timeline Frame 9Symbol 89 as "highScoresWindow"
ExportAssets (56)Timeline Frame 9Symbol 91 as "newName"
ExportAssets (56)Timeline Frame 9Symbol 94 as "num0"
ExportAssets (56)Timeline Frame 9Symbol 95 as "num1"
ExportAssets (56)Timeline Frame 9Symbol 96 as "num2"
ExportAssets (56)Timeline Frame 9Symbol 97 as "num3"
ExportAssets (56)Timeline Frame 9Symbol 98 as "num4"
ExportAssets (56)Timeline Frame 9Symbol 99 as "num5"
ExportAssets (56)Timeline Frame 9Symbol 100 as "num6"
ExportAssets (56)Timeline Frame 9Symbol 101 as "num7"
ExportAssets (56)Timeline Frame 9Symbol 102 as "num8"
ExportAssets (56)Timeline Frame 9Symbol 103 as "num9"
ExportAssets (56)Timeline Frame 9Symbol 122 as "tile1"
ExportAssets (56)Timeline Frame 9Symbol 125 as "tile2"
ExportAssets (56)Timeline Frame 9Symbol 128 as "tile3"
ExportAssets (56)Timeline Frame 9Symbol 131 as "tile4"
ExportAssets (56)Timeline Frame 9Symbol 134 as "tile5"
ExportAssets (56)Timeline Frame 9Symbol 137 as "title1"
ExportAssets (56)Timeline Frame 9Symbol 140 as "title2"
ExportAssets (56)Timeline Frame 9Symbol 143 as "title3"
ExportAssets (56)Timeline Frame 9Symbol 146 as "pauseSign"
ExportAssets (56)Timeline Frame 9Symbol 147 as "change.wav"
ExportAssets (56)Timeline Frame 10Symbol 148 as "drop.wav"
ExportAssets (56)Timeline Frame 11Symbol 149 as "levelUp.WAV"
ExportAssets (56)Timeline Frame 12Symbol 150 as "line1.wav"
ExportAssets (56)Timeline Frame 13Symbol 151 as "line2.wav"
ExportAssets (56)Timeline Frame 14Symbol 152 as "line3.wav"
ExportAssets (56)Timeline Frame 15Symbol 153 as "line4.wav"
ExportAssets (56)Timeline Frame 19Symbol 154 as "pause.wav"

Labels

"loader"Frame 1
"good"Frame 21
"start"Frame 21
"close_btn"Symbol 73 MovieClip [gameOverWindow] Frame 1
"loading"Symbol 73 MovieClip [gameOverWindow] Frame 2
"loaded"Symbol 73 MovieClip [gameOverWindow] Frame 5
"saving"Symbol 73 MovieClip [gameOverWindow] Frame 10
"lowScore"Symbol 73 MovieClip [gameOverWindow] Frame 15
"loading"Symbol 89 MovieClip [highScoresWindow] Frame 1
"loaded"Symbol 89 MovieClip [highScoresWindow] Frame 5

Dynamic Text Variables

descSymbol 70 EditableText"text1"
descSymbol 72 EditableText"text1"
name1Symbol 78 EditableText"name1"
score1Symbol 79 EditableText"score1"
name2Symbol 80 EditableText"name1"
score2Symbol 81 EditableText"score1"
name3Symbol 82 EditableText"name1"
score3Symbol 83 EditableText"score1"
name4Symbol 84 EditableText"name1"
score4Symbol 85 EditableText"score1"
name5Symbol 86 EditableText"name1"
score5Symbol 87 EditableText"score1"
inNameSymbol 90 EditableText"name1"
pointsSymbol 168 EditableText"00"




http://swfchan.com/5/22881/info.shtml
Created: 26/5 -2019 15:00:06 Last modified: 26/5 -2019 15:00:06 Server time: 15/05 -2024 04:30:56