Frame 1
fscommand ("trapallkeys", true);
highqual = true;
_quality = "HIGH";
stop();
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (enterFrame) {
bytes_loaded = _root.getBytesLoaded();
bytes_total = _root.getBytesTotal();
getPercent = _root.getBytesLoaded() / _root.getBytesTotal();
_root.loaderbar._width = getPercent * 120;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded >= bytes_total) {
_root.gotoAndPlay(5);
}
}
Instance of Symbol 6 MovieClip "loaderbar" in Frame 1
onClipEvent (load) {
_xscale = 0;
}
Frame 5
best0 = SharedObject.getLocal("best0");
best1 = SharedObject.getLocal("best1");
best2 = SharedObject.getLocal("best2");
best3 = SharedObject.getLocal("best3");
best4 = SharedObject.getLocal("best4");
best5 = SharedObject.getLocal("best5");
best6 = SharedObject.getLocal("best6");
best7 = SharedObject.getLocal("best7");
best8 = SharedObject.getLocal("best8");
best9 = SharedObject.getLocal("best9");
bestname = new Array();
bestscore = new Array();
i = 0;
while (i < 10) {
bestname[i] = eval ("best" + i).data.name;
bestscore[i] = eval ("best" + i).data.score;
if (bestscore[i] == undefined) {
bestscore[i] = 0;
bestname[i] = "----------";
}
i++;
}
Frame 6
_root.textField = "In 2024 newest technologies and research works helps all humankind complete wars and get rid of all diseases and poverty.\rBut in 2027 new war starts.\rIt is 2057. 30 years from the beggining of alien invasion...\rInvaders force fades away. But it is too early to celebrate victory - unceasing battles against aliens exhaust almost all the Earthlings resources.\rRemains of alien fleet assembles for the deciding battle.\rEarth is ready for this last wave of attack...";
stop();
Instance of Symbol 53 MovieClip in Frame 6
on (press) {
_root.textField.scroll = Math.round(((_root._ymouse - _root.slider.yinit) / _root.slider.ydif) * _root.textField.maxscroll);
}
Instance of Symbol 58 MovieClip "slider" in Frame 6
onClipEvent (load) {
yinit = _y;
ydif = 106;
hold = false;
}
on (press) {
startDrag (this, false, _x, yinit, _x, yinit + ydif);
hold = true;
}
on (release, releaseOutside) {
stopDrag();
hold = false;
}
onClipEvent (enterFrame) {
if (hold) {
_root.textField.scroll = Math.round(((_y - yinit) / ydif) * _root.textField.maxscroll);
} else {
_y = (yinit + (((_root.textField.scroll - 1) * ydif) / (_root.textField.maxscroll - 1)));
}
}
on (rollOver) {
gotoAndPlay (2);
}
on (releaseOutside, rollOut) {
gotoAndPlay (8);
}
Instance of Symbol 63 MovieClip in Frame 6
on (press) {
pressed = true;
}
on (release, releaseOutside) {
pressed = false;
}
onClipEvent (enterFrame) {
if (pressed) {
_root.textfield.scroll = _root.textfield.scroll - 1;
}
}
on (rollOver) {
gotoAndPlay (2);
}
on (releaseOutside, rollOut) {
gotoAndPlay (8);
}
Instance of Symbol 63 MovieClip in Frame 6
on (press) {
pressed = true;
}
on (release, releaseOutside) {
pressed = false;
}
onClipEvent (enterFrame) {
if (pressed) {
_root.textfield.scroll = _root.textfield.scroll + 1;
}
}
on (rollOver) {
gotoAndPlay (2);
}
on (releaseOutside, rollOut) {
gotoAndPlay (8);
}
Instance of Symbol 68 MovieClip in Frame 6
on (release) {
_root.gotoAndPlay(7);
}
on (rollOver) {
gotoAndPlay (2);
}
on (releaseOutside, rollOut) {
gotoAndPlay (8);
}
Instance of Symbol 72 MovieClip in Frame 6
on (release) {
if (_root.highqual) {
_root._quality = "LOW";
_root.highqual = false;
} else {
_root._quality = "HIGH";
_root.highqual = true;
}
}
on (rollOver) {
gotoAndPlay (2);
}
on (releaseOutside, rollOut) {
gotoAndPlay (8);
}
Instance of Symbol 77 MovieClip in Frame 6
on (release) {
_root.score = 0;
_root.gotoAndStop(11);
}
on (rollOver) {
gotoAndPlay (2);
}
on (releaseOutside, rollOut) {
gotoAndPlay (8);
}
Frame 7
maindistance = 0;
energy = 100;
score = 0;
gunheat = 0;
overheat = false;
lefttoend = 10000;
Instance of Symbol 90 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.lefttoend < 1000) {
_visible = true;
_xscale = ((1000 - _root.lefttoend) / 10);
_yscale = ((1000 - _root.lefttoend) / 10);
} else {
_visible = false;
}
}
Instance of Symbol 124 MovieClip "bigmask" in Frame 7
onClipEvent (load) {
this.swapDepths(100000);
}
Frame 8
stop();
Instance of Symbol 130 MovieClip "target" in Frame 8
onClipEvent (load) {
this.swapDepths(99998);
Mouse.hide();
this.startDrag(true, 30, 30, 610, 450);
_root.gun = new Sound(this);
_root.gun.attachSound("gun");
}
onClipEvent (mouseDown) {
if ((_root.genheat < 100) && (!_root.overheat)) {
_root.fired = true;
_root.gun.start(0, 100);
}
}
onClipEvent (mouseUp) {
_root.fired = false;
_root.gun.stop();
}
onClipEvent (enterFrame) {
_root.lefttoendString = _root.lefttoend + " km";
_root.scoreString = "Score:" + _root.score;
_root.lefttoend = _root.lefttoend - 2;
if (_root.lefttoend < 0) {
_root.gotoAndStop(12);
}
_root.maindistance = _root.maindistance + 1;
if (_root.maindistance == 9000) {
_root.maindistance = 0;
}
if (Math.random() < 0.8) {
if ((_root.maindistance / 15) == Math.floor(_root.maindistance / 15)) {
if (Math.random() < 0.8) {
_root.attachMovie("alien", "alien" + _root.maindistance, 9000 - _root.maindistance);
} else {
_root.attachMovie("barrier", "barrier" + _root.maindistance, 9000 - _root.maindistance);
}
}
}
}
Instance of Symbol 149 MovieClip "plane" in Frame 8
onClipEvent (load) {
this.swapDepths(99999);
stop();
}
onClipEvent (enterFrame) {
if (_root.energy <= 0) {
_root.gotoAndPlay(10);
}
xdif = _x - _root._xmouse;
xsp = xdif / 10;
ydif = _y - _root._ymouse;
ysp = ydif / 10;
speed = Math.sqrt((xsp * xsp) + (ysp * ysp));
if (speed > 0) {
_x = (_x - xsp);
_y = (_y - ysp);
}
if (_x > _root._xmouse) {
_rotation = ((-speed) * 1.5);
} else {
_rotation = (speed * 1.5);
}
tang = Math.round(((Math.atan2(ysp, -xsp) / Math.PI) * 180) / 45);
if (tang == -4) {
tang = 4;
}
if (speed < 5) {
gotoAndStop (1);
} else {
gotoAndStop(tang + 5);
}
}
Instance of Symbol 174 MovieClip "stones" in Frame 8
onClipEvent (load) {
stop();
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible) {
_xscale = (_xscale + 6);
_yscale = (_yscale + 6);
}
}
Frame 9
stop();
Frame 10
_root.gun.stop();
stop();
Instance of Symbol 175 MovieClip in Frame 10
onClipEvent (load) {
_x = _root.plane._x;
_y = _root.plane._y;
_root.plane.removeMovieClip();
_root.target.removeMovieClip();
}
Frame 11
Mouse.show();
_quality = "HIGH";
stop();
Instance of Symbol 218 MovieClip in Frame 11
onClipEvent (keyDown) {
if ((_currentframe == 4) && (Key.isDown(32))) {
_root.gotoAndStop(4);
}
if ((_currentframe == 2) && (Key.isDown(13))) {
gotoAndPlay (3);
}
}
Frame 12
_root.gun.stop();
stop();
Instance of Symbol 90 MovieClip in Frame 12
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 221 MovieClip in Frame 12
onClipEvent (load) {
_x = _root.plane._x;
_y = _root.plane._y;
_root.bigmask.removeMovieClip();
_root.plane.removeMovieClip();
_root.target.removeMovieClip();
}
Frame 13
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
stop();
Symbol 32 MovieClip Frame 3
stop();
Symbol 32 MovieClip Frame 15
removeMovieClip(_parent);
stop();
Instance of Symbol 32 MovieClip in Symbol 33 MovieClip [alien] Frame 1
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
hitted = false;
_parent._y = (300 + (Math.random() * 41)) - 20;
_parent._x = (320 + (Math.random() * 41)) - 20;
_parent._xscale = 1;
_parent._yscale = 1;
distance = 100;
diff = 0;
angle = (Math.random() * 21) - 10;
dispx = (Math.random() * 25) - 12;
dispy = (Math.random() * 13) - 4;
}
onClipEvent (enterFrame) {
if (((!hitted) && (_root.fired)) && (_parent.hitTest(_root._xmouse, _root._ymouse, false))) {
hitted = true;
gotoAndPlay (6);
_root.score = _root.score + 5;
}
_parent._xscale = _parent._xscale + diff;
_parent._yscale = _parent._yscale + diff;
_parent._y = _parent._y + (((angle * diff) / 4) + dispy);
_parent._x = _parent._x + (((angle * diff) / 3) + dispx);
_parent._rotation = (dispx * (distance - 100)) / 15;
diff = diff + 0.3;
distance = distance - 3;
if (((!hitted) && (distance < 10)) && (this.hitTest(_root.plane._x, _root.plane._y))) {
gotoAndPlay (6);
hitted = true;
_root.energy = _root.energy - 3;
}
if (((distance < 0) || ((_parent._y + (_parent._height / 2)) < 0)) || ((_parent._y - (_parent._height / 2)) > 480)) {
if (!hitted) {
removeMovieClip(_parent);
}
}
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Instance of Symbol 41 MovieClip in Symbol 42 MovieClip [barrier] Frame 1
onClipEvent (load) {
if (Math.random() < 0.5) {
_parent.part.gotoAndStop(2);
gotoAndStop (2);
}
hitted = false;
_parent._y = 335.3;
_parent._x = 320;
_parent._xscale = 1;
_parent._yscale = 1;
distance = 100;
diff = 0;
angle = (Math.random() * 17) - 8;
}
onClipEvent (enterFrame) {
_parent._xscale = _parent._xscale + diff;
_parent._yscale = _parent._yscale + diff;
_parent._y = _parent._y + diff;
_parent._x = _parent._x + ((angle * diff) / 3);
diff = diff + 0.3;
distance = distance - 3;
if (((!hitted) && (distance < 10)) && (this.hitTest(_root.plane))) {
hitted = true;
_root.stones._x = _root.plane._x;
_root.stones._y = _root.plane._y - 120;
_root.stones._xscale = 40;
_root.stones._yscale = 40;
_root.stones._visible = true;
_root.stones.gotoAndPlay(1);
_root.energy = _root.energy - 7;
}
if (distance < 0) {
removeMovieClip(_parent);
}
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 7
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 7
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 7
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 7
stop();
Symbol 74 MovieClip Frame 79
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 7
stop();
Symbol 82 Button
on (release) {
getURL ("mailto:virtualtoy@nm.ru");
}
Symbol 86 MovieClip Frame 40
stop();
Symbol 89 MovieClip Frame 10
_x = ((Math.random() * 250) - 80);
_y = ((Math.random() * 250) - 160);
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Instance of Symbol 104 MovieClip "guntheatbar" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
}
onClipEvent (enterFrame) {
_yscale = _root.gunheat;
if (_root.overheat) {
_root.gunheat = _root.gunheat - 1;
if (_root.gunheat < 60) {
_root.overheat = false;
}
}
if (_root.fired) {
_root.gunheat = _root.gunheat + 3;
} else if ((_root.gunheat > 0) && (!_root.overheat)) {
_root.gunheat = _root.gunheat - 1;
}
if (_root.gunheat > 100) {
_root.gun.stop();
_root.overheat = true;
_root.fired = false;
}
}
Instance of Symbol 104 MovieClip "energybar" in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
_yscale = _root.energy;
}
Instance of Symbol 112 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.overheat) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 119 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.energy < 30) {
_visible = true;
}
}
Instance of Symbol 128 MovieClip in Symbol 129 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fired) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 174 MovieClip Frame 24
_visible = false;
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 180 MovieClip Frame 100
_root.bigmask.removeMovieClip();
_root.nextFrame();
Symbol 218 MovieClip Frame 1
if ((_root.score < _root.bestscore[9]) || (_root.score == 0)) {
gotoAndStop (4);
}
Symbol 218 MovieClip Frame 2
_root.newbest = "";
Selection.setFocus("_root.newbest");
stop();
Symbol 218 MovieClip Frame 3
i = 0;
while (i < 10) {
if ((_root.score >= _root.bestscore[i]) && (_root.score != 0)) {
j = 9;
while (j > i) {
_root.bestscore[j] = _root.bestscore[j - 1];
_root.bestname[j] = _root.bestname[j - 1];
j--;
}
_root.bestscore[i] = _root.score;
_root.bestname[i] = _root.newbest;
break;
}
i++;
}
i = 0;
while (i < 10) {
eval ("_root.best" + i).data.name = _root.bestname[i];
eval ("_root.best" + i).data.score = _root.bestscore[i];
i++;
}
Symbol 218 MovieClip Frame 4
stop();
Instance of Symbol 68 MovieClip in Symbol 218 MovieClip Frame 4
on (release) {
if (!_root.highqual) {
_root._quality = "LOW";
}
_root.gotoAndPlay(6);
}
on (rollOver) {
gotoAndPlay (2);
}
on (releaseOutside, rollOut) {
gotoAndPlay (8);
}
Symbol 221 MovieClip Frame 180
_root.nextFrame();
Symbol 229 MovieClip Frame 250
stop();
Symbol 231 MovieClip Frame 499
_root.gotoAndStop(11);