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

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

gpvg.swf

This is the info page for
Flash #43450

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


Text
Continue

Submit Highscore

ActionScript [AS1/AS2]

Frame 1
stop(); onEnterFrame = function () { if (_root.getBytesLoaded() == _root.getBytesTotal()) { delete onEnterFrame; play(); } };
Frame 6
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("37f6dbc2", this, 10301, true); trace("first frame");
Frame 7
Frame 9
function reset() { trace("reset?"); enemySpeed = 5; var _local2 = 0; while (_local2 < enemies.length) { enemies[_local2].removeMovieClip(); _local2++; } enemies = new Array(); _local2 = 0; while (_local2 < bullets.length) { bullets[_local2].removeMovieClip(); _local2++; } bullets = new Array(); player.removeMovieClip(); waveBetween = 100; waveCount = 0; count = 0; waveNumber = 5; player = _root.attachMovie("Player", "player" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:50, _y:50}); waveNumberCount = 0; waveSpread = 15; theFirst = true; playerDying = false; firingMax = 20; waveSize = 50; waveLength = 2; } function vectorModify(xVal, yVal, newMag) { if ((xVal == 0) && (yVal == 0)) { return(new flash.geom.Point(0, 0)); } return(new flash.geom.Point((xVal / Math.abs(xVal)) * Math.sqrt((newMag * newMag) / (1 + ((yVal / xVal) * (yVal / xVal)))), (yVal / Math.abs(yVal)) * Math.sqrt((newMag * newMag) / (1 + ((xVal / yVal) * (xVal / yVal)))))); } function distanceFormula(xOne, yOne, xTwo, yTwo) { return(Math.sqrt(((xOne - xTwo) * (xOne - xTwo)) + ((yOne - yTwo) * (yOne - yTwo)))); } function init() { formatTemp = new TextFormat(); formatTemp.size = 15; formatTemp.bold = true; formatTemp.color = 16777215 /* 0xFFFFFF */; formatTemp.font = "Arial"; trace("ok what" + formatTemp); var _local3; _local3 = this.createTextField("score", _root.getNextHighestDepth(), 10, 10, 300, 100); _local3.setTextFormat(formatTemp); _local3.text = "score: " + waveCount; _local3._y = _local3._y - 7; return(_local3); } function initHigh() { formatTemp = new TextFormat(); formatTemp.size = 15; formatTemp.bold = true; formatTemp.color = 16777215 /* 0xFFFFFF */; formatTemp.font = "Arial"; trace("ok what"); var _local3; _local3 = this.createTextField("Highscore", _root.getNextHighestDepth(), 10, 10, 300, 150); _local3.setTextFormat(formatTemp); _local3.text = "high score: " + waveCount; _local3._y = _local3._y + 15; return(_local3); } function storeState() { varStorage.speedChange = speedChange; varStorage.waveChange = waveChange; varStorage.spreadChange = spreadChange; varStorage.playerSize = playerSize; varStorage.enemySize = enemySize; varStorage.enemySpeed = enemySpeed; varStorage.playerSpeed = playerSpeed; varStorage.bullets = bullets; varStorage.enemies = enemies; var _local21; var _local8 = 100; var _local24 = 0; var _local11 = 0; var _local14 = 5; _local21 = _root.attachMovie("Player", "player" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:50, _y:50}); var _local17 = 0; var _local2 = 15; var _local13 = 1; var _local25 = true; var _local22 = false; var _local4 = 15; var _local7 = 100; var _local5 = _root.attachMovie("explosionNoise", "explosionNoise" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:700, _y:random(400)}); var _local6 = 0; var _local28; var _local18 = 0; var _local23 = init(); var _local27 = initHigh(); var _local10 = 20; var _local3 = 20; var _local16 = 0.2; var _local19 = 50; var _local20 = 2; var _local9 = 0.04; var _local26 = 2; } function restoreState() { } var speedChange; var waveChange; var spreadChange; var playerSize; var enemySize; var enemySpeed; var playerSpeed; var bullets; var enemies; var waveBetween; var waveCount; var count; var waveNumber; var player; var waveNumberCount; var waveSpread; var waveBehavior; var theFirst; var playerDying; var bulletSpeed; var enemyCount; var explosionNoise; var enemiesDead; var formatTemp; var highScoreVal; var score; var highScore; var firingCount; var firingMax; var firingChange; var waveSize; var waveLength; var waveLengthChange; var waveSizeChange; var currentWaveMod; var _mochiads_game_id = "2d9bf8b91c715a50"; _root.onMouseDown = function () { }; this.onEnterFrame = function () { varStorage.play(); if (!player.dead) { firingCount++; if (Key.isDown(32)) { if (firingCount > firingMax) { firingCount = 0; bullets[bullets.length] = _root.attachMovie("bullet", "bullet" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:player._x + 60, _y:player._y + 10}); bullets[bullets.length - 1].theIndex = bullets.length - 1; bullets[bullets.length - 1].timer = 50; bullets[bullets.length - 1].play(); } } if (Key.isDown(37)) { player.xModify = -1 * _root.playerSpeed; } if (Key.isDown(39)) { player.xModify = _root.playerSpeed; } if (Key.isDown(38)) { if (Key.isDown(37)) { player.xModify = -1 * Math.sqrt((playerSpeed * playerSpeed) / 2); player.yModify = -1 * Math.sqrt((playerSpeed * playerSpeed) / 2); } else if (KEY.isDown(39)) { player.xModify = Math.sqrt((playerSpeed * playerSpeed) / 2); player.yModify = -1 * Math.sqrt((playerSpeed * playerSpeed) / 2); } else { player.yModify = -1 * _root.playerSpeed; } } if (Key.isDown(40)) { if (Key.isDown(37)) { player.xModify = -1 * Math.sqrt((playerSpeed * playerSpeed) / 2); player.yModify = Math.sqrt((playerSpeed * playerSpeed) / 2); } else if (KEY.isDown(39)) { player.xModify = Math.sqrt((playerSpeed * playerSpeed) / 2); player.yModify = Math.sqrt((playerSpeed * playerSpeed) / 2); } else { player.yModify = _root.playerSpeed; } } score.text = "score: " + enemiesDead; score.setTextFormat(formatTemp); if (highScoreVal < enemiesDead) { highScoreVal = enemiesDead; highScore.text = "high score: " + highScoreVal; } highScore.setTextFormat(formatTemp); if (theFirst) { trace("score._name" + score._name); if (score == null) { trace("doing the thing"); _root.score = _root.init(); _root.highScore = _root.initHigh(); } player.play(); theFirst = false; } if ((player.goingDown == true) && (!playerDying)) { playerDying = true; player.gotoAndPlay(5); } else if (!playerDying) { player.gotoAndPlay(1); } if (player.dead) { gotoAndStop ("Scene3"); reset(); } waveCount++; if (waveCount > waveBetween) { count++; if (count > waveSpread) { count = 0; enemies[enemies.length] = _root.attachMovie("enemy", (enemyCount + "enemy") + _root.getNextHighestDepth(), _root.getNextHighestDepth() + enemyCount, {_x:550, _y:random(400)}); enemies[enemies.length - 1].theIndex = enemies.length - 1; enemies[enemies.length - 1].behavior = waveBehavior; enemies[enemies.length - 1].dest = new flash.geom.Point(-30, random(400)); enemies[enemies.length - 1].startLoc = new flash.geom.Point(enemies[enemies.length - 1]._x, enemies[enemies.length - 1]._y); enemies[enemies.length - 1].waveMod = currentWaveMod; enemyCount++; waveNumberCount++; if (waveNumberCount > waveNumber) { currentWaveMod = (Math.PI*2) / (random(9) + 1); waveBehavior = random(3) + 1; trace("wave behavior: " + waveBehavior); waveNumberCount = 0; waveCount = 0; if (waveSize < 150) { waveSize = waveSize + waveSizeChange; } if (waveLength < 6) { waveLength = waveLength + waveLengthChange; } enemySpeed = enemySpeed + speedChange; waveNumber = waveNumber + waveChange; if (waveSpread > 5) { waveSpread = waveSpread - spreadChange; } } } } var _local2 = 0; while (_local2 < enemies.length) { if (enemies[_local2].dead) { trace("enemy killed"); enemies[_local2].removeMovieClip(); enemies.splice(_local2, 1); _local2--; } _local2++; } } };
Frame 10
if (_root.player.dead) { gotoAndPlay (11); } else { gotoAndPlay (9); }
Frame 11
trace("does it even touch this frame"); stop(); aContinue.onPress = function () { reset(); gotoAndPlay (9); }; asubmithighscore.onPress = function () { };
Frame 13
trace("going to the place to stop"); gotoAndStop (11);
Frame 32
stop();
Symbol 10 MovieClip [enemy] Frame 1
var theIndex; var dead = false; var hit = false; var destinationX; var destinationY; var hitPoints = 1; var explosion; var behavior; var dest; var startLoc; var nextMove; var waveMod; this.onEnterFrame = function () { if (behavior == 1) { this._x = this._x - _root.enemySpeed; } if (behavior == 2) { nextMove = _root.vectorModify(dest.x - this._x, dest.y - this._y, _root.enemySpeed); this._x = this._x + nextMove.x; this._y = this._y + nextMove.y; } if (behavior == 3) { this._x = this._x - _root.enemySpeed; this._y = (Math.sin(((this._x / 400) * _root.waveLength) + waveMod) * _root.waveSize) + startLoc.y; } if (this._x < -20) { dead = true; } if (hit) { hit = false; hitPoints--; if (hitPoints < 1) { explosion = _root.attachMovie("explosion", "yeah" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y}); trace("the index: " + theIndex); dead = true; _root.enemiesDead++; if (_root.firingMax > 5) { _root.firingMax = _root.firingMax - _root.firingChange; } } } };
Symbol 15 MovieClip [Player] Frame 1
var dead = false; var goingDown = false; var xModify; var yModify; var aSound; this.onEnterFrame = function () { if (this._x > 550) { this._x = this._x - (2 * _root.playerSpeed); } if (this._x < 5) { this._x = this._x + (2 * _root.playerSpeed); } if (this._y > 380) { this._y = this._y - (2 * _root.playerSpeed); } if (this._y < 5) { this._y = this._y + (2 * _root.playerSpeed); } this._x = this._x + xModify; this._y = this._y + yModify; xModify = 0; yModify = 0; var _local3 = 0; while (_local3 < _root.enemies.length) { if (hitTest(_root.enemies[_local3])) { if (!goingDown) { trace("blowd up"); aSound = new Sound(_root); aSound.attachSound("slurp"); aSound.start(0, 1); goingDown = true; gotoAndPlay (5); } } _local3++; } };
Symbol 15 MovieClip [Player] Frame 67
stop(); dead = true; trace("should be removing enemy killed count"); stop(); _root.enemiesDead = 0;
Symbol 18 MovieClip [bullet] Frame 1
var timer; var theIndex; this.onEnterFrame = function () { timer--; if (timer < 0) { _root.bullets.splice(theIndex, 1); this.removeMovieClip(); } var _local3 = 0; while (_local3 < _root.enemies.length) { if (this.getDepth() == _root.enemies[_local3].getDepth()) { trace((("depth of " + theIndex) + " bullet is the same as enemy ") + _local3); } if (hitTest(_root.enemies[_local3])) { _root.enemies[_local3].hit = true; _root.bullets.splice(theIndex, 1); this.removeMovieClip(); } _local3++; } this._x = this._x + _root.bulletSpeed; };
Symbol 19 MovieClip [explosion] Frame 1
trace("explosionn"); trace("blowd up"); aSound = new Sound(_root); aSound.attachSound("anExplosion"); aSound.start(0, 1);
Symbol 19 MovieClip [explosion] Frame 14
trace("got real far yeah");
Symbol 19 MovieClip [explosion] Frame 22
this.removeMovieClip();
Symbol 20 MovieClip [explosionNoise] Frame 1
stop();
Symbol 34 MovieClip [varStorage] Frame 1
var notFirst; this.onEnterFrame = function () { if (notFirst) { } else { notFirst = true; trace("ok its on the first frame ok"); _root.speedChange = 0.3; _root.waveChange = 1; _root.spreadChange = 0.6; _root.playerSize = 20; _root.enemySize = 30; _root.enemySpeed = 5; _root.playerSpeed = 7; _root.bullets = new Array(); _root.enemies = new Array(); _root.waveBetween = 100; _root.waveCount = 0; _root.count = 0; _root.waveNumber = 5; _root.player = _root.attachMovie("Player", "player" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:50, _y:50}); _root.waveNumberCount = 0; _root.waveSpread = 15; _root.waveBehavior = 1; _root.theFirst = true; _root.playerDying = false; _root.bulletSpeed = 15; _root.enemyCount = 100; _root.explosionNoise = _root.attachMovie("explosionNoise", "explosionNoise" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:700, _y:random(400)}); _root.enemiesDead = 0; _root.highScoreVal = 0; _root.score = _root.init(); _root.highScore = _root.initHigh(); _root.firingCount = 20; _root.firingMax = 20; _root.firingChange = 0.2; _root.waveSize = 50; _root.waveLength = 2; _root.waveLengthChange = 0.04; _root.waveSizeChange = 2; } };

Library Items

Symbol 1 Sound [slurp]
Symbol 2 Sound [crunch]
Symbol 3 Sound [anExplosion]Used by:20
Symbol 4 GraphicUsed by:9
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:9
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:9
Symbol 9 MovieClipUses:4 6 8Used by:10
Symbol 10 MovieClip [enemy]Uses:9
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:15
Symbol 13 GraphicUsed by:15
Symbol 14 GraphicUsed by:15 19
Symbol 15 MovieClip [Player]Uses:12 13 14
Symbol 16 BitmapUsed by:17
Symbol 17 GraphicUses:16Used by:18
Symbol 18 MovieClip [bullet]Uses:17
Symbol 19 MovieClip [explosion]Uses:14
Symbol 20 MovieClip [explosionNoise]Uses:3
Symbol 21 GraphicUsed by:26
Symbol 22 GraphicUsed by:26
Symbol 23 GraphicUsed by:26
Symbol 24 GraphicUsed by:26
Symbol 25 GraphicUsed by:26
Symbol 26 MovieClip [bulletVisibility]Uses:21 22 23 24 25
Symbol 27 GraphicUsed by:30 32
Symbol 28 FontUsed by:29 31
Symbol 29 TextUses:28Used by:30
Symbol 30 Button [Continue]Uses:27 29Used by:Timeline
Symbol 31 TextUses:28Used by:32
Symbol 32 Button [Submit Highscore]Uses:27 31
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClip [varStorage]Uses:33Used by:Timeline
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:Timeline

Instance Names

"varStorage"Frame 6Symbol 34 MovieClip [varStorage]
"aContinue"Frame 11Symbol 30 Button [Continue]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "slurp"
ExportAssets (56)Timeline Frame 1Symbol 2 as "crunch"
ExportAssets (56)Timeline Frame 1Symbol 3 as "anExplosion"
ExportAssets (56)Timeline Frame 1Symbol 10 as "enemy"
ExportAssets (56)Timeline Frame 1Symbol 15 as "Player"
ExportAssets (56)Timeline Frame 1Symbol 18 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 19 as "explosion"
ExportAssets (56)Timeline Frame 1Symbol 20 as "explosionNoise"
ExportAssets (56)Timeline Frame 1Symbol 26 as "bulletVisibility"
ExportAssets (56)Timeline Frame 1Symbol 30 as "Continue"
ExportAssets (56)Timeline Frame 1Symbol 32 as "Submit Highscore"
ExportAssets (56)Timeline Frame 1Symbol 34 as "varStorage"




http://swfchan.com/9/43450/info.shtml
Created: 9/5 -2019 12:44:59 Last modified: 9/5 -2019 12:44:59 Server time: 03/05 -2024 11:29:05