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/52048352?noj=FRM52048352-22DC" width="1" height="1"></div>

Snake_Xmas_Edition.swf

This is the info page for
Flash #98871

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


Text
<p align="center"><font face="Sydnie" size="23" color="#d6d6d6" letterSpacing="0.000000" kerning="1">CLICK TO BEGIN</font></p>

ActionScript [AS1/AS2]

Frame 1
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 = "GAME OVER 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);

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [piece]Uses:1
Symbol 3 BitmapUsed by:4
Symbol 4 GraphicUses:3Used by:5
Symbol 5 MovieClip [food]Uses:4
Symbol 6 GraphicUsed by:Timeline
Symbol 7 FontUsed by:8
Symbol 8 EditableTextUses:7Used by:Timeline
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:15
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:15
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:15
Symbol 15 MovieClipUses:10 12 14Used by:Timeline
Symbol 16 SoundUsed by:Timeline

Instance Names

"tScore"Frame 1Symbol 8 EditableText

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 5 as "food"




http://swfchan.com/20/98871/info.shtml
Created: 22/3 -2019 07:42:17 Last modified: 22/3 -2019 07:42:17 Server time: 22/12 -2024 09:36:28