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>

577174972.swf

This is the info page for
Flash #12502

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


Text
<p align="center"><font face="Odessa LET" size="30" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Click anywhere to start</b></font></p>

The Save The Planet game is
based around the classic "snake".
Use the arrow keys to guide the trees into
the pollution clouds, and as the trees
grow, it's harder to control your chain.
The longer your chain, the more points
your receive per pollution cloud.

Created by...

<p align="center"><font face="Odessa LET" size="23" color="#006600" letterSpacing="0.000000" kerning="1"><a href="http://www.ecopetition.org" target = "_blank">Ecopetition.Org</a></font></p><p align="center"><font face="Odessa LET" size="15" color="#006600" letterSpacing="0.000000" kerning="1"><a href="http://www.ecopetition.org" target = "_blank"><i>The Fight Against Climate <sbr />Change</i></a></font></p>

( Click to view website )

ActionScript [AS1/AS2]

Frame 1
stop(); play.onRelease = function () { gotoAndPlay (2); }; stop(); instructions.onRelease = function () { gotoAndStop (3); }; stop(); credits.onRelease = function () { gotoAndStop (4); };
Frame 2
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 = "Current Score: " + 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++; } }; } stop(); var unit = 15; var uwh = 20; var canMove = false; var dir = 3; 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);
Frame 3
stop(); back.onRelease = function () { gotoAndStop (1); };
Frame 4
stop(); back.onRelease = function () { gotoAndStop (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:Timeline
Symbol 6 GraphicUsed by:7
Symbol 7 ButtonUses:6Used by:Timeline
Symbol 8 GraphicUsed by:9
Symbol 9 ButtonUses:8Used by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 ButtonUses:10Used by:Timeline
Symbol 12 GraphicUsed by:Timeline
Symbol 13 FontUsed by:14 23
Symbol 14 EditableTextUses:13Used by:Timeline
Symbol 15 GraphicUsed by:Timeline
Symbol 16 FontUsed by:17 21 23 24
Symbol 17 TextUses:16Used by:Timeline
Symbol 18 GraphicUsed by:19
Symbol 19 ButtonUses:18Used by:Timeline
Symbol 20 GraphicUsed by:Timeline
Symbol 21 TextUses:16Used by:Timeline
Symbol 22 FontUsed by:23
Symbol 23 EditableTextUses:13 16 22Used by:Timeline
Symbol 24 TextUses:16Used by:Timeline

Instance Names

"play"Frame 1Symbol 7 Button
"instructions"Frame 1Symbol 9 Button
"credits"Frame 1Symbol 11 Button
"tScore"Frame 2Symbol 14 EditableText
"back"Frame 3Symbol 19 Button

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"




http://swfchan.com/3/12502/info.shtml
Created: 5/6 -2019 22:59:00 Last modified: 5/6 -2019 22:59:00 Server time: 22/12 -2024 09:10:26