Frame 1
stop();
Frame 2
_global.speed = 0;
_global.gravity = 0;
_global.wind = 0.1;
_global.alive = 1;
_global.time = 0;
_global.points = 0;
_global.checkpt = 20;
_global.sharkrot = 0;
_global.sharkspeed = 6;
_global.lr = 2;
_global.nr = 0;
_global.distance = 600;
_global.timegrad = 400;
Instance of Symbol 28 MovieClip in Frame 2
/* no clip actions */
Instance of Symbol 31 MovieClip "skeleton" in Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.5;
}
Instance of Symbol 88 MovieClip "rocket" in Frame 3
onClipEvent (enterFrame) {
if (this._currentframe < 73) {
this._rotation = this._rotation + ((_root._xmouse - 275) / 30);
var i = 1;
while (i < 20) {
var x = getProperty(_root.space.star add i, _x);
var y = getProperty(_root.space.star add i, _y);
x = x + (((-(speed / 1.5)) * Math.cos((Math.PI/180) * this._rotation)) - (gravity / 2));
y = y + (((-(speed / 1.5)) * Math.sin((Math.PI/180) * this._rotation)) - (gravity / 2));
if (x > 550) {
x = 0;
y = random(300);
}
if (x < 0) {
x = 550;
y = random(300);
}
if (y > 300) {
y = 0;
x = random(550);
}
if (y < 0) {
y = 300;
x = random(550);
}
setProperty(_root.space.star add i, _x , x);
setProperty(_root.space.star add i, _y , y);
i++;
}
i = 1;
while (i < 10) {
x = getProperty(_root.space.comet add i, _x);
y = getProperty(_root.space.comet add i, _y);
x = x + (((-speed) * Math.cos((Math.PI/180) * this._rotation)) - gravity);
y = y + (((-speed) * Math.sin((Math.PI/180) * this._rotation)) - gravity);
if (x > 550) {
x = 0;
y = random(300);
}
if (x < 0) {
x = 550;
y = random(300);
}
if (y > 300) {
y = 0;
x = random(550);
}
if (y < 0) {
y = 300;
x = random(550);
}
setProperty(_root.space.comet add i, _x , x);
setProperty(_root.space.comet add i, _y , y);
i++;
}
speed = speed * 0.99;
wind = Math.sin(time) - (Math.sin(time) / 2);
time = time + 0.05;
if (time > 360) {
time = 0;
}
this._x = this._x + wind;
}
_root.baza._x = _root.baza._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.baza._y = _root.baza._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.shark._x = _root.shark._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.shark._y = _root.shark._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.shark2._x = _root.shark2._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.shark2._y = _root.shark2._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.shark3._x = _root.shark3._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.shark3._y = _root.shark3._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.fuel._x = _root.fuel._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.fuel._y = _root.fuel._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.wir._x = _root.wir._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.wir._y = _root.wir._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
if (_root.fuel.hitTest(this)) {
this.nurek.gotoAndPlay(16);
var rnd;
rnd = random(3);
fuel = fuel + 5;
_root.fuelmtr._width = fuel * 2;
_root.fuel._x = random(1000) - 500;
_root.fuel._y = random(1000) - 500;
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 17) {
gotoAndPlay (37);
}
}
onClipEvent (mouseDown) {
speed = speed + 0.5;
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (keyDown) {
if ((Key.getCode() == 32) && (this._currentframe < 134)) {
this.gotoAndPlay(139);
}
}
Frame 4
stopAllSounds();
distance = 300;
Instance of Symbol 31 MovieClip "skeleton" in Frame 4
onClipEvent (enterFrame) {
if (_x > 550) {
_x = 0;
_y = random(300);
_rotation = random(360);
}
if (_x < 0) {
_x = 550;
_y = random(300);
_rotation = random(360);
}
if (_y > 300) {
_y = 0;
_x = random(550);
_rotation = random(360);
}
if (_y < 0) {
_y = 300;
_x = random(550);
_rotation = random(360);
}
}
Instance of Symbol 117 MovieClip "sharksh" in Frame 4
onClipEvent (enterFrame) {
this._rotation = _root.shark._rotation;
this._x = _root.shark._x - 20;
this._y = _root.shark._y + 20;
}
Instance of Symbol 122 MovieClip "smoke" in Frame 4
onClipEvent (enterFrame) {
this._alpha = this._alpha * 0.95;
if (this._alpha < 0.1) {
removeMovieClip(this);
}
}
Instance of Symbol 117 MovieClip "shark" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe < 50) {
sharkrot = sharkrot + lr;
this._rotation = sharkrot;
this._x = this._x + (sharkspeed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (sharkspeed * Math.sin((Math.PI/180) * this._rotation));
if (_x > (distance + 500)) {
_x = (-distance);
_y = random(300);
lr = random(8) - 4;
}
if (_x < (-distance)) {
_x = (distance + 150);
_y = random(300);
lr = random(8) - 4;
}
if (_y > (distance + 200)) {
_y = (-distance);
_x = random(550);
lr = random(8) - 4;
}
if (_y < (-distance)) {
_y = (distance + 150);
_x = random(550);
lr = random(8) - 4;
}
}
}
onClipEvent (load) {
if (distance > 300) {
distance = distance - 100;
} else {
sharkspeed = sharkspeed + 1;
}
}
Instance of Symbol 117 MovieClip "sharksh" in Frame 4
onClipEvent (enterFrame) {
this._rotation = _root.shark2._rotation;
this._x = _root.shark2._x - 20;
this._y = _root.shark2._y + 10;
}
Instance of Symbol 117 MovieClip "shark2" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe < 50) {
sharkrot = sharkrot + lr;
this._rotation = sharkrot;
this._x = this._x + (sharkspeed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (sharkspeed * Math.sin((Math.PI/180) * this._rotation));
if (_x > (distance + 500)) {
_x = (-distance);
_y = random(300);
lr = random(8) - 4;
}
if (_x < (-distance)) {
_x = (distance + 150);
_y = random(300);
lr = random(8) - 4;
}
if (_y > (distance + 200)) {
_y = (-distance);
_x = random(550);
lr = random(8) - 4;
}
if (_y < (-distance)) {
_y = (distance + 150);
_x = random(550);
lr = random(8) - 4;
}
}
}
onClipEvent (load) {
if (distance > 300) {
distance = distance - 100;
} else {
sharkspeed = sharkspeed + 1;
}
}
Instance of Symbol 117 MovieClip "sharksh" in Frame 4
onClipEvent (enterFrame) {
this._rotation = _root.shark3._rotation;
this._x = _root.shark3._x - 20;
this._y = _root.shark3._y + 20;
}
Instance of Symbol 117 MovieClip "shark3" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe < 50) {
sharkrot = sharkrot + lr;
this._rotation = sharkrot;
this._x = this._x + (sharkspeed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (sharkspeed * Math.sin((Math.PI/180) * this._rotation));
if (_x > (distance + 500)) {
_x = (-distance);
_y = random(300);
lr = random(8) - 4;
}
if (_x < (-distance)) {
_x = (distance + 150);
_y = random(300);
lr = random(8) - 4;
}
if (_y > (distance + 200)) {
_y = (-distance);
_x = random(550);
lr = random(8) - 4;
}
if (_y < (-distance)) {
_y = (distance + 150);
_x = random(550);
lr = random(8) - 4;
}
}
}
onClipEvent (load) {
if (distance > 300) {
distance = distance - 100;
} else {
sharkspeed = sharkspeed + 1;
}
}
Instance of Symbol 147 MovieClip "fuel" in Frame 4
/* no clip actions */
Instance of Symbol 149 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._rotation = _root.rocket._rotation;
this._x = _root.rocket._x - 20;
this._y = (_root.rocket._y + 25) + (Math.sin(a / 4) * 4);
a = a + 1;
}
onClipEvent (load) {
var a = 0;
}
Instance of Symbol 88 MovieClip "rocket" in Frame 4
onClipEvent (enterFrame) {
if (this._currentframe < 73) {
this._rotation = this._rotation + ((_root._xmouse - 275) / 30);
var i = 1;
while (i < 20) {
var x = getProperty(_root.space.star add i, _x);
var y = getProperty(_root.space.star add i, _y);
x = x + (((-(speed / 1.5)) * Math.cos((Math.PI/180) * this._rotation)) - (gravity / 2));
y = y + (((-(speed / 1.5)) * Math.sin((Math.PI/180) * this._rotation)) - (gravity / 2));
if (x > 550) {
x = 0;
y = random(300);
}
if (x < 0) {
x = 550;
y = random(300);
}
if (y > 300) {
y = 0;
x = random(550);
}
if (y < 0) {
y = 300;
x = random(550);
}
setProperty(_root.space.star add i, _x , x);
setProperty(_root.space.star add i, _y , y);
i++;
}
i = 1;
while (i < 10) {
x = getProperty(_root.space.comet add i, _x);
y = getProperty(_root.space.comet add i, _y);
x = x + (((-speed) * Math.cos((Math.PI/180) * this._rotation)) - gravity);
y = y + (((-speed) * Math.sin((Math.PI/180) * this._rotation)) - gravity);
if (x > 550) {
x = 0;
y = random(300);
}
if (x < 0) {
x = 550;
y = random(300);
}
if (y > 300) {
y = 0;
x = random(550);
}
if (y < 0) {
y = 300;
x = random(550);
}
setProperty(_root.space.comet add i, _x , x);
setProperty(_root.space.comet add i, _y , y);
i++;
}
speed = speed * 0.99;
wind = Math.sin(time) - (Math.sin(time) / 2);
time = time + 0.05;
if (time > 360) {
time = 0;
}
this._x = this._x + wind;
}
_root.shark._x = _root.shark._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.shark._y = _root.shark._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.shark2._x = _root.shark2._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.shark2._y = _root.shark2._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.shark3._x = _root.shark3._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.shark3._y = _root.shark3._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.fuel._x = _root.fuel._x + ((-(speed * 2)) * Math.cos((Math.PI/180) * this._rotation));
_root.fuel._y = _root.fuel._y + ((-(speed * 2)) * Math.sin((Math.PI/180) * this._rotation));
_root.skeleton._x = _root.skeleton._x + ((-speed) * Math.cos((Math.PI/180) * this._rotation));
_root.skeleton._y = _root.skeleton._y + ((-speed) * Math.sin((Math.PI/180) * this._rotation));
if (_root.fuel.hitTest(this) && (_root.fuel._currentframe < 11)) {
_root.fuel.gotoAndPlay(12);
_root.clock.gotoAndStop(1);
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 17) {
gotoAndPlay (37);
}
}
onClipEvent (mouseDown) {
speed = (0.3 + speed) + (parseInt(_root.score.text) / 1000);
}
onClipEvent (load) {
speed = 0;
}
onClipEvent (keyDown) {
if ((Key.getCode() == 32) && (this._currentframe < 43)) {
this.gotoAndPlay(139);
}
}
Instance of Symbol 151 MovieClip "arrow" in Frame 4
onClipEvent (enterFrame) {
var dx = (_root.fuel._x - this._x);
var dy = (_root.fuel._y - this._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
var angle;
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
this._rotation = (angle * 180) / Math.PI;
if ((((_root.fuel._x > 0) && (_root.fuel._x < 550)) && (_root.fuel._y > 0)) && (_root.fuel._y < 300)) {
this._visible = 0;
} else {
this._visible = 1;
}
}
Instance of Symbol 164 MovieClip "clock" in Frame 4
onClipEvent (enterFrame) {
timeloc = getTimer();
if (timeloc > (timePressed + timegrad)) {
gotoAndStop(_currentframe + 1);
timePressed = 0;
timePressed = getTimer();
}
}
onClipEvent (load) {
var timeloc = 0;
var timePressed = 0;
timegrad = timegrad - 10;
}
Frame 6
_root.check.text = _root.checkpt._currentframe - 1;
_root.score._x = 280;
_root.score._y = 200;
Frame 13
stop();
Symbol 9 MovieClip Frame 1
function setValue(v) {
mv = (v / 100) * 144;
}
var mv = 0;
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.thebar._x < _parent.mv) {
if ((_parent.mv - _parent.thebar._x) >= 2) {
_parent.thebar._x = _parent.thebar._x + 2;
} else {
_parent.thebar._x++;
}
}
}
Symbol 13 MovieClip Frame 4
tb = _root.getBytesTotal();
lb = _root.getBytesLoaded();
v = int((lb / tb) * 100);
thebar.setValue(v);
if (lb < tb) {
gotoAndPlay(_currentframe - 1);
} else if (thebar.mv == thebar.thebar._x) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 13 MovieClip Frame 88
_root.gotoAndStop(_root._currentframe + 1);
stop();
Symbol 27 Button
on (release) {
_root.gotoAndStop("3");
}
Symbol 28 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 43
gotoAndPlay (1);
Symbol 88 MovieClip Frame 56
gotoAndPlay (1);
Symbol 88 MovieClip Frame 57
speed = 0;
Symbol 88 MovieClip Frame 138
if (_root.life0._visible == true) {
_root.life0._visible = false;
} else if (_root.life1._visible == true) {
_root.life1._visible = false;
} else if (_root.life2._visible == true) {
_root.life2._visible = false;
} else {
_root.gotoAndStop(5);
}
gotoAndPlay (1);
Instance of Symbol 71 MovieClip in Symbol 88 MovieClip Frame 142
onClipEvent (enterFrame) {
if (this.hitTest(_root.shark.pysk)) {
_root.shark.gotoAndPlay(50);
_root.shark._x = _root.shark._x + (50 * Math.cos((Math.PI/180) * _parent._rotation));
_root.shark._y = _root.shark._y + (50 * Math.sin((Math.PI/180) * _parent._rotation));
}
if (this.hitTest(_root.shark3.pysk)) {
_root.shark3.gotoAndPlay(50);
_root.shark3._x = _root.shark3._x + (50 * Math.cos((Math.PI/180) * _parent._rotation));
_root.shark3._y = _root.shark3._y + (50 * Math.sin((Math.PI/180) * _parent._rotation));
}
if (this.hitTest(_root.shark2.pysk)) {
_root.shark2.gotoAndPlay(50);
_root.shark2._x = _root.shark2._x + (50 * Math.cos((Math.PI/180) * _parent._rotation));
_root.shark2._y = _root.shark2._y + (50 * Math.sin((Math.PI/180) * _parent._rotation));
}
}
Symbol 89 Button
on (release) {
_root.gotoAndStop("4");
}
Instance of Symbol 104 MovieClip "pysk" in Symbol 117 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.baza)) {
} else if (this.hitTest(_root.rocket.nurek) && (_root.rocket._currentframe < 62)) {
_root.rocket.gotoAndPlay(57);
_parent.gotoAndPlay(21);
}
}
Symbol 117 MovieClip Frame 20
lr = random(8) - 4;
gotoAndPlay (1);
Symbol 117 MovieClip Frame 49
gotoAndPlay (1);
Symbol 117 MovieClip Frame 50
points = points + 100;
_root.score.text = parseInt(_root.score.text) + points;
Symbol 137 MovieClip Frame 1
var nb;
nb = 0;
while (nb <= 5) {
nb = nb + 1;
duplicateMovieClip (_root.space.star, "star" add nb, nb);
setProperty(_root.space.star add nb, _x , random(550));
setProperty(_root.space.star add nb, _y , random(300));
}
nb = 0;
var cometcount;
cometcount = 3;
while (nb <= cometcount) {
nb = nb + 1;
if (random(2) == 1) {
duplicateMovieClip (_root.space.comet, "comet" add nb, nb);
} else {
duplicateMovieClip (_root.space.comet1, "comet" add nb, nb);
}
setProperty(_root.space.comet add nb, _x , random(550));
setProperty(_root.space.comet add nb, _y , random(300));
setProperty(_root.space.comet add nb, _rotation , random(360));
var rnd = (random(60) + 40);
setProperty(_root.space.comet add nb, _xscale , rnd);
setProperty(_root.space.comet add nb, _yscale , rnd);
}
Instance of Symbol 128 MovieClip "comet1" in Symbol 137 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 1;
if (this.hitTest(_root.rocket) & (_root.rocket._currentframe < 8)) {
if ((_root.rocket._rotation < 80) || (_root.rocket._rotation > 100)) {
}
}
}
Instance of Symbol 136 MovieClip "star" in Symbol 137 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.rocket.nurek)) {
_root.rocket.gotoAndPlay(44);
var rnd;
rnd = random(3);
if ((rnd = 1)) {
this._x = random(500);
this._y = -50;
} else if ((rnd = 2)) {
this._x = random(500);
this._y = 350;
} else if ((rnd = 3)) {
this._y = random(300);
this._x = -50;
} else if ((rnd = 2)) {
this._y = random(300);
this._x = 580;
}
points = points + 10;
_root.score.text = parseInt(_root.score.text) + points;
}
}
onClipEvent (load) {
gotoAndStop(random(2) + 1);
this._rotation = random(360);
}
Symbol 137 MovieClip Frame 2
stop();
Symbol 147 MovieClip Frame 11
gotoAndPlay (1);
Symbol 147 MovieClip Frame 12
_root.checkpt.gotoAndStop(_root.checkpt._currentframe + 1);
points = points + 3;
_root.score.text = parseInt(_root.score.text) + points;
Symbol 147 MovieClip Frame 50
_root.fuel._x = random(1000) - 500;
_root.fuel._y = random(1000) - 500;
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 6
gotoAndStop (1);
_root.gotoAndStop(5);
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 90
_root.gotoAndStop(6);
Symbol 168 Button
on (release) {
getURL ("http://www.funflashgames.com/", "_self");
}
Symbol 170 Button
on (release) {
getURL ("http://www.funflashgames.com/freecontent.html", "_self");
}
Symbol 172 MovieClip Frame 55
_root.gotoAndStop(4);
_root.clock.gotoAndStop(1);