Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
stop();
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
fscommand ("trapallkeys", "true");
fscommand ("fullscreen", "true");
Frame 2
gotoAndPlay (1);
Frame 4
stop();
Instance of Symbol 30 MovieClip "hand" in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
fscommand ("quit");
}
}
Frame 5
function restartTimer() {
seconds = "00";
milli = "00";
buttonPressTime = (getTimer() / 1000) - pauseLength;
pause();
}
_root.pausebutton._visible = 0;
unpauseTime = getTimer() / 1000;
pauseLength = (unpauseTime - pauseTime) + pauseLength;
timing = true;
_root.onEnterFrame = function () {
totalTime = (getTimer() / 1000) - pauseLength;
goTime = totalTime - buttonPressTime;
if (timing) {
seconds = Math.floor(((((goTime / 3600) - hours) * 60) - minutes) * 60);
milli = Math.floor((gotime - ((seconds + (minutes * 60)) + (hours * 3600))) * 100);
if (seconds < 10) {
seconds = "0" + seconds;
}
if (minutes < 10) {
minutes = "0" + minutes;
}
if (hours < 10) {
hours = "0" + hours;
}
if (milli < 10) {
milli = "0" + milli;
}
}
};
stop();
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
fscommand ("trapallkeys", "true");
fscommand ("fullscreen", "true");
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 43 MovieClip in Frame 5
onClipEvent (load) {
this._x = random(801);
this._y = random(601);
}
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
if (this._x > 801) {
this._x = 0;
this._y = random(601);
}
}
Instance of Symbol 51 MovieClip "bad" in Frame 5
onClipEvent (load) {
n = 1;
m = 2.5;
l = 4.5;
rand = 2;
s = new Sound();
s.attachSound("Boom.wav");
}
onClipEvent (enterFrame) {
if ((_root.seconds > n) && (_root.seconds < m)) {
n = n + l;
m = m + l;
i++;
this.duplicateMovieClip("star" + i);
_root["star" + i]._x = random(801);
_root["star" + i]._y = random(rand);
}
}
onClipEvent (enterFrame) {
if (this._name == "bad") {
_visible = 0;
} else {
this._name = "bad1";
if (this.hitTest(_root.good)) {
tellTarget ("_root.good") {
s.start();
gotoAndPlay (2);
};
tellTarget ("_root.boom") {
after.setRGB(16711680);
gotoAndPlay (2);
};
this._alpha = 0;
_root.health = _root.health - 10;
removeMovieClip(this);
}
if (this.hitTest(_root.hit)) {
tellTarget ("_root.boom") {
after.setRGB(16777215);
gotoAndPlay (2);
};
s.start();
_root.messenger = "";
this._alpha = 0;
_root.score = _root.score + 15;
removeMovieClip(this);
}
}
}
Instance of Symbol 54 MovieClip in Frame 5
onClipEvent (load) {
m = 50;
t = _root.seconds;
_root.s = 0;
_root.score = 0;
_root.health = 100;
_root.h = 10;
lev = new Sound();
lev.attachSound("gamestart");
}
onClipEvent (enterFrame) {
if ((_root.s == _root.h) && (_root.messenger == ("Level " + _root.s))) {
_root.h = _root.h + 5;
tellTarget ("_root.hpower") {
_root.hpower._x = 500;
};
}
if (Key.isDown(27)) {
fscommand ("quit");
}
n = _root.score;
if (n > score) {
myColor = new Color(this);
c = random(999999);
myColor.setRGB(c);
score = n;
}
if (_root.score == (75 * _root.s)) {
_root.s = _root.s + 1;
_root.messenger = "Level " + _root.s;
lev.start();
tellTarget ("_root.bad") {
l = l - 0.25;
rand = rand + 45;
};
}
}
Instance of Symbol 62 MovieClip "hpower" in Frame 5
onClipEvent (load) {
h = new Sound();
h.attachSound("health");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.good)) {
h.start();
_root.health = _root.health + 20;
this._x = 900;
}
}
Instance of Symbol 30 MovieClip "hand" in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._x = this._x - 20;
}
if (Key.isDown(39)) {
this._x = this._x + 20;
}
if (this._x < 2) {
this._x = 2;
}
if (this._x > 755) {
this._x = 755;
}
}
Instance of Symbol 37 MovieClip "good" in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._x = this._x - 20;
}
if (Key.isDown(39)) {
this._x = this._x + 20;
}
if (this._x < 36) {
this._x = 36;
}
if (this._x > 790) {
this._x = 790;
}
if (_root.health == 0) {
tellTarget ("_root") {
Mouse.show();
nextFrame();
_root.messenger = "Game Over";
};
}
}
Instance of Symbol 76 MovieClip "cGun" in Frame 5
onClipEvent (mouseDown) {
i++;
this.duplicateMovieClip("starer" + i, i + 10);
_root["starer" + i]._x = _root.hand._x;
_root["starer" + i]._y = _root.hand._y;
_root["starer" + i]._rotation = _root.hand._rotation + 90;
}
onClipEvent (enterFrame) {
if (this._name == "cGun") {
_visible = 0;
} else {
this._name = "hit";
this._alpha = this._alpha - 8;
_visible = 1;
this._xscale = this._xscale - 10;
if (this._alpha <= 47) {
removeMovieClip(this);
}
}
}
Instance of Symbol 78 MovieClip "aim" in Frame 5
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseDown) {
tellTarget ("_root.hand") {
gotoAndPlay (2);
};
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 81 MovieClip "boom" in Frame 5
onClipEvent (load) {
this._alpha = 50;
after = new Color(this);
}
Frame 6
stop();
Symbol 6 Button
on (release) {
gotoAndPlay (4);
}
Symbol 10 MovieClip Frame 8
stop();
Symbol 15 Button
on (release) {
gotoAndStop (5);
}
Symbol 30 MovieClip Frame 1
stop();
Instance of Symbol 19 MovieClip in Symbol 30 MovieClip Frame 1
onClipEvent (enterFrame) {
z = _root._xmouse - _parent._x;
r = _root._ymouse - _parent._y;
_root.a = z;
_root.b = r;
}
onClipEvent (enterFrame) {
e = z / r;
k = Math.atan(e);
}
onClipEvent (enterFrame) {
g = (k * 180) / Math.PI;
_rotation = g;
if (_root._ymouse > _parent._y) {
_parent._rotation = 90 - _rotation;
} else if (_root._ymouse < _parent._y) {
_parent._rotation = 180 - (_rotation - 90);
}
}
Instance of Symbol 19 MovieClip in Symbol 30 MovieClip Frame 5
onClipEvent (enterFrame) {
z = _root._xmouse - _parent._x;
r = _root._ymouse - _parent._y;
_root.a = z;
_root.b = r;
}
onClipEvent (enterFrame) {
e = z / r;
k = Math.atan(e);
}
onClipEvent (enterFrame) {
g = (k * 180) / Math.PI;
_rotation = g;
if (_root._ymouse > _parent._y) {
_parent._rotation = 90 - _rotation;
} else if (_root._ymouse < _parent._y) {
_parent._rotation = 180 - (_rotation - 90);
}
}
Symbol 37 MovieClip Frame 1
stop();
Instance of Symbol 33 MovieClip in Symbol 37 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Instance of Symbol 33 MovieClip in Symbol 37 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Instance of Symbol 33 MovieClip in Symbol 37 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Instance of Symbol 33 MovieClip in Symbol 37 MovieClip Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Instance of Symbol 33 MovieClip in Symbol 37 MovieClip Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this._rotation = this._rotation + 45;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - 45;
}
}
Symbol 39 Button
on (release) {
gotoAndPlay (1);
}
Instance of Symbol 19 MovieClip in Symbol 51 MovieClip Frame 1
onClipEvent (enterFrame) {
z = _root.good._x - _parent._x;
r = _root.good._y - _parent._y;
_root.a = z;
_root.b = r;
}
onClipEvent (enterFrame) {
e = z / r;
k = Math.atan(e);
}
onClipEvent (enterFrame) {
g = (k * 180) / Math.PI;
_rotation = g;
if (_root.good._y > _parent._y) {
_parent._rotation = 90 - _rotation;
} else if (_root.good._y < _parent._y) {
_parent._rotation = 180 - (_rotation - 90);
}
}
Instance of Symbol 19 MovieClip in Symbol 51 MovieClip Frame 40
onClipEvent (enterFrame) {
z = _root.good._x - _parent._x;
r = _root.good._y - _parent._y;
_root.a = z;
_root.b = r;
}
onClipEvent (enterFrame) {
e = z / r;
k = Math.atan(e);
}
onClipEvent (enterFrame) {
g = (k * 180) / Math.PI;
_rotation = g;
if (_root.good._y > _parent._y) {
_parent._rotation = 90 - _rotation;
} else if (_root.good._y < _parent._y) {
_parent._rotation = 180 - (_rotation - 90);
}
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 87 Button
on (release) {
gotoAndStop (1);
}
Symbol 89 Button
on (release) {
fscommand ("quit");
}