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

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

1204654038.swf

This is the info page for
Flash #12093

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


Text
onlinegames

presents

play

scores

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

games

10

difficulty

ok

API
1.1.1

0

lines

level

score

0

0

quit

pause

quit game?

yes

no

submit score?

GAME
OVER

paused

ActionScript [AS1/AS2]

Frame 1
version = "040320"; Stage.showMenu = false; startLevel = 1;
Frame 2
stop(); 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(); }; 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();
Symbol 3 MovieClip Frame 1
stop();
Symbol 3 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 12 MovieClip [block] Frame 1
stop();
Symbol 16 Button
on (release) { getURL ("http://www.neodelight.com?ref=superfishing&ref_loc=intro", "_BLANK"); }
Symbol 22 MovieClip Frame 1
trace((_parent._currentframe + "/") + _parent._totalframes);
Symbol 22 MovieClip Frame 2
trace((_parent._currentframe + "/") + _parent._totalframes);
Symbol 28 MovieClip Frame 1
startFrame = _parent._currentframe;
Symbol 28 MovieClip Frame 2
vol = (1 - ((_parent._currentFrame - startFrame) / (_parent._totalFrames - startFrame))) * 100; if (vol < 0) { vol = 0; } _parent.snd.setVolume(vol);
Symbol 28 MovieClip Frame 3
gotoAndPlay ("loop");
Symbol 29 MovieClip Frame 1
snd = new Sound(this); snd.setVolume(100); _parent.stop();
Symbol 29 MovieClip Frame 123
stop(); _parent.play();
Symbol 36 Button
on (release) { getURL ("http://www.neodelight.com/index.php?topic=scores&game=quatrix", "_BLANK"); }
Symbol 41 Button
on (release) { getURL ("http://www.neodelight.com?ref=quatrix&ref_loc=moregames&rev_ver=" + _root.version, "_BLANK"); }
Symbol 43 MovieClip Frame 10
stop();
Symbol 44 Button
on (release) { getURL ("http://www.neodelight.com?ref=quatrix&ref_loc=logo&rev_ver=" + _root.version, "_BLANK"); }
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 3
stop();
Symbol 56 MovieClip Frame 5
stop();
Symbol 56 MovieClip Frame 7
stop();
Symbol 56 MovieClip Frame 9
stop();
Symbol 61 MovieClip Frame 1
#initclip 1 _global.api = new Object(); _global.api.highscore = new Object(); _global.api.highscore.initSession = function () { var _local1 = this; _local1.session = ""; while (_local1.session.length < 20) { _local1.session = _local1.session + _local1.charTable.charAt(Math.round(Math.random() * (_local1.charTable.length - 4))); } _local1.charTableIndex = new Array(); var _local2 = 0; while (_local2 < _local1.charTable.length) { _local1.charTableIndex[_local1.charTable.charCodeAt(_local2)] = _local2; _local2++; } }; _global.api.highscore.submit = function (pGame, pDisciple, pScore0, pScore1) { var _local2 = this; var _local1 = ("g=" + pGame) + "&"; _local1 = _local1 + (("d=" + pDisciple) + "&"); _local1 = _local1 + (("s0=" + pScore0) + "&"); _local1 = _local1 + (("s1=" + pScore1) + "&"); _local1 = _local1 + ("se=" + escape(session)); _local1 = _local1 + "&c=42"; var _local3 = (_local2.urlSubmit + "?s=") + escape(_local2.encrypt(_local2.encrypt(_local1, _local2.keystring), _local2.keystring2)).split("%").join("_"); trace(_local3); getURL (_local3, "_blank"); }; _global.api.highscore.encrypt = function (text, pKey) { var _local2 = this; var crypt = ""; var checkSum = 0; var shift; var _local3; var _local1 = 0; while (_local1 < text.length) { char = _local2.charTableIndex[text.charCodeAt(_local1)]; shift = _local2.charTableIndex[pKey.charCodeAt(_local1 % pKey.length)]; _local3 = (char + shift) + checkSum; _local3 = _local3 % _local2.charTable.length; crypt = crypt + _local2.charTable.charAt(_local3); checkSum = checkSum + _local3; _local1++; } checkSum = checkSum % _local2.charTable.length; return((crypt + "") + _local2.charTable.charAt(checkSum)); }; _global.api.highscore.charTable = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&=."; _global.api.highscore.keystring = "whytheheckdoyouwasteyourtimehackingthishighscorelist"; _global.api.highscore.keystring2 = "AnotherKey4You2FindOut4815jiagIOm30JK"; _global.api.highscore.urlSubmit = "http://www.neodelight.com/v4/high_enter.php"; _global.api.highscore.initSession(); #endinitclip _visible = false;
Symbol 81 MovieClip Frame 1
stop(); _visible = false; yes_btn.onPress = function () { _root.stopFall(); _root.gotoAndStop("menu"); }; 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 81 MovieClip Frame 2
_root.pause_btn._visible = (_root.quit_btn._visible = false); yes_btn.onPress = function () { var _local1 = _root; _global.api.highscore.submit("quatrix", "", _local1.score, 0); _local1.stopFall(); _local1.gotoAndStop("menu"); }; no_btn.onPress = function () { _root.stopFall(); _root.gotoAndStop("menu"); }; yes_btn.onKeyDown = function () { if (Key.getCode() == 89) { this.onPress(); } if (Key.getCode() == 78) { no_btn.onPress(); } }; Key.removeListener(yes_btn); Key.addListener(yes_btn);
Symbol 84 MovieClip Frame 1
_visible = false; hit_mc.onPress = _root.pause;

Library Items

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

Instance Names

"play_btn"Frame 2Symbol 34 Button
"highScores_btn"Frame 2Symbol 36 Button
"neave_btn"Frame 2Symbol 39 Button
"highScores_btn"Frame 2Symbol 41 Button
"ok_btn"Frame 3Symbol 49 Button
"up_btn"Frame 3Symbol 51 Button
"down_btn"Frame 3Symbol 51 Button
"sound_mc"Frame 4Symbol 56 MovieClip
"b_mc"Frame 4Symbol 57 MovieClip
"next_mc"Frame 4Symbol 57 MovieClip
"quit_btn"Frame 15Symbol 70 Button
"pause_btn"Frame 15Symbol 72 Button
"quitGame_mc"Frame 16Symbol 81 MovieClip
"paused_mc"Frame 16Symbol 84 MovieClip
"bang_mc"Symbol 12 MovieClip [block] Frame 1Symbol 3 MovieClip
"yes_btn"Symbol 81 MovieClip Frame 1Symbol 76 Button
"no_btn"Symbol 81 MovieClip Frame 1Symbol 78 Button
"hit_mc"Symbol 84 MovieClip Frame 1Symbol 82 MovieClip

Special Tags

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

Labels

"menu"Frame 2
"loop"Symbol 28 MovieClip Frame 2
"popLo"Symbol 56 MovieClip Frame 2
"popMed"Symbol 56 MovieClip Frame 4
"popHi"Symbol 56 MovieClip Frame 6
"win"Symbol 56 MovieClip Frame 8
"end"Symbol 56 MovieClip Frame 10

Dynamic Text Variables

startLevelSymbol 45 EditableText"10"
linesSymbol 62 EditableText"0"
levelSymbol 66 EditableText"0"
scoreTxtSymbol 67 EditableText"0"




http://swfchan.com/3/12093/info.shtml
Created: 6/6 -2019 11:00:37 Last modified: 6/6 -2019 11:00:37 Server time: 22/12 -2024 17:51:16