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/81424500?noj=FRM81424500-30DC" width="1" height="1"></div>

metal-sonics-asteroid-blaster.swf

This is the info page for
Flash #115039

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


Text
Metal Sonics

Asteroid blaster

READY?

arrow keys: move
space bar: shoot

0000000000

GAME
OVER

REPLAY?

ActionScript [AS1/AS2]

Frame 51
numEnemy = 8; i = 2; while (i <= numEnemy) { enemy.duplicateMovieClip("enemy" + i, i + 100); i++; } score = 0;
Instance of Symbol 20 MovieClip "mainground" in Frame 51
onClipEvent (load) { ground.duplicateMovieClip("ground2", 100); ground2._x = ground._x + ground._width; groundStartx = this._x; groundSpeed = 10; } onClipEvent (enterFrame) { this._x = this._x - 10; if (this._x <= (groundStartx - 551.35)) { this._x = groundStartx - groundSpeed; } }
Instance of Symbol 23 MovieClip "spaceship" in Frame 51
onClipEvent (load) { moveSpeed = 10; _root.laser._visible = false; laserCounter = 1; maxLasers = 4; depthCounter = 1; } onClipEvent (enterFrame) { if (Key.isDown(32) and (laserCounter <= maxLasers)) { laserCounter++; _root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter); _root["laser" + depthCounter]._visible = true; depthCounter++; if (depthCounter > maxLasers) { depthCounter = 1; } } if (Key.isDown(39)) { this._x = this._x + moveSpeed; } else if (Key.isDown(37) and (this._x > 0)) { this._x = this._x - moveSpeed; } if (Key.isDown(40)) { this._y = this._y + moveSpeed; } else if (Key.isDown(38)) { this._y = this._y - moveSpeed; } }
Instance of Symbol 25 MovieClip "laser" in Frame 51
onClipEvent (load) { laserMoveSpeed = 20; this._y = _root.spaceship._y - 4; this._x = _root.spaceship._x + 8; } onClipEvent (enterFrame) { if (this._name != "laser") { this._x = this._x + laserMoveSpeed; if (this._x > 600) { _root.spaceship.laserCounter--; _root.spaceship.laserCounter--; this.removeMovieClip(); } } i = 1; while (i <= _root.numEnemy) { if (this.hitTest(_root["enemy" + i])) { _root.score = _root.score + 10; _root["enemy" + i].gotoAndPlay(2); } i++; } }
Instance of Symbol 30 MovieClip "enemy" in Frame 51
onClipEvent (load) { function reset() { this._x = 600; this._y = random(200) + 100; enemySpeed = random(15) + 1; this.gotoAndStop(1); } reset(); } onClipEvent (enterFrame) { if (this.hitTest(_root.spaceship)) { _root.gotoAndStop("gameOver"); } if (_root.spaceship.scrollStart) { this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed); } else { this._x = this._x - enemySpeed; } if (this._x < -10) { reset(); } }
Instance of Symbol 32 MovieClip in Frame 51
onClipEvent (enterFrame) { if (this.hitTest(_root.spaceship)) { tellTarget (_root.spaceship) { _x = (_x + 20); }; } }
Instance of Symbol 34 MovieClip in Frame 51
onClipEvent (enterFrame) { if (this.hitTest(_root.spaceship)) { tellTarget (_root.spaceship) { _y = (_y + 20); }; } }
Instance of Symbol 36 MovieClip in Frame 51
onClipEvent (enterFrame) { if (this.hitTest(_root.spaceship)) { tellTarget (_root.spaceship) { _x = (_x - 20); }; } }
Instance of Symbol 38 MovieClip in Frame 51
onClipEvent (enterFrame) { if (this.hitTest(_root.spaceship)) { tellTarget (_root.spaceship) { _y = (_y - 20); }; } }
Frame 52
stop();
Instance of Symbol 23 MovieClip "spaceship" in Frame 52
onClipEvent (load) { moveSpeed = 10; _root.laser._visible = false; laserCounter = 1; } onClipEvent (enterFrame) { if (Key.isDown(32)) { laserCounter++; _root.laser.duplicateMovieClip("laser" + laserCounter, laserCounter); _root["laser" + laserCounter]._visible = true; } if (Key.isDown(39)) { this._x = this._x + moveSpeed; } else if (Key.isDown(37)) { this._x = this._x - moveSpeed; } if (Key.isDown(40)) { this._y = this._y + moveSpeed; } else if (Key.isDown(38)) { this._y = this._y - moveSpeed; } }
Instance of Symbol 25 MovieClip "laser" in Frame 52
onClipEvent (load) { laserMoveSpeed = 20; this._y = _root.spaceship._y - 4; this._x = _root.spaceship._x + 8; } onClipEvent (enterFrame) { if (this._name != "laser") { this._x = this._x + laserMoveSpeed; if (this._x > 600) { _root.spaceship.laserCounter--; this.removeMovieClip(); } } i = 1; while (i <= _root.numEnemy) { if (this.hitTest(_root["enemy" + i])) { _root.score = _root.score + 10; _root["enemy" + i].gotoAndPlay(2); } i++; } }
Instance of Symbol 30 MovieClip "enemy" in Frame 52
onClipEvent (load) { function reset() { this._x = 600; this._y = random(200) + 100; enemySpeed = random(15) + 1; } reset(); } onClipEvent (enterFrame) { if (_root.spaceship.scrollStart) { this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed); } else { this._x = this._x - enemySpeed; } if (this._x < -10) { reset(); } }
Frame 53
stopAllSounds();
Symbol 11 Button
on (release) { _root.play(); }
Symbol 12 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { setProperty(bar, _xscale , PercentLoaded); } else { gotoAndStop ("loaded"); }
Symbol 12 MovieClip Frame 2
gotoAndPlay (1);
Symbol 30 MovieClip Frame 1
score = 0;
Symbol 30 MovieClip Frame 6
score = 0; stop();
Symbol 48 Button
on (release) { gotoAndPlay (51); }

Library Items

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

Instance Names

"mainground"Frame 51Symbol 20 MovieClip
"spaceship"Frame 51Symbol 23 MovieClip
"laser"Frame 51Symbol 25 MovieClip
"enemy"Frame 51Symbol 30 MovieClip
"spaceship"Frame 52Symbol 23 MovieClip
"laser"Frame 52Symbol 25 MovieClip
"enemy"Frame 52Symbol 30 MovieClip
"bar"Symbol 12 MovieClip Frame 1Symbol 5 MovieClip

Labels

"gameOver"Frame 53
"loaded"Symbol 12 MovieClip Frame 3

Dynamic Text Variables

scoreSymbol 39 EditableText"0000000000"
scoreSymbol 42 EditableText""




http://swfchan.com/24/115039/info.shtml
Created: 10/3 -2019 02:06:05 Last modified: 10/3 -2019 02:06:05 Server time: 30/04 -2024 10:12:20