Frame 3
stop();
Frame 4
stop();
score = 0;
lv = 1;
time = 30;
x = 0;
y = 0;
xj = 0;
yj = 0;
Frame 5
stop();
Instance of Symbol 33 MovieClip "meteo" in Frame 5
onClipEvent (load) {
function move() {
var i = 0;
while (i < max) {
if (copy[i]._x >= -30) {
copy[i]._x = copy[i]._x - copy[i].xs;
} else {
this.remove(i);
}
hit = this.damage(i);
if (0 < hit) {
copy[i].gotoAndPlay(2);
copy[i].hp = copy[i].hp - hit;
} else {
copy[i].gotoAndPlay(1);
}
if (0 >= copy[i].hp) {
_root.aboon.make(copy[i]._x, copy[i]._y);
this.remove(i);
_root.score = _root.score + (100 * _root.lv);
}
if (copy[i].wp.hitTest(_root.jien.wp)) {
_root.jien.lose();
}
i++;
}
}
function remove(i) {
copy[i]._x = 450;
copy[i]._y = random(180) + 30;
copy[i].xs = random(8) + 2;
copy[i].hp = _root.lv;
}
function damage(n) {
var m = 0;
var i = 0;
while (i < 8) {
if (copy[n].wp.hitTest(_root.shot.copy[i])) {
m = _root.shot.copy[i].pow;
_root.shot.remove(i);
break;
}
i++;
}
return(m);
}
this._x = 0;
this._y = 0;
max = 5;
original._visible = 0;
copy = new Array();
var i = 0;
while (i < max) {
original.duplicateMovieClip("copy" + i, i);
copy[i] = eval ("copy" + i);
this.remove(i);
copy[i]._x = copy[i]._x + (i * 10);
i++;
}
}
onClipEvent (enterFrame) {
this.move();
}
Instance of Symbol 36 MovieClip "aboon" in Frame 5
onClipEvent (load) {
function make(x, y) {
var i = -1;
var a = 0;
while (a < max) {
if (copy[a].at == 0) {
i = a;
break;
}
a++;
}
if (i >= 0) {
copy[i]._x = x;
copy[i]._y = y;
}
}
function move() {
i = 0;
while (i < max) {
if (copy[i].hitTest(_root.back)) {
copy[i]._alpha = copy[i]._alpha - 10;
if (0 >= copy[i]._alpha) {
this.remove(i);
}
} else {
this.remove(i);
}
i++;
}
}
function remove(i) {
copy[i]._alpha = 100;
copy[i]._x = -90;
copy[i]._y = -20;
copy[i].at = 0;
}
this._x = 0;
this._y = 0;
max = 5;
original._visible = 0;
copy = new Array();
i = 0;
while (i < max) {
original.duplicateMovieClip("copy" + i, i);
copy[i] = eval ("copy" + i);
this.remove(i);
i++;
}
}
onClipEvent (enterFrame) {
this.move();
}
Instance of Symbol 39 MovieClip "tena" in Frame 5
onClipEvent (load) {
function move() {
if (this._x < 50) {
this._x++;
} else {
this._y = this._y + (2 * vector);
}
if (32 >= this._y) {
vector = 1;
}
if (this._y >= 208) {
vector = -1;
}
if (this.wp.hitTest(_root.jien.wp)) {
_root.jien.lose();
}
var i = 0;
while (i < 8) {
if (this.wp.hitTest(_root.shot.copy[i])) {
_root.shot.remove(i);
hp--;
this.gotoAndPlay(2);
break;
}
this.gotoAndPlay(1);
i++;
}
if (0 >= hp) {
this.remove();
}
}
function remove() {
_root.x = this._x;
_root.y = this._y;
_root.xj = _root.jien._x;
_root.yj = _root.jien._y;
_root.gotoAndPlay(7);
}
this._x = -50;
this._y = 120;
hp = 10;
vector = 1;
at = 0;
}
onClipEvent (enterFrame) {
if (_root.score >= 5000) {
this.move();
}
if ((at == 0) and (1 < hp)) {
_root.ammo.make(this._x, this._y, 6, 6, 1);
at = 30;
} else {
at--;
}
}
Instance of Symbol 42 MovieClip "ammo" in Frame 5
onClipEvent (load) {
function make(x, y, xs, ys, type) {
var i = -1;
var a = 0;
while (a < max) {
if (copy[a].at == 0) {
i = a;
break;
}
a++;
}
if (i >= 0) {
copy[i]._x = x;
copy[i]._y = y;
copy[i].at = 1;
}
if (type == 1) {
var xx = (_root.jien._x - x);
var yy = (_root.jien._y - y);
var r = Math.atan2(yy, xx);
var s = Math.sin(r);
var c = Math.cos(r);
copy[i].xs = xs * c;
copy[i].ys = ys * s;
} else {
copy[i].xs = xs;
copy[i].ys = ys;
}
}
function move() {
var i = 0;
while (i < max) {
if (copy[i].hitTest(_root.back)) {
copy[i]._x = copy[i]._x + copy[i].xs;
copy[i]._y = copy[i]._y + copy[i].ys;
} else {
this.remove(i);
}
if (copy[i].hitTest(_root.jien)) {
this.remove(i);
_root.jien.lose();
}
i++;
}
}
function remove(i) {
copy[i]._x = -20;
copy[i]._y = -20;
copy[i].at = 0;
}
this._x = 0;
this._y = 0;
max = 3;
original._visible = 0;
copy = new Array();
var i = 0;
while (i < max) {
original.duplicateMovieClip("copy" + i, i);
copy[i] = eval ("copy" + i);
this.remove(i);
i++;
}
}
onClipEvent (enterFrame) {
this.move();
}
Instance of Symbol 45 MovieClip "shot" in Frame 5
onClipEvent (load) {
function make(x, y, xs, ys, p) {
var i = -1;
var a = 0;
while (a < max) {
if (copy[a].pow == 0) {
i = a;
break;
}
a++;
}
if (i >= 0) {
copy[i]._x = x;
copy[i]._y = y;
copy[i].xs = xs;
copy[i].ys = ys;
copy[i].pow = p;
}
}
function ring(x, y, speed) {
var i = 0;
while (i < max) {
if (i == 0) {
xs = speed;
ys = 0;
}
if (i == 1) {
xs = -speed;
ys = 0;
}
if (i == 2) {
xs = 0;
ys = speed;
}
if (i == 3) {
xs = 0;
ys = -speed;
}
if (i == 4) {
xs = (speed * 2) / 3;
ys = (speed * 2) / 3;
}
if (i == 5) {
xs = ((-speed) * 2) / 3;
ys = (speed * 2) / 3;
}
if (i == 6) {
xs = (speed * 2) / 3;
ys = ((-speed) * 2) / 3;
}
if (i == 7) {
xs = ((-speed) * 2) / 3;
ys = ((-speed) * 2) / 3;
}
copy[i]._x = x;
copy[i]._y = y;
copy[i].xs = xs;
copy[i].ys = ys;
copy[i].pow = 3;
i++;
}
}
function move() {
var i = 0;
while (i < max) {
if (copy[i].hitTest(_root.back)) {
copy[i]._x = copy[i]._x + copy[i].xs;
copy[i]._y = copy[i]._y + copy[i].ys;
} else {
this.remove(i);
}
i++;
}
}
function remove(i) {
copy[i]._x = -20;
copy[i]._y = -20;
copy[i].pow = 0;
}
this._x = 0;
this._y = 0;
max = 8;
original._visible = 0;
copy = new Array();
var i = 0;
while (i < max) {
original.duplicateMovieClip("copy" + i, i);
copy[i] = eval ("copy" + i);
this.remove(i);
i++;
}
}
onClipEvent (enterFrame) {
this.move();
}
Instance of Symbol 47 MovieClip "jien" in Frame 5
onClipEvent (load) {
function move(speed) {
xspeed = 0;
yspeed = 0;
if (Key.isDown(39) and Key.isDown(38)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(39) and Key.isDown(40)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(37) and Key.isDown(38)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(37) and Key.isDown(40)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(39)) {
xspeed = xspeed + speed;
}
if (Key.isDown(37)) {
xspeed = xspeed - speed;
}
if (Key.isDown(38)) {
yspeed = yspeed - speed;
}
if (Key.isDown(40)) {
yspeed = yspeed + speed;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
thisbounds = this.getBounds(_root);
backbounds = _root.back.getBounds(_root);
if (thisbounds.xMin < backbounds.xMin) {
this._x = backbounds.xMIn + (this._width / 2);
}
if (backbounds.xMax < thisbounds.xMax) {
this._x = backbounds.xMax - (this._width / 2);
}
if (thisbounds.yMin < backbounds.yMin) {
this._y = backbounds.yMIn + (this._height / 2);
}
if (backbounds.yMax < thisbounds.yMax) {
this._y = backbounds.yMax - (this._height / 2);
}
}
function lose() {
_root.x = this._x;
_root.y = this._y;
_root.nextFrame();
}
time = 0;
}
onClipEvent (enterFrame) {
this.move(15);
if (0 < time) {
time--;
}
if (Key.isDown(88) and (time == 0)) {
_root.shot.ring(this._x, this._y, 15);
time = 24;
}
if (Key.isDown(90) and (time == 0)) {
_root.shot.make(this._x + 24, this._y, 18, 0, 1);
time = 3;
}
}
Instance of Symbol 64 MovieClip in Frame 5
onClipEvent (load) {
function fpscheck() {
countflame++;
nexttime = getTimer();
if ((nexttime - starttime) >= 1000) {
fps = countflame;
starttime = getTimer();
countflame = 0;
}
}
fps = 0;
count = 20;
plv = 1;
starttime = getTimer();
countflame = 0;
}
onClipEvent (enterFrame) {
this.fpscheck();
if (_root._currentframe == 5) {
_root.lv = Math.floor(_root.score / 5000) + 1;
if (_root.lv != plv) {
_root.time = _root.time + 15;
this.exceeded.gotoAndPlay(1);
plv = _root.lv;
}
if (count == 0) {
_root.time--;
count = 20;
} else {
count--;
}
if (0 >= _root.time) {
this.exceeded.gotoAndPlay(47);
_root.jien.lose();
}
}
if (_root._currentframe == 7) {
if (0 < _root.time) {
_root.time--;
_root.score = _root.score + 200;
}
}
}
Frame 6
stop();
Instance of Symbol 69 MovieClip in Frame 6
onClipEvent (load) {
this._x = _root.x;
this._y = _root.y;
}
Frame 7
stop();
Instance of Symbol 72 MovieClip in Frame 7
onClipEvent (load) {
function move(speed) {
xspeed = 0;
yspeed = 0;
if (Key.isDown(39) and Key.isDown(38)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(39) and Key.isDown(40)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(37) and Key.isDown(38)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(37) and Key.isDown(40)) {
speed = (speed * 2) / 3;
}
if (Key.isDown(39)) {
xspeed = xspeed + speed;
}
if (Key.isDown(37)) {
xspeed = xspeed - speed;
}
if (Key.isDown(38)) {
yspeed = yspeed - speed;
}
if (Key.isDown(40)) {
yspeed = yspeed + speed;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
thisbounds = this.getBounds(_root);
backbounds = _root.back.getBounds(_root);
if (thisbounds.xMin < backbounds.xMin) {
this._x = backbounds.xMIn + (this._width / 2);
}
if (backbounds.xMax < thisbounds.xMax) {
this._x = backbounds.xMax - (this._width / 2);
}
if (thisbounds.yMin < backbounds.yMin) {
this._y = backbounds.yMIn + (this._height / 2);
}
if (backbounds.yMax < thisbounds.yMax) {
this._y = backbounds.yMax - (this._height / 2);
}
}
this._x = _root.xj;
this._y = _root.yj;
}
onClipEvent (enterFrame) {
this.move(15);
}
Instance of Symbol 78 MovieClip in Frame 7
onClipEvent (enterFrame) {
i = 1;
if (_root.score >= 20000) {
i = 2;
}
if (_root.score >= 40000) {
i = 3;
}
if (_root.score >= 60000) {
i = 4;
}
this.gotoAndStop(i);
}
Symbol 10 MovieClip Frame 1
totalSize = _root.getBytesTotal();
loadedSize = _root.getBytesLoaded();
if (loadedSize >= totalSize) {
_root.play();
} else {
parcent = (loadedSize / totalSize) * 100;
parcent = Math.round(parcent);
totalSize = Math.round(totalSize);
loadedSize = Math.round(loadedSize);
progressBar._xscale = parcent;
_root.stop();
}
Symbol 10 MovieClip Frame 3
gotoAndPlay (1);
Symbol 19 Button
on (release) {
nextFrame();
}
Instance of Symbol 21 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (-200 >= this._x) {
this._x = 400;
}
}
Instance of Symbol 21 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (-200 >= this._x) {
this._x = 400;
}
}
Instance of Symbol 21 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (-200 >= this._x) {
this._x = 400;
}
}
Instance of Symbol 22 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 3;
if (-300 >= this._x) {
this._x = 600;
}
}
Instance of Symbol 22 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 3;
if (-300 >= this._x) {
this._x = 600;
}
}
Instance of Symbol 22 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 3;
if (-300 >= this._x) {
this._x = 600;
}
}
Instance of Symbol 23 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (-400 >= this._x) {
this._x = 400;
}
}
Instance of Symbol 23 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 5;
if (-400 >= this._x) {
this._x = 400;
}
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 57 Button
on (release) {
_root.gotoAndPlay(4);
}
Symbol 63 MovieClip Frame 46
stop();
Symbol 63 MovieClip Frame 47
stop();
Instance of Symbol 63 MovieClip "exceeded" in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (46);
}
Symbol 69 MovieClip Frame 22
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 4
stop();