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

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

daemionfox_snake.swf

This is the info page for
Flash #49395

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


Text
Strip Snake

Start

Control the Snake
using the Arrow keys


Eat the food to grow
longer and go faster


The higher your score
the more she takes off




Click or press Space to:

0000

ActionScript [AS3]

Section 1
//speechBubble_9 (snake_fla.speechBubble_9) package snake_fla { import flash.display.*; import flash.text.*; public dynamic class speechBubble_9 extends MovieClip { public var textBox:TextField; } }//package snake_fla
Section 2
//VixenMC_2 (snake_fla.VixenMC_2) package snake_fla { import flash.display.*; public dynamic class VixenMC_2 extends MovieClip { public var Skirt:MovieClip; public var TankTop:MovieClip; public var Socks:vixSocks; public var Bustier:MovieClip; public var Panties:MovieClip; } }//package snake_fla
Section 3
//Food (Food) package { import flash.display.*; public dynamic class Food extends MovieClip { public function Food(){ addFrameScript(9, frame10, 19, frame20, 29, frame30); } function frame10(){ gotoAndPlay("Level_1"); } function frame20(){ gotoAndPlay("Level_2"); } function frame30(){ gotoAndPlay("Level_3"); } } }//package
Section 4
//gBoard (gBoard) package { import flash.display.*; public dynamic class gBoard extends MovieClip { } }//package
Section 5
//PointBurst (PointBurst) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; public class PointBurst extends Sprite { private var burstSprite:Sprite; private var animTimer:Timer; private var parentMC:MovieClip; private var tField:TextField; static const animStepTime:int = 50; static const fontSize:int = 12; static const fontFace:String = "911 Porscha"; static const fontBold:Boolean = true; static const animSteps:int = 10; static const startScale:Number = 0; static const fontColor:Number = 0; static const endScale:Number = 2; public function PointBurst(_arg1:MovieClip, _arg2:Object, _arg3, _arg4:Number){ var _local5:TextFormat; super(); _local5 = new TextFormat(); _local5.font = fontFace; _local5.size = fontSize; _local5.bold = fontBold; _local5.color = fontColor; _local5.align = "center"; tField = new TextField(); tField.embedFonts = true; tField.selectable = false; tField.defaultTextFormat = _local5; tField.autoSize = TextFieldAutoSize.CENTER; tField.text = String(_arg2); tField.x = -((tField.width / 2)); tField.y = -((tField.height / 2)); burstSprite = new Sprite(); burstSprite.x = _arg3; burstSprite.y = _arg4; burstSprite.scaleX = startScale; burstSprite.scaleY = startScale; burstSprite.alpha = 0; burstSprite.addChild(tField); parentMC = _arg1; parentMC.addChild(burstSprite); animTimer = new Timer(animStepTime, animSteps); animTimer.addEventListener(TimerEvent.TIMER, rescaleBurst); animTimer.addEventListener(TimerEvent.TIMER_COMPLETE, removeBurst); animTimer.start(); } public function removeBurst(_arg1:TimerEvent){ burstSprite.removeChild(tField); parentMC.removeChild(burstSprite); tField = null; burstSprite = null; delete ??getglobalscope [this]; } public function rescaleBurst(_arg1:TimerEvent){ var _local2:Number; _local2 = (_arg1.target.currentCount / animSteps); burstSprite.scaleX = (((1 - _local2) * startScale) + (_local2 * endScale)); burstSprite.scaleY = (((1 - _local2) * startScale) + (_local2 * endScale)); burstSprite.alpha = (1 - _local2); } } }//package
Section 6
//Pop1 (Pop1) package { import flash.media.*; public dynamic class Pop1 extends Sound { } }//package
Section 7
//Pop2 (Pop2) package { import flash.media.*; public dynamic class Pop2 extends Sound { } }//package
Section 8
//Pop3 (Pop3) package { import flash.media.*; public dynamic class Pop3 extends Sound { } }//package
Section 9
//Snake2 (Snake2) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; import flash.geom.*; public class Snake2 extends MovieClip { private const rightWall:int = 310; private const startX:int = 20; private const startY:int = 20; private const startPoint:Point; private const gridSize:int = 10; private const leftWall:int = 20; private const bottomWall:int = 310; private const topWall:int = 20; private const startSpeed:int = 150; private var pop1:Pop1; private var pop2:Pop2; public var speechBubble:MovieClip; private var recurseCount:int;// = 0 private var pop3:Pop3; public var gameBoard:gBoard; private var playerScore:Number;// = 0 private var nextLevel:Number;// = 100 private var food:Food; private var vixenLevels:Array; private var lastLevel:Number;// = 0 private var gameTimer:Timer; private var newStart; private var setPause:Boolean;// = false private var speedUpSnake:Number;// = 2 private var speechText:Array; private var levelUp:Array; private var snakeMoveX:Number;// = 0 private var snakeMoveY:Number;// = 0 private var gameSprite:Sprite; private var foodLevels:Array; public var Vixen:MovieClip; private var nextMoveY:Number;// = 0 private var nextMoveX:Number;// = 0 private var speechTimer:Timer; private var snakeParts:Array; public var gameScore:TextField; private var levelNumber:Number;// = 0 public function Snake2(){ startPoint = new Point(150, 150); food = new Food(); snakeMoveX = 0; snakeMoveY = 0; nextMoveX = 0; nextMoveY = 0; playerScore = 0; levelNumber = 0; nextLevel = 100; lastLevel = 0; levelUp = new Array(0, 100, 200, 300, 400); speedUpSnake = 2; setPause = false; recurseCount = 0; vixenLevels = new Array("Socks", "Skirt", "TankTop", "Bustier", "Panties"); foodLevels = new Array("Level_1", "Level_2", "Level_3"); speechText = new Array("Not bad to start.", "Is it drafty in here?", "Level 3. But it gets harder from here.", "Do you like what you see?", "It's cold in here! Wanna warm me up?"); pop1 = new Pop1(); pop2 = new Pop2(); pop3 = new Pop3(); super(); root["speechBubble"].visible = false; gameScore.text = ""; resetGame(); } public function placeFood(){ var _local1:Object; recurseCount = 0; _local1 = getFoodLocation(); food.value = (Math.floor((Math.random() * 3)) + 1); food.x = _local1.fX; food.y = _local1.fY; food.gotoAndPlay(foodLevels[food.value]); } public function hitTail(){ var _local1:int; _local1 = 1; while (_local1 < snakeParts.length) { if ((((snakeParts[0].x == snakeParts[_local1].x)) && ((snakeParts[0].y == snakeParts[_local1].y)))){ return (true); }; _local1++; }; return (false); } public function keyDownFunction(_arg1:KeyboardEvent){ if ((((_arg1.keyCode == 37)) && (!(setPause)))){ if (snakeMoveX != 1){ nextMoveX = -1; nextMoveY = 0; }; } else { if ((((_arg1.keyCode == 39)) && (!(setPause)))){ if (snakeMoveX != -1){ nextMoveX = 1; nextMoveY = 0; }; } else { if ((((_arg1.keyCode == 38)) && (!(setPause)))){ if (snakeMoveY != 1){ nextMoveY = -1; nextMoveX = 0; }; } else { if ((((_arg1.keyCode == 40)) && (!(setPause)))){ if (snakeMoveY != -1){ nextMoveY = 1; nextMoveX = 0; }; } else { if ((((_arg1.keyCode == 80)) || ((_arg1.keyCode == 32)))){ if (setPause == true){ setPause = false; } else { setPause = true; }; }; }; }; }; }; } private function getFoodLocation(){ var _local1:*; var _local2:*; _local1 = Object; _local1.fX = ((Math.floor(((Math.random() * (rightWall - leftWall)) / gridSize)) * gridSize) + startX); _local1.fY = ((Math.floor(((Math.random() * (bottomWall - topWall)) / gridSize)) * gridSize) + startY); _local2 = 0; while (_local2 < snakeParts.length) { if ((((_local1.fX == snakeParts[_local2].x)) && ((_local1.fY == snakeParts[_local2].y)))){ recurseCount++; if (recurseCount < 250){ _local1 = getFoodLocation(); }; break; }; _local2++; }; return (_local1); } private function clearBubble(_arg1:Event){ root["speechBubble"].visible = false; speechTimer.removeEventListener(TimerEvent.TIMER, clearBubble); } private function startGameEvent(_arg1:MouseEvent){ startGame(); } public function newSnakePart(_arg1:Number){ var _local2:Number; var _local3:SnakePart; _local2 = 0; while (_local2 < _arg1) { _local3 = new SnakePart(); _local3.x = -50; _local3.y = -50; gameSprite.addChild(_local3); snakeParts.push(_local3); _local2++; }; } private function startGame(){ var _local1:*; var _local2:*; var _local3:*; for (_local1 in vixenLevels) { root["Vixen"][vixenLevels[_local1]].alpha = 1; }; gameScore.text = "0"; newStart.removeEventListener(MouseEvent.CLICK, startGame); stage.removeEventListener(KeyboardEvent.KEY_DOWN, startKeyDownFunction); removeChild(newStart); _local2 = Math.floor((Math.random() * 4)); if (_local2 == 0){ nextMoveX = 0; nextMoveY = 1; } else { if (_local2 == 0){ nextMoveX = 0; nextMoveY = -1; } else { if (_local2 == 0){ nextMoveX = 1; nextMoveY = 0; } else { nextMoveX = -1; nextMoveY = 0; }; }; }; gameSprite = new Sprite(); addChild(gameSprite); root["gameBoard"].gotoAndStop(1); snakeParts = new Array(); _local3 = new SnakePart(); _local3.x = startPoint.x; _local3.y = startPoint.y; snakeParts.push(_local3); gameSprite.addChild(_local3); gameSprite.addChild(food); placeFood(); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction); gameTimer = new Timer(startSpeed); gameTimer.addEventListener(TimerEvent.TIMER, moveSnake); gameTimer.start(); } private function startKeyDownFunction(_arg1:KeyboardEvent){ if (_arg1.keyCode == 32){ startGame(); }; } private function resetGame(){ var _local1:*; for (_local1 in snakeParts) { gameSprite.removeChild(snakeParts[_local1]); }; playerScore = 0; nextLevel = 100; lastLevel = 0; levelNumber = 0; newStart = new StartButton(); newStart.x = 170; newStart.y = 170; addChild(newStart); root["gameBoard"].gotoAndStop(1); newStart.addEventListener(MouseEvent.CLICK, startGameEvent); stage.addEventListener(KeyboardEvent.KEY_DOWN, startKeyDownFunction); } public function gameOver(){ var _local1:String; stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction); _local1 = "Would you like to try again?"; if (levelNumber > 4){ _local1 = "Congrats! You won!"; }; root["speechBubble"].visible = true; root["speechBubble"].textBox.text = _local1; gameTimer.stop(); resetGame(); } public function moveSnake(_arg1:TimerEvent){ var _local2:Number; var _local3:Number; var _local4:*; var _local5:*; var _local6:*; if (!setPause){ snakeMoveX = nextMoveX; snakeMoveY = nextMoveY; _local2 = (snakeParts[0].x + (snakeMoveX * gridSize)); _local3 = (snakeParts[0].y + (snakeMoveY * gridSize)); if ((((((((_local2 > rightWall)) || ((_local2 < leftWall)))) || ((_local3 > bottomWall)))) || ((_local3 < topWall)))){ gameOver(); } else { if (hitTail()){ gameOver(); } else { if ((((_local2 == food.x)) && ((_local3 == food.y)))){ playerScore = (playerScore + (food.value * 10)); gameScore.text = playerScore.toString(); _local4 = new PointBurst(this, (food.value * 10), food.x, food.y); newSnakePart(food.value); pop3.play(); placeFood(); _local5 = (nextLevel - lastLevel); _local6 = (1 - ((playerScore - lastLevel) / _local5)); root["Vixen"][vixenLevels[levelNumber]].alpha = _local6; if ((((_local6 <= 0)) && ((levelNumber < (vixenLevels.length - 1))))){ levelNumber++; lastLevel = nextLevel; nextLevel = (nextLevel + levelUp[levelNumber]); root["gameBoard"].gotoAndStop((levelNumber + 1)); root["speechBubble"].visible = true; root["speechBubble"].textBox.text = speechText[levelNumber]; speechTimer = new Timer(3000); speechTimer.addEventListener(TimerEvent.TIMER, clearBubble); speechTimer.start(); }; gameTimer.delay = (gameTimer.delay - speedUpSnake); }; placeTail(); snakeParts[0].x = _local2; snakeParts[0].y = _local3; }; }; }; } public function placeTail(){ var _local1:int; _local1 = (snakeParts.length - 1); while (_local1 > 0) { snakeParts[_local1].x = snakeParts[(_local1 - 1)].x; snakeParts[_local1].y = snakeParts[(_local1 - 1)].y; _local1--; }; } } }//package
Section 10
//SnakePart (SnakePart) package { import flash.display.*; public dynamic class SnakePart extends MovieClip { } }//package
Section 11
//StartButton (StartButton) package { import flash.display.*; public dynamic class StartButton extends MovieClip { } }//package
Section 12
//Tourist_Trap (Tourist_Trap) package { import flash.text.*; public dynamic class Tourist_Trap extends Font { } }//package
Section 13
//vixSocks (vixSocks) package { import flash.display.*; public dynamic class vixSocks extends MovieClip { } }//package

Library Items

Symbol 1 Font {Tourist_Trap}Used by:18 19 20 34 103
Symbol 2 Sound {Pop3}
Symbol 3 Sound {Pop2}
Symbol 4 Sound {Pop1}
Symbol 5 ShapeTweeningUsed by:14
Symbol 6 ShapeTweeningUsed by:14
Symbol 7 GraphicUsed by:14
Symbol 8 ShapeTweeningUsed by:14
Symbol 9 ShapeTweeningUsed by:14
Symbol 10 GraphicUsed by:14
Symbol 11 ShapeTweeningUsed by:14
Symbol 12 ShapeTweeningUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClip {Food}Uses:5 6 7 8 9 10 11 12 13Used by:21
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip {SnakePart}Uses:15Used by:21
Symbol 17 GraphicUsed by:21
Symbol 18 EditableTextUses:1Used by:21
Symbol 19 EditableTextUses:1Used by:21
Symbol 20 EditableTextUses:1Used by:21
Symbol 21 MovieClip {StartButton}Uses:17 18 19 20 16 14
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClip {vixSocks}Uses:22Used by:101
Symbol 24 GraphicUsed by:33
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:33
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:33
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:33
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:33
Symbol 33 MovieClip {gBoard}Uses:24 26 28 30 32Used by:Timeline
Symbol 34 EditableTextUses:1Used by:Timeline
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:35Used by:101
Symbol 37 GraphicUsed by:101
Symbol 38 GraphicUsed by:101
Symbol 39 GraphicUsed by:101
Symbol 40 GraphicUsed by:101
Symbol 41 GraphicUsed by:101
Symbol 42 GraphicUsed by:101
Symbol 43 GraphicUsed by:101
Symbol 44 GraphicUsed by:101
Symbol 45 GraphicUsed by:101
Symbol 46 GraphicUsed by:101
Symbol 47 GraphicUsed by:101
Symbol 48 GraphicUsed by:101
Symbol 49 GraphicUsed by:101
Symbol 50 GraphicUsed by:101
Symbol 51 GraphicUsed by:101
Symbol 52 GraphicUsed by:101
Symbol 53 GraphicUsed by:101
Symbol 54 GraphicUsed by:101
Symbol 55 GraphicUsed by:101
Symbol 56 GraphicUsed by:101
Symbol 57 GraphicUsed by:101
Symbol 58 GraphicUsed by:101
Symbol 59 GraphicUsed by:101
Symbol 60 GraphicUsed by:101
Symbol 61 GraphicUsed by:101
Symbol 62 GraphicUsed by:101
Symbol 63 GraphicUsed by:101
Symbol 64 GraphicUsed by:101
Symbol 65 GraphicUsed by:71
Symbol 66 GraphicUsed by:71
Symbol 67 GraphicUsed by:71
Symbol 68 GraphicUsed by:71
Symbol 69 GraphicUsed by:71
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClipUses:65 66 67 68 69 70Used by:101
Symbol 72 GraphicUsed by:74
Symbol 73 GraphicUsed by:74
Symbol 74 MovieClipUses:72 73Used by:101
Symbol 75 GraphicUsed by:87
Symbol 76 GraphicUsed by:87
Symbol 77 GraphicUsed by:87
Symbol 78 GraphicUsed by:87
Symbol 79 GraphicUsed by:87
Symbol 80 GraphicUsed by:87
Symbol 81 GraphicUsed by:87
Symbol 82 GraphicUsed by:87
Symbol 83 GraphicUsed by:87
Symbol 84 GraphicUsed by:87
Symbol 85 GraphicUsed by:87
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:75 76 77 78 79 80 81 82 83 84 85 86Used by:101
Symbol 88 GraphicUsed by:99
Symbol 89 GraphicUsed by:99
Symbol 90 GraphicUsed by:99
Symbol 91 GraphicUsed by:99
Symbol 92 GraphicUsed by:99
Symbol 93 GraphicUsed by:99
Symbol 94 GraphicUsed by:99
Symbol 95 GraphicUsed by:99
Symbol 96 GraphicUsed by:99
Symbol 97 GraphicUsed by:99
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:88 89 90 91 92 93 94 95 96 97 98Used by:101
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClip {snake_fla.VixenMC_2}Uses:36 23 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 71 74 87 99 100Used by:Timeline
Symbol 102 GraphicUsed by:104
Symbol 103 EditableTextUses:1Used by:104
Symbol 104 MovieClip {snake_fla.speechBubble_9}Uses:102 103Used by:Timeline

Instance Names

"gameBoard"Frame 1Symbol 33 MovieClip {gBoard}
"gameScore"Frame 1Symbol 34 EditableText
"Vixen"Frame 1Symbol 101 MovieClip {snake_fla.VixenMC_2}
"speechBubble"Frame 1Symbol 104 MovieClip {snake_fla.speechBubble_9}
"Socks"Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1Symbol 23 MovieClip {vixSocks}
"Panties"Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1Symbol 71 MovieClip
"Bustier"Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1Symbol 74 MovieClip
"Skirt"Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1Symbol 87 MovieClip
"TankTop"Symbol 101 MovieClip {snake_fla.VixenMC_2} Frame 1Symbol 99 MovieClip
"textBox"Symbol 104 MovieClip {snake_fla.speechBubble_9} Frame 1Symbol 103 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"Level_1"Symbol 14 MovieClip {Food} Frame 1
"Level_2"Symbol 14 MovieClip {Food} Frame 11
"Level_3"Symbol 14 MovieClip {Food} Frame 21




http://swfchan.com/10/49395/info.shtml
Created: 11/8 -2019 07:49:27 Last modified: 11/8 -2019 07:49:27 Server time: 30/04 -2024 23:37:07