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

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

Asteroids Duel.swf

This is the info page for
Flash #22379

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


Text
Player

Color

Name:

Accuracy:

Powerups:

Wins

ok

wins!

Again

Stats

5

5

ActionScript [AS1/AS2]

Frame 1
stop(); numplayers = 2; trans1 = new Object(); trans2 = new Object(); temp = new Object(); player = 1;
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) { bx = _x; by = _y; if (duplicate != false) { i = 0; while (100 >= i) { n = 0; while (100 >= n) { _root.level++; duplicateMovieClip (this, "color" + _root.level, _root.level); mc = eval ("_root.color" + _root.level); mc._x = ((i / 5) + bx) + 20; mc._y = ((n / 5) + by) + 20; mc.r = i; mc.g = n; mc.b = 0; mc.duplicate = false; n = n + 10; } i = i + 10; } i = 100; while (i >= 0) { n = 100; while (n >= 0) { _root.level++; duplicateMovieClip (this, "color" + _root.level, _root.level); mc = eval ("_root.color" + _root.level); mc._x = (20 - (n / 5)) + bx; mc._y = ((i / 5) + by) + 20; mc.r = 0; mc.g = i; mc.b = n; mc.duplicate = false; n = n - 10; } i = i - 10; } i = 100; while (i >= 0) { n = 100; while (n >= 0) { _root.level++; duplicateMovieClip (this, "color" + _root.level, _root.level); mc = eval ("_root.color" + _root.level); mc._x = (20 - (i / 5)) + bx; mc._y = (20 - (n / 5)) + by; mc.r = n; mc.g = 0; mc.b = i; mc.duplicate = false; n = n - 10; } i = i - 10; } } else { c = new Color(this); trans = new Object(); trans.ra = r; trans.ga = g; trans.ba = b; c.setTransform(trans); } }
Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (load) { c = new Color(this); } onClipEvent (enterFrame) { c.setTransform(_root.temp); }
Instance of Symbol 28 MovieClip "stats" in Frame 1
onClipEvent (load) { _visible = false; this.swapDepths(100000010); } onClipEvent (enterFrame) { if (_visible) { accry1 = Math.round((_root.ship1.hits / _root.ship1.shots) * 100, 1); accry2 = Math.round((_root.ship2.hits / _root.ship2.shots) * 100, 1); } }
Frame 2
stop();
Instance of Symbol 30 MovieClip "shot" in Frame 2
onClipEvent (load) { xd = Math.sin(radangle) * 16; yd = (-Math.cos(radangle)) * 16; c = new Color(this); mytrans = eval ("_root.trans" + pn); c.setTransform(mytrans); if (pn == 1) { t = 2; } else { t = 1; } target = eval ("_root.ship" + t); creator = eval ("_root.ship" + pn); } onClipEvent (enterFrame) { if (fired) { _x = (_x + xd); _y = (_y + yd); if ((((_x < -2) || (502 < _x)) || (_y < -2)) || (502 < _y)) { removeMovieClip(this); } if (target.hitTest(_x, _y)) { target.shield--; creator.hits++; removeMovieClip(this); } } }
Instance of Symbol 32 MovieClip "ship2" in Frame 2
onClipEvent (load) { this.swapDepths(100000000 + pn); shield = 5; pn = 2; c = new Color(this); if (pn == 1) { c.setTransform(_root.trans1); } else { c.setTransform(_root.trans2); } maxspeed = 12; maxtime = 10; rspeed = 5; vel = 0; accel = 1; wins = 0; shots = 0; hits = 0; pup = 0; } onClipEvent (enterFrame) { if (mode == "stop") { } if (mode == "dead") { _x = (_x + xd); _y = (_y + yd); _alpha = (_alpha - 10); _xscale = (_xscale - 10); if (0 >= _alpha) { removeMovieClip(this); } } else if (mode == "die") { _alpha = (_alpha - 2); if (0 >= _alpha) { _x = 5000000; mode = "stop"; _visible = false; _root.win._visible = true; if ((pn == 1) && (done == false)) { _root.win.winner = 2; _root.ship2.wins++; done = true; } else if (done == false) { _root.win.winner = 1; _root.ship1.wins++; done = true; } } i = 0; while (i < 3) { _root.level++; duplicateMovieClip (this, "dead" + _root.level, _root.level); mc = eval ("_root.dead" + _root.level); mc.xd = (Math.random() * (100 - _alpha)) / 10; mc.yd = (Math.random() * (100 - _alpha)) / 10; if (Math.random() < 0.5) { mc.xd = mc.xd * -1; } if (Math.random() < 0.5) { mc.yd = mc.yd * -1; } mc.pn = pn; mc.mode = "dead"; i++; } } else if (fade) { _alpha = (_alpha - 10); _xscale = (_xscale - 5); if (0 >= _alpha) { removeMovieClip(this); } } else { if (Key.isDown(65)) { _rotation = (_rotation - rspeed); } if (Key.isDown(68)) { _rotation = (_rotation + rspeed); } radangle = (_rotation / 180) * Math.PI; if (Key.isDown(87)) { vel = vel + (0.5 * accel); } else if (Key.isDown(83)) { vel = vel - (0.5 * accel); } else if (0 < vel) { vel = vel - (0.25 * accel); } else if (vel < 0) { vel = vel + (0.25 * accel); } timer--; if (Key.isDown(Key.SPACE) && (timer < 1)) { shots++; _root.level++; duplicateMovieClip (_root.shot, "shot" + _root.level, _root.level); mc = eval ("_root.shot" + _root.level); mc.fired = true; mc.radangle = radangle; mc._x = _x + ((Math.sin(radangle) * _width) / 2); mc._y = _y - ((Math.cos(radangle) * _height) / 2); mc.pn = pn; timer = maxtime; } if (maxspeed < vel) { vel = maxspeed; } else if (vel < (-maxspeed)) { vel = -maxspeed; } _x = (_x + (Math.sin(radangle) * vel)); _y = (_y - (Math.cos(radangle) * vel)); if (540 < _x) { _x = -40; } else if (_x < -40) { _x = 540; } if (540 < _y) { _y = -40; } else if (_y < -40) { _y = 540; } _root.level++; duplicateMovieClip (this, "fader" + _root.level, _root.level); mc = eval ("_root.fader" + _root.level); mc.fade = true; mc._alpha = Math.abs(vel * 6); if (0 >= shield) { mode = "die"; } } }
Instance of Symbol 40 MovieClip "win" in Frame 2
onClipEvent (load) { _visible = false; this.swapDepths(100000003); } onClipEvent (enterFrame) { myname = eval ("_root.name" + winner); }
Instance of Symbol 42 MovieClip in Frame 2
onClipEvent (load) { timer = 500; } onClipEvent (enterFrame) { if (active) { if (this.hitTest(_root.ship1)) { _root.ship1.shield++; _root.ship1.pup++; removeMovieClip(this); } else if (this.hitTest(_root.ship2)) { _root.ship2.shield++; _root.ship2.pup++; removeMovieClip(this); } } else { timer--; if (0 >= timer) { _root.level++; duplicateMovieClip (this, "powerup" + _root.level, _root.level); mc = eval ("_root.powerup" + _root.level); mc._x = 10 + (Math.random() * 480); mc._y = 10 + (Math.random() * 480); mc.active = true; timer = 400; } } }
Instance of Symbol 44 MovieClip in Frame 2
onClipEvent (load) { timer = 400; } onClipEvent (enterFrame) { if (active) { if (this.hitTest(_root.ship1)) { _root.ship1.maxspeed = _root.ship1.maxspeed + 2; _root.ship1.pup++; removeMovieClip(this); } else if (this.hitTest(_root.ship2)) { _root.ship2.maxspeed = _root.ship2.maxspeed + 2; _root.ship2.pup++; removeMovieClip(this); } } else { timer--; if (0 >= timer) { _root.level++; duplicateMovieClip (this, "powerup" + _root.level, _root.level); mc = eval ("_root.powerup" + _root.level); mc._x = 10 + (Math.random() * 480); mc._y = 10 + (Math.random() * 480); mc.active = true; timer = 400; } } }
Instance of Symbol 46 MovieClip in Frame 2
onClipEvent (load) { timer = 300; } onClipEvent (enterFrame) { if (active) { if (this.hitTest(_root.ship1)) { _root.ship1.maxtime--; _root.ship1.pup++; removeMovieClip(this); } else if (this.hitTest(_root.ship2)) { _root.ship2.maxtime--; _root.ship2.pup++; removeMovieClip(this); } } else { timer--; if (0 >= timer) { _root.level++; duplicateMovieClip (this, "powerup" + _root.level, _root.level); mc = eval ("_root.powerup" + _root.level); mc._x = 10 + (Math.random() * 480); mc._y = 10 + (Math.random() * 480); mc.active = true; timer = 400; } } }
Instance of Symbol 51 MovieClip in Frame 2
onClipEvent (load) { this.swapDepths(100000004); }
Instance of Symbol 52 MovieClip in Frame 2
onClipEvent (load) { if (duplicate != false) { i = 0; while (50 >= i) { _root.level++; duplicateMovieClip (this, "star" + _root.level, _root.level); mc = eval ("_root.star" + _root.level); mc._x = Math.random() * 500; mc._y = Math.random() * 500; mc._alpha = (mc._xscale = (mc._yscale = Math.random() * 100)); mc.duplicate = false; i++; } } }
Instance of Symbol 54 MovieClip in Frame 2
onClipEvent (load) { timer = 200; } onClipEvent (enterFrame) { if (active) { if (this.hitTest(_root.ship1)) { _root.ship1.accel = _root.ship1.accel + 0.5; _root.ship1.rspeed++; _root.ship1.pup++; removeMovieClip(this); } else if (this.hitTest(_root.ship2)) { _root.ship2.accel = _root.ship2.accel + 0.5; _root.ship2.rspeed++; _root.ship2.pup++; removeMovieClip(this); } } else { timer--; if (0 >= timer) { _root.level++; duplicateMovieClip (this, "powerup" + _root.level, _root.level); mc = eval ("_root.powerup" + _root.level); mc._x = 10 + (Math.random() * 480); mc._y = 10 + (Math.random() * 480); mc.active = true; timer = 400; } } }
Instance of Symbol 55 MovieClip "ship1" in Frame 2
onClipEvent (load) { this.swapDepths(100000000 + pn); shield = 5; pn = 1; c = new Color(this); if (pn == 1) { c.setTransform(_root.trans1); } else { c.setTransform(_root.trans2); } maxspeed = 12; maxtime = 10; rspeed = 5; vel = 0; accel = 1; wins = 0; shots = 0; hits = 0; pup = 0; done = false; } onClipEvent (enterFrame) { if (mode == "stop") { } if (mode == "dead") { _x = (_x + xd); _y = (_y + yd); _alpha = (_alpha - 10); _xscale = (_xscale - 5); _yscale = (_yscale - 5); if (0 >= _alpha) { removeMovieClip(this); } } else if (mode == "die") { _alpha = (_alpha - 2); if (0 >= _alpha) { _x = 5000000; mode = "stop"; _visible = false; _root.win._visible = true; if ((pn == 1) && (done == false)) { _root.win.winner = 2; _root.ship2.wins++; done = true; } else if (done == false) { _root.win.winner = 1; _root.ship1.wins++; done = true; } } i = 0; while (i < 3) { _root.level++; duplicateMovieClip (this, "dead" + _root.level, _root.level); mc = eval ("_root.dead" + _root.level); mc.xd = (Math.random() * (100 - _alpha)) / 10; mc.yd = (Math.random() * (100 - _alpha)) / 10; if (Math.random() < 0.5) { mc.xd = mc.xd * -1; } if (Math.random() < 0.5) { mc.yd = mc.yd * -1; } mc.pn = pn; mc.mode = "dead"; i++; } } else if (fade) { _alpha = (_alpha - 10); _yscale = (_yscale - 5); _xscale = (_xscale - 5); if (0 >= _alpha) { removeMovieClip(this); } } else { if (Key.isDown(Key.LEFT)) { _rotation = (_rotation - rspeed); } if (Key.isDown(Key.RIGHT)) { _rotation = (_rotation + rspeed); } radangle = (_rotation / 180) * Math.PI; if (Key.isDown(Key.UP)) { vel = vel + (0.5 * accel); } else if (Key.isDown(Key.DOWN)) { vel = vel - (0.5 * accel); } else if (0 < vel) { vel = vel - (0.25 * accel); } else if (vel < 0) { vel = vel + (0.25 * accel); } timer--; if (Key.isDown(Key.SHIFT) && (timer < 1)) { shots++; _root.level++; duplicateMovieClip (_root.shot, "shot" + _root.level, _root.level); mc = eval ("_root.shot" + _root.level); mc.fired = true; mc.radangle = radangle; mc._x = _x + ((Math.sin(radangle) * _width) / 2); mc._y = _y - ((Math.cos(radangle) * _height) / 2); mc.pn = pn; timer = maxtime; } if (maxspeed < vel) { vel = maxspeed; } else if (vel < (-maxspeed)) { vel = -maxspeed; } _x = (_x + (Math.sin(radangle) * vel)); _y = (_y - (Math.cos(radangle) * vel)); if (540 < _x) { _x = -40; } else if (_x < -40) { _x = 540; } if (540 < _y) { _y = -40; } else if (_y < -40) { _y = 540; } _root.level++; duplicateMovieClip (this, "fader" + _root.level, _root.level); mc = eval ("_root.fader" + _root.level); mc.fade = true; mc._alpha = Math.abs(vel * 6); if (0 >= shield) { mode = "die"; } } }
Symbol 3 Button
on (rollOver) { _root.temp.ra = r; _root.temp.ga = g; _root.temp.ba = b; } on (release) { if (_root.player == 1) { _root.trans1.ra = r; _root.trans1.ga = g; _root.trans1.ba = b; _root.name1 = _root.name; _root.name1x = _root.name + ":"; _root.name = ""; _root.player++; } else { _root.trans2.ra = r; _root.trans2.ga = g; _root.trans2.ba = b; _root.name2 = _root.name; _root.name2x = _root.name + ":"; _root.player++; i = 0; while (i < 400) { mc = eval ("_root.color" + i); if (mc._name != _name) { removeMovieClip(mc); } i++; } _root.play(); removeMovieClip(this); } }
Symbol 27 Button
on (release) { _visible = false; }
Symbol 37 Button
on (release) { _root.ship1.mode = ""; _root.ship2.mode = ""; _root.ship1.shield = 5; _root.ship2.shield = 5; _root.ship1._y = (_root.ship2._y = 250); _root.ship1._x = 31; _root.ship1._rotation = 90; _root.ship2._x = 469; _root.ship2._rotation = -90; _root.ship1._visible = (_root.ship2._visible = true); _root.ship1._alpha = (_root.ship2._alpha = 100); _root.ship1.maxspeed = 12; _root.ship1.maxtime = 10; _root.ship1.rspeed = 5; _root.ship1.vel = 0; _root.ship1.accel = 1; _root.ship2.maxspeed = 12; _root.ship2.maxtime = 10; _root.ship2.rspeed = 5; _root.ship2.vel = 0; _root.ship2.accel = 1; _root.ship1.done = false; _root.ship2.done = false; _visible = false; }
Symbol 39 Button
on (release) { _root.stats._visible = true; }

Library Items

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

Instance Names

"stats"Frame 1Symbol 28 MovieClip
"shot"Frame 2Symbol 30 MovieClip
"ship2"Frame 2Symbol 32 MovieClip
"win"Frame 2Symbol 40 MovieClip
"ship1"Frame 2Symbol 55 MovieClip

Dynamic Text Variables

playerSymbol 9 EditableText""
nameSymbol 12 EditableText""
_root.name1Symbol 18 EditableText""
_root.name2Symbol 19 EditableText""
accry1Symbol 20 EditableText""
accry2Symbol 21 EditableText""
_root.ship1.pupSymbol 22 EditableText""
_root.ship2.pupSymbol 23 EditableText""
_root.ship1.winsSymbol 24 EditableText""
_root.ship2.winsSymbol 25 EditableText""
TextField19Symbol 26 EditableText"ok"
mynameSymbol 34 EditableText""
_root.ship2.shieldSymbol 47 EditableText"5"
_root.name2xSymbol 48 EditableText""
_root.ship1.shieldSymbol 49 EditableText"5"
_root.name1xSymbol 50 EditableText""




http://swfchan.com/5/22379/info.shtml
Created: 26/5 -2019 22:57:15 Last modified: 26/5 -2019 22:57:15 Server time: 21/12 -2024 14:58:35