Frame 1
id = 0;
leftopt = 37;
rightopt = 39;
upopt = 38;
downopt = 40;
shtopt = 88;
bbopt = 67;
ctrl = 1;
shoot = 1;
bomb = 1;
pau = 1;
pause = 1;
score = 0;
bbno = 1;
levelno = 1;
gvc = 1;
gls = 0;
hms = 0;
shield = 0;
collected = 0;
activ = 0;
lure = 0;
var optsave = SharedObject.getLocal("ChristmasATTACK");
dif = optsave.data.dif;
qual = optsave.data.qual;
vol = optsave.data.vol;
username = optsave.data.username;
_quality = "BEST";
qual2 = "BEST";
if ((((dif == undefined) || (qual == undefined)) || (vol == undefined)) || (username == undefined)) {
dif = 1;
qual = "AUTO";
vol = 100;
username = "< ENTER NAME >";
}
bspd = (dif * 2) + 5;
svol = new Sound();
svol.setVolume(vol);
if (dif == 0.5) {
credit = 5;
} else {
credit = 3;
}
if (qual == "AUTO") {
_quality = "HIGH";
} else {
_quality = qual;
}
_global.friction = 1;
_global.mass = 1;
fall2 = false;
fall3 = false;
fall4 = false;
fall5 = false;
fall6 = false;
fall7 = false;
fall8 = false;
fall9 = false;
fall10 = false;
fall11 = false;
fall12 = false;
fall13 = false;
fall14 = false;
fall15 = false;
fall16 = false;
fall17 = false;
fall18 = false;
fall19 = false;
fall20 = false;
fall21 = false;
fall22 = false;
fall23 = false;
fall24 = false;
fall25 = false;
fall26 = false;
fall27 = false;
fall28 = false;
fall29 = false;
fall30 = false;
fall31 = false;
fall32 = false;
fall33 = false;
fall34 = false;
fall35 = false;
fall36 = false;
stop();
Frame 2
prevFrame();
Frame 3
nextFrame();
Frame 4
stop();
Frame 5
prevFrame();
Frame 6
nextFrame();
Instance of Symbol 49 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall33 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 50 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall34 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 51 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall35 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 52 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall36 == true) {
speed = speed + 1;
_y = (_y + speed);
}
if (_y > 500) {
delete fall2;
delete fall3;
delete fall4;
delete fall5;
delete fall6;
delete fall7;
delete fall8;
delete fall9;
delete fall10;
delete fall11;
delete fall12;
delete fall13;
delete fall14;
delete fall15;
delete fall16;
delete fall17;
delete fall18;
delete fall19;
delete fall20;
delete fall21;
delete fall22;
delete fall23;
delete fall24;
delete fall25;
delete fall26;
delete fall27;
delete fall28;
delete fall29;
delete fall30;
delete fall31;
delete fall32;
delete fall33;
delete fall34;
delete fall35;
delete fall36;
_root.gotoAndStop("preanim");
}
}
Instance of Symbol 53 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall13 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 54 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall14 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 55 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall15 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 56 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall16 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 57 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall29 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 58 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall30 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 59 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall31 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 60 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall32 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 61 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall9 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 62 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall10 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 63 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall11 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 64 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall12 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 65 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall17 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 66 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall18 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 67 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall19 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 68 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall20 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 69 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall25 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 70 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall26 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 71 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall27 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 72 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall28 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 73 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall5 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 74 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall6 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 75 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall7 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 76 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall8 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 77 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall21 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 78 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall22 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 79 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall23 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 80 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall24 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 81 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
speed++;
_y = (_y + speed);
}
Instance of Symbol 82 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall2 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 83 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall3 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Instance of Symbol 84 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
}
onClipEvent (enterFrame) {
if (_root.fall4 == true) {
speed = speed + 1;
_y = (_y + speed);
}
}
Frame 7
_quality = "LOW";
stop();
Frame 8
prevFrame();
Frame 9
nextFrame();
Frame 10
_quality = "BEST";
stop();
Frame 11
prevFrame();
Frame 12
nextFrame();
Frame 13
stopAllSounds();
_quality = "BEST";
stop();
Frame 14
prevFrame();
Frame 15
nextFrame();
Frame 16
stop();
Frame 17
prevFrame();
Frame 18
nextFrame();
Instance of Symbol 348 MovieClip in Frame 18
on (release) {
if (_root.vol < 200) {
_root.vol = _root.vol + 50;
} else {
_root.vol = 0;
}
}
Instance of Symbol 353 MovieClip in Frame 18
on (release) {
if (_root.qual == "LOW") {
_root.qual = "MEDIUM";
} else if (_root.qual == "MEDIUM") {
_root.qual = "HIGH";
} else if (_root.qual == "HIGH") {
_root.qual = "AUTO";
} else {
_root.qual = "LOW";
}
}
Instance of Symbol 358 MovieClip in Frame 18
on (release) {
if (_root.dif == 0.5) {
_root.dif = 1;
} else if (_root.dif == 2) {
_root.dif = 0.5;
} else {
_root.dif = 2;
}
}
Frame 19
stop();
Frame 20
prevFrame();
Frame 21
nextFrame();
Frame 22
stop();
Frame 23
prevFrame();
Frame 24
nextFrame();
Frame 26
prevFrame();
Frame 27
nextFrame();
Instance of Symbol 383 MovieClip "h1" in Frame 27
onClipEvent (load) {
hid = 1;
}
Instance of Symbol 383 MovieClip "h2" in Frame 27
onClipEvent (load) {
hid = 2;
}
Instance of Symbol 383 MovieClip "h3" in Frame 27
onClipEvent (load) {
hid = 3;
}
Instance of Symbol 383 MovieClip "h4" in Frame 27
onClipEvent (load) {
hid = 4;
}
Instance of Symbol 383 MovieClip "h5" in Frame 27
onClipEvent (load) {
hid = 5;
}
Instance of Symbol 383 MovieClip "h6" in Frame 27
onClipEvent (load) {
hid = 6;
}
Instance of Symbol 383 MovieClip "h7" in Frame 27
onClipEvent (load) {
hid = 7;
}
Instance of Symbol 383 MovieClip "h8" in Frame 27
onClipEvent (load) {
hid = 8;
}
Instance of Symbol 383 MovieClip "h9" in Frame 27
onClipEvent (load) {
hid = 9;
}
Instance of Symbol 383 MovieClip "h10" in Frame 27
onClipEvent (load) {
hid = 10;
}
Instance of Symbol 383 MovieClip "h11" in Frame 27
onClipEvent (load) {
hid = 11;
}
Instance of Symbol 383 MovieClip "h12" in Frame 27
onClipEvent (load) {
hid = 12;
}
Instance of Symbol 383 MovieClip "h13" in Frame 27
onClipEvent (load) {
hid = 13;
}
Instance of Symbol 383 MovieClip "h14" in Frame 27
onClipEvent (load) {
hid = 14;
}
Instance of Symbol 383 MovieClip "h15" in Frame 27
onClipEvent (load) {
hid = 15;
}
Instance of Symbol 383 MovieClip "h16" in Frame 27
onClipEvent (load) {
hid = 16;
}
Instance of Symbol 383 MovieClip "h17" in Frame 27
onClipEvent (load) {
hid = 17;
}
Instance of Symbol 383 MovieClip "h18" in Frame 27
onClipEvent (load) {
hid = 18;
}
Instance of Symbol 418 MovieClip "plane" in Frame 27
onClipEvent (load) {
_x = 240;
_y = 280;
if (_root.dif == 0.5) {
vel = 9;
} else if (_root.dif == 2) {
vel = 5;
} else {
vel = 7;
}
speed = 0;
}
onClipEvent (enterFrame) {
if ((_root.pause == 0) && (_root.ctrl == 1)) {
speed = speed * 0.8;
if (Key.isDown(_root.leftopt)) {
speed = -vel;
}
if (Key.isDown(_root.rightopt)) {
speed = vel;
}
if (Key.isDown(_root.upopt)) {
_y = (_y - vel);
}
if (Key.isDown(_root.downopt)) {
_y = (_y + vel);
}
_x = (_x + speed);
}
if (_x < 0) {
_x = 0;
}
if (_x > 480) {
_x = 480;
}
if (_y < 0) {
_y = 0;
}
if (_y > 360) {
_y = 360;
}
}
Frame 28
stop();
Frame 29
prevFrame();
Frame 30
nextFrame();
Frame 31
stop();
Frame 32
prevFrame();
Symbol 22 MovieClip Frame 1
_root.dom = "/www.armorga";
stop();
Symbol 22 MovieClip Frame 82
stop();
Symbol 25 MovieClip Frame 1
ver = getVersion();
ver2 = ver.split(" ");
version = ver2[1].split(",");
if (version[0] >= 8) {
stop();
} else {
gotoAndStop (2);
}
Symbol 30 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop(Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * _totalframes));
};
stop();
Symbol 30 MovieClip Frame 100
stop();
_root.gotoAndStop("cut");
Symbol 47 MovieClip Frame 54
stop();
_root.message.play();
_root.gotoAndStop("fall");
Symbol 85 MovieClip Frame 1
onEnterFrame = function () {
_root.fall1 = true;
};
Symbol 85 MovieClip Frame 3
onEnterFrame = function () {
_root.fall2 = true;
};
Symbol 85 MovieClip Frame 5
onEnterFrame = function () {
_root.fall3 = true;
};
Symbol 85 MovieClip Frame 7
onEnterFrame = function () {
_root.fall4 = true;
};
Symbol 85 MovieClip Frame 9
onEnterFrame = function () {
_root.fall5 = true;
};
Symbol 85 MovieClip Frame 11
onEnterFrame = function () {
_root.fall6 = true;
};
Symbol 85 MovieClip Frame 13
onEnterFrame = function () {
_root.fall7 = true;
};
Symbol 85 MovieClip Frame 15
onEnterFrame = function () {
_root.fall8 = true;
};
Symbol 85 MovieClip Frame 17
onEnterFrame = function () {
_root.fall9 = true;
};
Symbol 85 MovieClip Frame 19
onEnterFrame = function () {
_root.fall10 = true;
};
Symbol 85 MovieClip Frame 21
onEnterFrame = function () {
_root.fall11 = true;
};
Symbol 85 MovieClip Frame 23
onEnterFrame = function () {
_root.fall12 = true;
};
Symbol 85 MovieClip Frame 25
onEnterFrame = function () {
_root.fall13 = true;
};
Symbol 85 MovieClip Frame 27
onEnterFrame = function () {
_root.fall14 = true;
};
Symbol 85 MovieClip Frame 29
onEnterFrame = function () {
_root.fall15 = true;
};
Symbol 85 MovieClip Frame 31
onEnterFrame = function () {
_root.fall16 = true;
};
Symbol 85 MovieClip Frame 33
onEnterFrame = function () {
_root.fall17 = true;
};
Symbol 85 MovieClip Frame 35
onEnterFrame = function () {
_root.fall18 = true;
};
Symbol 85 MovieClip Frame 37
onEnterFrame = function () {
_root.fall19 = true;
};
Symbol 85 MovieClip Frame 39
onEnterFrame = function () {
_root.fall20 = true;
};
Symbol 85 MovieClip Frame 41
onEnterFrame = function () {
_root.fall21 = true;
};
Symbol 85 MovieClip Frame 43
onEnterFrame = function () {
_root.fall22 = true;
};
Symbol 85 MovieClip Frame 45
onEnterFrame = function () {
_root.fall23 = true;
};
Symbol 85 MovieClip Frame 47
onEnterFrame = function () {
_root.fall24 = true;
};
Symbol 85 MovieClip Frame 49
onEnterFrame = function () {
_root.fall25 = true;
};
Symbol 85 MovieClip Frame 51
onEnterFrame = function () {
_root.fall26 = true;
};
Symbol 85 MovieClip Frame 53
onEnterFrame = function () {
_root.fall27 = true;
};
Symbol 85 MovieClip Frame 55
onEnterFrame = function () {
_root.fall28 = true;
};
Symbol 85 MovieClip Frame 57
onEnterFrame = function () {
_root.fall29 = true;
};
Symbol 85 MovieClip Frame 59
onEnterFrame = function () {
_root.fall30 = true;
};
Symbol 85 MovieClip Frame 61
onEnterFrame = function () {
_root.fall31 = true;
};
Symbol 85 MovieClip Frame 63
onEnterFrame = function () {
_root.fall32 = true;
};
Symbol 85 MovieClip Frame 65
onEnterFrame = function () {
_root.fall33 = true;
};
Symbol 85 MovieClip Frame 67
onEnterFrame = function () {
_root.fall34 = true;
};
Symbol 85 MovieClip Frame 69
onEnterFrame = function () {
_root.fall35 = true;
};
Symbol 85 MovieClip Frame 71
onEnterFrame = function () {
_root.fall36 = true;
};
stop();
Symbol 91 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
stop();
Symbol 94 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 96 MovieClip Frame 1
rota = Math.random() * 360;
_x = ((Math.random() * 90) - 45);
_y = ((Math.random() * 90) - 45);
size = (Math.random() * 2) + 2;
_width = size;
_height = size;
_alpha = 100;
ispeed = Math.random();
speed = (Math.random() * 2) + 1;
this.onEnterFrame = function () {
if (_root.pause == 0) {
_x = (_x + (Math.sin((rota * Math.PI) / 180) * speed));
_y = (_y + (Math.cos((rota * Math.PI) / 180) * speed));
_width = (_width + ispeed);
_height = (_height + ispeed);
_alpha = (_alpha - 10);
}
};
Symbol 97 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
gotoAndStop(random(10) + 2);
Symbol 97 MovieClip Frame 12
gotoAndStop (2);
Symbol 98 MovieClip Frame 1
this.onEnterFrame = function () {
_xscale = (Math.ceil(_root.gls / 6) * 100);
_yscale = (Math.ceil(_root.gls / 6) * 100);
};
Instance of Symbol 94 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
_xscale = ((_root.gls * 30) + 80);
_yscale = ((_root.gls * 30) + 80);
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_rotation = (_rotation - 6);
_xscale = 100;
_yscale = 100;
}
}
Symbol 99 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if ((_root.pause == 0) && (!(_currentframe === 1))) {
if (_root.plane.las.hitTest(_parent.en)) {
_x = ((((_root.plane._y - _parent._parent._parent.yp) * Math.tan((_root.plane.las._rotation * Math.PI) / 180)) * 0.75) + (_root.plane._x - _parent._parent._parent.xp));
} else {
gotoAndStop (1);
}
}
stop();
};
Symbol 100 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
_x = ((Math.random() * 20) - 10);
_y = ((Math.random() * 20) - 10);
_xscale = (((Math.random() / 2) + 0.75) * 100);
_yscale = _xscale;
play();
} else {
stop();
}
};
gotoAndStop (2);
Symbol 104 MovieClip Frame 5
gotoAndStop (2);
Symbol 106 MovieClip Frame 1
this.onEnterFrame = function () {
_parent._parent._parent.rota = ((Math.atan2(_root.plane._y - _parent._parent._parent.yp, _root.plane._x - _parent._parent._parent.xp) * 180) / Math.PI) + 90;
if (_root.pause == 0) {
if (_root.gvc > 0) {
if (hitTest(_root.v1.vc)) {
_root.v1.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - (_root.v1.dm * 2);
_root.score = _root.score + (_root.v1.dm * 2);
}
if (hitTest(_root.v8.vc)) {
_root.v8.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - (_root.v8.dm * 2);
_root.score = _root.score + (_root.v8.dm * 2);
}
if (_root.gvc > 1) {
if (hitTest(_root.v2.vc)) {
_root.v2.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - _root.v2.dm;
_root.score = _root.score + _root.v2.dm;
}
if (hitTest(_root.v3.vc)) {
_root.v3.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - _root.v3.dm;
_root.score = _root.score + _root.v3.dm;
}
if (hitTest(_root.v9.vc)) {
_root.v9.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - _root.v9.dm;
_root.score = _root.score + _root.v9.dm;
}
if (hitTest(_root.v10.vc)) {
_root.v10.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - _root.v10.dm;
_root.score = _root.score + _root.v10.dm;
}
if (_root.gvc > 2) {
if (hitTest(_root.v4.vc)) {
_root.v4.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - (_root.v4.dm * 0.75);
_root.score = _root.score + _root.v4.dm;
}
if (hitTest(_root.v5.vc)) {
_root.v5.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - (_root.v5.dm * 0.75);
_root.score = _root.score + _root.v5.dm;
}
if (hitTest(_root.v11.vc)) {
_root.v11.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - (_root.v11.dm * 0.75);
_root.score = _root.score + _root.v11.dm;
}
if (hitTest(_root.v12.vc)) {
_root.v12.vc.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - (_root.v12.dm * 0.75);
_root.score = _root.score + _root.v12.dm;
}
}
}
} else if (_root.gls > 0) {
if (hitTest(_root.plane.las)) {
_parent.laserdamage.gotoAndPlay(2);
_parent.play();
_parent._parent.hp = _parent._parent.hp - ((((1000 - ((_root.plane._y - _parent._parent._parent.yp) * 2)) / 1000) * _root.plane.las.dm) * 1.25);
if (!(_parent._parent._parent.yp === undefined)) {
_root.score = _root.score + ((((1000 - ((_root.plane._y - _parent._parent._parent.yp) * 2)) / 1000) * _root.plane.las.dm) * 1.25);
}
}
} else if (_root.hms > 0) {
if (((((((((((((((((hitTest(_root.h1.hm) || (hitTest(_root.h2.hm))) || (hitTest(_root.h3.hm))) || (hitTest(_root.h4.hm))) || (hitTest(_root.h5.hm))) || (hitTest(_root.h6.hm))) || (hitTest(_root.h7.hm))) || (hitTest(_root.h8.hm))) || (hitTest(_root.h9.hm))) || (hitTest(_root.h10.hm))) || (hitTest(_root.h11.hm))) || (hitTest(_root.h12.hm))) || (hitTest(_root.h13.hm))) || (hitTest(_root.h14.hm))) || (hitTest(_root.h15.hm))) || (hitTest(_root.h16.hm))) || (hitTest(_root.h17.hm))) || (hitTest(_root.h18.hm))) {
_parent.stardamage._alpha = 100;
_parent.stardamage.sfx.nextFrame();
_parent.play();
_parent._parent.hp = _parent._parent.hp - _root.h1.dm;
_root.score = _root.score + (_root.h1.dm / 2);
}
}
if (hitTest(_root.b1)) {
_parent._parent.hp = _parent._parent.hp - _root.b1.dm;
_parent.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.b2)) {
_parent._parent.hp = _parent._parent.hp - _root.b2.dm;
_parent.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.b3)) {
_parent._parent.hp = _parent._parent.hp - _root.b3.dm;
_parent.play();
_root.score = _root.score + 10;
}
if (_root.shield == 0) {
if (hitTest(_root.plane.ha)) {
_root.plane.dd = 1;
_parent.play();
_parent._parent.hp = _parent._parent.hp - 100;
}
}
if (_parent.stardamage._alpha == 100) {
_parent.play();
_parent._parent.hp = _parent._parent.hp - ((Math.random() * _root.hms) / 2);
_root.score = _root.score + ((Math.random() * 0.5) * _root.hms);
}
if (_root.activ == 1) {
_parent._parent.hp = _parent._parent.hp - 100;
_root.score = _root.score + (random(101) + 100);
}
}
};
Symbol 107 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
_parent.play();
} else {
_parent.stop();
}
};
Symbol 108 MovieClip Frame 1
stardamage._alpha = 0;
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 5
gotoAndStop (2);
Symbol 109 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.hp <= 0) {
_parent.gotoAndStop(2);
}
};
Symbol 113 MovieClip Frame 1
hp = (((_root.dif * _root.dif) / 2) + 0.5) * 40;
hhp = hp / 2;
stop();
Symbol 113 MovieClip Frame 2
_parent.gone = 1;
if (_parent.ina == 1) {
_parent.ina = 0;
_root.lv1.planeArray[_parent.adt] = null;
_root.lv1.upd();
}
itemtype = Math.floor(Math.random() * 4);
_root.namm = "stScore.php";
_root.id++;
io = new Object();
io._x = _parent.xp;
io._y = _parent.yp;
if (itemtype < 2) {
_root.itemc.attachMovie("teddy", "teddy" + _root.id, _root.id, io);
} else if (itemtype == 2) {
_root.itemc.attachMovie("ball", "ball" + _root.id, _root.id, io);
}
en.gotoAndStop(1);
_root.score = _root.score + (hhp * 32);
Symbol 113 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 114 MovieClip [swarm1] Frame 1
adt = _root.lv1.planeArray.length;
_root.lv1.planeArray[adt] = this;
ina = 1;
_x = ((Math.random() * 440) + 20);
_y = -25;
gone = 0;
sc = 0;
this.onEnterFrame = function () {
if (gone == 0) {
if (_root.pause == 0) {
sc++;
if (sc == 5) {
en.en.gotoAndStop(2);
}
if (_y < 385) {
_y = (_y + ((Math.random() * 3) + 2));
} else {
gotoAndStop (2);
}
}
xp = _x + en._x;
yp = _y + en._y;
} else {
stop();
}
};
stop();
Symbol 114 MovieClip [swarm1] Frame 2
if (ina == 1) {
ina = 0;
_root.lv1.planeArray[adt] = null;
_root.lv1.upd();
}
_root.namm = "stScore.php";
this.removeMovieClip();
Symbol 117 MovieClip Frame 1
stardamage._alpha = 0;
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 5
gotoAndStop (2);
Symbol 118 MovieClip Frame 1
hp = (((_root.dif * _root.dif) / 2) + 0.5) * 240;
hhp = hp / 2;
stop();
Symbol 118 MovieClip Frame 2
_parent.gone = 1;
if (_parent.ina == 1) {
_parent.ina = 0;
_root.lv1.planeArray[_parent.adt] = null;
_root.lv1.upd();
}
en.gotoAndStop(1);
_root.id++;
io = new Object();
io._x = _parent.xp;
io._y = _parent.yp;
_root.itemc.attachMovie("upgrade", "upgrade" + _root.id, _root.id, io);
_root.score = _root.score + (hhp * 32);
Symbol 118 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 119 MovieClip [supply] Frame 1
adt = _root.lv1.planeArray.length;
_root.lv1.planeArray[adt] = this;
ina = 1;
_x = ((Math.random() * 360) + 60);
_y = -34;
gone = 0;
this.onEnterFrame = function () {
if (gone == 0) {
if (_root.pause == 0) {
play();
} else {
stop();
}
xp = _x + en._x;
yp = _y + en._y;
} else {
stop();
}
};
stop();
Symbol 119 MovieClip [supply] Frame 16
en.en.gotoAndStop(2);
Symbol 119 MovieClip [supply] Frame 201
if (ina == 1) {
ina = 0;
_root.lv1.planeArray[adt] = null;
_root.lv1.upd();
}
this.removeMovieClip();
Symbol 125 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 127 MovieClip Frame 1
stardamage._alpha = 0;
stop();
Symbol 127 MovieClip Frame 2
stop();
Symbol 127 MovieClip Frame 5
gotoAndStop (2);
Symbol 128 MovieClip Frame 1
hp = (((_root.dif * _root.dif) / 2) + 0.5) * 60;
hhp = hp / 2;
stop();
Symbol 128 MovieClip Frame 2
_parent.gone = 1;
if (_parent.ina == 1) {
_parent.ina = 0;
_root.lv1.planeArray[_parent.adt] = null;
_root.lv1.upd();
}
itemtype = Math.floor(Math.random() * 4);
_root.id++;
io = new Object();
io._x = _parent.xp;
io._y = _parent.yp;
if (itemtype < 2) {
_root.itemc.attachMovie("candy", "candy" + _root.id, _root.id, io);
} else if (itemtype == 2) {
_root.itemc.attachMovie("teddy", "teddy" + _root.id, _root.id, io);
} else {
_root.itemc.attachMovie("bomb", "bomb" + _root.id, _root.id, io);
}
en.gotoAndStop(1);
_root.score = _root.score + (hhp * 32);
Symbol 128 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 129 MovieClip [swarm2] Frame 1
adt = _root.lv1.planeArray.length;
_root.lv1.planeArray[adt] = this;
ina = 1;
_x = ((Math.random() * 440) + 20);
_y = -26;
gone = 0;
sc = 0;
this.onEnterFrame = function () {
if (gone == 0) {
if (_root.pause == 0) {
sc++;
if (sc == 5) {
en.en.gotoAndStop(2);
}
if (_y < 386) {
_y = (_y + ((Math.random() * 4) + 4));
} else {
gotoAndStop (2);
}
}
xp = _x + en._x;
yp = _y + en._y;
} else {
stop();
}
};
stop();
Instance of Symbol 128 MovieClip "en" in Symbol 129 MovieClip [swarm2] Frame 1
onClipEvent (enterFrame) {
if (_root.pause == 0) {
targetVectorX = 320 - _parent._x;
targetVectorY = 0;
hypVector = Math.sqrt((targetVectorX * targetVectorX) + (targetVectorY * targetVectorY));
targetThetaX = Math.asin(targetVectorX / hypVector) / (Math.PI/180);
targetThetaY = Math.acos(targetVectorY / hypVector) / (Math.PI/180);
if (targetVectorY < 0) {
targetTheta = 180 - targetThetaX;
} else {
targetTheta = targetThetaX;
}
if ((Math.abs(targetTheta - rota) < 10) || (Math.abs(targetTheta - rota) > 350)) {
rota = targetTheta;
turning = 0;
}
if (rota < targetTheta) {
if (turning < turnSpeed) {
turning++;
}
} else if (rota > targetTheta) {
if (turning > (-turnSpeed)) {
turning--;
}
}
rota = rota + turning;
xSpeed = xSpeed + (accel * Math.sin((rota * Math.PI) / 180));
xSpeed = xSpeed / spdx;
_parent._x = _parent._x + xSpeed;
}
}
Symbol 129 MovieClip [swarm2] Frame 2
if (ina == 1) {
ina = 0;
_root.lv1.planeArray[adt] = null;
_root.lv1.upd();
}
this.removeMovieClip();
Symbol 131 MovieClip [hity] Frame 1
_xscale = (_xscale * (1.25 - (Math.random() / 2)));
_yscale = (_yscale * (1.25 - (Math.random() / 2)));
_alpha = (60 + (Math.random() * 40));
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
stop();
Symbol 131 MovieClip [hity] Frame 11
this.removeMovieClip();
Symbol 143 MovieClip [upgrade] Frame 1
sc = 0;
rota = _rotation;
accel = random(4) + 6;
spdx = random(2) + 6;
spdy = random(2) + 6;
turnSpeed = random(3) + 5;
turning = 0;
xSpeed = 0;
ySpeed = 0;
this.onEnterFrame = function () {
if (_root.pause == 0) {
sc++;
if (sc >= 960) {
xSpeed = xSpeed + (accel * Math.sin((rota * Math.PI) / 180));
ySpeed = ySpeed + (accel * Math.cos((rota * Math.PI) / 180));
xSpeed = xSpeed / spdx;
ySpeed = ySpeed / spdy;
_x = (_x + xSpeed);
_y = (_y - ySpeed);
if ((((_x < -18) || (_y < -18)) || (_x > 498)) || (_parent._y > 378)) {
this.removeMovieClip();
}
} else {
targetVectorX = 240 - _x;
targetVectorY = _y - 100;
hypVector = Math.sqrt((targetVectorX * targetVectorX) + (targetVectorY * targetVectorY));
targetThetaX = Math.asin(targetVectorX / hypVector) / (Math.PI/180);
targetThetaY = Math.acos(targetVectorY / hypVector) / (Math.PI/180);
if (targetVectorY < 0) {
targetTheta = 180 - targetThetaX;
} else {
targetTheta = targetThetaX;
}
if ((Math.abs(targetTheta - rota) < 10) || (Math.abs(targetTheta - rota) > 350)) {
rota = targetTheta;
turning = 0;
}
if (rota < targetTheta) {
if (turning < turnSpeed) {
turning++;
}
} else if (rota > targetTheta) {
if (turning > (-turnSpeed)) {
turning--;
}
}
rota = rota + turning;
xSpeed = xSpeed + (accel * Math.sin((rota * Math.PI) / 180));
ySpeed = ySpeed + (accel * Math.cos((rota * Math.PI) / 180));
xSpeed = xSpeed / spdx;
ySpeed = ySpeed / spdy;
_x = (_x + xSpeed);
_y = (_y - ySpeed);
}
if (hitTest(_root.plane.ha2)) {
_root.plane.gotoAndStop(1);
_root.plane.shld.sc = _root.plane.shld.sc - 50;
if (_root.gls > 0) {
if (_root.gls < 3) {
_root.gls++;
gotoAndStop (30);
} else if (_root.dif == 0.5) {
gotoAndStop (31);
} else if (_root.dif == 2) {
gotoAndStop (59);
} else {
nextFrame();
}
} else if (_root.hms > 0) {
if (_root.hms < 3) {
_root.hms++;
gotoAndStop (30);
} else if (_root.dif == 0.5) {
gotoAndStop (31);
} else if (_root.dif == 2) {
gotoAndStop (59);
} else {
nextFrame();
}
} else if (_root.gvc < 3) {
_root.gvc++;
gotoAndStop (30);
} else if (_root.dif == 0.5) {
gotoAndStop (31);
} else if (_root.dif == 2) {
gotoAndStop (59);
} else {
nextFrame();
}
}
}
};
stop();
Symbol 143 MovieClip [upgrade] Frame 2
_root.score = _root.score + 5000;
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 143 MovieClip [upgrade] Frame 29
this.removeMovieClip();
Symbol 143 MovieClip [upgrade] Frame 30
_root.score = _root.score + (_root.dif * 500);
this.removeMovieClip();
Symbol 143 MovieClip [upgrade] Frame 31
_root.score = _root.score + 1000;
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 143 MovieClip [upgrade] Frame 58
this.removeMovieClip();
Symbol 143 MovieClip [upgrade] Frame 59
_root.score = _root.score + 25000;
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 143 MovieClip [upgrade] Frame 86
this.removeMovieClip();
Symbol 146 MovieClip [teddy] Frame 1
_rotation = (Math.random() * 360);
dif = 180 - _rotation;
vel = (Math.random() * 3) + 1;
spd = 1;
dir = (random(2) * 2) - 1;
velocity = 3;
turning_speed = 0.174532925199433;
xspeed = 0;
yspeed = 0;
if (_root.lure == 0) {
lure = 0;
} else {
lure = 1;
}
this.onEnterFrame = function () {
if (_root.pause == 0) {
if (lure == 0) {
spd = spd + 0.01;
dif = dif / spd;
_rotation = (180 - dif);
if (_root.activ == 0) {
vel = vel + 0.5;
_y = (_y + vel);
} else {
_y = (_y + 2);
}
if (_root.lure == 1) {
lure = 1;
}
} else {
waypoint = Math.atan((_x - _root.plane._x) / (_root.plane._y - _y));
if (_root.plane._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 ((orota > 5.65486677646163) || (orota < 0.628318530717959)) {
stat = 1;
} else {
stat = 0;
}
if ((rota < ((waypoint - (turning_speed / 2)) + turning_speed)) && (rota > (waypoint - (turning_speed / 2)))) {
rota = waypoint;
} else if (orota <= Math.PI) {
rota = rota + turning_speed;
} else {
rota = rota - turning_speed;
}
if (stat == 1) {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
_x = (_x + xspeed);
_y = (_y + yspeed);
} else {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed / 2;
yspeed = yspeed / 2;
_x = (_x + xspeed);
_y = (_y + yspeed);
}
}
if (_y > 377) {
this.removeMovieClip();
}
if (hitTest(_root.plane.ha2)) {
_root.collected++;
_root.plane.speed = _root.plane.speed + 0.01;
_root.id++;
io = new Object();
io._x = _x;
io._y = _y;
_root.itemc.attachMovie("450", "450" + _root.id, _root.id, io);
nextFrame();
}
}
};
stop();
Symbol 146 MovieClip [teddy] Frame 2
this.removeMovieClip();
Symbol 148 MovieClip Frame 1
_parent.ty = 2;
Symbol 150 MovieClip Frame 1
_parent.ty = 1;
Symbol 152 MovieClip Frame 1
_parent.ty = 3;
Symbol 153 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
ty = 2;
gotoAndStop(random(300) + 2);
Symbol 153 MovieClip Frame 302
gotoAndStop (2);
Symbol 160 MovieClip [gunchange] Frame 1
_x = (Math.random() * 480);
_y = -25;
sc = 0;
rota = _rotation;
accel = random(4) + 6;
spdx = random(2) + 6;
spdy = random(2) + 6;
turnSpeed = random(3) + 5;
turning = 0;
xSpeed = 0;
ySpeed = 0;
this.onEnterFrame = function () {
if (_root.pause == 0) {
sc++;
if (sc >= 960) {
xSpeed = xSpeed + (accel * Math.sin((rota * Math.PI) / 180));
ySpeed = ySpeed + (accel * Math.cos((rota * Math.PI) / 180));
xSpeed = xSpeed / spdx;
ySpeed = ySpeed / spdy;
_x = (_x + xSpeed);
_y = (_y - ySpeed);
if ((((_x < -12) || (_y < -12)) || (_x > 492)) || (_parent._y > 372)) {
this.removeMovieClip();
}
} else {
targetVectorX = 240 - _x;
targetVectorY = _y - 180;
hypVector = Math.sqrt((targetVectorX * targetVectorX) + (targetVectorY * targetVectorY));
targetThetaX = Math.asin(targetVectorX / hypVector) / (Math.PI/180);
targetThetaY = Math.acos(targetVectorY / hypVector) / (Math.PI/180);
if (targetVectorY < 0) {
targetTheta = 180 - targetThetaX;
} else {
targetTheta = targetThetaX;
}
if ((Math.abs(targetTheta - rota) < 10) || (Math.abs(targetTheta - rota) > 350)) {
rota = targetTheta;
turning = 0;
}
if (rota < targetTheta) {
if (turning < turnSpeed) {
turning++;
}
} else if (rota > targetTheta) {
if (turning > (-turnSpeed)) {
turning--;
}
}
rota = rota + turning;
xSpeed = xSpeed + (accel * Math.sin((rota * Math.PI) / 180));
ySpeed = ySpeed + (accel * Math.cos((rota * Math.PI) / 180));
xSpeed = xSpeed / spdx;
ySpeed = ySpeed / spdy;
_x = (_x + xSpeed);
_y = (_y - ySpeed);
}
if (hitTest(_root.plane.ha2)) {
_root.plane.gotoAndStop(1);
_root.plane.shld.sc = _root.plane.shld.sc - 50;
if (gunchange.ty == 2) {
if (_root.gls == 0) {
_root.gls = _root.gvc + _root.hms;
_root.gvc = 0;
_root.hms = 0;
gotoAndStop (31);
} else if (_root.dif == 0.5) {
gotoAndStop (33);
} else if (_root.dif == 2) {
gotoAndStop (61);
} else {
nextFrame();
}
} else if (gunchange.ty == 3) {
if (_root.hms == 0) {
_root.hms = _root.gvc + _root.gls;
_root.gvc = 0;
_root.gls = 0;
gotoAndStop (32);
} else if (_root.dif == 0.5) {
gotoAndStop (33);
} else if (_root.dif == 2) {
gotoAndStop (61);
} else {
nextFrame();
}
} else if (_root.gvc == 0) {
_root.gvc = _root.gls + _root.hms;
_root.gls = 0;
_root.hms = 0;
gotoAndStop (30);
} else if (_root.dif == 0.5) {
gotoAndStop (33);
} else if (_root.dif == 2) {
gotoAndStop (61);
} else {
nextFrame();
}
}
}
};
stop();
Symbol 160 MovieClip [gunchange] Frame 2
_root.score = _root.score + 3000;
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 160 MovieClip [gunchange] Frame 29
this.removeMovieClip();
Symbol 160 MovieClip [gunchange] Frame 30
_root.score = _root.score + 300;
this.removeMovieClip();
Symbol 160 MovieClip [gunchange] Frame 31
_root.score = _root.score + 300;
this.removeMovieClip();
Symbol 160 MovieClip [gunchange] Frame 32
_root.score = _root.score + 300;
this.removeMovieClip();
Symbol 160 MovieClip [gunchange] Frame 33
_root.score = _root.score + 600;
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 160 MovieClip [gunchange] Frame 60
this.removeMovieClip();
Symbol 160 MovieClip [gunchange] Frame 61
_root.score = _root.score + 15000;
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 160 MovieClip [gunchange] Frame 88
this.removeMovieClip();
Symbol 166 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 168 MovieClip Frame 1
stardamage._alpha = 0;
stop();
Symbol 168 MovieClip Frame 2
stop();
Symbol 168 MovieClip Frame 5
gotoAndStop (2);
Symbol 169 MovieClip Frame 1
hp = (((_root.dif * _root.dif) / 2) + 0.5) * 100;
hhp = hp / 2;
stop();
Symbol 169 MovieClip Frame 2
_parent.gone = 1;
if (_parent.ina == 1) {
_parent.ina = 0;
_root.lv1.planeArray[_parent.adt] = null;
_root.lv1.upd();
}
itemtype = Math.floor(Math.random() * 4);
_root.id++;
io = new Object();
io._x = _parent.xp;
io._y = _parent.yp;
if (itemtype < 2) {
_root.itemc.attachMovie("gba", "gba" + _root.id, _root.id, io);
} else if (itemtype == 2) {
_root.itemc.attachMovie("candy", "candy" + _root.id, _root.id, io);
} else {
_root.itemc.attachMovie("dynamite", "dynamite" + _root.id, _root.id, io);
}
en.gotoAndStop(1);
_root.score = _root.score + (hhp * 32);
Symbol 169 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 170 MovieClip [swarm3] Frame 1
adt = _root.lv1.planeArray.length;
_root.lv1.planeArray[adt] = this;
ina = 1;
_x = ((Math.random() * 440) + 20);
_y = -42;
gone = 0;
sc = 0;
this.onEnterFrame = function () {
if (gone == 0) {
if (_root.pause == 0) {
sc++;
if (sc == 5) {
en.en.gotoAndStop(2);
}
if (_y < 402) {
_y = (_y + ((Math.random() * 6) + 4));
} else {
gotoAndStop (2);
}
}
xp = _x + en._x;
yp = _y + en._y;
} else {
stop();
}
};
stop();
Instance of Symbol 169 MovieClip "en" in Symbol 170 MovieClip [swarm3] Frame 1
onClipEvent (enterFrame) {
if (_root.pause == 0) {
targetVectorX = 320 - _parent._x;
targetVectorY = 0;
hypVector = Math.sqrt((targetVectorX * targetVectorX) + (targetVectorY * targetVectorY));
targetThetaX = Math.asin(targetVectorX / hypVector) / (Math.PI/180);
targetThetaY = Math.acos(targetVectorY / hypVector) / (Math.PI/180);
if (targetVectorY < 0) {
targetTheta = 180 - targetThetaX;
} else {
targetTheta = targetThetaX;
}
if ((Math.abs(targetTheta - rota) < 10) || (Math.abs(targetTheta - rota) > 350)) {
rota = targetTheta;
turning = 0;
}
if (rota < targetTheta) {
if (turning < turnSpeed) {
turning++;
}
} else if (rota > targetTheta) {
if (turning > (-turnSpeed)) {
turning--;
}
}
rota = rota + turning;
xSpeed = xSpeed + (accel * Math.sin((rota * Math.PI) / 180));
xSpeed = xSpeed / spdx;
_parent._x = _parent._x + xSpeed;
}
}
Symbol 170 MovieClip [swarm3] Frame 2
if (ina == 1) {
ina = 0;
_root.lv1.planeArray[adt] = null;
_root.lv1.upd();
}
this.removeMovieClip();
Symbol 172 MovieClip [ball] Frame 1
_rotation = (Math.random() * 360);
vel = (Math.random() * 3) + 1;
dir = (random(2) * 2) - 1;
velocity = 3;
turning_speed = 0.174532925199433;
xspeed = 0;
yspeed = 0;
if (_root.lure == 0) {
lure = 0;
} else {
lure = 1;
}
this.onEnterFrame = function () {
if (_root.pause == 0) {
if (lure == 0) {
_rotation = (_rotation + ((dir * Math.random()) * 17));
if (_root.activ == 0) {
vel = vel + 0.5;
_y = (_y + vel);
} else {
_y = (_y + 2);
}
if (_root.lure == 1) {
lure = 1;
}
} else {
waypoint = Math.atan((_x - _root.plane._x) / (_root.plane._y - _y));
if (_root.plane._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 ((orota > 5.65486677646163) || (orota < 0.628318530717959)) {
stat = 1;
} else {
stat = 0;
}
if ((rota < ((waypoint - (turning_speed / 2)) + turning_speed)) && (rota > (waypoint - (turning_speed / 2)))) {
rota = waypoint;
} else if (orota <= Math.PI) {
rota = rota + turning_speed;
} else {
rota = rota - turning_speed;
}
if (stat == 1) {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
_x = (_x + xspeed);
_y = (_y + yspeed);
} else {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed / 2;
yspeed = yspeed / 2;
_x = (_x + xspeed);
_y = (_y + yspeed);
}
}
if (_y > 377) {
this.removeMovieClip();
}
if (hitTest(_root.plane.ha2)) {
_root.collected++;
_root.plane.speed = _root.plane.speed + 0.01;
_root.id++;
io = new Object();
io._x = _x;
io._y = _y;
_root.itemc.attachMovie("300", "300" + _root.id, _root.id, io);
nextFrame();
}
}
};
stop();
Symbol 172 MovieClip [ball] Frame 2
this.removeMovieClip();
Symbol 179 MovieClip [300] Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
if (_root.dif == 0.5) {
gotoAndStop (2);
} else if (_root.dif == 2) {
gotoAndStop (54);
} else {
gotoAndStop (28);
}
Symbol 179 MovieClip [300] Frame 2
_root.score = _root.score + 150;
Symbol 179 MovieClip [300] Frame 27
this.removeMovieClip();
Symbol 179 MovieClip [300] Frame 28
_root.score = _root.score + 300;
Symbol 179 MovieClip [300] Frame 53
this.removeMovieClip();
Symbol 179 MovieClip [300] Frame 54
_root.score = _root.score + 500;
Symbol 179 MovieClip [300] Frame 79
this.removeMovieClip();
Symbol 186 MovieClip [650] Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
if (_root.dif == 0.5) {
gotoAndStop (2);
} else if (_root.dif == 2) {
gotoAndStop (54);
} else {
gotoAndStop (28);
}
Symbol 186 MovieClip [650] Frame 2
_root.score = _root.score + 350;
Symbol 186 MovieClip [650] Frame 27
this.removeMovieClip();
Symbol 186 MovieClip [650] Frame 28
_root.score = _root.score + 650;
Symbol 186 MovieClip [650] Frame 53
this.removeMovieClip();
Symbol 186 MovieClip [650] Frame 54
_root.score = _root.score + 1200;
Symbol 186 MovieClip [650] Frame 79
this.removeMovieClip();
Symbol 192 MovieClip Frame 1
stardamage._alpha = 0;
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 5
gotoAndStop (2);
Symbol 193 MovieClip Frame 1
hp = (((_root.dif * _root.dif) / 2) + 0.5) * 60;
hhp = hp / 2;
stop();
Symbol 193 MovieClip Frame 2
_parent.gone = 1;
if (_parent.ina == 1) {
_parent.ina = 0;
_root.lv1.planeArray[_parent.adt] = null;
_root.lv1.upd();
}
en.gotoAndStop(1);
_root.score = _root.score + (hhp * 32);
Symbol 193 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 194 MovieClip [bomb] Frame 1
adt = _root.lv1.planeArray.length;
_root.lv1.planeArray[adt] = this;
ina = 1;
gone = 0;
en.en.gotoAndStop(2);
this.onEnterFrame = function () {
if (gone == 0) {
if (_root.pause == 0) {
if (_y < 375) {
_y = (_y + ((Math.random() * 3) + 2));
} else {
gotoAndStop (2);
}
}
xp = _x + en._x;
yp = _y + en._y;
} else {
stop();
}
};
stop();
Symbol 194 MovieClip [bomb] Frame 2
if (ina == 1) {
ina = 0;
_root.lv1.planeArray[adt] = null;
_root.lv1.upd();
}
this.removeMovieClip();
Symbol 199 MovieClip [450] Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
if (_root.dif == 0.5) {
gotoAndStop (2);
} else if (_root.dif == 2) {
gotoAndStop (54);
} else {
gotoAndStop (28);
}
Symbol 199 MovieClip [450] Frame 2
_root.score = _root.score + 200;
Symbol 199 MovieClip [450] Frame 27
this.removeMovieClip();
Symbol 199 MovieClip [450] Frame 28
_root.score = _root.score + 450;
Symbol 199 MovieClip [450] Frame 53
this.removeMovieClip();
Symbol 199 MovieClip [450] Frame 54
_root.score = _root.score + 1000;
Symbol 199 MovieClip [450] Frame 79
this.removeMovieClip();
Symbol 201 MovieClip [candy] Frame 1
_rotation = (Math.random() * 360);
dif = 180 - _rotation;
vel = (Math.random() * 3) + 1;
spd = 1;
dir = (random(2) * 2) - 1;
velocity = 3;
turning_speed = 0.174532925199433;
xspeed = 0;
yspeed = 0;
if (_root.lure == 0) {
lure = 0;
} else {
lure = 1;
}
this.onEnterFrame = function () {
if (_root.pause == 0) {
if (lure == 0) {
spd = spd + 0.01;
dif = dif / spd;
_rotation = (180 - dif);
if (_root.activ == 0) {
vel = vel + 0.5;
_y = (_y + vel);
} else {
_y = (_y + 2);
}
if (_root.lure == 1) {
lure = 1;
}
} else {
waypoint = Math.atan((_x - _root.plane._x) / (_root.plane._y - _y));
if (_root.plane._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 ((orota > 5.65486677646163) || (orota < 0.628318530717959)) {
stat = 1;
} else {
stat = 0;
}
if ((rota < ((waypoint - (turning_speed / 2)) + turning_speed)) && (rota > (waypoint - (turning_speed / 2)))) {
rota = waypoint;
} else if (orota <= Math.PI) {
rota = rota + turning_speed;
} else {
rota = rota - turning_speed;
}
if (stat == 1) {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
_x = (_x + xspeed);
_y = (_y + yspeed);
} else {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed / 2;
yspeed = yspeed / 2;
_x = (_x + xspeed);
_y = (_y + yspeed);
}
}
if (_y > 378) {
this.removeMovieClip();
}
if (hitTest(_root.plane.ha2)) {
_root.collected++;
_root.plane.speed = _root.plane.speed + 0.01;
_root.id++;
io = new Object();
io._x = _x;
io._y = _y;
_root.itemc.attachMovie("650", "650" + _root.id, _root.id, io);
nextFrame();
}
}
};
stop();
Symbol 201 MovieClip [candy] Frame 2
this.removeMovieClip();
Symbol 203 MovieClip [gba] Frame 1
_rotation = (Math.random() * 360);
vel = (Math.random() * 3) + 1;
dir = (random(2) * 2) - 1;
velocity = 3;
turning_speed = 0.174532925199433;
xspeed = 0;
yspeed = 0;
if (_root.lure == 0) {
lure = 0;
} else {
lure = 1;
}
this.onEnterFrame = function () {
if (_root.pause == 0) {
if (lure == 0) {
_rotation = (_rotation + ((dir * Math.random()) * 17));
if (_root.activ == 0) {
vel = vel + 0.5;
_y = (_y + vel);
} else {
_y = (_y + 2);
}
if (_root.lure == 1) {
lure = 1;
}
} else {
waypoint = Math.atan((_x - _root.plane._x) / (_root.plane._y - _y));
if (_root.plane._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 ((orota > 5.65486677646163) || (orota < 0.628318530717959)) {
stat = 1;
} else {
stat = 0;
}
if ((rota < ((waypoint - (turning_speed / 2)) + turning_speed)) && (rota > (waypoint - (turning_speed / 2)))) {
rota = waypoint;
} else if (orota <= Math.PI) {
rota = rota + turning_speed;
} else {
rota = rota - turning_speed;
}
if (stat == 1) {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed * 0.9;
yspeed = yspeed * 0.9;
_x = (_x + xspeed);
_y = (_y + yspeed);
} else {
_rotation = ((rota * 180) / Math.PI);
xspeed = xspeed + (velocity * Math.sin(rota));
yspeed = yspeed - (velocity * Math.cos(rota));
xspeed = xspeed / 2;
yspeed = yspeed / 2;
_x = (_x + xspeed);
_y = (_y + yspeed);
}
}
if (_y > 390) {
this.removeMovieClip();
}
if (hitTest(_root.plane.ha2)) {
_root.collected++;
_root.plane.speed = _root.plane.speed + 0.01;
_root.id++;
io = new Object();
io._x = _x;
io._y = _y;
_root.itemc.attachMovie("800", "800" + _root.id, _root.id, io);
nextFrame();
}
}
};
stop();
Symbol 203 MovieClip [gba] Frame 2
this.removeMovieClip();
Symbol 206 MovieClip Frame 1
stardamage._alpha = 0;
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 5
gotoAndStop (2);
Symbol 207 MovieClip Frame 1
hp = (((_root.dif * _root.dif) / 2) + 0.5) * 90;
hhp = hp / 2;
stop();
Symbol 207 MovieClip Frame 2
_parent.gone = 1;
if (_parent.ina == 1) {
_parent.ina = 0;
_root.lv1.planeArray[_parent.adt] = null;
_root.lv1.upd();
}
en.gotoAndStop(1);
_root.score = _root.score + (hhp * 32);
Symbol 207 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 208 MovieClip [dynamite] Frame 1
adt = _root.lv1.planeArray.length;
_root.lv1.planeArray[adt] = this;
ina = 1;
gone = 0;
en.en.gotoAndStop(2);
_rotation = (Math.random() * 360);
dif = 180 - _rotation;
dir = (random(2) * 2) - 1;
spd = 1;
this.onEnterFrame = function () {
if (gone == 0) {
if (_root.pause == 0) {
if (_y < 376) {
_y = (_y + ((Math.random() * 3) + 2));
spd = spd + 0.01;
dif = dif / spd;
_rotation = (180 - dif);
} else {
gotoAndStop (2);
}
}
xp = _x + en._x;
yp = _y + en._y;
} else {
stop();
}
};
stop();
Symbol 208 MovieClip [dynamite] Frame 2
if (ina == 1) {
ina = 0;
_root.lv1.planeArray[adt] = null;
_root.lv1.upd();
}
this.removeMovieClip();
Symbol 215 MovieClip [800] Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
if (_root.dif == 0.5) {
gotoAndStop (2);
} else if (_root.dif == 2) {
gotoAndStop (54);
} else {
gotoAndStop (28);
}
Symbol 215 MovieClip [800] Frame 2
_root.score = _root.score + 400;
Symbol 215 MovieClip [800] Frame 27
this.removeMovieClip();
Symbol 215 MovieClip [800] Frame 28
_root.score = _root.score + 800;
Symbol 215 MovieClip [800] Frame 53
this.removeMovieClip();
Symbol 215 MovieClip [800] Frame 54
_root.score = _root.score + 1500;
Symbol 215 MovieClip [800] Frame 79
this.removeMovieClip();
Symbol 217 MovieClip [particle] Frame 1
ySpeed = -(5 + random(5));
xSpeed = -5 + random(10);
rot = (((random(2) * 2) - 1) * Math.random()) * 17;
this.onEnterFrame = function () {
if (((((((_x < (-_xscale)) || (_y < (-_yscale))) || (_y > (_yscale + 360))) || (_x > (_xscale + 480))) || (_yscale <= 0)) || (_xscale <= 0)) || (_alpha <= 0)) {
this.removeMovieClip();
} else {
ySpeed = ySpeed + _global.mass;
}
_alpha = (_alpha - 2);
_yscale = (_yscale - 2);
_xscale = (_xscale - 2);
_y = (_y + ySpeed);
_x = (_x + xSpeed);
_rotation = (_rotation + rot);
};
Symbol 226 MovieClip Frame 1
_root.dir1 = "mes.com/hig";
stop();
Symbol 268 MovieClip Frame 112
_root.gotoAndStop("start");
stop();
Symbol 319 MovieClip Frame 1
_root.dir2 = "hscor";
Symbol 323 Button
on (release) {
ctrl = 1;
shoot = 1;
bomb = 1;
pau = 1;
score = 0;
levelno = 1;
if (dif == 0.5) {
credit = 5;
} else {
credit = 3;
}
bspd = (dif * 2) + 5;
collected = 0;
bbno = 1;
gvc = 1;
gls = 0;
hms = 0;
shield = 0;
activ = 0;
lure = 0;
gotoAndStop ("options");
}
Symbol 326 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 329 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 332 Button
on (release) {
getURL ("http://www.armorgames.com/highscores/viewScores.php?game=ChristmasATTACK", "_blank");
}
Symbol 335 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 339 Button
on (release) {
gotoAndStop ("start");
}
Symbol 348 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop((_root.vol / 50) + 2);
_root.svol.setVolume(_root.vol);
};
gotoAndStop((_root.vol / 50) + 2);
Symbol 353 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.qual == "LOW") {
gotoAndStop (3);
} else if (_root.qual == "MEDIUM") {
gotoAndStop (4);
} else if (_root.qual == "HIGH") {
gotoAndStop (5);
} else {
gotoAndStop (2);
}
if (_root.qual == "AUTO") {
_quality = "BEST";
} else {
_quality = _root.qual;
}
};
if (_root.qual == "LOW") {
gotoAndStop (3);
} else if (_root.qual == "MEDIUM") {
gotoAndStop (4);
} else if (_root.qual == "HIGH") {
gotoAndStop (5);
} else {
gotoAndStop (2);
}
Symbol 358 MovieClip Frame 1
if (_root.dif == 0.5) {
gotoAndStop (3);
} else if (_root.dif == 2) {
gotoAndStop (4);
} else {
gotoAndStop (2);
}
this.onEnterFrame = function () {
if (_root.dif == 0.5) {
gotoAndStop (3);
} else if (_root.dif == 2) {
gotoAndStop (4);
} else {
gotoAndStop (2);
}
};
Symbol 361 Button
on (release) {
var optsave = SharedObject.getLocal("ChristmasATTACK");
optsave.data.dif = dif;
optsave.data.qual = qual;
optsave.data.vol = vol;
optsave.data.username = username;
optsave.flush();
if (((username == "< ENTER NAME >") || (username == "")) || (username == "-ENTER NAME HERE-")) {
username = "-ENTER NAME HERE-";
} else {
if (dif == 0.5) {
credit = 5;
} else {
credit = 3;
}
pause = 0;
gotoAndStop ("intro");
}
}
Symbol 366 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 371 MovieClip Frame 1
sc = 0;
this.onEnterFrame = function () {
sc++;
if (sc > 4) {
sc = 0;
nextFrame();
}
};
stop();
Symbol 371 MovieClip Frame 193
_root.gotoAndStop("game");
Symbol 373 MovieClip Frame 1
count = 0;
this.onEnterFrame = function () {
if (_root.pause == 0) {
count = count + 0.1;
}
if (count >= _parent.d) {
count = 0;
_parent.nextFrame();
}
};
Symbol 374 MovieClip Frame 1
function upd() {
tempArray = new Array();
i = 0;
while (i < planeArray.length) {
if (planeArray[i] != null) {
newNdx = tempArray.length;
tempArray[newNdx] = planeArray[i];
tempArray[newNdx].adt = newNdx;
}
i++;
}
planeArray = new Array();
for (ndx in tempArray) {
planeArray[ndx] = tempArray[ndx];
}
}
planeArray = new Array();
_root.levelno = 1;
sc = 0;
sc2 = _root.dif * 250;
sc3 = 0;
wait = _root.dif * 500;
wait2 = _root.dif * 410;
dest = 49;
gain = new Sound();
gain.attachSound("gain");
this.onEnterFrame = function () {
if (_root.pause == 0) {
if (sc2 < wait) {
sc2++;
} else {
sc2 = 0;
_root.id++;
air.attachMovie("supply", "en" + _root.id, _root.id);
}
if (sc3 < wait2) {
sc3++;
} else {
sc3 = 0;
_root.id++;
_root.itemc.attachMovie("gunchange", "gunchange" + _root.id, _root.id);
}
if (_root.collected > dest) {
gain.start(0, 0);
_root.bbno++;
_root.score = _root.score + (((_root.dif * _root.dif) * dest) * 750);
dest = dest + 50;
}
}
};
gotoAndStop (2);
Symbol 374 MovieClip Frame 2
d = 16;
Symbol 374 MovieClip Frame 3
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 5;
Symbol 374 MovieClip Frame 4
if (sc < 5) {
sc++;
prevFrame();
} else {
sc = 0;
if (_root.qual == "AUTO") {
_quality = "MEDIUM";
_root.qual2 = "MEDIUM";
}
nextFrame();
}
Symbol 374 MovieClip Frame 5
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 3;
Symbol 374 MovieClip Frame 6
if (sc < 20) {
sc++;
prevFrame();
} else {
sc = 0;
if (_root.qual == "AUTO") {
_quality = "LOW";
_root.qual2 = "LOW";
}
nextFrame();
}
Symbol 374 MovieClip Frame 7
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 8
if (sc == 20) {
_root.levelno = 2;
}
if (sc < 40) {
sc++;
prevFrame();
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 9
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 10
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 11
if (sc == 50) {
_root.levelno = 3;
}
if (sc < 80) {
sc++;
gotoAndStop(_currentframe - 2);
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 12
d = 8;
Symbol 374 MovieClip Frame 13
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 0.5;
Symbol 374 MovieClip Frame 14
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 15
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm3", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 16
if (sc < 60) {
sc++;
gotoAndStop(_currentframe - 3);
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 17
d = 12;
Symbol 374 MovieClip Frame 18
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 0.5;
Symbol 374 MovieClip Frame 19
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm3", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 20
if (sc == 40) {
_root.levelno = 4;
}
if (sc < 80) {
sc++;
gotoAndStop(_currentframe - 2);
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 21
d = 16;
Symbol 374 MovieClip Frame 22
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm3", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 23
if (sc < 40) {
sc++;
prevFrame();
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 24
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm3", "en" + _root.id, _root.id);
d = 0.5;
Symbol 374 MovieClip Frame 25
if (sc < 30) {
sc++;
prevFrame();
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 26
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm3", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm3", "en" + _root.id, _root.id);
d = 0.5;
Symbol 374 MovieClip Frame 27
if (sc < 20) {
sc++;
prevFrame();
} else {
sc = 0;
_root.levelno = 5;
nextFrame();
}
Symbol 374 MovieClip Frame 28
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 0.5;
Symbol 374 MovieClip Frame 29
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 30
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm3", "en" + _root.id, _root.id);
d = 1;
Symbol 374 MovieClip Frame 31
if (sc < 2) {
sc++;
gotoAndStop(_currentframe - 3);
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 32
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
_root.id++;
sky.attachMovie("swarm2", "en" + _root.id, _root.id);
d = 3;
Symbol 374 MovieClip Frame 33
if (sc < 3) {
sc++;
prevFrame();
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 34
_root.id++;
sky.attachMovie("swarm1", "en" + _root.id, _root.id);
d = 3;
Symbol 374 MovieClip Frame 35
if (sc < 2) {
sc++;
prevFrame();
} else {
sc = 0;
nextFrame();
}
Symbol 374 MovieClip Frame 36
_root.endlevel.nextFrame();
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
_root.id++;
initObject = new Object();
initObject._x = _parent._x - (_y * Math.sin((_parent._rotation * Math.PI) / 180));
initObject._y = (_parent._y + (_y * Math.cos((_parent._rotation * Math.PI) / 180))) - 60;
initObject._rotation = _parent._rotation;
_root.itemc.attachMovie("hity", "hit" + _root.id, _root.id, initObject);
_parent.gotoAndStop(1);
stop();
Symbol 379 MovieClip Frame 1
_x = -3000;
_y = -3000;
dm = 8;
stop();
Symbol 379 MovieClip Frame 2
_x = _root.plane._x;
_y = _root.plane._y;
gotoAndStop (3);
Instance of Symbol 378 MovieClip "vc" in Symbol 379 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_parent._x = _parent._x + (56 * Math.sin((_parent._rotation * Math.PI) / 180));
_parent._y = _parent._y - (56 * Math.cos((_parent._rotation * Math.PI) / 180));
}
if (((_parent._y < -30) || (_parent._x < -30)) || (_parent._x > 510)) {
_parent.gotoAndStop(1);
}
}
Symbol 379 MovieClip Frame 3
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 1
function getPosition() {
lrot2 = lrot;
lrot = _rotation;
waypoint = Math.atan((_x - targ.xp) / (targ.yp - _y));
if (targ.yp > _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 ((Orota > 5.96902604182061) || (Orota < 0.314159265358979)) {
stat = 1;
} else {
stat = 0;
}
if ((rota < ((waypoint - (turning_speed / 2)) + turning_speed)) && (rota > (waypoint - (turning_speed / 2)))) {
rota = waypoint;
} else if (Orota <= Math.PI) {
rota = rota + turning_speed;
} else {
rota = rota - turning_speed;
}
if (_rotation == 0) {
_rotation = (_rotation+1);
rota = (_rotation * Math.PI) / 180;
}
_rotation = ((rota * 180) / Math.PI);
if ((((_rotation > 0) && (lrot < 0)) && (lrot2 > 0)) || (((_rotation < 0) && (lrot > 0)) && (lrot2 < 0))) {
_rotation = 0;
}
}
function getMovement() {
if (stat == 1) {
xSpeed = xSpeed + (velocity * Math.sin((_rotation * Math.PI) / 180));
ySpeed = ySpeed - (velocity * Math.cos((_rotation * Math.PI) / 180));
xSpeed = xSpeed * (0.9 + (Math.random() * 0.3));
ySpeed = ySpeed * (0.9 + (Math.random() * 0.3));
_x = (_x + xSpeed);
_y = (_y + ySpeed);
} else {
xSpeed = xSpeed + (velocity * Math.sin((_rotation * Math.PI) / 180));
ySpeed = ySpeed - (velocity * Math.cos((_rotation * Math.PI) / 180));
xSpeed = xSpeed * (0.5 + (Math.random() / 2));
ySpeed = ySpeed * (0.5 + (Math.random() / 2));
_x = (_x + xSpeed);
_y = (_y + ySpeed);
}
if (_x < -28) {
gotoAndStop (1);
} else if (_y < -28) {
gotoAndStop (1);
} else if (_x > 508) {
gotoAndStop (1);
} else if (_y > 388) {
gotoAndStop (1);
}
}
function getdir() {
if ((targ.xp == undefined) || (targ.gone == 1)) {
targ = _root.lv1.planeArray[random(_root.lv1.planeArray.length)];
stat = 1;
getMovement();
} else {
if (((_root.hms > 0) && (_root.shoot == 1)) && (Key.isDown(_root.shtopt))) {
getPosition();
}
getMovement();
}
}
stat = 1;
xSpeed = 0;
ySpeed = 0;
velocity = (Math.random() * 2) + 1;
turning_speed = (((Math.random() * 8) + 8) * Math.PI) / 180;
_x = _root.plane._x;
_y = _root.plane._y;
if (_root.hms == 3) {
dm = (Math.random() * 3) + 3;
} else if (_root.hms == 2) {
dm = (Math.random() * 5) + 2;
} else {
dm = (Math.random() * 7) + 1;
}
stop();
Symbol 383 MovieClip Frame 2
_x = _root.plane._x;
_y = _root.plane._y;
_rotation = (Math.random() * 360);
targ = _root.lv1.planeArray[random(_root.lv1.planeArray.length)];
gotoAndPlay (3);
Instance of Symbol 382 MovieClip "hm" in Symbol 383 MovieClip Frame 2
onClipEvent (load) {
sc = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
if (_parent._rotation >= 180) {
_rotation = (_rotation - ((Math.random() * 17) + 6));
} else {
_rotation = (_rotation + ((Math.random() * 17) + 6));
}
if (sc < _root.hms) {
sc++;
} else {
sc = 0;
_root.id++;
io = new Object();
io._x = _parent._x;
io._y = _parent._y;
io._alpha = (Math.random() * 30) + 10;
_root.itemc.attachMovie("planefuel", "planefuel", _root.id, io);
_root.id++;
io = new Object();
io._x = _parent._x;
io._y = _parent._y;
io._alpha = (Math.random() * 30) + 10;
_root.itemc.attachMovie("planefuel", "planefuel", _root.id, io);
}
} else {
_parent.stop();
}
}
Symbol 383 MovieClip Frame 3
getMovement();
Symbol 383 MovieClip Frame 4
getMovement();
Symbol 383 MovieClip Frame 5
getMovement();
Symbol 383 MovieClip Frame 6
getMovement();
Symbol 383 MovieClip Frame 7
getMovement();
Symbol 383 MovieClip Frame 8
getdir();
Symbol 383 MovieClip Frame 9
getdir();
Symbol 383 MovieClip Frame 10
getdir();
Symbol 383 MovieClip Frame 11
getdir();
Symbol 383 MovieClip Frame 12
getdir();
Symbol 383 MovieClip Frame 13
getdir();
Symbol 383 MovieClip Frame 14
getdir();
Symbol 383 MovieClip Frame 15
getdir();
Symbol 383 MovieClip Frame 16
getdir();
Symbol 383 MovieClip Frame 17
getdir();
Symbol 383 MovieClip Frame 18
getdir();
Symbol 383 MovieClip Frame 19
getdir();
Symbol 383 MovieClip Frame 20
getdir();
Symbol 383 MovieClip Frame 21
getdir();
Symbol 383 MovieClip Frame 22
getdir();
Symbol 383 MovieClip Frame 23
getdir();
Symbol 383 MovieClip Frame 24
getdir();
Symbol 383 MovieClip Frame 25
getdir();
Symbol 383 MovieClip Frame 26
getdir();
Symbol 383 MovieClip Frame 27
getdir();
Symbol 383 MovieClip Frame 28
getdir();
Symbol 383 MovieClip Frame 29
getdir();
Symbol 383 MovieClip Frame 30
getdir();
Symbol 383 MovieClip Frame 31
getdir();
Symbol 383 MovieClip Frame 32
getdir();
Symbol 383 MovieClip Frame 33
getdir();
Symbol 383 MovieClip Frame 34
getdir();
Symbol 383 MovieClip Frame 35
getdir();
Symbol 383 MovieClip Frame 36
getdir();
Symbol 383 MovieClip Frame 37
getdir();
Symbol 383 MovieClip Frame 38
getdir();
Symbol 383 MovieClip Frame 39
getdir();
Symbol 383 MovieClip Frame 40
getdir();
Symbol 383 MovieClip Frame 41
getdir();
Symbol 383 MovieClip Frame 42
getdir();
Symbol 383 MovieClip Frame 43
getdir();
Symbol 383 MovieClip Frame 44
getdir();
Symbol 383 MovieClip Frame 45
getdir();
Symbol 383 MovieClip Frame 46
getdir();
Symbol 383 MovieClip Frame 47
getdir();
Symbol 383 MovieClip Frame 48
getdir();
Symbol 383 MovieClip Frame 49
getdir();
Symbol 383 MovieClip Frame 50
getdir();
Symbol 383 MovieClip Frame 51
getdir();
Symbol 383 MovieClip Frame 52
getdir();
Symbol 383 MovieClip Frame 53
getdir();
Symbol 383 MovieClip Frame 54
getdir();
Symbol 383 MovieClip Frame 55
getdir();
Symbol 383 MovieClip Frame 56
getdir();
Symbol 383 MovieClip Frame 57
getdir();
Symbol 383 MovieClip Frame 58
getdir();
Symbol 383 MovieClip Frame 59
getdir();
Symbol 383 MovieClip Frame 60
getdir();
Symbol 383 MovieClip Frame 61
getdir();
Symbol 383 MovieClip Frame 62
getdir();
Symbol 383 MovieClip Frame 63
getdir();
Symbol 383 MovieClip Frame 64
getdir();
Symbol 383 MovieClip Frame 65
getdir();
Symbol 383 MovieClip Frame 66
getdir();
Symbol 383 MovieClip Frame 67
getdir();
Symbol 383 MovieClip Frame 68
getdir();
Symbol 383 MovieClip Frame 69
getdir();
Symbol 383 MovieClip Frame 70
getdir();
Symbol 383 MovieClip Frame 71
getdir();
Symbol 383 MovieClip Frame 72
getdir();
Symbol 383 MovieClip Frame 73
getdir();
Symbol 383 MovieClip Frame 74
getdir();
Symbol 383 MovieClip Frame 75
getdir();
Symbol 383 MovieClip Frame 76
getdir();
Symbol 383 MovieClip Frame 77
getdir();
Symbol 383 MovieClip Frame 78
getdir();
Symbol 383 MovieClip Frame 79
getdir();
Symbol 383 MovieClip Frame 80
getdir();
Symbol 383 MovieClip Frame 81
getdir();
Symbol 383 MovieClip Frame 82
getdir();
Symbol 383 MovieClip Frame 83
getdir();
Symbol 383 MovieClip Frame 84
getdir();
Symbol 383 MovieClip Frame 85
getdir();
Symbol 383 MovieClip Frame 86
getdir();
Symbol 383 MovieClip Frame 87
getdir();
Symbol 383 MovieClip Frame 88
getdir();
Symbol 383 MovieClip Frame 89
getdir();
Symbol 383 MovieClip Frame 90
getdir();
Symbol 383 MovieClip Frame 91
getdir();
Symbol 383 MovieClip Frame 92
getdir();
Symbol 383 MovieClip Frame 93
getdir();
Symbol 383 MovieClip Frame 94
getdir();
Symbol 383 MovieClip Frame 95
getdir();
Symbol 383 MovieClip Frame 96
getdir();
Symbol 383 MovieClip Frame 97
getdir();
Symbol 383 MovieClip Frame 98
getdir();
Symbol 383 MovieClip Frame 99
getdir();
Symbol 383 MovieClip Frame 100
getdir();
Symbol 383 MovieClip Frame 101
getdir();
Symbol 383 MovieClip Frame 102
getdir();
Symbol 383 MovieClip Frame 103
getdir();
Symbol 383 MovieClip Frame 104
getdir();
Symbol 383 MovieClip Frame 105
getdir();
Symbol 383 MovieClip Frame 106
getdir();
Symbol 383 MovieClip Frame 107
getdir();
Symbol 383 MovieClip Frame 108
getdir();
Symbol 383 MovieClip Frame 109
getdir();
Symbol 383 MovieClip Frame 110
getdir();
Symbol 383 MovieClip Frame 111
getdir();
Symbol 383 MovieClip Frame 112
getdir();
Symbol 383 MovieClip Frame 113
getdir();
Symbol 383 MovieClip Frame 114
getdir();
Symbol 383 MovieClip Frame 115
getdir();
Symbol 383 MovieClip Frame 116
getdir();
Symbol 383 MovieClip Frame 117
getdir();
Symbol 383 MovieClip Frame 118
getdir();
Symbol 383 MovieClip Frame 119
getdir();
Symbol 383 MovieClip Frame 120
getdir();
Symbol 383 MovieClip Frame 121
getdir();
Symbol 383 MovieClip Frame 122
getdir();
Symbol 383 MovieClip Frame 123
getdir();
Symbol 383 MovieClip Frame 124
stat = 1;
getMovement();
Symbol 383 MovieClip Frame 125
getMovement();
Symbol 383 MovieClip Frame 126
getMovement();
Symbol 383 MovieClip Frame 127
getMovement();
Symbol 383 MovieClip Frame 128
getMovement();
Symbol 383 MovieClip Frame 129
getMovement();
Symbol 383 MovieClip Frame 130
getMovement();
Symbol 383 MovieClip Frame 131
getMovement();
Symbol 383 MovieClip Frame 132
getMovement();
Symbol 383 MovieClip Frame 133
getMovement();
Symbol 383 MovieClip Frame 134
getMovement();
Symbol 383 MovieClip Frame 135
getMovement();
Symbol 383 MovieClip Frame 136
getMovement();
Symbol 383 MovieClip Frame 137
getMovement();
Symbol 383 MovieClip Frame 138
getMovement();
Symbol 383 MovieClip Frame 139
getMovement();
Symbol 383 MovieClip Frame 140
getMovement();
Symbol 383 MovieClip Frame 141
getMovement();
Symbol 383 MovieClip Frame 142
getMovement();
Symbol 383 MovieClip Frame 143
getMovement();
Symbol 383 MovieClip Frame 144
getMovement();
Symbol 383 MovieClip Frame 145
getMovement();
Symbol 383 MovieClip Frame 146
getMovement();
Symbol 383 MovieClip Frame 147
getMovement();
Symbol 383 MovieClip Frame 148
getMovement();
Symbol 383 MovieClip Frame 149
getMovement();
Symbol 383 MovieClip Frame 150
getMovement();
Symbol 383 MovieClip Frame 151
getMovement();
Symbol 383 MovieClip Frame 152
getMovement();
Symbol 383 MovieClip Frame 153
getMovement();
Symbol 387 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
stop();
Symbol 388 MovieClip Frame 1
this.onEnterFrame = function () {
if ((Key.isDown(_root.shtopt) && (_root.shoot == 1)) && (_root.pause == 0)) {
if (_root.hms > 0) {
_root.h1.play();
_root.h2.play();
_root.h3.play();
_root.h4.play();
_root.h5.play();
_root.h6.play();
}
if (_root.hms > 1) {
_root.h7.play();
_root.h8.play();
_root.h9.play();
_root.h10.play();
_root.h11.play();
_root.h12.play();
}
if (_root.hms > 2) {
_root.h13.play();
_root.h14.play();
_root.h15.play();
_root.h16.play();
_root.h17.play();
_root.h18.play();
}
}
};
Symbol 389 MovieClip Frame 1
xp = _x;
yp = _y;
this.onEnterFrame = function () {
if (_root.pause == 0) {
_x = (_x + ((Math.random() * 4) - 2));
_y = (_y - 20);
yp = yp - 20;
if ((((_root.ctrl == 1) && (Key.isDown(_root.leftopt))) && (!Key.isDown(_root.rightopt))) && (!(_root.plane._x === 0))) {
_x = (_x + (_root.plane.vel / 1.5));
} else if ((((_root.ctrl == 1) && (Key.isDown(_root.rightopt))) && (!Key.isDown(_root.leftopt))) && (!(_root.plane._x === 480))) {
_x = (_x - (_root.plane.vel / 1.5));
}
if ((((_root.ctrl == 1) && (Key.isDown(_root.upopt))) && (!Key.isDown(_root.downopt))) && (!(_root.plane._y === 0))) {
_y = (_y + (_root.plane.speed / 4));
} else if ((((_root.ctrl == 1) && (Key.isDown(_root.downopt))) && (!Key.isDown(_root.upopt))) && (!(_root.plane._y === 360))) {
_y = (_y - (_root.plane.speed / 4));
}
if (yp <= -420) {
_x = xp;
_y = 0;
yp = 0;
}
}
};
Symbol 391 MovieClip Frame 1
this.onEnterFrame = function () {
if ((((_root.pause == 0) && (_root.gls > 0)) && (_root.shoot == 1)) && (Key.isDown(_root.shtopt))) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
stop();
Symbol 391 MovieClip Frame 2
gotoAndStop (3);
Symbol 391 MovieClip Frame 3
stop();
Symbol 392 MovieClip Frame 1
function line() {
if (plotter[dest2]._y < starter._y) {
rd = random(32);
thick1 = (8 * ((_root.gls / 4) + 0.75)) * _root.gls;
thick2 = (5 * ((_root.gls / 4) + 0.75)) * _root.gls;
thick3 = ((_root.gls / 2) + 0.5) * _root.gls;
laser.lineStyle(thick1, 13369344, 75);
laser.moveTo(plotter[dest]._x, plotter[dest]._y);
laser.lineTo(plotter[dest2]._x, plotter[dest2]._y);
laser2.lineStyle(thick2, 16776960, 60);
laser2.moveTo(plotter[dest]._x, plotter[dest]._y);
laser2.lineTo(plotter[dest2]._x, plotter[dest2]._y);
laser3.lineStyle(thick3, 16777164, 100);
laser3.moveTo(plotter[dest]._x, plotter[dest]._y);
laser3.lineTo(plotter[dest2]._x, plotter[dest2]._y);
laser4.lineStyle(thick1, 13369344, 75);
laser4.lineTo(starter._x, starter._y);
laser5.lineStyle(thick2, 16776960, 60);
laser5.lineTo(starter._x, starter._y);
laser6.lineStyle(thick3, 16777164, 100);
laser6.lineTo(starter._x, starter._y);
}
}
function plot() {
dest++;
dest2++;
if (dest > 11) {
dest = 0;
}
if (dest2 > 11) {
dest2 = 0;
}
line();
}
function elec() {
plot();
plot();
plot();
plot();
plot();
plot();
plot();
plot();
plot();
plot();
}
function apply() {
starter = plotter[0];
i = 1;
while (i <= 11) {
if ((starter._y < plotter[i]._y) || (starter._y == undefined)) {
starter = plotter[i];
dest = i;
dest2 = i + 1;
}
i++;
}
this.createEmptyMovieClip("laser", 1);
this.createEmptyMovieClip("laser2", 2);
this.createEmptyMovieClip("laser3", 3);
this.createEmptyMovieClip("laser4", -4);
this.createEmptyMovieClip("laser5", -5);
this.createEmptyMovieClip("laser6", -6);
laser._alpha = alph;
laser2._alpha = alph;
laser3._alpha = alph;
laser4._alpha = alph;
laser5._alpha = alph;
laser6._alpha = alph;
if (dest > 11) {
dest = 0;
}
if (dest2 > 11) {
dest2 = 0;
}
line();
elec();
}
plotter = new Array();
plotter[0] = co1;
plotter[1] = co2;
plotter[2] = co3;
plotter[3] = co4;
plotter[4] = co5;
plotter[5] = co6;
plotter[6] = co7;
plotter[7] = co8;
plotter[8] = co9;
plotter[9] = co10;
plotter[10] = co11;
plotter[11] = co12;
starter = plotter[0];
alph = 1;
dm = _root.gls * 8;
gotoAndPlay (2);
Symbol 392 MovieClip Frame 2
if (_root.pause == 0) {
if (((_root.gls > 0) && (_root.shoot == 1)) && (Key.isDown(_root.shtopt))) {
if (alph < 100) {
alph = alph * 2;
} else {
alph = 100;
}
apply();
} else {
alph = alph * 0.5;
apply();
laser._alpha = alph;
laser2._alpha = alph;
laser3._alpha = alph;
laser4._alpha = alph;
laser5._alpha = alph;
laser6._alpha = alph;
if (alph < 1) {
alph = 1;
laser.removeMovieClip();
laser2.removeMovieClip();
laser3.removeMovieClip();
laser4.removeMovieClip();
laser5.removeMovieClip();
laser6.removeMovieClip();
}
}
}
dm = _root.gls * 3;
Symbol 392 MovieClip Frame 3
gotoAndPlay (2);
Symbol 394 MovieClip Frame 1
if ((Key.isDown(_root.shtopt) && (_root.shoot == 1)) && (_root.pause == 0)) {
if (_root.v1._currentframe == 1) {
sec = 1;
_root.v1.play();
gotoAndPlay (3);
} else if (_root.v8._currentframe == 1) {
sec = 2;
_root.v8.play();
gotoAndPlay (3);
}
}
Symbol 394 MovieClip Frame 2
gotoAndPlay (1);
Symbol 394 MovieClip Frame 3
if (sec == 1) {
_root.v1.play();
} else {
_root.v8.play();
}
Symbol 395 MovieClip Frame 1
if ((Key.isDown(_root.shtopt) && (_root.shoot == 1)) && (_root.pause == 0)) {
if (((_root.v1._currentframe == 1) && (_root.v2._currentframe == 1)) && (_root.v3._currentframe == 1)) {
sec = 1;
_root.v1.play();
_root.v2._rotation = -20;
_root.v2.play();
_root.v3._rotation = 20;
_root.v3.play();
gotoAndPlay (3);
} else if (((_root.v8._currentframe == 1) && (_root.v9._currentframe == 1)) && (_root.v10._currentframe == 1)) {
sec = 2;
_root.v8.play();
_root.v9._rotation = -20;
_root.v9.play();
_root.v10._rotation = 20;
_root.v10.play();
gotoAndPlay (3);
}
}
Symbol 395 MovieClip Frame 2
gotoAndPlay (1);
Symbol 395 MovieClip Frame 3
if (sec == 1) {
_root.v1.play();
_root.v2.play();
_root.v3.play();
} else {
_root.v8.play();
_root.v9.play();
_root.v10.play();
}
Symbol 396 MovieClip Frame 1
if ((Key.isDown(_root.shtopt) && (_root.shoot == 1)) && (_root.pause == 0)) {
if (((((_root.v1._currentframe == 1) && (_root.v2._currentframe == 1)) && (_root.v3._currentframe == 1)) && (_root.v4._currentframe == 1)) && (_root.v5._currentframe == 1)) {
sec = 1;
_root.v1.play();
_root.v2._rotation = -20;
_root.v2.play();
_root.v3._rotation = 20;
_root.v3.play();
_root.v4._rotation = -40;
_root.v4.play();
_root.v5._rotation = 40;
_root.v5.play();
gotoAndPlay (3);
} else if (((((_root.v8._currentframe == 1) && (_root.v9._currentframe == 1)) && (_root.v10._currentframe == 1)) && (_root.v11._currentframe == 1)) && (_root.v12._currentframe == 1)) {
sec = 2;
_root.v8.play();
_root.v9._rotation = -20;
_root.v9.play();
_root.v10._rotation = 20;
_root.v10.play();
_root.v11._rotation = -40;
_root.v11.play();
_root.v12._rotation = 40;
_root.v12.play();
gotoAndPlay (3);
}
}
Symbol 396 MovieClip Frame 2
gotoAndPlay (1);
Symbol 396 MovieClip Frame 3
if (sec == 1) {
_root.v1.play();
_root.v2.play();
_root.v3.play();
_root.v4.play();
_root.v5.play();
} else {
_root.v8.play();
_root.v9.play();
_root.v10.play();
_root.v11.play();
_root.v12.play();
}
Symbol 397 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop(_root.gvc + 1);
};
Symbol 404 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.pause == 0) {
if (Key.isDown(_root.leftopt) && (!Key.isDown(_root.rightopt))) {
if (_currentframe > 2) {
prevFrame();
} else {
gotoAndStop (2);
}
} else if (Key.isDown(_root.rightopt) && (!Key.isDown(_root.leftopt))) {
if (_currentframe < 22) {
nextFrame();
} else {
gotoAndStop (22);
}
} else if (_currentframe > 12) {
prevFrame();
} else if (_currentframe < 12) {
nextFrame();
} else {
gotoAndStop (12);
}
}
};
gotoAndStop (12);
Symbol 412 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 415 Button
on (release) {
name = _root.username;
score = _root.score;
game = "ChristmasATTACK";
loadVariables ((((("http:/" + _root.dom) + _root.dir1) + _root.dir2) + _root.nam) + _root.namm, this, "POST");
getURL ("http://www.armorgames.com/highscores/viewScores.php?game=" + game, "_blank");
gotoAndStop (2);
}
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 2
stop();
Symbol 418 MovieClip Frame 1
_root.shield = 1;
_root.ctrl = 1;
_root.shoot = 1;
_root.bomb = 1;
dd = 0;
this.onEnterFrame = function () {
if ((dd == 1) && (_root.pause == 0)) {
play();
} else {
stop();
}
};
stop();
Instance of Symbol 384 MovieClip "ha2" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
function attach() {
_root.id++;
io = new Object();
io._x = _parent._x - 10;
io._y = _parent._y + 10;
_root.itemc.attachMovie("particle", "fuel", _root.id, io);
_root.id++;
io = new Object();
io._x = _parent._x + 10;
io._y = _parent._y + 10;
_root.itemc.attachMovie("particle", "fuel", _root.id, io);
}
sc = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
if ((((_parent._x == 0) || (_parent._y == 0)) || (_parent._x == 480)) || (_parent._y == 360)) {
if (sc < 5) {
sc++;
} else if (sc < 15) {
sc++;
attach();
} else {
sc = 0;
}
} else if (((Key.isDown(_root.leftopt) || (Key.isDown(_root.rightopt))) || (Key.isDown(_root.upopt))) || (Key.isDown(_root.downopt))) {
attach();
} else if (sc < 5) {
sc++;
} else if (sc < 15) {
sc++;
attach();
} else {
sc = 0;
}
}
}
Instance of Symbol 387 MovieClip "shld" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
sc = 0;
wait = 125;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
if (sc < wait) {
sc++;
if (sc >= (wait - 25)) {
_alpha = (_alpha - 4);
} else if (_alpha < 100) {
_alpha = (_alpha + 4);
} else {
_alpha = 100;
}
} else {
_parent.nextFrame();
}
}
}
Symbol 418 MovieClip Frame 2
_root.shield = 0;
_root.nam = "es/po";
Symbol 418 MovieClip Frame 3
_root.ctrl = 0;
_root.shoot = 0;
_root.bomb = 0;
_root.gvc = 1;
_root.gls = 0;
_root.hms = 0;
Symbol 418 MovieClip Frame 18
_x = 240;
_y = 280;
_root.credit--;
if (_root.credit >= 0) {
_root.shield = 1;
} else {
gotoAndStop (33);
}
Symbol 418 MovieClip Frame 32
gotoAndStop (1);
Symbol 418 MovieClip Frame 33
_root.pau = 0;
_root.pause = 1;
_quality = "BEST";
this.onEnterFrame = function () {
if (_root.svol.getVolume() > 1) {
_root.svol.setVolume(_root.svol.getVolume() * 0.96);
} else {
_root.svol.setVolume(0);
}
};
stop();
Symbol 418 MovieClip Frame 34
prevFrame();
Symbol 420 MovieClip Frame 1
gotoAndStop(_root.credit + 3);
this.onEnterFrame = function () {
gotoAndStop(_root.credit + 3);
};
Symbol 460 MovieClip Frame 1
_root.activ = 0;
_root.lure = 0;
this.onEnterFrame = function () {
if (((_root.bbno > 0) && (_root.bomb == 1)) && (Key.isDown(_root.bbopt))) {
_root.plane.gotoAndStop(1);
_root.plane.shld.sc = _root.plane.shld.sc - 50;
_root.bbno--;
nextFrame();
}
};
stop();
Symbol 460 MovieClip Frame 2
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
Symbol 460 MovieClip Frame 11
_root.activ = 1;
Symbol 460 MovieClip Frame 41
_root.activ = 0;
_root.lure = 1;
Symbol 472 MovieClip Frame 1
if (_root.score >= Math.pow(10, dig)) {
gotoAndStop((Math.floor(_root.score / Math.pow(10, dig)) - (Math.floor(_root.score / (Math.pow(10, dig) * 10)) * 10)) + 2);
} else {
gotoAndStop (1);
}
this.onEnterFrame = function () {
if (_root.score >= Math.pow(10, dig)) {
gotoAndStop((Math.floor(_root.score / Math.pow(10, dig)) - (Math.floor(_root.score / (Math.pow(10, dig) * 10)) * 10)) + 2);
} else {
gotoAndStop (1);
}
};
stop();
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 12;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 11;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 10;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 9;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 8;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 7;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 6;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 5;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 4;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 3;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 2;
}
Instance of Symbol 472 MovieClip in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
dig = 1;
}
Symbol 476 Button
on (release) {
gotoAndStop (11);
}
Symbol 477 Button
on (release) {
gotoAndStop (7);
}
Symbol 478 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 482 Button
on (release) {
var optsave = SharedObject.getLocal("ChristmasATTACK");
optsave.data.qual = _root.qual;
optsave.data.vol = _root.vol;
optsave.flush();
gotoAndStop (4);
}
Symbol 490 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop((_root.vol / 50) + 2);
_root.svol.setVolume(_root.vol / 3);
};
gotoAndStop((_root.vol / 50) + 2);
Symbol 495 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.qual == "LOW") {
gotoAndStop (3);
} else if (_root.qual == "MEDIUM") {
gotoAndStop (4);
} else if (_root.qual == "HIGH") {
gotoAndStop (5);
} else {
gotoAndStop (2);
}
if (_root.qual == "AUTO") {
_quality = "BEST";
} else {
_quality = _root.qual;
}
};
if (_root.qual == "LOW") {
gotoAndStop (3);
} else if (_root.qual == "MEDIUM") {
gotoAndStop (4);
} else if (_root.qual == "HIGH") {
gotoAndStop (5);
} else {
gotoAndStop (2);
}
Symbol 496 MovieClip Frame 1
stat = 0;
sfx = new Sound();
sfx.attachSound("pausesfx");
gotoAndPlay (8);
Symbol 496 MovieClip Frame 2
stat = 0;
if (Key.isDown(13) || (Key.isDown(32))) {
if (_root.pau == 1) {
_root.pause = 1;
sfx.start(0, 0);
sfx.start(0, 0);
sfx.start(0, 0);
gotoAndPlay (4);
}
}
Symbol 496 MovieClip Frame 3
gotoAndPlay (2);
Symbol 496 MovieClip Frame 4
if (stat == 0) {
if ((!Key.isDown(13)) && (!Key.isDown(32))) {
stat = 1;
}
} else if (Key.isDown(13) || (Key.isDown(32))) {
gotoAndStop (7);
}
_root.svol.setVolume(_root.vol / 3);
if (_root.qual == "AUTO") {
_quality = "BEST";
} else {
_quality = _root.qual;
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Symbol 496 MovieClip Frame 5
gotoAndPlay (4);
Symbol 496 MovieClip Frame 6
stop();
Symbol 496 MovieClip Frame 7
_root.svol.setVolume(_root.vol);
sfx.start(0, 0);
if (_root.qual == "AUTO") {
_quality = _root.qual2;
} else {
_quality = _root.qual;
}
_root.pause = 0;
gotoAndPlay (8);
Symbol 496 MovieClip Frame 8
if ((!Key.isDown(13)) && (!Key.isDown(32))) {
gotoAndPlay (2);
}
Symbol 496 MovieClip Frame 9
gotoAndPlay (8);
Symbol 496 MovieClip Frame 10
stop();
Symbol 496 MovieClip Frame 11
stop();
Instance of Symbol 490 MovieClip in Symbol 496 MovieClip Frame 11
on (release) {
if (_root.vol < 200) {
_root.vol = _root.vol + 50;
} else {
_root.vol = 0;
}
}
Instance of Symbol 495 MovieClip in Symbol 496 MovieClip Frame 11
on (release) {
if (_root.qual == "LOW") {
_root.qual = "MEDIUM";
} else if (_root.qual == "MEDIUM") {
_root.qual = "HIGH";
} else if (_root.qual == "HIGH") {
_root.qual = "AUTO";
} else {
_root.qual = "LOW";
}
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 481 MovieClip in Symbol 496 MovieClip Frame 11
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Symbol 499 MovieClip Frame 1
_alpha = 0;
this.onEnterFrame = function () {
if (_alpha > 100) {
_alpha = 100;
} else if (_alpha > 3) {
_alpha = (_alpha * 0.95);
} else {
_alpha = 0;
}
};
Symbol 500 MovieClip Frame 1
fp = 25;
el = 0;
sc = 0;
this.onEnterFrame = function () {
if (sc < 4) {
sc++;
} else {
fp = (1 / ((getTimer() - el) / 1000)) * 5;
el = getTimer();
sc = 0;
}
unit = Math.round(fp / 4);
if (fp <= 24) {
c1._alpha = c1._alpha + 3;
c1._alpha = c1._alpha * 1.25;
if (fp <= 21) {
c2._alpha = c2._alpha + 3;
c2._alpha = c2._alpha * 1.25;
if (fp <= 18) {
c3._alpha = c3._alpha + 3;
c3._alpha = c3._alpha * 1.25;
if (fp <= 16) {
c4._alpha = c4._alpha + 3;
c4._alpha = c4._alpha * 1.25;
if (fp <= 15) {
c5._alpha = c5._alpha + 3;
c5._alpha = c5._alpha * 1.25;
if (fp <= 14) {
c6._alpha = c6._alpha + 3;
c6._alpha = c6._alpha * 1.25;
}
}
}
}
}
}
};
Symbol 502 MovieClip Frame 1
tos0 = new Sound();
tos1 = new Sound();
tos2 = new Sound();
tos3 = new Sound();
tos3b = new Sound();
tos4 = new Sound();
tos5 = new Sound();
tos0.attachSound("tos0");
tos1.attachSound("tos1");
tos2.attachSound("tos2");
tos3.attachSound("tos3");
tos3b.attachSound("tos3b");
tos4.attachSound("tos4");
tos5.attachSound("tos5");
start1 = 0;
start2 = 0;
start3 = 0;
start3b = 0;
start4 = 0;
start5 = 0;
st1 = 0;
st2 = 0;
st3 = 0;
st4 = 0;
tos0.start(0, 0);
Symbol 502 MovieClip Frame 2
end_frame = 401;
strt = _currentframe;
this.onEnterFrame = function () {
gotoAndStop(Math.ceil((tos0.position / tos0.duration) * (end_frame - strt)) + strt);
if (_currentframe >= end_frame) {
gotoAndStop(end_frame);
}
};
Symbol 502 MovieClip Frame 401
if (start1 == 0) {
tos0.stop();
end_frame = 1148;
strt = _currentframe;
tos1.start(0, 0);
start1 = 1;
}
this.onEnterFrame = function () {
gotoAndStop(Math.ceil((tos1.position / tos1.duration) * (end_frame - strt)) + strt);
if (_currentframe >= end_frame) {
gotoAndStop(end_frame);
}
};
st1 = 0;
Symbol 502 MovieClip Frame 1148
if (_root.levelno > 1) {
if (start2 == 0) {
tos1.stop();
end_frame = 1896;
strt = _currentframe;
tos2.start(0, 0);
start2 = 1;
}
} else {
if (st1 == 0) {
tos1.stop(0, 0);
st1 = 1;
tos1.start(0, 0);
}
gotoAndStop(strt);
}
this.onEnterFrame = function () {
gotoAndStop(Math.ceil((tos2.position / tos2.duration) * (end_frame - strt)) + strt);
if (_currentframe >= end_frame) {
gotoAndStop(end_frame);
}
};
st2 = 0;
Symbol 502 MovieClip Frame 1896
if (_root.levelno > 2) {
if (start3 == 0) {
tos2.stop();
end_frame = 3444;
strt = _currentframe;
tos3.start(0, 0);
start3 = 1;
}
} else {
if (st2 == 0) {
tos2.stop(0, 0);
st2 = 1;
tos2.start(0, 0);
}
gotoAndStop(strt);
}
this.onEnterFrame = function () {
gotoAndStop(Math.ceil((tos3.position / tos3.duration) * (end_frame - strt)) + strt);
if (_currentframe >= end_frame) {
gotoAndStop(end_frame);
}
};
st3 = 0;
Symbol 502 MovieClip Frame 3444
if (_root.levelno > 3) {
if (start3b == 0) {
tos3.stop();
end_frame = 3481;
strt = _currentframe;
tos3b.start(0, 0);
start3b = 1;
}
} else if (st3 == 0) {
tos3.stop(0, 0);
st3 = 1;
tos3.start(0, 0);
gotoAndStop(strt);
}
this.onEnterFrame = function () {
gotoAndStop(Math.ceil((tos3b.position / tos3b.duration) * (end_frame - strt)) + strt);
if (_currentframe >= end_frame) {
gotoAndStop(end_frame);
}
};
Symbol 502 MovieClip Frame 3481
if (start4 == 0) {
tos3b.stop();
end_frame = 4278;
strt = _currentframe;
tos4.start(0, 0);
start4 = 1;
}
this.onEnterFrame = function () {
gotoAndStop(Math.ceil((tos4.position / tos4.duration) * (end_frame - strt)) + strt);
if (_currentframe >= end_frame) {
gotoAndStop(end_frame);
}
};
st4 = 0;
Symbol 502 MovieClip Frame 4278
if (_root.levelno > 4) {
if (start5 == 0) {
tos4.stop();
end_frame = 4348;
strt = _currentframe;
tos5.start(0, 0);
start5 = 1;
}
} else {
if (st4 == 0) {
tos4.stop(0, 0);
st4 = 1;
tos4.start(0, 0);
}
gotoAndStop(strt);
}
this.onEnterFrame = function () {
gotoAndStop(Math.ceil((tos5.position / tos5.duration) * (end_frame - strt)) + strt);
if (_currentframe >= end_frame) {
gotoAndStop(end_frame);
}
};
Symbol 502 MovieClip Frame 4348
this.onEnterFrame = function () {
stop();
};
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
_root.bomb = 0;
this.onEnterFrame = function () {
if (_root.pause == 0) {
play();
} else {
stop();
}
};
lifepcs = _root.credit;
bombpcs = _root.bbno;
itempcs = _root.collected;
lifepoints = (((_root.dif * _root.dif) * lifepcs) * lifepcs) * 30000;
bombpoints = Math.round((((((_root.dif * _root.dif) * bombpcs) * bombpcs) * bombpcs) * 1500) / 1000) * 5000;
itempoints = Math.round((((((_root.dif * (itempcs / 50)) * (itempcs / 50)) * (itempcs / 50)) * (itempcs / 50)) * 8) / 1000) * 10000;
if (_root.dif == 0.5) {
if (lifepoints > 250000) {
lifepoints = 250000 /* 0x03D090 */;
} else if (lifepoints < 0) {
lifepoints = 0;
}
if (bombpoints > 250000) {
bombpoints = 250000 /* 0x03D090 */;
} else if (bombpoints < 0) {
bombpoints = 0;
}
if (itempoints > 250000) {
itempoints = 250000 /* 0x03D090 */;
} else if (itempoints < 0) {
itempoints = 0;
}
} else if (_root.dif == 2) {
if (lifepoints > 3000000) {
lifepoints = 3000000 /* 0x2DC6C0 */;
} else if (lifepoints < 0) {
lifepoints = 0;
}
if (bombpoints > 3000000) {
bombpoints = 3000000 /* 0x2DC6C0 */;
} else if (bombpoints < 0) {
bombpoints = 0;
}
if (itempoints > 3000000) {
itempoints = 3000000 /* 0x2DC6C0 */;
} else if (itempoints < 0) {
itempoints = 0;
}
} else {
if (lifepoints > 1000000) {
lifepoints = 1000000 /* 0x0F4240 */;
} else if (lifepoints < 0) {
lifepoints = 0;
}
if (bombpoints > 1000000) {
bombpoints = 1000000 /* 0x0F4240 */;
} else if (bombpoints < 0) {
bombpoints = 0;
}
if (itempoints > 1000000) {
itempoints = 1000000 /* 0x0F4240 */;
} else if (itempoints < 0) {
itempoints = 0;
}
}
bonus = (lifepoints + bombpoints) + itempoints;
bonuscount = 0;
rate = Math.round(bonus / 50);
Symbol 536 MovieClip Frame 26
_root.pau = 0;
_root.pause = 1;
_root.ctrl = 0;
_root.shoot = 0;
this.onEnterFrame = function () {
_root.pau = 0;
_root.pause = 1;
_root.ctrl = 0;
_root.shoot = 0;
};
_quality = "HIGH";
Instance of Symbol 372 MovieClip in Symbol 536 MovieClip Frame 87
onClipEvent (enterFrame) {
if (_parent.bonuscount < _parent.bonus) {
_parent.bonuscount = _parent.bonuscount + _parent.rate;
} else {
_parent.bonuscount = _parent.bonus;
}
}
Symbol 536 MovieClip Frame 138
bonuscount = bonus;
Instance of Symbol 372 MovieClip in Symbol 536 MovieClip Frame 163
onClipEvent (load) {
destscore = _root.score + _parent.bonus;
}
onClipEvent (enterFrame) {
if (_root.score < destscore) {
_root.score = _root.score + _parent.rate;
} else {
_root.score = destscore;
}
}
Symbol 536 MovieClip Frame 214
nextFrame();
Symbol 536 MovieClip Frame 215
stop();
Symbol 536 MovieClip Frame 216
prevFrame();