Frame 46
function doSomething() {
}
function doSomething2() {
getURL ("http://www.freewebs.com/maxcartoons", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("By Max Maddox", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
Mouse.show();
Frame 79
stopAllSounds();
stop();
Frame 80
stop();
Frame 81
stop();
Frame 82
Mouse.show();
id = 0;
score = 0;
stop();
Instance of Symbol 95 MovieClip "ship" in Frame 82
onClipEvent (load) {
shoot = function (rota) {
_root.id++;
initObject = new Object();
initObject._x = _x;
initObject._y = _y;
initObject._rotation = rota;
_root.attachMovie("bullet", "bullet" + _root.id, _root.id, initObject);
};
}
onClipEvent (mouseDown) {
bearing = ((Math.atan2(_root._ymouse - _y, _root._xmouse - _x) * 180) / Math.PI) + 90;
shoot(0);
}
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
_root.yChange = Math.round(_root._ymouse - this._y);
_root.xChange = Math.round(_root._xmouse - this._x);
_root.xMove = Math.round(_root.xChange / 1);
this._y = this._y + _root.yMove;
this._x = this._x + _root.xMove;
}
Frame 83
Mouse.hide();
id = 0;
score = 0;
Instance of Symbol 119 MovieClip "enemy1" in Frame 83
onClipEvent (enterFrame) {
this._y = this._y + 15;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy3" in Frame 83
onClipEvent (enterFrame) {
this._y = this._y + 14;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy2" in Frame 83
onClipEvent (enterFrame) {
this._y = this._y + 17;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy4" in Frame 83
onClipEvent (enterFrame) {
this._y = this._y + 15;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy5" in Frame 83
onClipEvent (enterFrame) {
this._y = this._y + 14;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Frame 330
stop();
Mouse.show();
Frame 331
Mouse.hide();
Instance of Symbol 119 MovieClip "enemy1" in Frame 331
onClipEvent (enterFrame) {
this._y = this._y + 15;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy3" in Frame 331
onClipEvent (enterFrame) {
this._y = this._y + 14;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy2" in Frame 331
onClipEvent (enterFrame) {
this._y = this._y + 17;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy4" in Frame 331
onClipEvent (enterFrame) {
this._y = this._y + 15;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 119 MovieClip "enemy5" in Frame 331
onClipEvent (enterFrame) {
this._y = this._y + 14;
if (this._y > 500) {
this._y = -1000;
this._x = random(500);
}
}
Instance of Symbol 127 MovieClip "enemy6" in Frame 331
onClipEvent (load) {
velocity = 20;
turning_speed = 100;
targ = _root.ship;
xspeed = 0;
yspeed = 0;
turning = turning_speed * (Math.PI/180);
}
onClipEvent (enterFrame) {
lrot2 = lrot;
lrot = _rotation;
waypoint = Math.atan((_x - targ._x) / (targ._y - _y));
if (targ._y > _y) {
waypoint = waypoint + Math.PI;
}
if (waypoint < 0) {
waypoint = waypoint + (Math.PI*2);
} else if (waypoint >= (Math.PI*2)) {
waypoint = waypoint - (Math.PI*2);
}
rota = _rotation * (Math.PI/180);
if (rota < 0) {
rota = rota + (Math.PI*2);
} else if (rota >= (Math.PI*2)) {
rota = rota - (Math.PI*2);
}
orota = waypoint - rota;
if (orota < 0) {
orota = orota + (Math.PI*2);
} else if (orota >= (Math.PI*2)) {
orota = orota - (Math.PI*2);
}
if ((rota < ((waypoint - (turning / 2)) + turning)) && (rota > (waypoint - (turning / 2)))) {
rota = waypoint;
} else if (orota <= Math.PI) {
rota = rota + turning;
} else {
rota = rota - turning;
}
if (_rotation == 0) {
_rotation = (_rotation+1);
rota = _rotation * (Math.PI/180);
}
_rotation = ((rota * 180) / Math.PI);
xspeed = velocity * Math.sin(rota);
yspeed = velocity * Math.cos(rota);
_x = (_x + xspeed);
_y = (_y - yspeed);
if ((((_rotation > 0) && (lrot < 0)) && (lrot2 > 0)) || (((_rotation < 0) && (lrot > 0)) && (lrot2 < 0))) {
_rotation = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 500) {
this._y = -600;
this._x = random(500);
}
}
Instance of Symbol 127 MovieClip "enemy7" in Frame 331
onClipEvent (load) {
velocity = 20;
turning_speed = 100;
targ = _root.ship;
xspeed = 0;
yspeed = 0;
turning = turning_speed * (Math.PI/180);
}
onClipEvent (enterFrame) {
lrot2 = lrot;
lrot = _rotation;
waypoint = Math.atan((_x - targ._x) / (targ._y - _y));
if (targ._y > _y) {
waypoint = waypoint + Math.PI;
}
if (waypoint < 0) {
waypoint = waypoint + (Math.PI*2);
} else if (waypoint >= (Math.PI*2)) {
waypoint = waypoint - (Math.PI*2);
}
rota = _rotation * (Math.PI/180);
if (rota < 0) {
rota = rota + (Math.PI*2);
} else if (rota >= (Math.PI*2)) {
rota = rota - (Math.PI*2);
}
orota = waypoint - rota;
if (orota < 0) {
orota = orota + (Math.PI*2);
} else if (orota >= (Math.PI*2)) {
orota = orota - (Math.PI*2);
}
if ((rota < ((waypoint - (turning / 2)) + turning)) && (rota > (waypoint - (turning / 2)))) {
rota = waypoint;
} else if (orota <= Math.PI) {
rota = rota + turning;
} else {
rota = rota - turning;
}
if (_rotation == 0) {
_rotation = (_rotation+1);
rota = _rotation * (Math.PI/180);
}
_rotation = ((rota * 180) / Math.PI);
xspeed = velocity * Math.sin(rota);
yspeed = velocity * Math.cos(rota);
_x = (_x + xspeed);
_y = (_y - yspeed);
if ((((_rotation > 0) && (lrot < 0)) && (lrot2 > 0)) || (((_rotation < 0) && (lrot > 0)) && (lrot2 < 0))) {
_rotation = 0;
}
}
onClipEvent (enterFrame) {
if (this._y > 500) {
this._y = -600;
this._x = random(500);
}
}
Frame 579
Mouse.show();
stop();
Frame 580
stopAllSounds();
Frame 581
stop();
Mouse.hide();
Frame 582
Mouse.show();
stopAllSounds();
Frame 630
stop();
Frame 631
stopAllSounds();
Frame 644
stop();
Mouse.show();
Symbol 6 MovieClip [bullet] Frame 1
speed = 40;
xmin = -_width;
ymin = -_height;
xmax = Stage.width + _width;
ymax = Stage.height + _height;
this.onEnterFrame = function () {
_x = (_x + (speed * Math.sin((_rotation * Math.PI) / 180)));
_y = (_y - (speed * Math.cos((_rotation * Math.PI) / 180)));
if ((((_x < xmin) || (_x > xmax)) || (_y < ymin)) || (_y > ymax)) {
this.removeMovieClip();
}
};
stop();
Instance of Symbol 4 MovieClip "bullet" in Symbol 6 MovieClip [bullet] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy1.hit)) {
_root.enemy1.play();
_parent.play();
_root.score = _root.score + 25;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy2.hit)) {
_root.enemy2.play();
_parent.play();
_root.score = _root.score + 25;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy3.hit)) {
_root.enemy3.play();
_parent.play();
_root.score = _root.score + 25;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy4.hit)) {
_root.enemy4.play();
_parent.play();
_root.score = _root.score + 25;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy5.hit)) {
_root.enemy5.play();
_parent.play();
_root.score = _root.score + 25;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy6.hit)) {
_root.enemy6.play();
_parent.play();
_root.score = _root.score + 25;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.enemy7.hit)) {
_root.enemy7.play();
_parent.play();
_root.score = _root.score + 25;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss.boss.boss)) {
_root.boss.play();
_parent.play();
_root.score = _root.score + 20;
}
}
Symbol 9 MovieClip [enemybullet] Frame 1
speed = 40;
xmin = -_width;
ymin = -_height;
xmax = Stage.width + _width;
ymax = Stage.height + _height;
this.onEnterFrame = function () {
_x = (_x + (speed * Math.sin((_rotation * Math.PI) / 180)));
_y = (_y - (speed * Math.cos((_rotation * Math.PI) / 180)));
if ((((_x < xmin) || (_x > xmax)) || (_y < ymin)) || (_y > ymax)) {
this.removeMovieClip();
}
};
stop();
Symbol 23 MovieClip Frame 4
stop();
Symbol 37 MovieClip Frame 9
stop();
Symbol 39 Button
on (release) {
_root.gotoAndPlay("intro");
}
Symbol 40 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 40 MovieClip Frame 2
gotoAndPlay (1);
Symbol 40 MovieClip Frame 3
stop();
Symbol 75 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 76 Button
on (release) {
gotoAndPlay ("how");
}
Symbol 77 Button
on (release) {
gotoAndPlay ("credits");
}
Symbol 82 Button
on (release) {
gotoAndPlay (79);
}
Symbol 102 Button
on (release) {
play();
}
Symbol 119 MovieClip Frame 1
stop();
Instance of Symbol 107 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Symbol 119 MovieClip Frame 13
stop();
Instance of Symbol 118 MovieClip in Symbol 119 MovieClip Frame 13
onClipEvent (enterFrame) {
if ((_parent._y = -1000)) {
_parent.gotoAndPlay(1);
} else {
_parent.gotoAndPlay(13);
}
}
Symbol 127 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip "hit" in Symbol 127 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Symbol 127 MovieClip Frame 7
stop();
stop();
Instance of Symbol 118 MovieClip in Symbol 127 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((_parent._y = -1000)) {
_parent.gotoAndPlay(1);
} else {
_parent.gotoAndPlay(13);
}
}
Instance of Symbol 118 MovieClip in Symbol 127 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((_parent._y = -600)) {
_parent.gotoAndPlay(1);
} else {
_parent.gotoAndPlay(7);
}
}
Instance of Symbol 134 MovieClip in Symbol 136 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Instance of Symbol 132 MovieClip in Symbol 136 MovieClip Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Instance of Symbol 132 MovieClip in Symbol 136 MovieClip Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Instance of Symbol 134 MovieClip in Symbol 136 MovieClip Frame 62
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Instance of Symbol 132 MovieClip in Symbol 136 MovieClip Frame 64
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Instance of Symbol 132 MovieClip in Symbol 136 MovieClip Frame 97
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.gotoAndPlay("over");
}
}
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 3
stop();
Symbol 141 MovieClip Frame 4
stop();
Symbol 141 MovieClip Frame 5
stop();
Symbol 141 MovieClip Frame 6
stop();
Symbol 141 MovieClip Frame 7
stop();
Symbol 141 MovieClip Frame 8
stop();
Symbol 141 MovieClip Frame 9
stop();
Symbol 141 MovieClip Frame 10
stop();
Symbol 141 MovieClip Frame 11
stop();
Symbol 141 MovieClip Frame 12
stop();
Symbol 141 MovieClip Frame 13
stop();
Symbol 141 MovieClip Frame 14
stop();
Symbol 141 MovieClip Frame 15
stop();
Symbol 141 MovieClip Frame 16
stop();
Symbol 141 MovieClip Frame 17
stop();
Symbol 141 MovieClip Frame 18
stop();
Symbol 141 MovieClip Frame 19
stop();
Symbol 141 MovieClip Frame 20
stop();
Symbol 141 MovieClip Frame 21
stop();
Symbol 141 MovieClip Frame 22
stop();
Symbol 141 MovieClip Frame 23
stop();
Symbol 141 MovieClip Frame 24
stop();
Symbol 141 MovieClip Frame 25
stop();
Symbol 141 MovieClip Frame 26
stop();
Symbol 141 MovieClip Frame 27
stop();
Symbol 141 MovieClip Frame 28
stop();
Symbol 141 MovieClip Frame 29
_root.gotoAndPlay("win");
Symbol 150 MovieClip Frame 6
stop();
Symbol 163 Button
on (release) {
gotoAndPlay ("intro");
}
Symbol 171 Button
on (release) {
gotoAndPlay ("menu");
}