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

ss.swf

This is the info page for
Flash #51568

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3 back1 { } movieClip 6 back2 { } movieClip 8 missle { } movieClip 11 shot { frame 1 { stop(); } } // unknown tag 88 length 148 // unknown tag 88 length 52 movieClip 22 ship { frame 3 { gotoAndPlay('start'); } frame 4 { _root.shooter = null; _root.shipmover = null; _root.ship._width = 200; start1_btn.onRelease = function () { _parent.gotoAndPlay('op'); }; stop(); } } movieClip 27 mlauncher { frame 1 { stop(); } frame 10 { this.removeMovieClip(); } } frame 1 { start_btn.onRelease = function () { gotoAndStop('start'); }; stop(); } // unknown tag 88 length 130 // unknown tag 88 length 52 // unknown tag 88 length 153 movieClip 44 { } movieClip 45 { frame 110 { stop(); } } frame 2 { function shipmover() { ship._x += xspeed; ship._y += yspeed; if (ship._x < 10) { ship._x = 10; } if (ship._x > 490) { ship._x = 490; } if (ship._y < 40) { ship._y = 40; } if (ship._y > 390) { ship._y = 390; } xspeed *= friction; yspeed *= friction; if (Key.isDown(38)) { --yspeed; } if (Key.isDown(40)) { ++yspeed; } if (Key.isDown(37)) { ++turntest; --xspeed; } if (Key.isDown(39)) { --turntest; ++xspeed; } if (turntest != 0) { ship._width = 20; } else { ship._width = 25; } turntest = 0; } function mover() { back1._y += motionspeed; back2._y += motionspeed; if (back1._y >= 400) { back1._y = -400; } if (back2._y >= 400) { back2._y = -400; } ++xmoved; } function shooter() { --shottime; if (shottime == 0) { if (shotcount == 7) { shotcount = 0; } shottime = 10; shot = shotmovie.attachMovie('shot', 'shot' + shotcount, shotmovie.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y - 14}); ++shotcount; shot.speed = 8; shot.onEnterFrame = function () { this._y -= this.speed; if (this._y < 0) { this.removeMovieClip(); } }; } } function renderer() { i = 0; while (i < 20) { if (xmoved == xdist[i]) { enemy = enemies.attachMovie('mlauncher', 'mlauncher' + mlcounter, enemies.getNextHighestDepth(), {'_x': xplace[i], '_y': 0}); enemy.health = 2; enemy.shottime = 2; enemy.onEnterFrame = function () { myRadians = Math.atan2(ship._y - this._y, ship._x - this._x); myDegrees = Math.round(myRadians * 180 / Math.PI); _root.yChange = Math.round(ship._y - this._y); _root.xChange = Math.round(ship._x - this._x); this._rotation = myDegrees + 90; --this.shottime; if (this.shottime == 0) { this.shottime = 25; missle = missles.attachMovie('missle', 'missle' + misslecount, missles.getNextHighestDepth(), {'_x': this._x, '_y': this._y}); ++misslecount; if (misslecount > 15) { misslecount = 0; } if (ship._x >= this._x) { missle.xspeed = 5 * (this._x - ship._x) * (this._x - ship._x) / ((this._x - ship._x) * (this._x - ship._x) + (this._y - ship._y) * (this._y - ship._y)); } else { missle.xspeed = -(5 * (this._x - ship._x) * (this._x - ship._x) / ((this._x - ship._x) * (this._x - ship._x) + (this._y - ship._y) * (this._y - ship._y))); } if (ship._y >= this._y) { missle.yspeed = 5 * (this._y - ship._y) * (this._y - ship._y) / ((this._x - ship._x) * (this._x - ship._x) + (this._y - ship._y) * (this._y - ship._y)); } else { missle.yspeed = -(5 * (this._y - ship._y) * (this._y - ship._y) / ((this._x - ship._x) * (this._x - ship._x) + (this._y - ship._y) * (this._y - ship._y))); } missle.onEnterFrame = function () { this._x += this.xspeed; this._y += this.yspeed; if (this.hitTest(ship)) { ship.gotoAndStop('over'); this.removeMovieClip(); } if (this._x < 0 or this._x > 500 or this._y < 0 or this._y > 400) { this.removeMovieClip(); } }; } this._y += motionspeed; if (this._y > 400) { this.removeMovieClip(); } }; ++mlcounter; } ++i; } if (mlcounter == 9) { mlcounter = 0; } } function hitenemy() { i = 0; while (i < 9) { j = 0; while (j < 7) { if (shotmovie['shot' + j].hitTest(enemies['mlauncher' + i])) { shotmovie['shot' + j].removeMovieClip(); --enemies['mlauncher' + i].health; if (enemies['mlauncher' + i].health > 0) { enemies['mlauncher' + i].gotoAndPlay(2); ++_root.score; } else { k = 0; while (k < Math.random() * 8) { star = bonusmovie.attachMovie('bonus', 'bonus' + bonusmovie.getNextHighestDepth(), bonusmovie.getNextHighestDepth(), {'_x': enemies['mlauncher' + i]._x + Math.random() * 20 - 10, '_y': enemies['mlauncher' + i]._y + Math.random() * 20 - 10}); star.xspeed = Math.random() - 0.5; star.yspeed = motionspeed; star.onEnterFrame = function () { this._x += this.xspeed; this._y += this.yspeed; if (this.hitTest(ship)) { this.removeMovieClip(); } }; ++k; } enemies['mlauncher' + i].removeMovieClip(); } } ++j; } ++i; } } stop(); score = 0; xspeed = 0; yspeed = 0; friction = 0.8; turntest = 0; shotcount = 0; shottime = 10; motionspeed = 2; xmoved = 0; mlcounter = 0; misslecount = 0; xdist = new Array(20, 250, 260, 550, 560, 570, 850, 860, 870, 880, 1250, 1260, 1270, 1280, 1290, 1550, 1560); xplace = new Array(100, 410, 110, 380, 220, 125, 260, 300, 110, 350, 155, 300, 205, 65, 370, 105, 210); _root.attachMovie('back1', 'back1', _root.getNextHighestDepth(), {'_x': 250, '_y': 0}); _root.attachMovie('back2', 'back2', _root.getNextHighestDepth(), {'_x': 250, '_y': -400}); _root.createEmptyMovieClip('shotmovie', _root.getNextHighestDepth()); _root.createEmptyMovieClip('enemies', _root.getNextHighestDepth()); _root.createEmptyMovieClip('bonusmovie', _root.getNextHighestDepth()); _root.createEmptyMovieClip('missles', _root.getNextHighestDepth()); _root.attachMovie('ship', 'ship', _root.getNextHighestDepth(), {'_x': 250, '_y': 400}); ship.onEnterFrame = function () { _root.shipmover(); if (xmoved > 1600) { xmoved = 0; } _root.shooter(); _root.mover(); _root.renderer(); _root.hitenemy(); }; }




http://swfchan.com/11/51568/info.shtml
Created: 24/4 -2019 20:45:44 Last modified: 24/4 -2019 20:45:44 Server time: 22/12 -2024 07:03:24