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

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

Ilya Voloshin's Tetris.swf

This is the info page for
Flash #42117

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


Text
transmitting data...

text1

saving...

text1

loading...

v1.0

name1

score1

name1

score1

name1

score1

name1

score1

name1

score1

v1.0

name1

ActionScript [AS1/AS2]

Frame 1
stage.showMenu = false; _global.stage_mc = this; _global.preloader = function () { bytesTotal = _root.getBytesTotal(); bytesLoaded = _root.getBytesLoaded(); if (bytesLoaded >= bytesTotal) { gotoAndStop (21); } else { percent_mc.percentBar_mc._width = (bytesLoaded / bytesTotal) * 100; gotoAndPlay (1); } }; _global.preloader2 = function () { if (percent_mc.percentBar_mc._width >= 100) { gotoAndStop (21); } else { percent_mc.percentBar_mc._width = percent_mc.percentBar_mc._width + 1; gotoAndPlay (1); } }; _global.preloader();
Frame 2
_global.preloader();
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 returnBool = 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))) { returnBool = false; } col++; } row++; } return(returnBool); } function moveLeftCheck() { var returnBool = 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)) { returnBool = false; } col++; } row++; } return(returnBool); } function moveRightCheck() { var returnBool = 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))) { returnBool = false; } col++; } row++; } return(returnBool); } 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 = 420; 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 = 175; stage_mc.gameOverWindow_mc._y = 100; _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"); } } _global.highScoresScript = "http://www.unf.edu/~voli0001/flash/tetris/tetris.php"; 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 = 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--; } 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.onRelease = 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.onRelease = function () { 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(); } };
Symbol 8 MovieClip Frame 1
if (this.sessionstarted != 1) { this.arcade = new LoadVars(); this.sessionvars = new LoadVars(); this.arcade.gamename = "ivtetris"; this.arcade.sessdo = "sessionstart"; this.arcade.sendAndLoad("arcade.php", sessionvars, "POST"); this.sessionstarted = 1; } if (_root.gameover == 1) { if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) { this.prequestvars = new LoadVars(); this.pranswer = new LoadVars(); this.prequestvars.gametime = this.sessionvars.gametime; this.prequestvars.fakekey = this.sessionvars.initbar; if (_root.score == 0) { this.prequestvars.score = -1; } else { this.prequestvars.score = _root.score; } this.prequestvars.id = this.sessionvars.lastid; this.prequestvars.sessdo = "permrequest"; this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey; this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST"); this.askpermission = 1; } if ((this.pranswer.validate == 1) && (this.finalsent != 1)) { this.burnscore = new LoadVars(); this.burnscore.microone = this.pranswer.microone; this.burnscore.gametime = this.prequestvars.gametime; this.burnscore.id = this.prequestvars.id; if (_root.score == 0) { this.burnscore.noscore = 1; } this.burnscore.sessdo = "burn"; this.burnscore.send("./arcade.php", "_self", "POST"); this.finalsent = 1; } }
Symbol 57 MovieClip [gameOverWindow] Frame 1
_root.score = Number(score); _root.gameover = 1; stop();
Symbol 57 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 57 MovieClip [gameOverWindow] Frame 15
gameOver_mc.close_btn.onRelease = function () { _global.windowUp = false; gameOver_mc.removeMovieClip(); };
Symbol 74 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");

Library Items

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

Instance Names

"percent_mc"Frame 1Symbol 7 MovieClip
"previewWindow_mc"Frame 21Symbol 120 MovieClip
"mainWindow_mc"Frame 21Symbol 123 MovieClip
"helpBarWindow_mc"Frame 21Symbol 126 MovieClip
"newGame_btn"Frame 21Symbol 131 Button
"pauseGame_btn"Frame 21Symbol 136 Button
"rewind_mc"Frame 21Symbol 143 Button
"pause_mc"Frame 21Symbol 146 Button
"play_mc"Frame 21Symbol 149 Button
"ff_mc"Frame 21Symbol 152 Button
"percentBar_mc"Symbol 7 MovieClip Frame 1Symbol 6 MovieClip
"save_btn"Symbol 57 MovieClip [gameOverWindow] Frame 5Symbol 18 Button [save]
"close_btn"Symbol 57 MovieClip [gameOverWindow] Frame 15Symbol 13 Button [close]
"close_btn"Symbol 74 MovieClip [highScoresWindow] Frame 1Symbol 13 Button [close]
"inName_txt"Symbol 76 MovieClip [newName] Frame 1Symbol 75 EditableText
"helpBar_mc"Symbol 126 MovieClip Frame 1Symbol 125 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 9Symbol 13 as "close"
ExportAssets (56)Timeline Frame 9Symbol 18 as "save"
ExportAssets (56)Timeline Frame 9Symbol 21 as "num0"
ExportAssets (56)Timeline Frame 9Symbol 24 as "num1"
ExportAssets (56)Timeline Frame 9Symbol 27 as "num2"
ExportAssets (56)Timeline Frame 9Symbol 30 as "num3"
ExportAssets (56)Timeline Frame 9Symbol 33 as "num4"
ExportAssets (56)Timeline Frame 9Symbol 36 as "num5"
ExportAssets (56)Timeline Frame 9Symbol 39 as "num6"
ExportAssets (56)Timeline Frame 9Symbol 42 as "num7"
ExportAssets (56)Timeline Frame 9Symbol 45 as "num8"
ExportAssets (56)Timeline Frame 9Symbol 48 as "num9"
ExportAssets (56)Timeline Frame 9Symbol 18 as "save"
ExportAssets (56)Timeline Frame 9Symbol 18 as "save"
ExportAssets (56)Timeline Frame 9Symbol 18 as "save"
ExportAssets (56)Timeline Frame 9Symbol 18 as "save"
ExportAssets (56)Timeline Frame 9Symbol 18 as "save"
ExportAssets (56)Timeline Frame 9Symbol 13 as "close"
ExportAssets (56)Timeline Frame 9Symbol 57 as "gameOverWindow"
ExportAssets (56)Timeline Frame 9Symbol 13 as "close"
ExportAssets (56)Timeline Frame 9Symbol 13 as "close"
ExportAssets (56)Timeline Frame 9Symbol 13 as "close"
ExportAssets (56)Timeline Frame 9Symbol 13 as "close"
ExportAssets (56)Timeline Frame 9Symbol 13 as "close"
ExportAssets (56)Timeline Frame 9Symbol 74 as "highScoresWindow"
ExportAssets (56)Timeline Frame 9Symbol 76 as "newName"
ExportAssets (56)Timeline Frame 9Symbol 79 as "pauseSign"
ExportAssets (56)Timeline Frame 9Symbol 82 as "tile1"
ExportAssets (56)Timeline Frame 9Symbol 85 as "tile2"
ExportAssets (56)Timeline Frame 9Symbol 88 as "tile3"
ExportAssets (56)Timeline Frame 9Symbol 91 as "tile4"
ExportAssets (56)Timeline Frame 9Symbol 94 as "tile5"
ExportAssets (56)Timeline Frame 9Symbol 97 as "title1"
ExportAssets (56)Timeline Frame 9Symbol 100 as "title2"
ExportAssets (56)Timeline Frame 9Symbol 103 as "title3"
ExportAssets (56)Timeline Frame 9Symbol 104 as "change.wav"
ExportAssets (56)Timeline Frame 10Symbol 105 as "drop.wav"
ExportAssets (56)Timeline Frame 11Symbol 106 as "levelUp.WAV"
ExportAssets (56)Timeline Frame 12Symbol 107 as "line1.wav"
ExportAssets (56)Timeline Frame 13Symbol 108 as "line2.wav"
ExportAssets (56)Timeline Frame 14Symbol 109 as "line3.wav"
ExportAssets (56)Timeline Frame 15Symbol 110 as "line4.wav"
ExportAssets (56)Timeline Frame 16Symbol 111 as "music1.wav"
ExportAssets (56)Timeline Frame 17Symbol 112 as "music2.wav"
ExportAssets (56)Timeline Frame 18Symbol 113 as "music3.wav"
ExportAssets (56)Timeline Frame 19Symbol 114 as "pause.wav"
ExportAssets (56)Timeline Frame 20Symbol 115 as "start.wav"

Labels

"preload"Frame 1
"load"Frame 2
"start"Frame 21
"loading"Symbol 57 MovieClip [gameOverWindow] Frame 1
"close_btn"Symbol 57 MovieClip [gameOverWindow] Frame 1
"loaded"Symbol 57 MovieClip [gameOverWindow] Frame 5
"saving"Symbol 57 MovieClip [gameOverWindow] Frame 10
"lowScore"Symbol 57 MovieClip [gameOverWindow] Frame 15
"loading"Symbol 74 MovieClip [highScoresWindow] Frame 1
"loaded"Symbol 74 MovieClip [highScoresWindow] Frame 5

Dynamic Text Variables

descSymbol 54 EditableText"text1"
descSymbol 56 EditableText"text1"
name1Symbol 63 EditableText"name1"
score1Symbol 64 EditableText"score1"
name2Symbol 65 EditableText"name1"
score2Symbol 66 EditableText"score1"
name3Symbol 67 EditableText"name1"
score3Symbol 68 EditableText"score1"
name4Symbol 69 EditableText"name1"
score4Symbol 70 EditableText"score1"
name5Symbol 71 EditableText"name1"
score5Symbol 72 EditableText"score1"
inNameSymbol 75 EditableText"name1"




http://swfchan.com/9/42117/info.shtml
Created: 10/5 -2019 02:05:34 Last modified: 10/5 -2019 02:05:34 Server time: 21/12 -2024 08:00:36