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

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

filenotrelatedseethread.swf

This is the info page for
Flash #82245

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


Text
loading

loading.

loading..

loading...

play

high scores

<p align="center"><font face="Verdana" size="11" color="#000000">www.neave.com/games</font></p>

1

start at level:

ok

lines

level

level

score

lines

0

0

score

0

quit

pause

yes

no

quit game?

enter your name:

game over

paused

last 10

next 10

name

score

ActionScript [AS1/AS2]

Frame 1
stop(); Stage.showMenu = false; startLevel = 1; this.onEnterFrame = function () { var _local1 = this; sofar = _local1.getBytesLoaded(); total = _local1.getBytesTotal(); if (sofar == total) { delete _local1.onEnterFrame; nextFrame(); } };
Frame 2
String.prototype.addCommas = function () { var _local3 = this.length; var _local2 = ""; var _local1 = 0; while (_local1 <= _local3) { _local2 = this.charAt(_local3 - _local1) + _local2; if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) { _local2 = "," + _local2; } _local1++; } return(_local2); }; game_so = SharedObject.getLocal("neaveTetris"); score = 0; level = startLevel; play_btn.onRelease = function () { play(); }; highScores_btn.onRelease = function () { gotoAndStop (25); }; neave_btn.onRelease = function () { getURL ("http://www.neave.com/games/", "_blank"); }; Key.removeListener(this);
Frame 3
stop(); checkButtons = function () { if (startLevel < 2) { down_btn._alpha = 50; down_btn.enabled = false; } else if (startLevel > 9) { up_btn._alpha = 50; up_btn.enabled = false; } else { up_btn._alpha = (down_btn._alpha = 100); up_btn.enabled = (down_btn.enabled = true); } }; checkButtons(); down_btn.onPress = function () { startLevel--; checkButtons(); }; up_btn.onPress = function () { startLevel++; checkButtons(); }; ok_btn.onPress = function () { play(); };
Frame 4
startFall = function () { timeout = setInterval(down, speed); }; stopFall = function () { clearInterval(timeout); }; drawBlock = function (num, blockPos) { b_mc[blockPos].gotoAndStop(num + 1); }; drawNextBlock = function (num, blockPos) { next_mc[blockPos].gotoAndStop(num + 1); }; drawThisShape = function () { if (moved) { var _local1 = 0; while (_local1 < 4) { drawBlock(0, block_array[_local1]); _local1++; } } else { moved = true; } var _local1 = 0; while (_local1 < 4) { blockPos = shape_array[((thisShape * 16) + (rotation * 4)) + _local1]; block_array[_local1] = ((((blockPos >> 2) * 6) + blockPos) + xPos) + yPos; drawBlock(thisShape + 1, block_array[_local1]); _local1++; } }; drawNextShape = function () { nextShape = int(Math.random() * 7); var _local1 = 0; while (_local1 < 11) { drawNextBlock(0, _local1); _local1++; } _local1 = 0; while (_local1 < 4) { drawNextBlock(nextShape + 1, shape_array[(nextShape * 16) + _local1]); _local1++; } }; collision = function (x, y, rot) { var _local2 = rot; var _local3 = y; var _local1 = 0; while (_local1 < 4) { blockPos = shape_array[((thisShape * 16) + (_local2 * 4)) + _local1]; if (flag_array[((((blockPos >> 2) * 6) + blockPos) + x) + _local3] != 0) { return(true); } _local1++; } return(false); }; left = function () { var _local2 = 0; while (_local2 < 4) { var _local1 = block_array[_local2] - yPos; while (_local1 >= 0) { if (_local1 == 0) { return; } _local1 = _local1 - 10; } _local2++; } if (!collision(xPos - 1, yPos, rotation)) { xPos--; drawThisShape(); } }; right = function () { var _local2 = 0; while (_local2 < 4) { var _local1 = block_array[_local2] - yPos; while (_local1 >= 0) { if (_local1 == 9) { return; } _local1 = _local1 - 10; } _local2++; } if (!collision(xPos + 1, yPos, rotation)) { xPos++; drawThisShape(); } }; rotate = function (clockwise) { testRot = rotation; if (clockwise) { testRot++; } else { testRot--; } if (testRot == 4) { testRot = 0; } else if (testRot == -1) { testRot = 3; } var _local2 = 0; while (_local2 < 4) { blockPos = shape_array[((thisShape * 16) + (testRot * 4)) + _local2]; var _local1 = (((blockPos >> 2) * 6) + blockPos) + xPos; while (_local1 >= -1) { if (((_local1 == -1) && (xPos < 0)) || ((_local1 == 0) && (xPos > 6))) { return; } _local1 = _local1 - 10; } _local2++; } if ((((((blockPos >> 2) * 6) + blockPos) + xPos) + yPos) > 179) { } else if (!collision(xPos, yPos, testRot)) { rotation = testRot; drawThisShape(); sound_mc.gotoAndPlay("popHi"); } }; down = function () { if (gameOver || (simult)) { } else { score++; if (((block_array[3] - xPos) < 170) && (!collision(xPos, yPos + 10, rotation))) { yPos = yPos + 10; drawThisShape(); } else { var _local1 = 0; while (_local1 < 4) { flag_array[block_array[_local1]] = thisShape + 1; _local1++; } simult = 0; var _local2 = 0; while (_local2 < 180) { var _local3 = 0; while (_local3 < 10) { if (flag_array[_local3 + _local2] == 0) { break; } if (_local3 == 9) { stopFall(); _local1 = 0; while (_local1 < 10) { b_mc[_local1 + _local2].bang_mc.y = _local2; b_mc[_local1 + _local2].bang_mc.play(); _local1++; } simult++; lines++; } _local3++; } _local2 = _local2 + 10; } if (simult) { sound_mc.gotoAndPlay("win"); switch (simult) { case 1 : score = score + (level * 40); break; case 2 : score = score + (level * 100); break; case 3 : score = score + (level * 300); break; case 4 : score = score + (level * 1200); } } scoreTxt = String(score).addCommas(); if (collision(xPos, yPos, rotation) && (yPos == -10)) { gameOver = true; stopFall(); sound_mc.gotoAndPlay("end"); quitGame_mc.gotoAndStop(2); quitGame_mc._visible = true; } else { level = int(lines / 10) + startLevel; speed = ((level < 10) ? (600 - (level * 50)) : 100); xPos = 3; yPos = -10; rotation = 0; moved = false; thisShape = nextShape; if (!simult) { drawNextShape(); drawThisShape(); sound_mc.gotoAndPlay("popLo"); } } } updateAfterEvent(); } }; this.onKeyDown = function () { if (gameOver || (simult)) { } else { var _local1 = Key.getCode(); switch (_local1) { case 80 : pause_btn.onPress(); break; case 81 : quit_btn.onPress(); } if (!paused) { switch (_local1) { case 37 : left(); break; case 39 : right(); break; case 40 : this.onEnterFrame = down; break; case 38 : case 88 : rotate(true); break; case 90 : rotate(false); } } updateAfterEvent(); } }; this.onKeyUp = function () { delete this.onEnterFrame; }; Key.removeListener(this); Key.addListener(this); gameOver = true; paused = (moved = false); score = (scoreTxt = (lines = (thisShape = (nextShape = (rotation = 0))))); level = startLevel; speed = ((level < 10) ? (600 - (level * 50)) : 100); xPos = 3; yPos = -10; shape_array = new Array(5, 6, 9, 10, 5, 6, 9, 10, 5, 6, 9, 10, 5, 6, 9, 10, 4, 5, 6, 9, 1, 4, 5, 9, 1, 4, 5, 6, 1, 5, 6, 9, 4, 5, 9, 10, 2, 5, 6, 9, 4, 5, 9, 10, 2, 5, 6, 9, 5, 6, 8, 9, 1, 5, 6, 10, 5, 6, 8, 9, 1, 5, 6, 10, 4, 5, 6, 8, 0, 1, 5, 9, 2, 4, 5, 6, 1, 5, 9, 10, 4, 5, 6, 10, 1, 5, 8, 9, 0, 4, 5, 6, 1, 2, 5, 9, 4, 5, 6, 7, 1, 5, 9, 13, 4, 5, 6, 7, 1, 5, 9, 13); block_array = new Array(0, 0, 0, 0); flag_array = new Array(); var i = 18; while (i >= 0) { var j = 0; while (j < 10) { var k = ((i * 10) + j); b_mc.attachMovie("block", k, k, {_x:j * 20, _y:i * 20}); flag_array[k] = 0; j++; } i--; } var i = 0; while (i < 3) { var j = 0; while (j < 4) { var k = ((i * 4) + j); next_mc.attachMovie("block", k, k, {_x:j * 20, _y:i * 20}); j++; } i++; }
Frame 24
stop(); pause_btn.onPress = function () { if (gameOver || (quitGame_mc._visible)) { return(undefined); } stopFall(); sound_mc.gotoAndPlay("popMed"); b_mc._visible = !((paused_mc._visible = (paused = !paused))); if (!paused) { startFall(); } }; quit_btn.onPress = function () { if (gameOver) { return(undefined); } stopFall(); sound_mc.gotoAndPlay("popMed"); b_mc._visible = (paused_mc._visible = false); quitGame_mc._visible = (paused = true); }; drawNextShape(); thisShape = nextShape; drawThisShape(); drawNextShape(); gameOver = false; stopFall(); startFall();
Frame 25
stop(); showScores = function () { var _local2 = 10; while (_local2 > 0) { var _local3 = scoreboard_lv["name" + (page + _local2)]; var s = scoreboard_lv["score" + (page + _local2)]; var _local1 = this[("line" + _local2) + "_mc"]; _local1.rank_txt.text = (page + _local2) + "."; _local1.name_txt.text = (_local3.length ? (_local3.toLowerCase()) : "-"); _local1.score_txt.text = (s.length ? (s.addCommas()) : "-"); _local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((game_so.data.playerName.length && (_local3.toLowerCase() == game_so.data.playerName.toLowerCase())) ? 16777215 : 7833770))); _local1._visible = true; loading_mc._visible = false; _local2--; } }; page = 0; maxScore = 100; scoreboard_lv = new LoadVars(); if ((score > 0) && (game_so.data.playerName.length > 0)) { scoreboard_lv.score = score; scoreboard_lv.name = game_so.data.playerName.toLowerCase(); } scoreboard_lv.game = "tetris"; scoreboard_lv.sendAndLoad("http://www.bofunk.com/media/games/Tetris/games_score_sql.php", scoreboard_lv, "POST"); scoreboard_lv.onLoad = function (success) { if (success) { if (Boolean(scoreboard_lv.success)) { next_btn._visible = true; if (scoreboard_lv.maxScore.length > 0) { maxScore = Number(scoreboard_lv.maxScore); } showScores(); } else { loading_mc.errorMsg = scoreboard_lv.errorMsg.toLowerCase(); loading_mc.gotoAndStop(2); } } else { loading_mc.errorMsg = "could not access scores."; loading_mc.gotoAndStop(2); } }; score = 0; next_btn._visible = (last_btn._visible = false); last_btn.onPress = function () { page = page - 10; if (page < 0) { page = 0; } if (page < 10) { last_btn._visible = false; } next_btn._visible = true; showScores(); }; next_btn.onPress = function () { page = page + 10; if (page > maxScore) { page = maxScore; } if (page > (maxScore - 20)) { next_btn._visible = false; } last_btn._visible = true; showScores(); }; newGame_btn.onRelease = function () { gotoAndStop (2); };
Symbol 2 MovieClip Frame 1
stop();
Symbol 2 MovieClip Frame 7
x = Number(_parent._name) - y; with (_root) { var j = y; while (j > 0) { drawBlock((flag_array[x + j] = flag_array[(x + j) - 10]), x + j); j = j - 10; } if (!x) { simult--; } if (!simult) { drawNextShape(); drawThisShape(); startFall(); } }
Symbol 10 MovieClip [block] Frame 1
stop();
Symbol 28 MovieClip Frame 12
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 3
stop();
Symbol 39 MovieClip Frame 5
stop();
Symbol 39 MovieClip Frame 7
stop();
Symbol 39 MovieClip Frame 9
stop();
Symbol 65 MovieClip Frame 1
stop(); _visible = false; yes_btn.onPress = function () { _root.stopFall(); _root.gotoAndStop(2); }; no_btn.onPress = function () { _visible = false; _root.pause_btn.onPress(); }; yes_btn.onKeyDown = function () { if (Key.getCode() == 89) { this.onPress(); } if (Key.getCode() == 78) { no_btn.onPress(); } }; Key.addListener(yes_btn);
Symbol 65 MovieClip Frame 2
_root.pause_btn._visible = (_root.quit_btn._visible = false); name_txt.restrict = "a-z 0-9.:\\-"; name_txt.text = _root.game_so.data.playerName; Selection.setFocus(name_txt); Selection.setSelection(name_txt.length, name_txt.length); ok_btn.onPress = function () { if (name_txt.length > 0) { _root.game_so.data.playerName = name_txt.text; } _root.nextFrame(); }; ok_btn.onKeyDown = function () { if (Key.getCode() == 13) { Key.removeListener(this); this.onPress(); } }; Key.removeListener(yes_btn); Key.addListener(ok_btn);
Symbol 68 MovieClip Frame 1
_visible = false; hit_mc.onPress = _root.pause;
Symbol 82 MovieClip Frame 1
stop(); errorMsg = "";

Library Items

Symbol 1 GraphicUsed by:2 20 22 25 32 34 52 54 57 59 62 65 66 72 74  Timeline
Symbol 2 MovieClipUses:1Used by:10
Symbol 3 GraphicUsed by:10
Symbol 4 GraphicUsed by:10
Symbol 5 GraphicUsed by:10
Symbol 6 GraphicUsed by:10
Symbol 7 GraphicUsed by:10
Symbol 8 GraphicUsed by:10
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClip [block]Uses:2 3 4 5 6 7 8 9
Symbol 11 GraphicUsed by:Timeline
Symbol 12 FontUsed by:13 14 15 16 18 21 29 30 31 41 44 45 47 48 50 51 53 56 58 60 61 63 64 67 71 73 75 76 77 78 79 81
Symbol 13 TextUses:12Used by:17
Symbol 14 TextUses:12Used by:17
Symbol 15 TextUses:12Used by:17
Symbol 16 TextUses:12Used by:17
Symbol 17 MovieClipUses:13 14 15 16Used by:82  Timeline
Symbol 18 TextUses:12Used by:20
Symbol 19 SoundUsed by:20 22 32 34 39 57 62 72 74
Symbol 20 ButtonUses:18 1 19Used by:Timeline
Symbol 21 TextUses:12Used by:22
Symbol 22 ButtonUses:21 1 19Used by:Timeline
Symbol 23 FontUsed by:24
Symbol 24 EditableTextUses:23Used by:25
Symbol 25 ButtonUses:24 1Used by:Timeline
Symbol 26 GraphicUsed by:28  Timeline
Symbol 27 GraphicUsed by:28  Timeline
Symbol 28 MovieClipUses:26 27Used by:Timeline
Symbol 29 EditableTextUses:12Used by:Timeline
Symbol 30 TextUses:12Used by:Timeline
Symbol 31 TextUses:12Used by:32 62
Symbol 32 ButtonUses:31 1 19Used by:Timeline
Symbol 33 GraphicUsed by:34
Symbol 34 ButtonUses:33 1 19Used by:Timeline
Symbol 35 SoundUsed by:39
Symbol 36 SoundUsed by:39
Symbol 37 SoundUsed by:39
Symbol 38 SoundUsed by:39
Symbol 39 MovieClipUses:35 19 36 37 38Used by:Timeline
Symbol 40 MovieClipUsed by:Timeline
Symbol 41 TextUses:12Used by:Timeline
Symbol 42 FontUsed by:43 46 49
Symbol 43 TextUses:42Used by:Timeline
Symbol 44 TextUses:12Used by:Timeline
Symbol 45 TextUses:12Used by:Timeline
Symbol 46 TextUses:42Used by:Timeline
Symbol 47 EditableTextUses:12Used by:Timeline
Symbol 48 EditableTextUses:12Used by:Timeline
Symbol 49 TextUses:42Used by:Timeline
Symbol 50 EditableTextUses:12Used by:Timeline
Symbol 51 TextUses:12Used by:52
Symbol 52 ButtonUses:51 1Used by:Timeline
Symbol 53 TextUses:12Used by:54
Symbol 54 ButtonUses:53 1Used by:Timeline
Symbol 55 GraphicUsed by:Timeline
Symbol 56 TextUses:12Used by:57
Symbol 57 ButtonUses:56 1 19Used by:65
Symbol 58 TextUses:12Used by:59
Symbol 59 ButtonUses:58 1Used by:65
Symbol 60 TextUses:12Used by:65
Symbol 61 TextUses:12Used by:65
Symbol 62 ButtonUses:31 1 19Used by:65
Symbol 63 TextUses:12Used by:65
Symbol 64 EditableTextUses:12Used by:65
Symbol 65 MovieClipUses:57 59 60 1 61 62 63 64Used by:Timeline
Symbol 66 MovieClipUses:1Used by:68
Symbol 67 TextUses:12Used by:68
Symbol 68 MovieClipUses:66 67Used by:Timeline
Symbol 69 GraphicUsed by:Timeline
Symbol 70 GraphicUsed by:Timeline
Symbol 71 TextUses:12Used by:72
Symbol 72 ButtonUses:71 1 19Used by:Timeline
Symbol 73 TextUses:12Used by:74
Symbol 74 ButtonUses:73 1 19Used by:Timeline
Symbol 75 TextUses:12Used by:Timeline
Symbol 76 TextUses:12Used by:Timeline
Symbol 77 EditableTextUses:12Used by:80
Symbol 78 EditableTextUses:12Used by:80
Symbol 79 EditableTextUses:12Used by:80
Symbol 80 MovieClipUses:77 78 79Used by:Timeline
Symbol 81 EditableTextUses:12Used by:82
Symbol 82 MovieClipUses:17 81Used by:Timeline

Instance Names

"Dots"Frame 1Symbol 17 MovieClip
"play_btn"Frame 2Symbol 20 Button
"highScores_btn"Frame 2Symbol 22 Button
"neave_btn"Frame 2Symbol 25 Button
"Logo"Frame 2Symbol 28 MovieClip
"ok_btn"Frame 3Symbol 32 Button
"up_btn"Frame 3Symbol 34 Button
"down_btn"Frame 3Symbol 34 Button
"sound_mc"Frame 4Symbol 39 MovieClip
"b_mc"Frame 4Symbol 40 MovieClip
"next_mc"Frame 4Symbol 40 MovieClip
"quit_btn"Frame 15Symbol 52 Button
"pause_btn"Frame 15Symbol 54 Button
"quitGame_mc"Frame 16Symbol 65 MovieClip
"paused_mc"Frame 16Symbol 68 MovieClip
"newGame_btn"Frame 25Symbol 20 Button
"last_btn"Frame 25Symbol 72 Button
"next_btn"Frame 25Symbol 74 Button
"line1_mc"Frame 25Symbol 80 MovieClip
"line2_mc"Frame 25Symbol 80 MovieClip
"line3_mc"Frame 25Symbol 80 MovieClip
"line4_mc"Frame 25Symbol 80 MovieClip
"line5_mc"Frame 25Symbol 80 MovieClip
"line6_mc"Frame 25Symbol 80 MovieClip
"line7_mc"Frame 25Symbol 80 MovieClip
"line8_mc"Frame 25Symbol 80 MovieClip
"line9_mc"Frame 25Symbol 80 MovieClip
"line10_mc"Frame 25Symbol 80 MovieClip
"loading_mc"Frame 25Symbol 82 MovieClip
"bang_mc"Symbol 10 MovieClip [block] Frame 1Symbol 2 MovieClip
"yes_btn"Symbol 65 MovieClip Frame 1Symbol 57 Button
"no_btn"Symbol 65 MovieClip Frame 1Symbol 59 Button
"ok_btn"Symbol 65 MovieClip Frame 2Symbol 62 Button
"name_txt"Symbol 65 MovieClip Frame 2Symbol 64 EditableText
"hit_mc"Symbol 68 MovieClip Frame 1Symbol 66 MovieClip
"score_txt"Symbol 80 MovieClip Frame 1Symbol 77 EditableText
"name_txt"Symbol 80 MovieClip Frame 1Symbol 78 EditableText
"rank_txt"Symbol 80 MovieClip Frame 1Symbol 79 EditableText
"Dots"Symbol 82 MovieClip Frame 1Symbol 17 MovieClip

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 10 as "block"

Labels

"popLo"Symbol 39 MovieClip Frame 2
"popMed"Symbol 39 MovieClip Frame 4
"popHi"Symbol 39 MovieClip Frame 6
"win"Symbol 39 MovieClip Frame 8
"end"Symbol 39 MovieClip Frame 10

Dynamic Text Variables

startLevelSymbol 29 EditableText"1"
linesSymbol 47 EditableText"0"
levelSymbol 48 EditableText"0"
scoreTxtSymbol 50 EditableText"0"
errorMsgSymbol 81 EditableText""




http://swfchan.com/17/82245/info.shtml
Created: 1/4 -2019 12:35:02 Last modified: 1/4 -2019 12:35:02 Server time: 14/11 -2024 06:29:35