Instance of Symbol 24 Font in Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gameversion != _root.Version) {
this._visible = true;
} else if (_root.gameversion == _root.Version) {
this._visible = false;
}
if (!_root.gameversion) {
this.gotoAndStop(2);
this._visible = true;
}
}
Frame 1
Stage.showMenu = false;
Version = 4;
stop();
Frame 2
Name = "";
stop();
Frame 30
Mouse.show();
dropping = new Sound();
dropping.attachSound("dropping");
thrust = new Sound();
thrust.attachSound("thrust");
enemydie = new Sound();
enemydie.attachSound("enemydie");
shoot = new Sound();
shoot.attachSound("shoot");
stop();
Instance of Symbol 83 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 86 MovieClip "Pad1" in Frame 31
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Ship) && (_root.Rescued == false)) && (_root.Ship.yspeed < 1.4)) {
stopAllSounds();
_root.thruster._x = 600;
_root.Ship.Landed = true;
_root.Ship.Down = false;
_root.Ship._y = 425;
_root.Rescued = true;
_root.bonus = 100;
_root.man2.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if (this.hitTest(_root.Ship) && (_root.Ship.yspeed > 1.4)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
Instance of Symbol 88 MovieClip "Pad2" in Frame 31
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Ship) && (_root.Rescued == false)) && (_root.Ship.yspeed < 1.4)) {
stopAllSounds();
_root.thruster._x = 600;
_root.Ship.Landed = true;
_root.Ship.Down = false;
_root.Ship._y = 410;
_root.Rescued = true;
_root.bonus = 50;
_root.man1.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if (this.hitTest(_root.Ship) && (_root.Ship.yspeed > 1.4)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
Instance of Symbol 90 MovieClip "Pad3" in Frame 31
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Ship) && (_root.Rescued == false)) && (_root.Ship.yspeed < 1.4)) {
stopAllSounds();
_root.thruster._x = 600;
_root.Ship.Landed = true;
_root.Ship.Down = false;
_root.Ship._y = 440;
_root.Rescued = true;
_root.bonus = 150;
_root.man3.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if (this.hitTest(_root.Ship) && (_root.Ship.yspeed > 1.4)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
Instance of Symbol 115 MovieClip "Mother" in Frame 31
onClipEvent (load) {
Start = false;
Left = false;
Right = true;
xspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.Pause == false) {
if (Start == true) {
if (_root.Ship._y > 135) {
this._x = this._x + xspeed;
_root.Ship.Move = true;
if (Left == true) {
xspeed = -2;
} else if (Right == true) {
xspeed = 2;
}
}
if (_x < 50) {
_x = 50;
Right = true;
Left = false;
}
if (_x > 400) {
_x = 400;
Left = true;
Right = false;
}
}
if ((_root.Ship.Up == true) && (_root.Ship._y < 145)) {
xspeed = 0;
}
}
}
Instance of Symbol 122 MovieClip "Ship" in Frame 31
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
Down = true;
Landed = false;
dead = false;
dropping = false;
}
onClipEvent (enterFrame) {
if (_root.Pause == false) {
if (dead == false) {
if (_root.Mother.Start == true) {
if (Landed == false) {
if (Down == true) {
_root.sfx.gotoAndPlay("Dropping");
if ((dropping == false) && (!Key.isDown(38))) {
_root.thrust.stop();
_root.dropping.start(0, 1000);
dropping = true;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if ((Key.isDown(38) && (Landed == false)) && (_root.fuel > 0)) {
if (dropping == true) {
_root.dropping.stop();
_root.thrust.start(0, 1000);
dropping = false;
}
_root.thruster._x = this._x;
_root.thruster._y = this._y + 20;
_root.fuel = _root.fuel - 2;
if (_root.fuel < 0) {
_root.fuel = 0;
}
yspeed = 0.5;
} else {
_root.thruster._x = 600;
yspeed = 1.5;
}
if (Move == true) {
if (Key.isDown(37)) {
xspeed = -2;
} else if (Key.isDown(39)) {
xspeed = 2;
} else {
xspeed = 0;
}
}
} else if (Up == true) {
this._y = this._y - yspeed;
this._x = this._x + xspeed;
if (Key.isDown(38) && (_root.fuel > 0)) {
_root.thruster._x = this._x;
_root.thruster._y = this._y + 20;
_root.fuel = _root.fuel - 2;
if (_root.fuel < 0) {
_root.fuel = 0;
}
yspeed = 1.5;
} else {
_root.thruster._x = 600;
yspeed = 0.6;
}
if (Key.isDown(37)) {
xspeed = -2;
} else if (Key.isDown(39)) {
xspeed = 2;
} else {
xspeed = 0;
}
if (this.hitTest(_root.Mother.Bay) && (_root.Mother.Start == true)) {
Move = false;
_root.Mother.Start = false;
this._x = _root.Mother._x;
this._y = 110;
_root.Mother.play();
}
}
if (_x < 13) {
_x = 13;
}
if (_x > 435) {
_x = 435;
}
if (((this._y > 460) || (_root.Mother.hitTest(_x, _y, true))) || ((this._y < 100) && (dead == false))) {
this.gotoAndStop(2);
dead = true;
}
}
}
}
}
}
Instance of Symbol 127 MovieClip "Bullet" in Frame 31
onClipEvent (load) {
fired = false;
}
onClipEvent (enterFrame) {
if (_root.Pause == false) {
if ((((Key.isDown(32) && (_root.Ship.Up == true)) && (fired == false)) && (_root.Ship._y > 200)) && (_root.Ship.dead == false)) {
_root.shoot.start();
this._x = _root.Ship._x;
this._y = _root.Ship._y;
fired = true;
}
if (fired == false) {
this._x = 600;
}
if (fired == true) {
this._y = this._y - 10;
}
if (this._y < 135) {
fired = false;
}
}
}
Instance of Symbol 129 MovieClip "ebullet" in Frame 31
onClipEvent (load) {
firebullet = true;
}
onClipEvent (enterFrame) {
if (_root.Pause == false) {
if (this.hitTest(_root.Ship)) {
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
if (firebullet == true) {
this._y = this._y + 5;
}
if (this._y > 445) {
firebullet = false;
removeMovieClip(this);
}
}
}
Instance of Symbol 138 MovieClip "ast" in Frame 31
onClipEvent (load) {
if (random(2) == 0) {
left = true;
} else {
right = true;
}
this.gotoAndStop(random(8) + 1);
}
onClipEvent (enterFrame) {
if (_root.Pause == false) {
if (Move == true) {
if (left == true) {
this._x = this._x - _root.AstSpeed;
}
if (right == true) {
this._x = this._x + _root.AstSpeed;
}
if (_x < -5) {
_x = 455;
}
if (_x > 455) {
_x = -5;
}
if (this.hitTest(_root.Ship)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
}
}
Instance of Symbol 154 MovieClip "enemyship" in Frame 31
onClipEvent (load) {
if (random(2) == 0) {
left = true;
} else {
right = true;
}
this.gotoAndStop(random(12) + 1);
}
onClipEvent (enterFrame) {
if (_root.Pause == false) {
if (Move == true) {
if (random(_root.mod) == 1) {
_root.firePos = eval (this);
_root.enemyfire();
}
if (this.hitTest(_root.Bullet)) {
Move = false;
_root.Bullet.fired = false;
_root.enemydie.start();
this.gotoAndPlay("die");
}
if (left == true) {
this._x = this._x - _root.AstSpeed;
}
if (right == true) {
this._x = this._x + _root.AstSpeed;
}
if (_x < -5) {
left = false;
right = true;
}
if (_x > 455) {
left = true;
right = false;
}
if (this.hitTest(_root.Ship)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
}
}
Instance of Symbol 160 MovieClip "Lifecounter" in Frame 31
on (keyPress "p") {
if (_root.Pause == false) {
_root.Pausemc.swapDepths(1000);
_root.Pausemc._visible = true;
_root.Pause = true;
stopAllSounds();
} else if (_root.Pause == true) {
_root.Pausemc._visible = false;
_root.Pause = false;
}
}
Instance of Symbol 167 MovieClip "Tint" in Frame 31
onClipEvent (load) {
_visible = false;
}
Frame 31
function enemyfire() {
duplicateMovieClip (ebullet, "ebullet" + bullet, 1000 + bullet);
_root["ebullet" + bullet]._y = firePos._y;
_root["ebullet" + bullet]._x = firePos._x;
_root["ebullet" + bullet].firebullet = true;
bullet++;
}
function resetasteroids() {
e = 1;
while (e <= Asteroids) {
removeMovieClip(["enemyship" + e]);
e++;
}
b = 1;
while (b <= Asteroids) {
removeMovieClip(["ebullet" + b]);
b++;
}
i = 1;
while (i <= Asteroids) {
duplicateMovieClip (ast, "ast" + i, 110 + i);
_root["ast" + i]._y = random(180) + 180;
_root["ast" + i]._x = random(448);
_root["ast" + i].Move = true;
i++;
}
}
function resetenemies() {
e = 1;
while (e <= Asteroids) {
removeMovieClip(["ast" + e]);
e++;
}
i = 1;
while (i <= Asteroids) {
duplicateMovieClip (enemyship, "enemyship" + i, 110 + i);
_root["enemyship" + i]._y = random(150) + 180;
_root["enemyship" + i]._x = random(448);
_root["enemyship" + i].Move = true;
i++;
}
}
function resetlevel() {
i = 1;
while (i <= Asteroids) {
removeMovieClip(_root["enemyship" + i]);
i++;
}
Rescued = false;
thruster._x = 600;
Ship.Move = false;
Ship.xspeed = 0;
Mother.Start = false;
Ship.Down = true;
Ship.dropping = false;
Ship.Up = false;
Ship.dead = false;
Ship._x = Mother._x;
Ship._y = 110;
Ship.gotoAndStop(1);
lives = lives - 1;
fuel = 800;
Tint._visible = false;
Lifecounter.nextFrame();
Mother.gotoAndPlay(1);
}
Mouse.hide();
Pause = false;
Pausemc._visible = false;
Rescued = false;
mensaved = 0;
mod = 250;
Score = 0;
lives = 1;
Asteroids = 20;
fuel = 800;
bonus = 0;
AstSpeed = 1;
enemylevel = 1;
bullet = 1;
stop();
Instance of Symbol 115 MovieClip "Mother" in Frame 32
onClipEvent (load) {
this.gotoAndStop(40);
Left = false;
Right = true;
xspeed = 0;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
if (Left == true) {
xspeed = -2;
} else if (Right == true) {
xspeed = 2;
}
if (_x < 50) {
_x = 50;
Right = true;
Left = false;
}
if (_x > 400) {
_x = 400;
Left = true;
Right = false;
}
}
Instance of Symbol 86 MovieClip "Pad1" in Frame 32
onClipEvent (load) {
Rescued = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Ship) && (Rescued == false)) && (_root.Ship.yspeed < 1.4)) {
stopAllSounds();
_root.thruster._x = 600;
_root.Ship.Landed = true;
_root.Ship.Down = false;
_root.Ship._y = 425;
Rescued = true;
_root.bonus = 100;
_root.man2.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if ((this.hitTest(_root.Ship) && (Rescued == false)) && (_root.Ship.yspeed > 1.4)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
Instance of Symbol 88 MovieClip "Pad2" in Frame 32
onClipEvent (load) {
Rescued = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Ship) && (Rescued == false)) && (_root.Ship.yspeed < 1.4)) {
stopAllSounds();
_root.thruster._x = 600;
_root.Ship.Landed = true;
_root.Ship.Down = false;
_root.Ship._y = 410;
Rescued = true;
_root.bonus = 50;
_root.man1.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if ((this.hitTest(_root.Ship) && (Rescued == false)) && (_root.Ship.yspeed > 1.4)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
Instance of Symbol 90 MovieClip "Pad3" in Frame 32
onClipEvent (load) {
Rescued = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.Ship) && (Rescued == false)) && (_root.Ship.yspeed < 1.4)) {
stopAllSounds();
_root.thruster._x = 600;
_root.Ship.Landed = true;
_root.Ship.Down = false;
_root.Ship._y = 440;
Rescued = true;
_root.bonus = 150;
_root.man3.gotoAndPlay(2);
this.gotoAndPlay(2);
} else if ((this.hitTest(_root.Ship) && (Rescued == false)) && (_root.Ship.yspeed > 1.4)) {
_root.thruster._x = 600;
_root.Ship.dead = true;
_root.Ship.gotoAndStop(2);
}
}
Frame 32
removeMovieClip(Tint);
mst.score = Score;
Frame 41
gotoAndPlay (42);
Frame 42
game = "Destination Earth";
Frame 61
if ((_root.nick eq "") || (_root.nick eq undefined)) {
_root.nick = "anonimo";
}
scoreboard = new LoadVars();
scoreboard.score = _root.Score;
scoreboard.game = "destinationearth";
scoreboard.name = _root.nick;
scoreboard.idgioco = _root.idgioco;
scoreboard.posto = _url.substr(10, 20);
scoreboard.onLoad = function (success) {
};
scoreboard.sendAndLoad("http://www.zupperman.com/giochi/highscoresql10.php", scoreboard, "POST");
e = 1;
while (100 >= e) {
removeMovieClip(["enemyship" + e]);
e++;
}
a = 1;
while (100 >= a) {
removeMovieClip(["ast" + a]);
a++;
}
stop();
_root.gotoAndStop("Intro");
Symbol 19 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Symbol 19 MovieClip Frame 2
gotoAndPlay (1);
Symbol 23 MovieClip [ibproArcadeMC] Frame 1
stop();
Symbol 23 MovieClip [ibproArcadeMC] Frame 2
stop();
Symbol 23 MovieClip [ibproArcadeMC] Frame 3
stop();
Symbol 52 MovieClip Frame 161
_root.play();
stop();
Symbol 82 Button
on (release, keyPress "<Space>") {
_root.gotoAndStop("Game");
}
Symbol 83 MovieClip Frame 150
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 45
_root.resetenemies();
_root.Ship.Landed = false;
_root.Ship.Up = true;
Symbol 86 MovieClip Frame 94
gotoAndStop (1);
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 50
_root.resetenemies();
_root.Ship.Landed = false;
_root.Ship.Up = true;
Symbol 88 MovieClip Frame 96
gotoAndStop (1);
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 38
_root.resetenemies();
_root.Ship.Landed = false;
_root.Ship.Up = true;
Symbol 90 MovieClip Frame 77
gotoAndStop (1);
Symbol 98 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
_root.resetasteroids();
Symbol 115 MovieClip Frame 61
Start = true;
stop();
Symbol 115 MovieClip Frame 62
_root.Rescued = false;
_root.enemylevel = _root.enemylevel + 1;
_root.mod = _root.mod - 5;
if (_root.Asteroids > 25) {
_root.Asteroids = 25;
}
if (_root.mod < 50) {
_root.mod = 50;
}
Symbol 115 MovieClip Frame 130
fuelleft = Math.round(_root.fuel / 10);
_root.Score = _root.Score + (_root.bonus + fuelleft);
_root.Ship.Up = false;
_root.Ship.Down = true;
_root.fuel = 800;
_root.mensaved = _root.mensaved + 1;
_root.bonus = 0;
if (_root.enemylevel > 4) {
_root.Asteroids = _root.Asteroids + 2;
_root.AstSpeed = _root.AstSpeed + 0.2;
_root.enemylevel = 1;
}
gotoAndPlay (1);
Symbol 121 MovieClip Frame 33
if (_root.lives > 0) {
_root.resetlevel();
} else {
_root.gotoAndPlay("GameOver");
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stopAllSounds();
_root.Tint._visible = true;
_root.Tint.swapDepths(100000);
Symbol 154 MovieClip Frame 1
killbonus = 50;
Symbol 154 MovieClip Frame 2
killbonus = 30;
Symbol 154 MovieClip Frame 3
killbonus = 30;
Symbol 154 MovieClip Frame 4
killbonus = 50;
Symbol 154 MovieClip Frame 5
killbonus = 30;
Symbol 154 MovieClip Frame 6
killbonus = 30;
Symbol 154 MovieClip Frame 7
killbonus = 50;
Symbol 154 MovieClip Frame 8
killbonus = 30;
Symbol 154 MovieClip Frame 9
killbonus = 30;
Symbol 154 MovieClip Frame 10
killbonus = 50;
Symbol 154 MovieClip Frame 11
killbonus = 30;
Symbol 154 MovieClip Frame 12
killbonus = 30;
Symbol 154 MovieClip Frame 16
_root.Score = _root.Score + killbonus;
removeMovieClip(this);
Symbol 160 MovieClip Frame 1
gotoAndStop (3);
Symbol 160 MovieClip Frame 4
stop();
Symbol 174 MovieClip Frame 19
stop();