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

A
Very
Merry Christmas!


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

Stick Eating Cobra.swf

This is the info page for
Flash #59919

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


Text
Click To Play

ActionScript [AS1/AS2]

Frame 2
stop(); function addPiece() { var _local2 = this.attachMovie("piece", "piece" + aPieceList.length, aPieceList.length); _local2._x = aPieceList[aPieceList.length - 1]._x; _local2._y = aPieceList[aPieceList.length - 1]._y; aPieceList.push(_local2); } function moveFood() { var _local2 = true; while (_local2) { food._x = Math.floor(Math.random() * uwh) * unit; food._y = Math.floor(Math.random() * uwh) * unit; _local2 = false; var _local1 = 0; while (_local1 < aPieceList.length) { if ((aPieceList[_local1]._x == food._x) && (aPieceList[_local1]._y == food._y)) { _local2 = true; } _local1++; } } } function gameOver() { delete this.onEnterFrame; tScore.text = "You Lose. Score: " + score; canMove = false; } function startGame() { var _local2 = aPieceList.length - 1; while (_local2 >= 0) { aPieceList[_local2].removeMovieClip(); aPieceList.pop(); _local2--; } score = 0; var _local4 = this.attachMovie("piece", "piece" + aPieceList.length, aPieceList.length); aPieceList.push(_local4); _local4._x = 10 * unit; _local4._y = 10 * unit; var food = this.attachMovie("food", "food", -1); var _local5 = 0; moveFood(); var _local3 = 3; _local2 = 1; while (_local2 < _local3) { addPiece(); _local2++; } this.onEnterFrame = function () { canMove = true; tScore.text = score; var _local1 = aPieceList.length - 1; while (_local1 > 0) { aPieceList[_local1]._x = aPieceList[_local1 - 1]._x; aPieceList[_local1]._y = aPieceList[_local1 - 1]._y; _local1--; } if (dir == 0) { aPieceList[0]._y = aPieceList[0]._y - unit; } else if (dir == 1) { aPieceList[0]._x = aPieceList[0]._x - unit; } else if (dir == 2) { aPieceList[0]._y = aPieceList[0]._y + unit; } else if (dir == 3) { aPieceList[0]._x = aPieceList[0]._x + unit; } if ((aPieceList[0]._y / unit) == 20) { aPieceList[0]._y = 0; } else if ((aPieceList[0]._y / unit) == -1) { aPieceList[0]._y = 19 * unit; } else if ((aPieceList[0]._x / unit) == -1) { aPieceList[0]._x = 19 * unit; } else if ((aPieceList[0]._x / unit) == 20) { aPieceList[0]._x = 0; } if ((aPieceList[0]._x == food._x) && (aPieceList[0]._y == food._y)) { score = score + ((10 * aPieceList.length) / 2); moveFood(); addPiece(); } _local1 = 1; while (_local1 < aPieceList.length) { if ((aPieceList[0]._x == aPieceList[_local1]._x) && (aPieceList[0]._y == aPieceList[_local1]._y)) { gameOver(); } _local1++; } }; } var unit = 15; var uwh = 20; var canMove = false; var dir = 2; var score = 0; aPieceList = new Array(); mouseListener = new Object(); mouseListener.onMouseDown = function () { if (!canMove) { canMove = true; startGame(); } }; Mouse.addListener(mouseListener); k = new Object(); k.onKeyDown = function () { var _local1 = Key.getCode(); if (((_local1 == 38) && (dir != 2)) && (canMove)) { dir = 0; canMove = false; } else if (((_local1 == 37) && (dir != 3)) && (canMove)) { dir = 1; canMove = false; } else if (((_local1 == 40) && (dir != 0)) && (canMove)) { dir = 2; canMove = false; } else if (((_local1 == 39) && (dir != 1)) && (canMove)) { dir = 3; canMove = false; } }; Key.addListener(k);
Symbol 42 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 51 Button
on (release) { _root.play(); }
Symbol 53 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop ("loaded"); }
Symbol 53 MovieClip Frame 2
gotoAndPlay (1);

Library Items

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

Instance Names

"tScore"Frame 2Symbol 56 EditableText
"bar"Symbol 53 MovieClip Frame 1Symbol 7 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 2 as "piece"
ExportAssets (56)Timeline Frame 1Symbol 4 as "food"

Labels

"loaded"Symbol 53 MovieClip Frame 3




http://swfchan.com/12/59919/info.shtml
Created: 16/4 -2019 13:50:21 Last modified: 16/4 -2019 13:50:21 Server time: 23/12 -2024 00:45:08