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

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

Snake Classic.swf

This is the info page for
Flash #42225

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


Text
onlinegames

presents

CHOOSE LEVEL:

SLUG

WORM

PYTHON

<P ALIGN="CENTER"><FONT FACE="Verdana" SIZE="11" COLOR="#AACC99">created by www.neave.com</FONT></P>

HIGH SCORES

MORE GAMES

SCORE:

3

3

API
1.1

2

2

1

1

GO!

GO!

GAME

OVER!

GAME

OVER!

SUBMIT HIGHSCORE ?

NO

YES

LOADING...

NEW GAME

< BACK

NEXT >

ActionScript [AS1/AS2]

Frame 1
stop(); Stage.showMenu = false; _root.version = 1;
Frame 2
game_so = SharedObject.getLocal("neaveSnake"); stop(); 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 () { getURL ("http://www.neodelight.com/neodelight/site/highscores.php?league=&game=snake", "_blank"); }; moreGames_btn.onRollOver = function () { moreGames_mc._alpha = 100; }; moreGames_btn.onRollOut = (moreGames_btn.onDragOut = function () { moreGames_mc._alpha = 40; }); moreGames_btn.onRelease = function () { getURL ("http://www.neodelight.com?ref=snake&ref_loc=moregames&ref_ver=" + _root.version, "_blank"); }; neave_btn.onRelease = function () { getURL ("http://www.neave.com/games/", "_blank"); };
Frame 3
Key.removeListener(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]; 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++; } makeFood = function () { 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; } };
Frame 59
makeFood(); lc = level; stop(); 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(); }; keyListener = new Object(); keyListener.onKeyDown = function () { if (gameOver) { return(undefined); } var keyCode = Key.getCode(); switch (keyCode) { case Key.SPACE : case 80 : case 112 : paused = !paused; s_mc._alpha = (paused ? 25 : 100); } if ((!paused) && (!moved)) { switch (keyCode) { case Key.UP : if (vy == 0) { vx = 0; vy = -1; moved = true; } return; case Key.DOWN : if (vy == 0) { vx = 0; vy = 1; moved = true; } return; case Key.LEFT : if (vx == 0) { vx = -1; vy = 0; moved = true; } return; case Key.RIGHT : if (vx != 0) { break; } vx = 1; vy = 0; moved = true; } } }; Key.addListener(keyListener);
Frame 60
stop(); name_txt.restrict = "A-Z 0-9.:\\-"; tempName = game_so.data.playerName; 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 () { trace("score ?? "); if (_level0.score > 0) { trace("score !!"); _global.api.highscore.submit("snake", "", _level0.score, 0); } else { trace("no score"); } if (name_txt.length > 0) { game_so.data.playerName = name_txt.text; } delete tempName; gotoAndStop (2); }; no_btn.onRollOver = function () { no_mc._alpha = 100; }; no_btn.onRollOut = (no_btn.onDragOut = function () { no_mc._alpha = 40; }); no_btn.onRelease = function () { delete tempName; gotoAndStop (2); };
Frame 61
stop(); showScores = function () { var i = 5; while (i > 0) { var n = scoreboard_lv["name" + (page + i)]; var s = scoreboard_lv["score" + (page + i)]; var l_mc = this[("line" + i) + "_mc"]; var lbg_mc = this[("line" + i) + "bg_mc"]; l_mc.rank_txt.text = (lbg_mc.rank_txt.text = (page + i) + "."); l_mc.name_txt.text = (lbg_mc.name_txt.text = (n.length ? (n.toUpperCase()) : "-")); l_mc.score_txt.text = (lbg_mc.score_txt.text = (s.length ? (s) : "-")); l_mc._visible = (lbg_mc._visible = true); loading_mc._visible = false; i--; } }; loadScores = function (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 i = 5; while (i > 0) { this[("line" + i) + "_mc"]._visible = (this[("line" + i) + "bg_mc"]._visible = false); i--; } 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.toLowerCase(); } scoreboard_lv.game = "snake" + (3 - num); scoreboard_lv.sendAndLoad("http://www.neave.com/games/games_score_text.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.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); return; case 1 : slug_btn.enabled = (python_btn.enabled = true); return; default : slug_btn.enabled = (worm_btn.enabled = true); } }; score = 0; }; 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 () { gotoAndStop (2); }; 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 4 MovieClip Frame 4
stop();
Symbol 6 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 6 MovieClip [snake] Frame 2
this.onEnterFrame = function () { if (((!_root.gameOver) && (!_root.paused)) && (fuse)) { fuse--; FoodBG._rotation = (Food._rotation = Food._rotation + (fuse / 4)); } };
Symbol 8 Button
on (release) { getURL (("http://www.neodelight.com?ref=" + _root.game) + "&ref_loc=intro", "_BLANK"); }
Symbol 19 MovieClip Frame 1
startFrame = _parent._currentframe;
Symbol 19 MovieClip Frame 2
vol = (1 - ((_parent._currentFrame - startFrame) / (_parent._totalFrames - startFrame))) * 100; if (vol < 0) { vol = 0; } _parent.snd.setVolume(vol);
Symbol 19 MovieClip Frame 3
gotoAndPlay (2);
Symbol 20 MovieClip Frame 1
snd = new Sound(this); snd.setVolume(100); _parent.stop();
Symbol 20 MovieClip Frame 123
stop(); _parent.play();
Symbol 26 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 26 MovieClip Frame 41
gotoAndPlay (2);
Symbol 26 MovieClip Frame 42
gotoAndPlay (2);
Symbol 27 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
_global.api = new Object(); _global.api.debug = new Object(); _global.api.highscore = new Object(); _global.api.debug.describe = function (o) { var d = (("[DESCRIBE: " + o.toString()) + "]"); d = d + "\n---------------------------DESC-START"; for (var i in o) { d = d + (((newline + i) + ": ") + o[i]); } d = d + "\n---------------------------DESC-STOP"; return(d); }; _global.api.snd = new Object(); _global.api.snd.lib = new Object(); _global.api.snd.load = function (name, url) { var s = new Sound(); if (url eq "") { s.attachSound(name); } else { s.loadSound(url); } _global.api.snd.lib[name] = s; }; _global.api.snd.play = function (name) { _root.snd[name].gotoAndPlay(1); }; _global.api.highscore.initSession = function () { this.session = ""; while (this.session.length < 20) { this.session = this.session + this.charTable.charAt(Math.round(Math.random() * (this.charTable.length - 4))); } this.charTableIndex = new Array(); var i = 0; while (i < this.charTable.length) { this.charTableIndex[this.charTable.charCodeAt(i)] = i; i++; } }; _global.api.highscore.submit = function (pGame, pDisciple, pScore0, pScore1) { var s = (("g=" + pGame) + "&"); s = s + (("d=" + pDisciple) + "&"); s = s + (("s0=" + pScore0) + "&"); s = s + (("s1=" + pScore1) + "&"); s = s + ("se=" + escape(session)); s = s + "&c=42"; var urlSubmit = ((this.urlSubmit + "?s=") + escape(this.encrypt(this.encrypt(s, this.keystring), this.keystring2)).split("%").join("_")); trace(urlSubmit); getURL (urlSubmit, "_blank"); }; _global.api.highscore.encrypt = function (text, pKey) { var crypt = ""; var checkSum = 0; var shift; var code; var i = 0; while (i < text.length) { char = this.charTableIndex[text.charCodeAt(i)]; shift = this.charTableIndex[pKey.charCodeAt(i % pKey.length)]; code = (char + shift) + checkSum; code = code % this.charTable.length; crypt = crypt + this.charTable.charAt(code); checkSum = checkSum + code; i++; } checkSum = checkSum % this.charTable.length; return((crypt + "") + this.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(); _visible = false;
Symbol 65 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 1
stop(); errorMsg = "";
Symbol 84 Button
on (rollOver) { NG._alpha = 100; } on (rollOut, dragOut) { NG._alpha = 40; } on (release) { gotoAndStop (2); }

Library Items

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

Instance Names

"f2_mc"Frame 2Symbol 4 MovieClip
"f1_mc"Frame 2Symbol 4 MovieClip
"f4_mc"Frame 2Symbol 4 MovieClip
"f3_mc"Frame 2Symbol 4 MovieClip
"slug_mc"Frame 2Symbol 27 MovieClip
"worm_mc"Frame 2Symbol 29 MovieClip
"python_mc"Frame 2Symbol 31 MovieClip
"neave_btn"Frame 2Symbol 35 Button
"highScores_mc"Frame 2Symbol 37 MovieClip
"moreGames_mc"Frame 2Symbol 39 MovieClip
"slug_btn"Frame 2Symbol 40 Button
"worm_btn"Frame 2Symbol 40 Button
"python_btn"Frame 2Symbol 40 Button
"highScores_btn"Frame 2Symbol 40 Button
"moreGames_btn"Frame 2Symbol 40 Button
"s_mc"Frame 3Symbol 44 MovieClip
"no_mc"Frame 60Symbol 68 MovieClip
"no_btn"Frame 60Symbol 40 Button
"ok_mc"Frame 60Symbol 70 MovieClip
"ok_btn"Frame 60Symbol 40 Button
"line1bg_mc"Frame 61Symbol 74 MovieClip
"line2bg_mc"Frame 61Symbol 74 MovieClip
"line3bg_mc"Frame 61Symbol 74 MovieClip
"line4bg_mc"Frame 61Symbol 74 MovieClip
"line5bg_mc"Frame 61Symbol 74 MovieClip
"line1_mc"Frame 61Symbol 74 MovieClip
"line2_mc"Frame 61Symbol 74 MovieClip
"line3_mc"Frame 61Symbol 74 MovieClip
"line4_mc"Frame 61Symbol 74 MovieClip
"line5_mc"Frame 61Symbol 74 MovieClip
"loading_mc"Frame 61Symbol 78 MovieClip
"slug_mc"Frame 61Symbol 79 MovieClip
"worm_mc"Frame 61Symbol 80 MovieClip
"python_mc"Frame 61Symbol 81 MovieClip
"NG"Frame 61Symbol 83 MovieClip
"newGame_btn"Frame 61Symbol 84 Button
"back_btn"Frame 61Symbol 88 Button
"next_btn"Frame 61Symbol 90 Button
"worm_btn"Frame 61Symbol 40 Button
"python_btn"Frame 61Symbol 40 Button
"slug_btn"Frame 61Symbol 40 Button
"FoodBG"Symbol 6 MovieClip [snake] Frame 2Symbol 4 MovieClip
"Food"Symbol 6 MovieClip [snake] Frame 2Symbol 4 MovieClip
"s2_mc"Symbol 27 MovieClip Frame 2Symbol 26 MovieClip
"s1_mc"Symbol 27 MovieClip Frame 2Symbol 26 MovieClip
"w2_mc"Symbol 29 MovieClip Frame 2Symbol 26 MovieClip
"w1_mc"Symbol 29 MovieClip Frame 2Symbol 26 MovieClip
"p2_mc"Symbol 31 MovieClip Frame 2Symbol 26 MovieClip
"p1_mc"Symbol 31 MovieClip Frame 2Symbol 26 MovieClip
"rank_txt"Symbol 74 MovieClip Frame 1Symbol 71 EditableText
"name_txt"Symbol 74 MovieClip Frame 1Symbol 72 EditableText
"score_txt"Symbol 74 MovieClip Frame 1Symbol 73 EditableText

Special Tags

Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 1 as "neodelight_music"
ExportAssets (56)Timeline Frame 1Symbol 6 as "snake"
EnableDebugger2 (64)Timeline Frame 131 bytes "..$1$H.$Ax7Yrz8cDpsjNGYK95DOI/."
DebugMX1 (63)Timeline Frame 1

Labels

"loop"Symbol 19 MovieClip Frame 2

Dynamic Text Variables

levelNameSymbol 45 EditableText""
scoreSymbol 47 EditableText""
errorMsgSymbol 76 EditableText""
errorMsgSymbol 77 EditableText""




http://swfchan.com/9/42225/info.shtml
Created: 10/5 -2019 01:10:13 Last modified: 10/5 -2019 01:10:13 Server time: 05/11 -2024 14:01:13