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! |
This is the info page for Flash #59919 |
Click To Play |
ActionScript [AS1/AS2]
Frame 2stop(); 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 Buttonon (release) { getURL ("http://www.newgrounds.com", "_blank"); }Symbol 51 Buttonon (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 2gotoAndPlay (1);
Library Items
Symbol 1 Graphic | Used by:2 | |
Symbol 2 MovieClip [piece] | Uses:1 | |
Symbol 3 Graphic | Used by:4 | |
Symbol 4 MovieClip [food] | Uses:3 | |
Symbol 5 Graphic | Used by:53 | |
Symbol 6 Graphic | Used by:7 42 | |
Symbol 7 MovieClip | Uses:6 | Used by:53 |
Symbol 8 Graphic | Used by:53 | |
Symbol 9 Graphic | Used by:53 | |
Symbol 10 Graphic | Used by:53 | |
Symbol 11 Graphic | Used by:12 | |
Symbol 12 MovieClip | Uses:11 | Used by:13 |
Symbol 13 MovieClip | Uses:12 | Used by:41 |
Symbol 14 Graphic | Used by:41 | |
Symbol 15 Graphic | Used by:16 17 | |
Symbol 16 MovieClip | Uses:15 | Used by:41 |
Symbol 17 MovieClip | Uses:15 | Used by:41 |
Symbol 18 Graphic | Used by:19 | |
Symbol 19 MovieClip | Uses:18 | Used by:39 |
Symbol 20 Graphic | Used by:24 | |
Symbol 21 Graphic | Used by:24 | |
Symbol 22 Graphic | Used by:23 | |
Symbol 23 MovieClip | Uses:22 | Used by:24 27 |
Symbol 24 MovieClip | Uses:20 21 23 | Used by:38 |
Symbol 25 Graphic | Used by:27 | |
Symbol 26 Graphic | Used by:27 | |
Symbol 27 MovieClip | Uses:25 26 23 | Used by:38 |
Symbol 28 Graphic | Used by:31 | |
Symbol 29 Graphic | Used by:31 34 | |
Symbol 30 Graphic | Used by:31 | |
Symbol 31 MovieClip | Uses:28 29 30 | Used by:35 |
Symbol 32 Graphic | Used by:34 | |
Symbol 33 Graphic | Used by:34 | |
Symbol 34 MovieClip | Uses:32 29 33 | Used by:35 |
Symbol 35 MovieClip | Uses:31 34 | Used by:38 |
Symbol 36 Graphic | Used by:37 | |
Symbol 37 MovieClip | Uses:36 | Used by:38 |
Symbol 38 MovieClip | Uses:24 27 35 37 | Used by:39 |
Symbol 39 MovieClip | Uses:19 38 | Used by:41 |
Symbol 40 Graphic | Used by:41 | |
Symbol 41 MovieClip | Uses:13 14 16 17 39 40 | Used by:53 |
Symbol 42 Button | Uses:6 | Used by:53 |
Symbol 43 Graphic | Used by:45 | |
Symbol 44 Graphic | Used by:45 | |
Symbol 45 MovieClip | Uses:43 44 | Used by:53 |
Symbol 46 Graphic | Used by:51 | |
Symbol 47 Graphic | Used by:51 | |
Symbol 48 Graphic | Used by:51 | |
Symbol 49 Graphic | Used by:51 | |
Symbol 50 Graphic | Used by:51 | |
Symbol 51 Button | Uses:46 47 48 49 50 | Used by:53 |
Symbol 52 Graphic | Used by:53 | |
Symbol 53 MovieClip | Uses:5 7 8 9 10 41 42 45 51 52 | Used by:Timeline |
Symbol 54 Graphic | Used by:Timeline | |
Symbol 55 Font | Used by:56 | |
Symbol 56 EditableText | Uses:55 | Used by:Timeline |
Symbol 57 Graphic | Used by:Timeline | |
Symbol 58 Sound | Used by:Timeline |
Instance Names
"tScore" | Frame 2 | Symbol 56 EditableText |
"bar" | Symbol 53 MovieClip Frame 1 | Symbol 7 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "piece" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "food" |
Labels
"loaded" | Symbol 53 MovieClip Frame 3 |
|