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/13486394?noj=FRM13486394-14DC" width="1" height="1"></div>

snake-en.swf

This is the info page for
Flash #211233

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


Text
LOADING...

CHOOSE LEVEL:

SLUG

WORM

PYTHON

HIGH SCORES

<p align="center"><font face="Verdana Bold" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><b>www.neave.com/games</b></font></p>

SCORE:

3

3

2

2

1

1

GO!

GO!

ENTER YOUR NAME:

ENTER YOUR NAME:

GAME

OVER!

GAME

OVER!

OK

NEW GAME

< BACK

NEXT >

ActionScript [AS1/AS2]

Frame 1
function menuHandler(o, item) { item.customItems[0].caption = (paused ? "Unpause game" : "Pause game"); item.customItems[2].caption = ((mute_sound.getVolume() == 0) ? "Unmute sound" : "Mute sound"); } function quitGame() { gameOver = true; Key.removeListener(keyListener); delete _root.onEnterFrame; gotoAndStop (2); } function pauseGame() { paused = !paused; s_mc._alpha = (paused ? 25 : 100); } function muteSound() { if (mute_sound.getVolume() == 0) { mute_sound.setVolume(100); mute_mc._visible = false; } else { mute_sound.setVolume(0); mute_mc._visible = true; } } stop(); mute_sound = new Sound(); this.onEnterFrame = function () { sofar = this.getBytesLoaded(); total = this.getBytesTotal(); if (sofar == total) { delete this.onEnterFrame; gotoAndStop (2); } }; Stage.showMenu = true; fs_cm = new ContextMenu(menuHandler); fs_cm.hideBuiltInItems(); fs_cm.customItems.push(new ContextMenuItem("Pause game", pauseGame, false, true, false), new ContextMenuItem("Quit game", quitGame, false, true, false), new ContextMenuItem("Mute sound", muteSound, false, true, false)); _root.menu = fs_cm;
Frame 2
String.prototype.stripSpaces = function () { if (this.length == 0) { return(""); } this=this.split(".").join("");//parameter overwritten this.split(".").join(""); this=this.split("-").join("");//parameter overwritten this.split("-").join(""); while (this.charAt(0) == " ") { this=this.substr(1);//parameter overwritten this.substr(1); } this=this.split(" ").join(" ");//parameter overwritten this.split(" ").join(" "); this=this.split(" ").join(" ");//parameter overwritten this.split(" ").join(" "); return(this); }; game_so = SharedObject.getLocal("neaveSnake"); score = 0; level = 2; f1_mc.onEnterFrame = (f2_mc.onEnterFrame = (f3_mc.onEnterFrame = (f4_mc.onEnterFrame = function () { this._rotation = this._rotation + 5; }))); slug_btn.onRollOver = function () { slug_mc.gotoAndStop(2); }; slug_btn.onRollOut = (slug_btn.onDragOut = function () { slug_mc.gotoAndStop(1); }); slug_btn.onRelease = function () { level = 2; play(); }; worm_btn.onRollOver = function () { worm_mc.gotoAndStop(2); }; worm_btn.onRollOut = (worm_btn.onDragOut = function () { worm_mc.gotoAndStop(1); }); worm_btn.onRelease = function () { level = 1; play(); }; python_btn.onRollOver = function () { python_mc.gotoAndStop(2); }; python_btn.onRollOut = (python_btn.onDragOut = function () { python_mc.gotoAndStop(1); }); python_btn.onRelease = function () { level = 0; play(); }; highScores_btn.onRollOver = function () { highScores_mc._alpha = 100; }; highScores_btn.onRollOut = (highScores_btn.onDragOut = function () { highScores_mc._alpha = 40; }); highScores_btn.onRelease = function () { gotoAndStop (44); }; neave_btn.onRelease = function () { getURL ("https://neave.com/games/", "_top"); }; neave_btn._visible = (_url.indexOf("file:///") == -1) && (_url.indexOf("https://playsnake.org") == -1); _root.menu.customItems[0].visible = (_root.menu.customItems[1].visible = (_root.menu.customItems[2].visible = false));
Frame 3
function makeFood() { do { fx = int(Math.random() * (gx - 1)) + 1; fy = int(Math.random() * (gy - 1)) + 1; } while (s_mc[fx][fy]._visible); with (s_mc[fx][fy]) { fuse = 75; gotoAndStop(2); _visible = true; } } Key.removeListener(keyListener); keyListener = new Object(); keyListener.onKeyDown = function () { if (Key.getCode() == 77) { muteSound(); } }; Key.addListener(keyListener); score = 0; len = 2; gx = 21; gy = 15; max = ((gx - 2) * (gy - 2)) - 3; vx = 0; vy = 1; x = 11; y = 4; gameOver = (paused = (moved = false)); levelName = "LEVEL: " + ["PYTHON", "WORM", "SLUG"][level]; mute_btn.onRelease = muteSound; if (mute_sound.getVolume() > 0) { mute_mc._visible = false; } var i = 0; while (i <= gx) { s_mc.createEmptyMovieClip(i, i); var j = 0; while (j <= gy) { s_mc[i].attachMovie("snake", j, j, {_x:i * 12, _y:j * 12, _visible:false, fuse:0}); j++; } i++; }
Frame 42
stop(); _root.menu.customItems[0].visible = (_root.menu.customItems[1].visible = (_root.menu.customItems[2].visible = true)); makeFood(); lc = level; this.onEnterFrame = function () { if (paused) { return(undefined); } if (lc) { lc--; return(undefined); } lc = level; x = x + vx; y = y + vy; if ((x == fx) && (y == fy)) { score = score + (s_mc[x][y].fuse + 1); len++; with (s_mc[x][y]) { fuse = len; gotoAndStop(1); } for (var i in s_mc) { for (var j in s_mc[i]) { if (s_mc[i][j]._visible) { s_mc[i][j].fuse++; } } } makeFood(); } else if (((((s_mc[x][y]._visible || (x == 0)) || (x == gx)) || (y == 0)) || (y == gy)) || (len > max)) { gameOver = true; s_mc._alpha = 25; Key.removeListener(keyListener); nextFrame(); delete this.onEnterFrame; } with (s_mc[x][y]) { fuse = len; _visible = true; } moved = false; updateAfterEvent(); }; Key.removeListener(keyListener); keyListener = new Object(); keyListener.onKeyDown = function () { if (gameOver) { return(undefined); } var _local1 = Key.getCode(); switch (_local1) { case 32 : case 80 : pauseGame(); break; case 77 : muteSound(); } if ((!paused) && (!moved)) { switch (_local1) { case 38 : case 87 : case 192 : if (vy == 0) { vx = 0; vy = -1; moved = true; } break; case 40 : case 83 : case 191 : if (vy == 0) { vx = 0; vy = 1; moved = true; } break; case 37 : case 65 : case 90 : if (vx == 0) { vx = -1; vy = 0; moved = true; } break; case 39 : case 68 : case 88 : if (vx != 0) { break; } vx = 1; vy = 0; moved = true; } } }; Key.addListener(keyListener);
Frame 43
stop(); _root.menu.customItems[0].visible = (_root.menu.customItems[1].visible = (_root.menu.customItems[2].visible = false)); name_txt.restrict = "A-Z 0-9"; tempName = ((game_so.data.playerName.length > 0) ? (game_so.data.playerName.stripSpaces()) : ""); Selection.setFocus(name_txt); Selection.setSelection(name_txt.length, name_txt.length); ok_btn.onRollOver = function () { ok_mc._alpha = 100; }; ok_btn.onRollOut = (ok_btn.onDragOut = function () { ok_mc._alpha = 40; }); ok_btn.onRelease = function () { if (name_txt.length > 0) { game_so.data.playerName = name_txt.text.stripSpaces(); } delete tempName; nextFrame(); }; ok_btn.onKeyDown = function () { name_txt.text = name_txt.text.stripSpaces(); if (Key.getCode() == 13) { Key.removeListener(this); this.onRelease(); } updateAfterEvent(); }; ok_btn.onKeyUp = function () { name_txt.text = name_txt.text.stripSpaces(); updateAfterEvent(); }; Key.addListener(ok_btn);
Frame 44
function showScores() { var _local2 = 5; while (_local2 > 0) { var _local6 = scoreboard_lv["name" + (page + _local2)]; var _local5 = scoreboard_lv["score" + (page + _local2)]; var _local4 = this[("line" + _local2) + "_mc"]; var _local3 = this[("line" + _local2) + "bg_mc"]; _local4.rank_txt.text = (_local3.rank_txt.text = (page + _local2) + "."); _local4.name_txt.text = (_local3.name_txt.text = (_local6.length ? (_local6.stripSpaces().toUpperCase()) : "-")); _local4.score_txt.text = (_local3.score_txt.text = (_local5.length ? (_local5) : "-")); _local4._visible = (_local3._visible = true); loading_mc._visible = false; _local2--; } } function loadScores(num) { next_btn._visible = (back_btn._visible = (slug_btn.enabled = (worm_btn.enabled = (python_btn.enabled = false)))); slug_mc._alpha = (worm_mc._alpha = (python_mc._alpha = 40)); switch (num) { case 2 : slug_mc._alpha = 100; break; case 1 : worm_mc._alpha = 100; break; default : python_mc._alpha = 100; } var _local2 = 5; while (_local2 > 0) { this[("line" + _local2) + "_mc"]._visible = (this[("line" + _local2) + "bg_mc"]._visible = false); _local2--; } loading_mc.gotoAndStop(1); loading_mc._visible = true; 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.stripSpaces().toLowerCase(); } scoreboard_lv.url = _url; scoreboard_lv.game = "snake" + (3 - num); scoreboard_lv.sendAndLoad("https://neave.com/games/games_score.php", scoreboard_lv, "POST"); scoreboard_lv.onLoad = function (success) { if (success) { if (scoreboard_lv.success == "1") { next_btn._visible = true; if (scoreboard_lv.maxScore.length > 0) { maxScore = Number(scoreboard_lv.maxScore); } showScores(); } else { loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase(); loading_mc.gotoAndStop(2); } } else { loading_mc.errorMsg = "COULD NOT ACCESS SCORES."; loading_mc.gotoAndStop(2); } switch (num) { case 2 : worm_btn.enabled = (python_btn.enabled = true); break; case 1 : slug_btn.enabled = (python_btn.enabled = true); break; default : slug_btn.enabled = (worm_btn.enabled = true); } }; score = 0; } function gotoIntro() { gotoAndStop (2); } stop(); back_btn.onPress = function () { page = page - 5; if (page < 0) { page = 0; } if (page < 5) { back_btn._visible = false; } next_btn._visible = true; showScores(); }; next_btn.onPress = function () { page = page + 5; if (page > maxScore) { page = maxScore; } if (page > (maxScore - 10)) { next_btn._visible = false; } back_btn._visible = true; showScores(); }; newGame_btn.onRelease = function () { getURL ("javascript:location.href='https://playsnake.org/';void(0);"); setTimeout(gotoIntro, 1000); }; slug_btn.onRollOver = function () { slug_mc._alpha = 100; }; slug_btn.onRollOut = (slug_btn.onDragOut = function () { slug_mc._alpha = 40; }); slug_btn.onRelease = function () { loadScores(2); }; worm_btn.onRollOver = function () { worm_mc._alpha = 100; }; worm_btn.onRollOut = (worm_btn.onDragOut = function () { worm_mc._alpha = 40; }); worm_btn.onRelease = function () { loadScores(1); }; python_btn.onRollOver = function () { python_mc._alpha = 100; }; python_btn.onRollOut = (python_btn.onDragOut = function () { python_mc._alpha = 40; }); python_btn.onRelease = function () { loadScores(0); }; loadScores(level);
Symbol 3 MovieClip Frame 4
stop();
Symbol 5 MovieClip [snake] Frame 1
stop(); this.onEnterFrame = function () { if (_root.lc) { return(undefined); } if ((!_root.gameOver) && (!_root.paused)) { if (fuse) { fuse--; } else { _visible = false; } } };
Symbol 5 MovieClip [snake] Frame 2
this.onEnterFrame = function () { if (((!_root.gameOver) && (!_root.paused)) && (fuse)) { fuse--; FoodBG._rotation = (Food._rotation = Food._rotation + (fuse / 4)); } };
Symbol 13 MovieClip Frame 1
if (_parent._name == "worm_mc") { step = 2; } else if (_parent._name == "python_mc") { step = 3; } else { step = 1; } this.onEnterFrame = function () { gotoAndStop(_currentframe + step); };
Symbol 13 MovieClip Frame 41
gotoAndPlay (2);
Symbol 13 MovieClip Frame 42
gotoAndPlay (2);
Symbol 14 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop(); errorMsg = "";
Symbol 66 Button
on (rollOver) { NG._alpha = 100; } on (rollOut, dragOut) { NG._alpha = 40; }

Library Items

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

Instance Names

"f2_mc"Frame 2Symbol 3 MovieClip
"f1_mc"Frame 2Symbol 3 MovieClip
"f4_mc"Frame 2Symbol 3 MovieClip
"f3_mc"Frame 2Symbol 3 MovieClip
"slug_mc"Frame 2Symbol 14 MovieClip
"worm_mc"Frame 2Symbol 16 MovieClip
"python_mc"Frame 2Symbol 18 MovieClip
"highScores_mc"Frame 2Symbol 20 MovieClip
"neave_btn"Frame 2Symbol 24 Button
"highScores_btn"Frame 2Symbol 25 Button
"slug_btn"Frame 2Symbol 25 Button
"worm_btn"Frame 2Symbol 25 Button
"python_btn"Frame 2Symbol 25 Button
"s_mc"Frame 3Symbol 27 MovieClip
"mute_btn"Frame 3Symbol 29 Button
"mute_mc"Frame 3Symbol 30 MovieClip
"name_txt"Frame 43Symbol 50 EditableText
"ok_mc"Frame 43Symbol 52 MovieClip
"ok_btn"Frame 43Symbol 25 Button
"line1bg_mc"Frame 44Symbol 57 MovieClip
"line2bg_mc"Frame 44Symbol 57 MovieClip
"line3bg_mc"Frame 44Symbol 57 MovieClip
"line4bg_mc"Frame 44Symbol 57 MovieClip
"line5bg_mc"Frame 44Symbol 57 MovieClip
"line1_mc"Frame 44Symbol 57 MovieClip
"line2_mc"Frame 44Symbol 57 MovieClip
"line3_mc"Frame 44Symbol 57 MovieClip
"line4_mc"Frame 44Symbol 57 MovieClip
"line5_mc"Frame 44Symbol 57 MovieClip
"loading_mc"Frame 44Symbol 60 MovieClip
"slug_mc"Frame 44Symbol 61 MovieClip
"worm_mc"Frame 44Symbol 62 MovieClip
"python_mc"Frame 44Symbol 63 MovieClip
"NG"Frame 44Symbol 65 MovieClip
"newGame_btn"Frame 44Symbol 66 Button
"back_btn"Frame 44Symbol 69 Button
"next_btn"Frame 44Symbol 71 Button
"worm_btn"Frame 44Symbol 25 Button
"python_btn"Frame 44Symbol 25 Button
"slug_btn"Frame 44Symbol 25 Button
"FoodBG"Symbol 5 MovieClip [snake] Frame 2Symbol 3 MovieClip
"Food"Symbol 5 MovieClip [snake] Frame 2Symbol 3 MovieClip
"s2_mc"Symbol 14 MovieClip Frame 2Symbol 13 MovieClip
"s1_mc"Symbol 14 MovieClip Frame 2Symbol 13 MovieClip
"w2_mc"Symbol 16 MovieClip Frame 2Symbol 13 MovieClip
"w1_mc"Symbol 16 MovieClip Frame 2Symbol 13 MovieClip
"p2_mc"Symbol 18 MovieClip Frame 2Symbol 13 MovieClip
"p1_mc"Symbol 18 MovieClip Frame 2Symbol 13 MovieClip
"rank_txt"Symbol 57 MovieClip Frame 1Symbol 54 EditableText
"name_txt"Symbol 57 MovieClip Frame 1Symbol 55 EditableText
"score_txt"Symbol 57 MovieClip Frame 1Symbol 56 EditableText

Special Tags

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

Dynamic Text Variables

levelNameSymbol 31 EditableText""
scoreSymbol 33 EditableText""
tempNameSymbol 49 EditableText""
tempNameSymbol 50 EditableText""
errorMsgSymbol 58 EditableText""
errorMsgSymbol 59 EditableText""




http://swfchan.com/43/211233/info.shtml
Created: 8/10 -2018 01:31:17 Last modified: 8/10 -2018 01:31:17 Server time: 14/11 -2024 06:47:36