Frame 1
function itemHandler1(obj, item) {
getURL ("http://www.rekcah.se");
}
function itemHandler2(obj, item) {
getURL ("http://www.armorgames.com");
}
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
aaa_cmi = new ContextMenuItem("Rekcah.se", itemHandler1);
bbb_cmi = new ContextMenuItem("armorgames.com", itemHandler2);
ccc_cmi.separatorBefore = true;
root_cm.customItems.push(aaa_cmi, bbb_cmi, ccc_cmi);
_root.menu = root_cm;
_global.vol = 100;
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
var loaded = _root.getBytesLoaded();
var size = _root.getBytesTotal();
var perc = ((loaded / size) * 100);
this.pbar.bar.createEmptyMovieClip("q", 0);
this.pbar.bar.q.lineStyle(1, 0, 100);
this.pbar.bar.q.beginFill(0, 100);
this.pbar.bar.q.moveTo(0, 0);
this.pbar.bar.q.lineTo(25, 0);
this.pbar.bar.q.lineTo(50 + (perc * 5), 0);
this.pbar.bar.q.lineTo(50 + (perc * 5), 75);
this.pbar.bar.q.lineTo(25, 75);
this.pbar.bar.q.lineTo(25, 0);
this.pbar.bar.q.endFill();
if (perc == 100) {
_root.fade.play();
}
}
Instance of Symbol 17 MovieClip "fade" in Frame 1
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
}
Frame 2
stop();
Frame 3
stop();
_root.mu.p1();
Instance of Symbol 33 MovieClip "mu" in Frame 3
onClipEvent (load) {
function p1() {
s1.start();
}
function plop() {
sf1.start();
sf1.setVolume(_global.vol);
}
function scr() {
sf2.start();
sf2.setVolume(_global.vol);
}
function die() {
sf3.start();
sf3.setVolume(_global.vol);
}
stopAllSounds();
var s1 = new Sound();
s1.attachSound("so");
s1.onSoundComplete = function () {
p1();
};
p1();
var sf1 = new Sound();
sf1.attachSound("plop");
var sf2 = new Sound();
sf2.attachSound("scr");
var sf3 = new Sound();
sf3.attachSound("die");
}
onClipEvent (enterFrame) {
s1.setVolume(_global.vol);
}
Instance of Symbol 36 MovieClip in Frame 3
on (release) {
getURL ("http://www.rekcah.se", "_blank");
}
Frame 4
_global.graf_overall = 100;
_global.graf_filt = 100;
_global.graf_q = 100;
_global.graf_mode = 1;
stop();
Instance of Symbol 43 MovieClip in Frame 4
on (release) {
if (((_root.win_cred._currentframe == 1) && (_root.win_opt._currentframe == 1)) && (_root.win_help._currentframe == 1)) {
play();
_root.fade.play();
}
}
Instance of Symbol 47 MovieClip in Frame 4
on (release) {
if (((_root.win_cred._currentframe == 1) && (_root.win_opt._currentframe == 1)) && (_root.win_help._currentframe == 1)) {
play();
_root.win_opt.play();
}
}
Instance of Symbol 51 MovieClip in Frame 4
on (release) {
if (((_root.win_cred._currentframe == 1) && (_root.win_opt._currentframe == 1)) && (_root.win_help._currentframe == 1)) {
play();
_root.win_cred.play();
}
}
Instance of Symbol 55 MovieClip in Frame 4
on (release) {
if (((_root.win_cred._currentframe == 1) && (_root.win_opt._currentframe == 1)) && (_root.win_help._currentframe == 1)) {
play();
getURL ("http://www.armorgames.com", "_blank");
}
}
Instance of Symbol 59 MovieClip in Frame 4
on (release) {
if (((_root.win_cred._currentframe == 1) && (_root.win_opt._currentframe == 1)) && (_root.win_help._currentframe == 1)) {
play();
getURL ("http://armorbot.com/mytable/?id=1527", "_blank");
}
}
Instance of Symbol 63 MovieClip in Frame 4
on (release) {
if (((_root.win_cred._currentframe == 1) && (_root.win_opt._currentframe == 1)) && (_root.win_help._currentframe == 1)) {
play();
_root.win_help.play();
}
}
Frame 5
function dist(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function pod(xp, yp) {
_root.po.duplicateMovieClip(n, _root.getNextHighestDepth());
_root[n]._x = xp;
_root[n]._y = yp;
}
_global.p = 0;
_global.r = 10;
_global.g = 10;
_global.b = 10;
_global.lives = 5;
_global.lvl = 1;
_global.score = 0;
var poc = 0;
var tf = this.filters;
if (_global.graf_filt >= 25) {
if (_global.graf_filt >= 100) {
var q = 3;
} else if (_global.graf_filt >= 75) {
var q = 2;
} else if (_global.graf_filt >= 50) {
var q = 1;
}
var filt1 = (new flash.filters.BevelFilter(2, 45, 16777215, 0.3, 0, 0.3, 5, 5, 5, q, "inner", false));
tf.push(filt1);
}
if (_global.graf_q >= 86) {
_quality = "BEST";
var filt2 = (new flash.filters.BlurFilter(1.2, 1.2, 3));
tf.push(filt2);
} else if (_global.graf_q >= 71) {
_quality = "BEST";
var filt2 = (new flash.filters.BlurFilter(1.2, 1.2, 2));
tf.push(filt2);
} else if (_global.graf_q >= 57) {
_quality = "BEST";
var filt2 = (new flash.filters.BlurFilter(1.2, 1.2, 1));
tf.push(filt2);
} else if (_global.graf_q >= 42) {
_quality = "BEST";
} else if (_global.graf_q >= 29) {
_quality = "HIGH";
} else if (_global.graf_q >= 14) {
_quality = "MEDIUM";
} else {
_quality = "LOW";
}
_root.pl.filters = tf;
stop();
Instance of Symbol 121 MovieClip "p" in Frame 5
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
onClipEvent (enterFrame) {
if (_root.pl.hitTest(_x, _y, true)) {
_root.pl.plr.pp();
}
if (_root._currentframe != 5) {
this.removeMovieClip();
}
}
Instance of Symbol 125 MovieClip "en" in Frame 5
onClipEvent (load) {
var p = random(3);
gotoAndStop(p + 1);
var s = (0.05 * _global.lvl);
}
onClipEvent (enterFrame) {
if (_name != "en") {
if (_global.p == 0) {
_y = (_y + (0.5 + s));
if (_root.pl.hitTest(_x, _y, true)) {
if (p == 0) {
var q = _global.r;
} else if (p == 1) {
var q = _global.g;
} else if (p == 2) {
var q = _global.b;
}
if (q > 0) {
_global.score = _global.score + 10;
if (p == 0) {
_global.r--;
} else if (p == 1) {
_global.g--;
} else if (p == 2) {
_global.b--;
}
_root.pod(_x, _y);
_root.mu.scr();
this.removeMovieClip();
} else {
_root.pl.plr.die();
_root.pod(_x, _y);
this.removeMovieClip();
}
}
if (_y > 420) {
this.removeMovieClip();
}
if (_root._currentframe != 5) {
this.removeMovieClip();
}
}
}
}
Instance of Symbol 149 MovieClip in Frame 5
onClipEvent (enterFrame) {
this.po.text = _global.score + " p";
this.lv.text = "LVL: " + _global.lvl;
}
Instance of Symbol 159 MovieClip "po" in Frame 5
onClipEvent (enterFrame) {
if (_currentframe == 15) {
this.removeMovieClip();
}
}
Instance of Symbol 161 MovieClip in Frame 5
onClipEvent (keyDown) {
if (Key.isDown(19)) {
if (_global.p == 0) {
_global.p = 1;
gotoAndStop (2);
} else {
_global.p = 0;
gotoAndStop (1);
}
}
}
Frame 6
function res() {
_root.plr.removeMovieClip();
}
stop();
Instance of Symbol 170 MovieClip "go" in Frame 6
onClipEvent (load) {
_root.res();
this.sc.text = _global.score + " p";
}
Instance of Symbol 2 MovieClip in Symbol 13 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 0.5);
}
Symbol 17 MovieClip Frame 11
stop();
Symbol 17 MovieClip Frame 20
if (_root._currentframe != 6) {
_root.play();
} else {
_root.gotoAndStop(4);
}
Symbol 21 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 28 MovieClip Frame 82
stop();
_root.fade.play();
Symbol 36 MovieClip Frame 131
_root.fade.play();
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Instance of Symbol 68 MovieClip "q1" in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
var sx = _x;
_x = (_x + 400);
var down = 0;
}
onClipEvent (enterFrame) {
if (down == 1) {
if ((_parent._xmouse >= sx) && (_parent._xmouse <= (sx + 400))) {
_x = _parent._xmouse;
} else if (_parent._xmouse < sx) {
_x = sx;
} else if (_parent._xmouse > (sx + 400)) {
_x = (sx + 400);
}
_global.graf_overall = (_x - sx) / 4;
_global.graf_mode = 0;
}
}
on (press) {
down = 1;
gotoAndStop (1);
_parent.q1.down = 1;
_parent.q2.down = 1;
_parent.q3.down = 1;
}
onClipEvent (mouseUp) {
down = 0;
}
Instance of Symbol 68 MovieClip "q2" in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
var sx = _x;
_x = (_x + 400);
var down = 0;
}
onClipEvent (enterFrame) {
if (down == 1) {
if ((_parent._xmouse >= sx) && (_parent._xmouse <= (sx + 400))) {
_x = _parent._xmouse;
} else if (_parent._xmouse < sx) {
_x = sx;
} else if (_parent._xmouse > (sx + 400)) {
_x = (sx + 400);
}
_global.graf_q = (_x - sx) / 4;
_global.graf_mode = 1;
}
}
on (press) {
down = 1;
_parent.q1.gotoAndStop(2);
}
onClipEvent (mouseUp) {
down = 0;
}
Instance of Symbol 68 MovieClip "q3" in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
var sx = _x;
_x = (_x + 400);
var down = 0;
}
onClipEvent (enterFrame) {
if (down == 1) {
if ((_parent._xmouse >= sx) && (_parent._xmouse <= (sx + 400))) {
_x = _parent._xmouse;
} else if (_parent._xmouse < sx) {
_x = sx;
} else if (_parent._xmouse > (sx + 400)) {
_x = (sx + 400);
}
_global.graf_filt = (_x - sx) / 4;
_global.graf_mode = 1;
}
}
on (press) {
down = 1;
_parent.q1.gotoAndStop(2);
}
onClipEvent (mouseUp) {
down = 0;
}
Instance of Symbol 68 MovieClip "q4" in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
var sx = _x;
_x = (_x + 400);
var down = 0;
}
onClipEvent (enterFrame) {
if (down == 1) {
if ((_parent._xmouse >= sx) && (_parent._xmouse <= (sx + 400))) {
_x = _parent._xmouse;
} else if (_parent._xmouse < sx) {
_x = sx;
} else if (_parent._xmouse > (sx + 400)) {
_x = (sx + 400);
}
_global.vol = (_x - sx) / 4;
}
}
on (press) {
down = 1;
}
onClipEvent (mouseUp) {
down = 0;
}
Instance of Symbol 70 MovieClip in Symbol 74 MovieClip Frame 1
on (release) {
_parent._parent.play();
}
Instance of Symbol 71 MovieClip in Symbol 74 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_global.graf_q >= 86) {
_quality = "BEST";
} else if (_global.graf_q >= 71) {
_quality = "BEST";
} else if (_global.graf_q >= 57) {
_quality = "BEST";
} else if (_global.graf_q >= 42) {
_quality = "BEST";
} else if (_global.graf_q >= 29) {
_quality = "HIGH";
} else if (_global.graf_q >= 14) {
_quality = "MEDIUM";
} else {
_quality = "LOW";
}
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 11
stop();
Instance of Symbol 82 MovieClip in Symbol 83 MovieClip Frame 1
on (release) {
_parent._parent.play();
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 11
stop();
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip Frame 1
on (release) {
_parent._parent.play();
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 11
stop();
Instance of Symbol 96 MovieClip in Symbol 114 MovieClip Frame 1
on (release) {
getURL ("http://www.rekcah.se", "_blank");
}
Instance of Symbol 111 MovieClip in Symbol 114 MovieClip Frame 1
on (release) {
getURL ("http://www.rekcah.se", "_blank");
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
Instance of Symbol 132 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txt.text = _global.r;
}
Instance of Symbol 135 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txt.text = _global.g;
}
Instance of Symbol 138 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txt.text = _global.b;
}
Instance of Symbol 139 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_global.lives + 1);
}
Instance of Symbol 144 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.r >= 2) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_global.r >= 2) {
_global.r = _global.r - 2;
_global.lives++;
}
}
Instance of Symbol 146 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.g >= 2) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_global.g >= 2) {
_global.g = _global.g - 2;
_global.lives++;
}
}
Instance of Symbol 147 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.b >= 2) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
on (release) {
if (_global.b >= 2) {
_global.b = _global.b - 2;
_global.lives++;
}
}
Instance of Symbol 155 MovieClip "plr" in Symbol 156 MovieClip Frame 1
onClipEvent (load) {
function pp() {
if ((_root.p._currentframe - 1) == p) {
if (p == 0) {
_global.r++;
} else if (p == 1) {
_global.g++;
} else {
_global.b++;
}
_root.p._x = 50 + random(450);
_root.p._y = 50 + random(300);
_root.p.gotoAndStop(random(3) + 1);
_root.mu.plop();
}
}
this.swapDepths(0);
var xm = 0;
var ym = 0;
var r = 0;
var s = 0;
var sc = 0;
var rm = 0;
var lr = 0;
var tlr = 0;
var et = 200;
var ec = 0;
var color = "0xff0000";
var p = 0;
_root.p._x = 50 + random(450);
_root.p._y = 50 + random(300);
}
onClipEvent (enterFrame) {
if (_global.p == 0) {
if (p == 0) {
color = "0xff0000";
} else if (p == 1) {
color = "0x00ff00";
} else if (p == 2) {
color = "0x0000ff";
}
this.gotoAndStop(p + 1);
if (et <= 0) {
var n = ("ene" + ec);
_root.en.duplicateMovieClip(n, _root.getNextHighestDepth());
_root[n]._x = 50 + random(450);
ec++;
et = 150 - ((4 + (random(100) / 100)) * _global.lvl);
} else {
et--;
}
if (Key.isDown(37)) {
rm = -10;
tlr = 1;
}
if (Key.isDown(39)) {
rm = 10;
tlr = 2;
}
if (lr != tlr) {
s = s + 1;
}
xp = Math.cos(((_rotation - 90) / 180) * Math.PI) * s;
yp = Math.sin(((_rotation - 90) / 180) * Math.PI) * s;
rm = rm * 0.8;
r = rm;
_rotation = (_rotation + r);
_x = (_x + xp);
_y = (_y + yp);
s = s * 0.98;
lr = tlr;
}
}
onClipEvent (load) {
function addstring(n) {
nn = "pd" + nc;
_parent.dot.duplicateMovieClip(nn, _parent.getNextHighestDepth());
if (nc != 0) {
_parent[nn]._x = _parent["pd" + (nc - 1)]._x;
_parent[nn]._y = _parent["pd" + (nc - 1)]._y;
} else {
_parent[nn]._x = 275;
_parent[nn]._y = 200;
}
_parent[nn].c = c;
nc++;
if (n != 0) {
a++;
}
}
function dead() {
_root.d();
_parent.pk.removeMovieClip();
var _local3 = 1;
while (_local3 < a) {
var _local4 = "pk" + _local3;
_parent[_local4].removeMovieClip();
_local3++;
}
_root.fade.play();
}
function die() {
_global.lives--;
_x = 275;
_y = 200;
s = 0;
_root.mu.die();
var _local4 = 0;
while (_local4 < a) {
tellTarget (_parent["pd" + _local4]) {
_x = 275;
_y = 200;
};
_local4++;
}
}
var nn = 0;
var nc = 0;
var a = 21;
var lvlt = 320;
var c = 0;
while (c < a) {
addstring(0);
c++;
}
}
onClipEvent (enterFrame) {
if (_global.p == 0) {
if (lvlt == 0) {
_global.lvl++;
lvlt = 320;
} else {
lvlt--;
}
var c = 0;
while (c < a) {
tellTarget (_parent["pd" + c]) {
if (c == 1) {
_x = (_x - ((_x - _parent.plr._x) * 0.5));
_y = (_y - ((_y - _parent.plr._y) * 0.5));
} else {
_x = (_x - ((_x - _parent["pd" + (c - 1)]._x) * 0.5));
_y = (_y - ((_y - _parent["pd" + (c - 1)]._y) * 0.5));
}
};
c++;
}
_parent.createEmptyMovieClip("pk", 1);
_parent.pk.lineStyle(5, color, 100);
_parent.pk.moveTo(_parent.plr._x, _parent.plr._y);
_parent.pk.lineTo(_parent.pd1._x, _parent.pd1._y);
var c = 1;
while (c < a) {
var n = ("pk" + c);
var tn = ("pd" + c);
if (c != (a - 1)) {
var pn = ("pd" + (c + 1));
} else {
var pn = tn;
}
_parent.createEmptyMovieClip(n, (5 + a) + c);
_parent[n].lineStyle(a - c, color, 100);
_parent[n].moveTo(_parent[tn]._x, _parent[tn]._y);
_parent[n].lineTo(_parent[pn]._x, _parent[pn]._y);
c++;
}
if (Key.isDown(49)) {
p = 0;
} else if (Key.isDown(50)) {
p = 1;
} else if (Key.isDown(51)) {
p = 2;
}
if (_x < 10) {
die();
} else if (_y < 10) {
die();
} else if (_x > 540) {
die();
} else if (_y > 390) {
die();
}
if (_global.lives <= 0) {
dead();
}
_root.dir._x = _x;
_root.dir._y = _y;
_root.dir._rotation = _rotation;
_root.p.swapDepths(_root.getNextHighestDepth());
}
}
Symbol 161 MovieClip Frame 1
stop();
Instance of Symbol 164 MovieClip in Symbol 170 MovieClip Frame 1
on (release) {
_root.mu.s1.stop();
_root.fade.play();
}
Instance of Symbol 55 MovieClip in Symbol 170 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
play();
_root.mu.s1.stop();
_root.fade.play();
}
Instance of Symbol 168 MovieClip in Symbol 170 MovieClip Frame 1
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = _parent.nm.text;
ab20_09.x = _global.score;
ab20_09.c = 1527;
ab20_09.v = "KCRGGA";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.mu.s1.stop();
_root.fade.play();
this.visible = false;
}