Frame 1
stop();
Instance of Symbol 34 MovieClip [barricade] in Frame 1
onClipEvent (load) {
totalBytes = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
c1 = _url.indexOf("://") + 3;
c2 = _url.indexOf("/", c1);
domain = _url.substring(c1, c2);
c3 = domain.lastIndexOf(".") - 1;
c4 = domain.lastIndexOf(".", c3) + 1;
domain = domain.substring(c4, domain.length);
bytesL = _root.getBytesLoaded();
amountLoaded = bytesL / totalBytes;
_root.read = ((int(bytesL / 1000) + "KB/") + int(totalBytes / 1000)) + "KB";
if (amountLoaded >= 1) {
if (domain != "gamegecko.com") {
_root.variab = 1;
_root.gotoAndStop(2);
} else {
_root.variab = 0;
_root.gotoAndStop(2);
}
}
}
Frame 2
stop();
Instance of Symbol 34 MovieClip [barricade] in Frame 2
onClipEvent (load) {
_root.moe._alpha = 0;
sev = 0;
}
onClipEvent (enterFrame) {
sev = sev + 1;
if (sev < 20) {
_root.moe._alpha = _root.moe._alpha + 5;
}
if (sev > 99) {
_root.moe._alpha = _root.moe._alpha - 5;
}
if (sev == 131) {
_root.nextFrame();
}
}
Frame 3
function create(p, t, m, v, y) {
i = 0;
while (i < t) {
attachMovie("barricade", "b" + b, b);
_root["b" + b]._alpha = 0;
if (p < 2) {
_root["b" + b]._x = _root["p" + p]._x;
_root["b" + b]._y = _root["p" + p]._y;
} else {
_root["b" + b]._x = 41 + int(Math.random() * 418);
if (v == 1) {
_root["b" + b].gotoAndStop("b");
_root["b" + b]._y = 484;
} else if (v == 2) {
if (y == 0) {
_root["b" + b].gotoAndStop("b");
} else {
tot = 9 + y;
_root["b" + b].gotoAndStop(tot);
}
_root["b" + b].x = 0;
_root["b" + b]._y = 16;
} else if (v == 3) {
_root["b" + b]._y = _root._ymouse;
_root["b" + b]._x = _root._xmouse;
if (y == 1) {
_root["b" + b]._x = _root["b" + b]._x - 45;
}
if (y == 2) {
_root["b" + b]._x = _root["b" + b]._x + 45;
}
} else if (v == 4) {
rand = int(Math.random() * 7);
if (rand == 0) {
_root["b" + b].gotoAndStop("d");
_root["b" + b].po = 0;
}
if (rand == 1) {
_root["b" + b].gotoAndStop("p");
_root["b" + b].po = 1;
}
if (rand == 2) {
_root["b" + b].gotoAndStop("y");
_root["b" + b].po = 2;
}
if (rand == 3) {
_root["b" + b].gotoAndStop("o");
_root["b" + b].po = 3;
}
if (rand == 4) {
_root["b" + b].gotoAndStop("w");
_root["b" + b].po = 4;
}
if (rand == 5) {
_root["b" + b].gotoAndStop("cy");
_root["b" + b].po = 5;
}
if (rand == 6) {
_root["b" + b].gotoAndStop("g");
_root["b" + b].po = 6;
}
_root["b" + b].po = rand;
_root["b" + b]._y = 16;
} else {
_root["b" + b]._y = 130 + int(Math.random() * 290);
}
}
_root["b" + b].p = p;
_root["b" + b].m = m;
j = a;
while (j < b) {
if (_root["b" + j].hitTest(_root["b" + b])) {
_root["b" + b].removeMovieClip();
}
j++;
}
if (v == 3) {
if (_root["b" + b]._x < 41) {
_root["b" + b].removeMovieClip();
}
if (_root["b" + b]._y < 66) {
_root["b" + b].removeMovieClip();
}
if (_root["b" + b]._x > 459) {
_root["b" + b].removeMovieClip();
}
if (_root["b" + b]._y > 484) {
_root["b" + b].removeMovieClip();
}
}
if (_root["b" + b]._x != undefined) {
b++;
c++;
if (v == 3) {
d++;
if (y == undefined) {
e = 1;
}
}
}
i++;
}
}
function raise(p, t, m) {
duplicateMovieClip (p, t, m);
}
function mouse() {
attachMovie("cursor", "cu", 999999999);
}
stop();
Instance of Symbol 34 MovieClip [barricade] "a" in Frame 3
onClipEvent (load) {
timers = -1;
a = -2;
_root.cu._x = _root._xmouse;
_root.cu._y = _root._ymouse;
Mouse.hide();
s = new Sound();
_root.p0._x = 550;
_root.f._alpha = 0;
_root.s._alpha = 0;
_root.t._alpha = 0;
_root.fo._alpha = 0;
_root.st._alpha = 0;
_root.net._alpha = 0;
temp = 0;
_root.as = 0;
pow = 0;
_root.read = "";
}
onClipEvent (mouseDown) {
Mouse.hide();
if (a == 1) {
temp = 1;
if (pow != 6) {
if (al > 0) {
_root.create(2, 1, 0, 3);
}
}
}
if (a == -1) {
if (sv != 1200) {
sv = 1200;
}
}
}
onClipEvent (mouseUp) {
cus = 0;
temp = 0;
}
onClipEvent (enterFrame) {
function chec() {
if (_root.d > 0) {
cus = 1;
al = al - _root.d;
_root.d = 0;
}
}
function destroy(d, p) {
exp = 1;
if (_root["b" + d]._currentframe < 15) {
_root["b" + d].gotoAndPlay("c");
_root["b" + d].m = 0;
if (p == 1) {
_root.p0.h = _root.p0.h - 1;
plays("hurt");
pow = 0;
}
} else {
_root["b" + d].play();
}
if (_root["b" + d].p == 0) {
if (pow == undefined) {
pow = 0;
}
score = score + 25;
if (pow == 0) {
_root["b" + d].gotoAndStop("a");
} else {
_root["b" + d].gotoAndStop(pow + 3);
}
}
}
function plays(v1) {
s.attachSound(v1);
s.start();
}
function ask() {
_root.sav.score = _root.score;
_root.sav.name = _root.t.name;
_root.sav.pass = "request";
_root.sav.past = _root.sav.score + 845;
_root.sav.past = _root.sav.past ^ 486947;
_root.sav.past = _root.sav.past - 437;
_root.sav.mittere();
}
function question() {
_root.sav.score = _root.score;
_root.sav.pass = "question";
_root.sav.mittere();
}
if (pow == undefined) {
pow = 0;
}
if (a == -2) {
dus = 1;
_root.fo._x = 750;
_root.f._x = 250;
_root.read = "";
if (_root.sae > 0) {
_root.sae = 0;
sv = 1;
}
if (sv == 1) {
if (_root.f._alpha > 0) {
_root.f._alpha = _root.f._alpha - 5;
} else {
_root.f._x = 675;
sv = 0;
a = -1;
}
} else if (_root.f._alpha < 100) {
_root.f._alpha = _root.f._alpha + 5;
}
}
if (a == -1) {
_root.read = "";
_root.s._x = 250;
if (sv == 0) {
if (_root.s._alpha < 100) {
_root.s._alpha = _root.s._alpha + 5;
} else {
sv = 1;
}
} else if (sv < 1200) {
sv = sv + 1;
} else {
fv = -1;
}
if (fv == -1) {
if (_root.s._alpha > 0) {
_root.s._alpha = _root.s._alpha - 5;
} else {
_root.s._x = 675;
sv = 0;
fv = 0;
a = 0;
}
}
}
if (_root.e == 1) {
_root.e = 0;
plays("create");
if (pow == 2) {
_root.create(2, 1, 0, 5);
}
if (pow == 4) {
chec();
if (al > 0) {
_root.create(2, 1, 0, 3, 1);
}
chec();
if (al > 0) {
_root.create(2, 1, 0, 3, 2);
}
}
}
_root.mouse();
_root.cu._x = _root._xmouse;
_root.cu._y = _root._ymouse;
if (temp == 1) {
cus = 1;
}
if (pow == 6) {
cus = 2;
} else if (cus == 2) {
cus = 0;
}
if (cus == 1) {
if (al > 0) {
if (a == 1) {
_root.create(2, 1, 0, 3);
}
}
_root.cu.gotoAndStop("b");
_root.cu._alpha = 80;
} else if (cus == 2) {
_root.cu.gotoAndStop("c");
_root.cu._alpha = 80;
} else {
_root.cu.gotoAndStop("a");
_root.cu._alpha = 80;
}
if (dus == 1) {
_root.cu.read = "";
}
chec();
if (a == 0) {
_root.p0._xscale = 100;
stag = 1;
svars = 0;
newgame = 0;
al = 0;
bd = -0.025;
score = 0;
bt = 0;
rt = 0.001;
dus = 0;
ft = 0;
fs = 10;
tt = 0.025;
st = 0;
fot = 0.003;
fat = 0.5;
ts = 1;
cus = 0;
_root.d = 0;
_root.e = 0;
_root.b = 0;
_root.a = 0;
_root.c = 0;
_root.d = 0;
i = 0;
while (i < 2) {
_root["p" + i]._x = 250;
_root["p" + i].h = 5;
_root["p" + i].a = 2;
_root["p" + i].d = 2;
_root["p" + i].t = 0;
_root["p" + i].r = 5;
_root["p" + i].c = 0;
_root["p" + i].m = 12;
_root["p" + i].s = 0;
i++;
}
_root.create(2, st, 0);
a = 1;
firs = 0;
numb = 50;
pow = 0;
}
if (a == 1) {
fsco = score;
fs = 8;
tt = 0.03 + (0.004 * stag);
rt = 0.003 + (0.0004 * stag);
fot = 0.003 + (0.0004 * stag);
if (pow == 1) {
tt = tt * 0.7;
rt = rt * 0.7;
}
if (tt > 0.12) {
}
if (rt > 0.006) {
}
if (fot > 0.006) {
}
ts = 1;
if (firs == 0) {
numb = 20 + (5 * stag);
fat = 0.5;
_root.st.st = "Stage " + stag;
if (_root.st._alpha < 100) {
_root.st._alpha = _root.st._alpha + 5;
} else if (svars < 90) {
svars = svars + 1;
} else {
firs = 1;
svars = 0;
}
tt = 0;
rt = 0;
}
if (firs == 1) {
if (_root.st._alpha > 0) {
_root.st._alpha = _root.st._alpha - 5;
} else {
firs = -1;
}
tt = 0;
rt = 0;
}
_root.cu.read = al;
_root.life = _root.p0.h;
_root.score = score;
i = 0;
while (i < 2) {
if (_root["p" + i].t == 0) {
_root["p" + i].s = 1;
_root["p" + i].t = _root["p" + i].r;
_root.create(i, 1, 0);
}
if (_root["p" + i].s == 1) {
if (_root["p" + i].t > 0) {
_root["p" + i].t = _root["p" + i].t - 1;
}
}
i++;
}
i = 0;
if (_root["p" + i].c <= 0) {
if (Key.isDown(37) or Key.isDown(65)) {
_root["p" + i].c = _root["p" + i].c - _root["p" + i].a;
} else if (_root["p" + i].c < 0) {
_root["p" + i].c = _root["p" + i].c + _root["p" + i].d;
}
}
if (_root["p" + i].c >= 0) {
if (Key.isDown(39) or Key.isDown(68)) {
_root["p" + i].c = _root["p" + i].c + _root["p" + i].a;
} else if (_root["p" + i].c > 0) {
_root["p" + i].c = _root["p" + i].c - _root["p" + i].d;
}
}
if (Math.abs(_root["p" + i].c) > _root["p" + i].m) {
_root["p" + i].c = (Math.abs(_root["p" + i].c) / _root["p" + i].c) * _root["p" + i].m;
}
_root["p" + i]._x = _root["p" + i]._x + _root["p" + i].c;
if (_root["p" + i]._x > 459) {
_root["p" + i]._x = 459;
_root["p" + i].c = 0;
}
if (_root["p" + i]._x < 41) {
_root["p" + i]._x = 41;
_root["p" + i].c = 0;
}
if (pow == 5) {
if (_root["p" + i]._x > 451) {
_root["p" + i]._x = 451;
_root["p" + i].c = 0;
}
if (_root["p" + i]._x < 49) {
_root["p" + i]._x = 49;
_root["p" + i].c = 0;
}
}
bt = bt + rt;
ft = ft + tt;
fat = fat + fot;
if (fat > 1) {
if (numb > 0) {
fat = fat - 1;
if (stag > 1) {
rando = stag - 1;
if (rando > 5) {
rando = 5;
}
rando = int(Math.random() * rando) + 1;
_root.create(2, ts, fs, 2, rando);
}
} else {
fat = 0.5;
}
}
if (bt > 1) {
if (numb > 0) {
bt = bt - 1;
_root.create(4, ts, fs, 4);
} else {
bt = 0;
}
}
if (ft > 1) {
if (numb > 0) {
ft = ft - 1;
_root.create(2, ts, fs, 2, 0);
numb = numb - 1;
} else {
ft = 0;
}
}
coun = 0;
i = _root.a;
while (i < _root.b) {
if (i == _root.a) {
if (_root["b" + i]._x == undefined) {
_root.a++;
i++;
}
}
if (_root["b" + i]._alpha < 100) {
_root["b" + i]._alpha = _root["b" + i]._alpha + 20;
}
if (_root["b" + i].p == 0) {
if (pow == 5) {
if (_root.p0._xscale == 100) {
_root["b" + i]._xscale = 150;
_root.p0._xscale = 150;
}
} else if (_root.p0._xscale == 150) {
_root["b" + i]._xscale = 100;
_root.p0._xscale = 100;
}
if (pow == 0) {
_root["b" + i].gotoAndStop(1);
} else {
_root["b" + i].gotoAndStop(pow + 3);
}
}
if (pow == 6) {
if (al > 0) {
if (_root["b" + i]._currentframe < 15) {
if (_root["b" + i].p != 0) {
if (_root.cu.cu.hitTest(_root["b" + i])) {
destroy(i);
al = al - 1;
score = score + 75;
}
}
}
}
}
if (i != (_root.b - 1)) {
if (_root["b" + (i + 1)]._x == undefined) {
_root.raise("b" + i, "b" + (i + 1), i + 1);
_root["b" + (i + 1)].gotoAndStop(_root["b" + i]._currentframe);
_root["b" + (i + 1)].m = _root["b" + i].m;
_root["b" + (i + 1)].p = _root["b" + i].p;
_root["b" + i].removeMovieClip();
}
}
if (_root["b" + i]._currentframe >= 15) {
_root["b" + i].play();
}
if (_root["b" + i].p < 2) {
_root["b" + i]._x = _root["p" + _root["b" + i].p]._x;
_root["b" + i]._y = _root["p" + _root["b" + i].p]._y;
}
if (_root["b" + i].p == 2) {
if (_root["b" + i]._currentframe == 2) {
btyp = 1;
} else {
btyp = _root["b" + i]._currentframe - 8;
}
if (((btyp == 2) or (btyp == 4)) or (btyp == 6)) {
rando = int(Math.random() * 3) - 1;
_root["b" + i].x = _root["b" + i].x + rando;
_root["b" + i]._x = _root["b" + i]._x + _root["b" + i].x;
if (Math.abs(_root["b" + i].x) > (stag * 1.5)) {
_root["b" + i].x = ((Math.abs(_root["b" + i].x) / _root["b" + i].x) * stag) * 1.5;
}
if (_root["b" + i]._x > 459) {
_root["b" + i].x = 0;
_root["b" + i]._x = 459;
}
if (_root["b" + i]._x < 41) {
_root["b" + i].x = 0;
_root["b" + i]._x = 41;
}
}
}
if ((_root["b" + i].p == 2) or (_root["b" + i].p == 4)) {
if (pow != 1) {
_root["b" + i]._y = _root["b" + i]._y + _root["b" + i].m;
} else {
_root["b" + i]._y = _root["b" + i]._y + (_root["b" + i].m * 0.7);
}
if (Math.abs(_root["b" + i].m) > bd) {
_root["b" + i].m = _root["b" + i].m - ((Math.abs(_root["b" + i].m) / _root["b" + i].m) * bd);
} else {
_root["b" + i].m = 0;
}
if (Math.abs(_root["b" + i].m) > 0) {
coun = coun + 1;
if (_root["b" + i]._y >= 484) {
_root["b" + i]._y = 484;
if (_root["b" + i].p == 2) {
destroy(i, 1);
} else {
destroy(i);
}
}
j = _root.a;
while (j < _root.b) {
if (j == i) {
j++;
}
if (_root["b" + i].hitTest(_root["b" + j])) {
tem = _root["b" + i]._currentframe - 3;
if (_root["b" + j].p == 0) {
if ((btyp == 3) or (btyp == 4)) {
score = score - 100;
_root.p0.h = _root.p0.h - 1;
plays("hurt");
pow = 0;
}
if (_root["b" + i].p == 4) {
score = score + 100;
if (tem == 0) {
_root.p0.h = _root.p0.h + 1;
} else {
pow = tem;
}
plays("heal");
} else if ((btyp != 3) and (btyp != 4)) {
al = al + 1;
plays("alup");
}
}
if ((btyp != 5) and (btyp != 6)) {
destroy(i);
score = score + 75;
} else if (_root["b" + j].p == 0) {
destroy(i);
score = score + 75;
}
if (_root["b" + j]._currentframe < 15) {
destroy(j);
}
}
j++;
}
}
}
if (_root["b" + i].p == 3) {
_root["b" + i].removeMovieClip();
_root.c = _root.c - 1;
}
i++;
}
if (numb == 0) {
if (coun == 0) {
firs = 0;
stag = stag + 1;
}
}
if (_root.p0.h <= 0) {
plays("explode");
plays("explode");
_root.life = "";
_root.cu.read = "";
dus = 1;
i = _root.a;
while (i < _root.b) {
destroy(i);
i++;
}
a = 2;
}
if (pow == 3) {
score = score + (score - fsco);
}
}
if (a == 2) {
i = _root.a;
while (i < _root.b) {
if (i == _root.a) {
if (_root["b" + i]._x == undefined) {
_root.a++;
i++;
}
}
if (_root["b" + i]._currentframe >= 15) {
_root["b" + i].play();
}
if (i != (_root.b - 1)) {
if (_root["b" + (i + 1)]._x == undefined) {
_root.raise("b" + i, "b" + (i + 1), i + 1);
_root["b" + (i + 1)].gotoAndStop(_root["b" + i]._currentframe);
_root["b" + (i + 1)].m = _root["b" + i].m;
_root["b" + (i + 1)].p = _root["b" + i].p;
_root["b" + i].removeMovieClip();
}
}
if (_root["b" + i].p == 3) {
_root["b" + i].removeMovieClip();
_root.c = _root.c - 1;
}
if ((_root.a + 1) == _root.b) {
_root.sae = 0;
if (_root.variab == 0) {
question();
a = 5;
sv = 0;
} else if (_root.variab == 1) {
sv = 0;
a = 6;
}
}
i++;
}
}
if (exp > 0) {
exp = 0;
plays("explode");
}
if (a == 6) {
_root["b" + _root.a].removeMovieClip();
_root.p0._x = 550;
_root.net._x = 250;
dus = 1;
if (sv != 1) {
if (_root.sae > 0) {
_root.sae = 0;
sv = 1;
}
}
if (sv == 1) {
if (_root.net._alpha > 0) {
_root.net._alpha = _root.net._alpha - 5;
} else {
_root.net._x = 675;
sv = 0;
a = -2;
_root.score = "";
}
} else if (_root.net._alpha < 100) {
_root.net._alpha = _root.net._alpha + 5;
}
}
if (a == 3) {
_root["b" + _root.a].removeMovieClip();
_root.p0._x = 550;
_root.t._x = 250;
dus = 1;
if (sv != 1) {
if (_root.sae > 0) {
_root.sae = 0;
sv = 1;
ask();
}
}
if (sv == 1) {
if (_root.t._alpha > 0) {
_root.t._alpha = _root.t._alpha - 5;
} else {
_root.t._x = 675;
}
} else if (_root.t._alpha < 100) {
_root.t._alpha = _root.t._alpha + 5;
}
}
if (a == 4) {
_root.t._x = 675;
_root["b" + _root.a].removeMovieClip();
_root.p0._x = 550;
dus = 1;
if (newgame == 0) {
h = _root.teh;
h = h.split(".");
i = 0;
while (i < 10) {
h[i] = h[i].split(";");
_root.fo["n" + i] = h[i][0];
_root.fo["s" + i] = h[i][1];
i++;
}
sv = 0;
newgame = 1;
}
_root.fo._x = 250;
if (sv != 2) {
if (_root.sae > 0) {
_root.sae = 0;
sv = 2;
}
}
if (sv == 2) {
if (_root.fo._alpha > 0) {
_root.fo._alpha = _root.fo._alpha - 5;
} else {
_root.fo._x = 675;
sv = 0;
a = -2;
}
} else if (_root.fo._alpha < 100) {
_root.fo._alpha = _root.fo._alpha + 5;
}
}
if (_root.as > 0) {
a = _root.as;
_root.as = 0;
}
}
Instance of Symbol 34 MovieClip [barricade] "sav" in Frame 3
onClipEvent (enterFrame) {
function mittere() {
url = "http://files.gamegecko.com/barricade/savescore.php";
loadVariables (url, this, "POST");
resultText = "Loading...";
}
if (resultText != undefined) {
if (resultText == "yes") {
resultText = "";
_root.read = "";
_root.as = 3;
}
if (resultText == "no") {
resultText = "";
_root.teh = his;
_root.as = 4;
_root.read = "";
_root.score = "";
_root.a.sv = 1;
_root.a.plays("hurt");
}
if (resultText == "one") {
resultText = "";
score = id;
past = id - 462;
past = past ^ 7328974327;
past = past + 924;
pass = "submit";
mittere();
}
if (resultText == "two") {
resultText = "";
_root.read = "";
_root.score = "";
_root.teh = his;
_root.as = 4;
_root.a.plays("heal");
}
}
}
Symbol 13 MovieClip [cursor] Frame 1
stop();
Symbol 13 MovieClip [cursor] Frame 2
stop();
Symbol 13 MovieClip [cursor] Frame 3
stop();
Symbol 34 MovieClip [barricade] Frame 1
stop();
Symbol 34 MovieClip [barricade] Frame 2
stop();
Symbol 34 MovieClip [barricade] Frame 3
po = 0;
stop();
Symbol 34 MovieClip [barricade] Frame 4
po = 1;
stop();
Symbol 34 MovieClip [barricade] Frame 5
po = 2;
stop();
Symbol 34 MovieClip [barricade] Frame 6
po = 3;
stop();
Symbol 34 MovieClip [barricade] Frame 7
po = 4;
stop();
Symbol 34 MovieClip [barricade] Frame 8
po = 5;
stop();
Symbol 34 MovieClip [barricade] Frame 9
po = 6;
stop();
Symbol 34 MovieClip [barricade] Frame 10
stop();
Symbol 34 MovieClip [barricade] Frame 11
stop();
Symbol 34 MovieClip [barricade] Frame 12
stop();
Symbol 34 MovieClip [barricade] Frame 13
stop();
Symbol 34 MovieClip [barricade] Frame 14
stop();
Symbol 34 MovieClip [barricade] Frame 21
p = 3;
stop();
Symbol 42 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 54 Button
on (release) {
_root.sae = 1;
}
Symbol 57 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 60 Button
on (release) {
getURL ("http://www.gamesforwebsites.com", "_blank");
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 86 Button
on (release) {
_root.sae = 1;
}
Symbol 114 Button
on (release) {
_root.sae = 1;
}