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

Old Flash Game.swf

This is the info page for
Flash #153800

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


Text
x:

y:

TRY AGAIN

ActionScript [AS1/AS2]

Frame 1
function moveHero(speed) { if (Key.isDown(38) and (_root.hero._y > 30)) { _root.hero._y = _root.hero._y - speed; } if (Key.isDown(37) and (_root.hero._x > 25)) { _root.hero._x = _root.hero._x - speed; } if (Key.isDown(40) and (_root.hero._y < 290)) { _root.hero._y = _root.hero._y + speed; } if (Key.isDown(39) and (_root.hero._x < 530)) { _root.hero._x = _root.hero._x + speed; } if (Key.isDown(32)) { if ((fire == false) and (fire_c < 4)) { _root.hero.gotoAndPlay("shoot"); } } } function fireBullets() { fire = true; fire_c++; i++; var _local4 = "bullet" + i; _root.attachMovie("bullet", _local4, i * 100); _root[_local4]._y = _root.hero._y + 2; _root[_local4]._x = _root.hero._x + 2; _root[_local4].onEnterFrame = function () { var _local4 = 8; this._x = this._x + _local4; if (this._x > 555) { this.removeMovieClip(); fire_c--; } var _local3 = 1; while (_local3 <= numEnemy) { if (this.hitTest(_root["enemy" + _local3])) { this.removeMovieClip(); _root["enemy" + _local3].gotoAndPlay("blow"); fire_c--; } _local3++; } }; } function Enemys() { j = 2; while (j <= numEnemy) { var _local2 = "enemy" + j; _root.enemy1.duplicateMovieClip(_local2, j); j++; } } function enemyBullets(enemy) { j++; var _local3 = "ebullet" + j; _root.attachMovie("ebullet", _local3, j * 400); _root[_local3]._y = enemy._y + 8.5; _root[_local3]._x = enemy._x; _root[_local3].onEnterFrame = function () { var _local3 = 6; this._x = this._x - _local3; if (this._x < 0) { this.removeMovieClip(); } if (this.hitTest(_root.hero)) { this.removeMovieClip(); _root.hero.gotoAndPlay("hit"); if (_root.life == 0) { _root.gotoAndStop(2); } } }; } stop(); var fire = false; var fire_c = 0; var life = 100; gameBGM = new Sound(); gameBGM.attachSound("area_1"); gameBGM.onSoundComplete = function () { gameBGM.start(5.04); }; gameBGM.start(); gameBGM.setVolume(50); _root.onEnterFrame = function () { _root.lifebar._xscale = life; moveHero(5); x_pos.text = _root.hero._x; y_pos.text = _root.hero._y; }; var i = 0; if (_root.hero.hitTest(_root.enemy)) { _root.hero.gotoAndPlay("hit"); } var numEnemy = 5; Enemys();
Instance of Symbol 36 MovieClip "enemy1" in Frame 1
onClipEvent (load) { function reset() { clearInterval(shoot); this._x = 550; this._y = Math.random() * 300; maxH = this._y + 100; minH = this._y - 100; enemySpeed = (Math.random() * 3) + 1; interval = (Math.random() * 2000) + 1000; shoot = setInterval(_root.enemyBullets, interval, this); } reset(); var upspeed = (-enemySpeed); } onClipEvent (enterFrame) { this._x = this._x - enemySpeed; this._y = this._y + upspeed; if ((this._y < minH) || (this._y < 0)) { upspeed = enemySpeed; } else if ((this._y > maxH) || (this._y > 290)) { upspeed = upspeed * -1; } if (this._x < -10) { reset(); } if (this.hitTest(_root.hero)) { _root.hero.gotoAndPlay("hit"); if (_root.life == 0) { _root.gotoAndStop(2); } } }
Frame 2
gameBGM.stop();
Symbol 14 MovieClip [ebullet] Frame 25
gotoAndPlay (1);
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 10
_root.fireBullets(); _root.fire = false;
Symbol 31 MovieClip Frame 16
gotoAndPlay (1);
Symbol 31 MovieClip Frame 25
gotoAndPlay (1); _root.life = _root.life - 10;
Symbol 36 MovieClip Frame 25
gotoAndPlay (1);
Symbol 36 MovieClip Frame 32
this.reset(); gotoAndPlay (1);
Symbol 50 Button
on (release) { gotoAndPlay (1); }

Library Items

Symbol 1 Sound [area_1]
Symbol 2 GraphicUsed by:6
Symbol 3 GraphicUsed by:6
Symbol 4 GraphicUsed by:6
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:2 3 4 5Used by:8
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClip [bullet]Uses:6 7
Symbol 9 GraphicUsed by:14
Symbol 10 ShapeTweeningUsed by:14
Symbol 11 ShapeTweeningUsed by:14
Symbol 12 ShapeTweeningUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClip [ebullet]Uses:9 10 11 12 13
Symbol 15 GraphicUsed by:17
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:15 16Used by:31
Symbol 18 GraphicUsed by:31
Symbol 19 GraphicUsed by:31
Symbol 20 ShapeTweeningUsed by:31
Symbol 21 ShapeTweeningUsed by:31
Symbol 22 GraphicUsed by:31
Symbol 23 GraphicUsed by:31
Symbol 24 ShapeTweeningUsed by:31
Symbol 25 GraphicUsed by:31
Symbol 26 GraphicUsed by:31
Symbol 27 GraphicUsed by:31
Symbol 28 GraphicUsed by:31
Symbol 29 GraphicUsed by:31
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:17 18 19 20 21 22 23 24 25 26 27 28 29 30Used by:Timeline
Symbol 32 GraphicUsed by:36
Symbol 33 ShapeTweeningUsed by:36
Symbol 34 ShapeTweeningUsed by:36
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:32 33 34 35Used by:Timeline
Symbol 37 GraphicUsed by:Timeline
Symbol 38 FontUsed by:39 40 41 42 43
Symbol 39 TextUses:38Used by:Timeline
Symbol 40 TextUses:38Used by:Timeline
Symbol 41 EditableTextUses:38Used by:Timeline
Symbol 42 EditableTextUses:38Used by:Timeline
Symbol 43 EditableTextUses:38Used by:Timeline
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:Timeline
Symbol 46 GraphicUsed by:Timeline
Symbol 47 GraphicUsed by:50
Symbol 48 FontUsed by:49
Symbol 49 TextUses:48Used by:50
Symbol 50 ButtonUses:47 49Used by:Timeline

Instance Names

"hero"Frame 1Symbol 31 MovieClip
"enemy1"Frame 1Symbol 36 MovieClip
"x_pos"Frame 1Symbol 41 EditableText
"y_pos"Frame 1Symbol 42 EditableText
"lifebar"Frame 1Symbol 45 MovieClip

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 1 as "area_1"
ExportAssets (56)Timeline Frame 1Symbol 8 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 14 as "ebullet"

Labels

"shoot"Symbol 31 MovieClip Frame 2
"hit"Symbol 31 MovieClip Frame 17
"blow"Symbol 36 MovieClip Frame 26

Dynamic Text Variables

fire_cSymbol 43 EditableText""




http://swfchan.com/31/153800/info.shtml
Created: 24/10 -2018 21:35:07 Last modified: 24/10 -2018 21:35:07 Server time: 22/12 -2024 22:52:58