[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (8 B)
stop();
Instance of Symbol 4 MovieClip "size" in Frame 1 (270 B)
onClipEvent (load) {
total = int(_root.getBytesTotal());
}
onClipEvent (enterFrame) {
loaded = int(_root.getBytesLoaded());
percent = int((loaded / total) * 100);
_root.percent = percent + " %";
if (percent >= 100) {
tellTarget ("_root") {
play();
};
}
}
Frame 2 (8 B)
stop();
Frame 57 (8 B)
stop();
Instance of Symbol 165 MovieClip "ship" in Frame 57 (624 B)
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_root.ship._x = this._x - 20;
_root.ship.vava.gotoAndStop(2);
}
if (Key.isDown(39)) {
_root.ship._x = this._x + 20;
_root.ship.vava.gotoAndStop(3);
}
if (Key.isDown(38)) {
_root.ship._y = this._y - 20;
_root.ship.vava.gotoAndStop(1);
}
if (Key.isDown(40)) {
_root.ship._y = this._y + 20;
_root.ship.vava.gotoAndStop(1);
}
if (_root.ship._x <= 50) {
_root.ship._x = 50;
}
if (_root.ship._x >= 500) {
_root.ship._x = 500;
}
if (_root.ship._Y <= 50) {
_root.ship._Y = 50;
}
if (_root.ship._Y >= 380) {
_root.ship._Y = 380;
}
}
Instance of Symbol 176 MovieClip "target0" in Frame 57 (2.76 KiB) ●
onClipEvent (load) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x + 8;
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - 15;
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + (-xspeed);
if (this._y > 500) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target0"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 181 MovieClip "ebullet0" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet0._x, _root.ebullet0._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet1" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet1._x, _root.ebullet1._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet2" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet2._x, _root.ebullet2._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet3" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet3._x, _root.ebullet3._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet4" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet4._x, _root.ebullet4._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet5" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet5._x, _root.ebullet5._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet6" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet6._x, _root.ebullet6._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet7" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet7._x, _root.ebullet7._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet8" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet8._x, _root.ebullet8._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 181 MovieClip "ebullet9" in Frame 57 (198 B)
onClipEvent (enterFrame) {
this._y = this._y + 10;
if (_root.ship.hitTest(_root.ebullet9._x, _root.ebullet9._y, true)) {
_root.shield = _root.shield - 5;
this.play();
_root.ship.play();
}
}
Instance of Symbol 186 MovieClip "bullet0" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet1" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet1._x, _root.bullet1._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet2" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet2._x, _root.bullet2._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet3" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet3._x, _root.bullet3._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet4" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet4._x, _root.bullet4._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet4._x, _root.bullet4._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet4._x, _root.bullet4._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet4._x, _root.bullet4._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet5" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet5._x, _root.bullet5._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet5._x, _root.bullet5._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet5._x, _root.bullet5._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet5._x, _root.bullet5._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet6" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet6._x, _root.bullet6._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet6._x, _root.bullet6._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet6._x, _root.bullet6._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet6._x, _root.bullet6._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet7" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet7._x, _root.bullet7._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet7._x, _root.bullet7._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet7._x, _root.bullet7._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet7._x, _root.bullet7._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet8" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet8._x, _root.bullet8._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet8._x, _root.bullet8._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet8._x, _root.bullet8._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet8._x, _root.bullet8._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet0._x, _root.bullet0._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 186 MovieClip "bullet9" in Frame 57 (1.28 KiB) ●
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
this._y = this._y - speed;
if (_root.target0.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target0.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target1.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target1.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target2.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target2.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target3.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target3.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target4.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target4.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target5.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target5.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target6.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target6.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
if (_root.target7.hitTest(_root.bullet9._x, _root.bullet9._y, true)) {
_root.target7.goToAndPlay(2);
_root.score++;
this.play();
speed = 5;
}
}
Instance of Symbol 197 MovieClip "target1" in Frame 57 (2.75 KiB) ●
onClipEvent (load) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x;
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - 15;
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (this._y > 500) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target1"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 198 MovieClip "target2" in Frame 57 (2.81 KiB) ●
onClipEvent (load) {
this._y = 10;
this._x = (Math.random() * 300) + 100;
scale = (Math.random() * 50) + 50;
this._yscale = scale;
this._xscale = scale;
xspeed = (Math.random() * 3) + 2;
yspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target2"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target2"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target2"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target2"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x - (((scale - 49) * 0.36) + 19);
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - (((scale - 49) * 0.3) + 30);
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (this._y > 550) {
this._x = 0;
this._y = (Math.random() * 300) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 199 MovieClip "target3" in Frame 57 (2.81 KiB) ●
onClipEvent (load) {
this._y = 450;
this._x = (Math.random() * 500) + 100;
scale = (Math.random() * 50) + 50;
this._yscale = scale;
this._xscale = scale;
xspeed = (Math.random() * 3) - 6;
yspeed = (Math.random() * 2) - 4;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x - (((scale - 49) * 0.36) + 19);
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - (((scale - 49) * 0.3) + 30);
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (this._y < 0) {
this._y = 350;
this._x = (Math.random() * 500) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) - 6;
xspeed = (Math.random() * 2) - 4;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target3"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target3"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target3"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target3"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 176 MovieClip "target5" in Frame 57 (2.81 KiB) ●
onClipEvent (load) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x - (((scale - 49) * 0.36) + 19);
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - (((scale - 49) * 0.3) + 30);
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (this._y > 550) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 197 MovieClip "target4" in Frame 57 (2.75 KiB) ●
onClipEvent (load) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x;
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - 15;
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (this._y > 500) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target4"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 176 MovieClip "target6" in Frame 57 (2.93 KiB) ●
onClipEvent (load) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x - 18;
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - 45;
_root.container.ebulletcounter++;
_root["ebullet" + _root.container.ebulletcounter]._x = this._x + 18;
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - 45;
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (this._y > 500) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target6"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 197 MovieClip "target7" in Frame 57 (2.81 KiB) ●
onClipEvent (load) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
onClipEvent (enterFrame) {
fire = Math.floor((Math.random() * 50) + 1);
if (fire == 9) {
_root["ebullet" + _root.container.ebulletcounter]._x = this._x - (((scale - 49) * 0.36) + 19);
_root["ebullet" + _root.container.ebulletcounter]._y = this._y - (((scale - 49) * 0.3) + 30);
_root.container.ebulletcounter++;
if (_root.container.ebulletcounter > 9) {
_root.container.ebulletcounter = 0;
}
}
if (_root.bulletsleft > 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (this._y > 550) {
this._y = 0;
this._x = (Math.random() * 400) + 100;
scale = (Math.random() * 50) + 50;
this._xscale = scale;
this._yscale = scale;
yspeed = (Math.random() * 3) + 2;
xspeed = (Math.random() * 2) + 1;
this._alpha = (Math.random() * 50) + 50;
_root.miss++;
colour = Math.floor((Math.random() * 4) + 1);
if (colour == 1) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:-100, rb:0, ga:50, gb:0, ba:100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 2) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:16, rb:0, ga:60, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 3) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:29, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
if (colour == 4) {
targetColor = new Color(["_root.target7"]);
myObject = new Object();
myObject = {ra:100, rb:0, ga:58, gb:0, ba:-100, bb:0, aa:100, ab:0};
targetColor.setTransform(myObject);
}
}
}
}
Instance of Symbol 210 MovieClip in Frame 57 (271 B)
onClipEvent (load) {
start = getTimer();
startCount = 40;
}
onClipEvent (enterFrame) {
current = (getTimer() - start) / 1000;
if (current < startCount) {
elapsed = startCount - current;
counter = Math.floor(elapsed);
} else {
_root.gotoAndStop("done");
}
}
Instance of Symbol 218 MovieClip "container" in Frame 57 (1.49 KiB) ●
onClipEvent (load) {
gravity = 0.5;
bulletcounter = 80;
ebulletcounter = 0;
_root.miss = 0;
stop = 0;
}
onClipEvent (enterFrame) {
_root.shieldbar._xscale = _root.shield;
if (_root.shield <= 0) {
_root.gotoAndStop("destroyed2");
}
if (_root.bulletsleft == 0) {
_root.gotoAndStop("amo2");
}
if (_root.ship.hitTest(_root.target0._x, _root.target0._y, true)) {
_root.shield = _root.shield - 5;
_root.target0.play();
_root.ship.play();
}
if (_root.ship.hitTest(_root.target1._x, _root.target1._y, true)) {
_root.shield = _root.shield - 5;
_root.target1.play();
_root.ship.play();
}
if (_root.ship.hitTest(_root.target2._x, _root.target2._y, true)) {
_root.shield = _root.shield - 5;
_root.target2.play();
_root.ship.play();
}
if (_root.ship.hitTest(_root.target3._x, _root.target3._y, true)) {
_root.shield = _root.shield - 5;
_root.target3.play();
_root.ship.play();
}
if (_root.ship.hitTest(_root.target4._x, _root.target4._y, true)) {
_root.shield = _root.shield - 5;
_root.target4.play();
_root.ship.play();
}
if (_root.ship.hitTest(_root.target5._x, _root.target5._y, true)) {
_root.shield = _root.shield - 5;
_root.target5.play();
_root.ship.play();
}
if (_root.ship.hitTest(_root.target6._x, _root.target6._y, true)) {
_root.shield = _root.shield - 5;
_root.target6.play();
_root.ship.play();
}
if (_root.ship.hitTest(_root.target7._x, _root.target7._y, true)) {
_root.shield = _root.shield - 5;
_root.target7.play();
_root.ship.play();
}
}
Frame 58 (8 B)
stop();
Frame 59 (8 B)
stop();
Frame 60 (8 B)
stop();
Symbol 22 Button (218 B)
on (rollOver) {
_root.ready._alpha = 100;
}
on (release) {
_root.gotoAndPlay(3);
_root.ready._alpha = 100;
_root.bulletsleft = 80;
_root.score = 0;
_root.accuracy = 0;
_root.accuracy2 = 0;
_root.shield = 100;
}
Symbol 155 MovieClip Frame 6 (8 B)
stop();
Symbol 162 MovieClip Frame 6 (8 B)
stop();
Symbol 163 MovieClip Frame 1 (8 B)
stop();
Symbol 163 MovieClip Frame 2 (8 B)
stop();
Symbol 163 MovieClip Frame 3 (8 B)
stop();
Symbol 176 MovieClip Frame 1 (8 B)
stop();
Symbol 176 MovieClip Frame 5 (33 B)
gotoAndStop (1);
this._y = 551;
Symbol 181 MovieClip Frame 1 (8 B)
stop();
Symbol 181 MovieClip Frame 10 (33 B)
gotoAndStop (1);
this._x = 999;
Symbol 186 MovieClip Frame 1 (8 B)
stop();
Symbol 186 MovieClip Frame 10 (33 B)
gotoAndStop (1);
this._x = 999;
Symbol 197 MovieClip Frame 1 (8 B)
stop();
Symbol 197 MovieClip Frame 5 (33 B)
gotoAndStop (1);
this._y = 551;
Symbol 198 MovieClip Frame 1 (8 B)
stop();
Symbol 198 MovieClip Frame 5 (32 B)
gotoAndStop (1);
this._x = 30;
Symbol 199 MovieClip Frame 1 (8 B)
stop();
Symbol 199 MovieClip Frame 5 (49 B)
gotoAndStop (1);
this._y = 300;
this._x = 560;
Symbol 216 Button (431 B)
on (keyPress "<Space>") {
if (_root.bulletsleft > 0) {
_root["bullet" + _root.container.bulletcounter]._x = _root.ship._x - 2;
_root["bullet" + _root.container.bulletcounter]._y = _root.ship._y - 5;
_root.bulletsleft--;
_root.container.bulletcounter++;
_root["bullet" + (_root.container.bulletcounter - 1)].speed = 20;
if (_root.container.bulletcounter > 9) {
_root.container.bulletcounter = 0;
}
}
}
Symbol 299 MovieClip Frame 40 (8 B)
stop();
Symbol 300 Button (141 B)
on (release) {
_root.bulletsleft = 80;
_root.score = 0;
_root.accuracy = 0;
_root.accuracy2 = 0;
_root.shield = 100;
gotoAndPlay (4);
}
Symbol 365 MovieClip Frame 31 (8 B)
stop();