Frame 1
stop();
Instance of Symbol 5 MovieClip "bar" in Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.xscale = Math.round(_xscale) + "%";
}
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.bar._xscale == 100) {
_visible = true;
}
}
on (release) {
if (_visible == true) {
_root.gotoAndPlay(2);
}
}
Instance of Symbol 13 MovieClip in Frame 1
on (release) {
getURL ("http://www.mjgames-online.com", "_blank");
}
Frame 2
loadVariables ("http://www.mjgames-online.com/games/counter/blockdodge.php", this);
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("98ad5f43", this, 10301, true);
Frame 3
Mouse.show();
stop();
Instance of Symbol 18 MovieClip in Frame 3
on (release) {
getURL ("http://www.mjgames-online.com/", "blank");
}
onClipEvent (load) {
_alpha = 70;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 70;
}
Instance of Symbol 23 MovieClip in Frame 3
on (release) {
_root.pmode = 1;
_root.gotoAndPlay(5);
}
onClipEvent (load) {
_alpha = 70;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 70;
}
Instance of Symbol 27 MovieClip in Frame 3
on (release) {
_root.gotoAndStop(4);
}
onClipEvent (load) {
_alpha = 70;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 70;
}
Instance of Symbol 31 MovieClip in Frame 3
on (release) {
getURL ("http://www.mjgames-online.com/games/", "blank");
}
onClipEvent (load) {
_alpha = 70;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 70;
}
Instance of Symbol 34 MovieClip in Frame 3
on (release) {
getURL ("http://www.mjgames-online.com/games/highscores/blockdodge.php", "_blank");
}
onClipEvent (load) {
_alpha = 70;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 70;
}
Frame 4
stop();
Instance of Symbol 40 MovieClip in Frame 4
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Frame 5
Mouse.hide();
stopAllSounds();
stop();
Instance of Symbol 46 MovieClip "block1" in Frame 5
onClipEvent (load) {
function arrayremove() {
i = 0;
while (i < _root.varr.blck1.length) {
if (id == _root.varr.blck1[i]) {
_root.varr.blck1.splice(i, 1);
}
i++;
}
}
function deleter() {
if (_x > 601) {
arrayremove();
removeMovieClip(this);
}
if (_x < -61) {
arrayremove();
removeMovieClip(this);
}
if (_y > 481) {
arrayremove();
removeMovieClip(this);
}
if (_y < -61) {
arrayremove();
removeMovieClip(this);
}
}
timer = 50;
}
onClipEvent (enterFrame) {
if (_root.varr.gameover == false) {
deleter();
_x = (_x + _root.varr.speedb1v);
_y = (_y + _root.varr.speedb1h);
} else {
timer--;
_alpha = (_alpha - 2);
if (timer < 0) {
arrayremove();
removeMovieClip(this);
}
}
}
Instance of Symbol 50 MovieClip "block2" in Frame 5
onClipEvent (load) {
function arrayremove() {
i = 0;
while (i < _root.varr.blck2.length) {
if (id == _root.varr.blck2[i]) {
_root.varr.blck2.splice(i, 1);
}
i++;
}
}
function deleter() {
if (_x > 601) {
arrayremove();
removeMovieClip(this);
}
if (_x < -31) {
arrayremove();
removeMovieClip(this);
}
if (_y > 481) {
arrayremove();
removeMovieClip(this);
}
if (_y < -31) {
arrayremove();
removeMovieClip(this);
}
}
_alpha = 50;
timer = 50;
}
onClipEvent (enterFrame) {
if (_root.varr.gameover == false) {
deleter();
_x = (_x + _root.varr.speedb2v);
_y = (_y + _root.varr.speedb2h);
} else {
timer--;
_alpha = (_alpha - 1);
if (timer < 0) {
arrayremove();
removeMovieClip(this);
}
}
}
Instance of Symbol 52 MovieClip "varr" in Frame 5
onClipEvent (load) {
function createstars() {
rnd2 = random(50);
if (rnd2 == 20) {
duplicateMovieClip (_root.star1, "star" + _root.fc, _root.fc);
_root["star" + _root.fc]._x = random(570) + 15;
_root["star" + _root.fc]._y = random(450) + 15;
_root.fc++;
}
if (rnd2 == 30) {
duplicateMovieClip (_root.star2, "star2" + _root.fc, _root.fc);
_root["star2" + _root.fc]._x = random(570) + 15;
_root["star2" + _root.fc]._y = random(450) + 15;
_root.fc++;
}
}
function changedir() {
if (next1 != 0) {
_root.s5.gotoAndPlay(2);
dir1 = next1;
next1 = 0;
switch (dir1) {
case 1 :
speedb1h = 0;
speedb1v = rootspeed1;
vdis = 60;
break;
case 2 :
speedb1h = 0;
speedb1v = rootspeed1 * -1;
vdis = -60;
break;
case 3 :
speedb1h = rootspeed1;
speedb1v = 0;
hdis = 60;
break;
case 4 :
speedb1h = rootspeed1 * -1;
speedb1v = 0;
hdis = -60;
}
}
cd = random(5);
if (cd == 1) {
next1 = random(4) + 1;
_root.s7.gotoAndPlay(2);
_root.cir1._visible = true;
_root.cir1.timer = 60;
_root.cir1.dir = next1;
}
}
function changedir2() {
if (gametime < 35) {
next2 = dir1;
}
if (next2 != 0) {
if (gametime > 35) {
_root.s5.gotoAndPlay(2);
}
dir2 = next2;
next2 = 0;
switch (dir2) {
case 1 :
speedb2h = 0;
speedb2v = rootspeed2;
vdis2 = 30;
break;
case 2 :
speedb2h = 0;
speedb2v = rootspeed2 * -1;
vdis2 = -30;
break;
case 3 :
speedb2h = rootspeed2;
speedb2v = 0;
hdis2 = 30;
break;
case 4 :
speedb2h = rootspeed2 * -1;
speedb2v = 0;
hdis2 = -30;
}
}
if (gametime > 35) {
cd = random(10);
if (cd == 1) {
next2 = random(4) + 1;
_root.cir2._visible = true;
_root.s7.gotoAndPlay(2);
_root.cir2.timer = 30;
_root.cir2.dir = next2;
}
}
}
function arrayadd() {
blck1[blck1.length] = _root.fc;
_root["bl1" + _root.fc].id = _root.fc;
}
function arrayadd2() {
blck2[blck2.length] = _root.fc;
_root["bl2" + _root.fc].id = _root.fc;
}
function blocks1() {
if (dir1 == 1) {
vdis = vdis - speedb1v;
if (vdis == 0) {
i = 0;
while (i < 8) {
chance = random(chance1);
if (chance == 2) {
duplicateMovieClip (_root.block1, "bl1" + _root.fc, _root.fc);
_root["bl1" + _root.fc]._x = -60;
_root["bl1" + _root.fc]._y = i * 60;
arrayadd();
_root.fc++;
}
i++;
}
vdis = 60;
changedir();
}
} else if (dir1 == 2) {
vdis = vdis - speedb1v;
if (vdis == 0) {
i = 0;
while (i < 8) {
chance = random(chance1);
if (chance == 2) {
duplicateMovieClip (_root.block1, "bl1" + _root.fc, _root.fc);
_root["bl1" + _root.fc]._x = 600;
_root["bl1" + _root.fc]._y = i * 60;
arrayadd();
_root.fc++;
}
i++;
}
vdis = -60;
changedir();
}
} else if (dir1 == 3) {
hdis = hdis - speedb1h;
if (hdis == 0) {
i = 0;
while (i < 10) {
chance = random(chance1);
if (chance == 2) {
duplicateMovieClip (_root.block1, "bl1" + _root.fc, _root.fc);
_root["bl1" + _root.fc]._x = i * 60;
_root["bl1" + _root.fc]._y = -60;
arrayadd();
_root.fc++;
}
i++;
}
hdis = 60;
changedir();
}
} else if (dir1 == 4) {
hdis = hdis - speedb1h;
if (hdis == 0) {
i = 0;
while (i < 10) {
chance = random(chance1);
if (chance == 2) {
duplicateMovieClip (_root.block1, "bl1" + _root.fc, _root.fc);
_root["bl1" + _root.fc]._x = i * 60;
_root["bl1" + _root.fc]._y = 480;
arrayadd();
_root.fc++;
}
i++;
}
hdis = -60;
changedir();
}
}
}
function blocks2() {
if (dir2 == 1) {
vdis2 = vdis2 - speedb2v;
if (vdis2 == 0) {
i = 0;
while (i < 16) {
chance = random(chance2);
if (chance == 2) {
duplicateMovieClip (_root.block2, "bl2" + _root.fc, _root.fc);
_root["bl2" + _root.fc]._x = -30;
_root["bl2" + _root.fc]._y = i * 30;
arrayadd2();
_root.fc++;
}
i++;
}
vdis2 = 30;
changedir2();
}
} else if (dir2 == 2) {
vdis2 = vdis2 - speedb2v;
if (vdis2 == 0) {
i = 0;
while (i < 16) {
chance = random(chance2);
if (chance == 2) {
duplicateMovieClip (_root.block2, "bl2" + _root.fc, _root.fc);
_root["bl2" + _root.fc]._x = 600;
_root["bl2" + _root.fc]._y = i * 30;
arrayadd2();
_root.fc++;
}
i++;
}
vdis2 = -30;
changedir2();
}
} else if (dir2 == 3) {
hdis2 = hdis2 - speedb2h;
if (hdis2 == 0) {
i = 0;
while (i < 20) {
chance = random(chance2);
if (chance == 2) {
duplicateMovieClip (_root.block2, "bl2" + _root.fc, _root.fc);
_root["bl2" + _root.fc]._x = i * 30;
_root["bl2" + _root.fc]._y = -30;
arrayadd2();
_root.fc++;
}
i++;
}
hdis2 = 30;
changedir2();
}
} else if (dir2 == 4) {
hdis2 = hdis2 - speedb2h;
if (hdis2 == 0) {
i = 0;
while (i < 20) {
chance = random(chance2);
if (chance == 2) {
duplicateMovieClip (_root.block2, "bl2" + _root.fc, _root.fc);
_root["bl2" + _root.fc]._x = i * 30;
_root["bl2" + _root.fc]._y = 480;
arrayadd2();
_root.fc++;
}
i++;
}
hdis2 = -30;
changedir2();
}
}
}
bomb = 1;
blck1 = new Array();
blck2 = new Array();
_root.fc = 0;
vdis = 60;
hdis = 60;
vdis2 = 30;
hdis2 = 30;
rootspeed1 = 1;
rootspeed2 = 1.5;
speedb1v = 0;
speedb1h = 1;
speedb2v = 3;
speedb2h = 0;
dir1 = 3;
dir2 = 2;
chance1 = 8;
chance2 = 20;
next1 = 0;
next2 = 0;
gametime = 0;
gametimer = 0;
fog = 0;
scores = 0;
adds = 0;
gameover = false;
lastadds = 0;
dir2 = 1;
}
onClipEvent (enterFrame) {
if (_root.fc > 900000) {
_root.fc = 10;
}
if (gameover == false) {
createstars();
lastadds = adds;
gametimer++;
gametime = Math.round(gametimer / 30);
adds = gametime;
if (lastadds != adds) {
scores = scores + 10;
}
if (gametime == 10) {
_root.releases.go = 1;
chance1 = 6;
chance2 = 15;
}
if (gametime == 20) {
_root.fogtext.go = 1;
fog = 1;
}
if (gametime == 30) {
fog = 0;
}
if (gametime == 35) {
_root.twowaymode.go = 1;
}
if (gametime == 45) {
fog = 0;
_root.speed.go = 1;
rootspeed1 = 1.5;
rootspeed2 = 2;
}
if (gametime == 55) {
_root.releases.go = 1;
chance1 = 5;
chance2 = 13;
}
if (gametime == 65) {
fog = 1;
}
if (gametime == 70) {
fog = 0;
}
if (gametime == 75) {
_root.speed.go = 1;
rootspeed1 = 2;
rootspeed2 = 2.5;
}
if (gametime == 85) {
_root.releases.go = 1;
chance1 = 4;
chance2 = 10;
}
if (gametime == 95) {
_root.fogtext.go = 1;
fog = 1;
}
if (gametime == 105) {
fog = 0;
}
if (gametime == 115) {
_root.speed.go = 1;
rootspeed1 = 2;
rootspeed2 = 2.5;
}
if (gametime == 125) {
_root.releases.go = 1;
chance1 = 3;
chance2 = 8;
}
if (gametime == 125) {
_root.speed.go = 1;
rootspeed1 = 2.5;
rootspeed2 = 3;
}
if (gametime == 135) {
_root.fogtext.go = 1;
fog = 1;
}
if (gametime == 145) {
_root.speed.go = 1;
rootspeed1 = 2.5;
rootspeed2 = 3;
}
blocks1();
blocks2();
}
}
Instance of Symbol 64 MovieClip "player" in Frame 5
onClipEvent (load) {
function collision() {
ll = _root.varr.blck1.length;
i = 0;
while (i < ll) {
if (_root.cb.hitTest(_root["bl1" + _root.varr.blck1[i]])) {
_root["bl1" + _root.varr.blck1[i]].green.go = 1;
if (played[i] == 0) {
_root.s2.gotoAndPlay(2);
}
played[i] = 1;
if (this.hitTest(_root["bl1" + _root.varr.blck1[i]])) {
_alpha = 10;
_root.submit.go = 1;
_root.varr.gameover = true;
}
} else {
played[i] = 0;
}
i++;
}
ll = _root.varr.blck2.length;
i = 0;
while (i < ll) {
if (_root.cb.hitTest(_root["bl2" + _root.varr.blck2[i]])) {
_root["bl2" + _root.varr.blck2[i]].green.go = 1;
if (played2[i] == 0) {
_root.s2.gotoAndPlay(2);
}
played2[i] = 1;
if (this.hitTest(_root["bl2" + _root.varr.blck2[i]])) {
_alpha = 10;
_root.submit.go = 1;
_root.varr.gameover = true;
}
} else {
played2[i] = 0;
}
i++;
}
}
function bomb() {
ll = _root.varr.blck2.length;
i = 0;
while (i < ll) {
ddx = _x - _root["bl2" + _root.varr.blck2[i]]._x;
ddy = _y - _root["bl2" + _root.varr.blck2[i]]._y;
ddis = Math.sqrt((ddx * ddx) + (ddy * ddy));
if (ddis < 200) {
removeMovieClip(_root["bl2" + _root.varr.blck2[i]]);
}
i++;
}
ll = _root.varr.blck1.length;
i = 0;
while (i < ll) {
ddx = _x - _root["bl1" + _root.varr.blck1[i]]._x;
ddy = _y - _root["bl1" + _root.varr.blck1[i]]._y;
ddis = Math.sqrt((ddx * ddx) + (ddy * ddy));
if (ddis < 200) {
removeMovieClip(_root["bl1" + _root.varr.blck1[i]]);
}
i++;
}
}
played = new Array();
played2 = new Array();
}
onClipEvent (mouseDown) {
if (_root.varr.bomb == 1) {
_root.varr.bomb = 0;
_root.s6.gotoAndPlay(2);
bomb();
}
}
onClipEvent (mouseMove) {
if (_root.varr.gameover == false) {
duplicateMovieClip (_root.trail, "tr" + _root.fc, _root.fc);
_root["tr" + _root.fc]._x = (_x + random(10)) - 5;
_root["tr" + _root.fc]._y = (_y + random(10)) - 5;
_root.fc++;
}
}
onClipEvent (enterFrame) {
if (_root.varr.gameover == false) {
collision();
_x = _root._xmouse;
_y = _root._ymouse;
_root.cb._x = _root._xmouse;
_root.cb._y = _root._ymouse;
} else {
Mouse.show();
}
}
Instance of Symbol 66 MovieClip "cir1" in Frame 5
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (_visible == true) {
timer = timer - _root.varr.rootspeed1;
switch (dir) {
case 1 :
_rotation = 0;
break;
case 2 :
_rotation = 180;
break;
case 3 :
_rotation = 90;
break;
case 4 :
_rotation = 270;
}
if (timer < 0) {
_visible = false;
}
}
}
Instance of Symbol 66 MovieClip "cir2" in Frame 5
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (_visible == true) {
timer = timer - _root.varr.rootspeed2;
switch (dir) {
case 1 :
_rotation = 0;
break;
case 2 :
_rotation = 180;
break;
case 3 :
_rotation = 90;
break;
case 4 :
_rotation = 270;
}
if (timer < 0) {
_visible = false;
}
}
}
Instance of Symbol 69 MovieClip "releases1" in Frame 5
onClipEvent (load) {
_visible = false;
counter = 0;
go = 0;
if (this._name == "releases1") {
duplicateMovieClip (this, "releases", 1000011);
}
}
onClipEvent (enterFrame) {
if (go == 1) {
_visible = true;
counter = 30;
go = 0;
}
switch (counter) {
case 25 :
_visible = false;
break;
case 20 :
_visible = true;
break;
case 15 :
_visible = false;
break;
case 10 :
_visible = true;
break;
case 5 :
_visible = true;
break;
}
if (counter > -10) {
counter--;
if (counter < 0) {
_visible = false;
}
}
}
Instance of Symbol 72 MovieClip "speed1" in Frame 5
onClipEvent (load) {
_visible = false;
counter = 0;
go = 0;
if (this._name == "speed1") {
duplicateMovieClip (this, "speed", 1000013);
}
}
onClipEvent (enterFrame) {
if (go == 1) {
_visible = true;
counter = 30;
go = 0;
}
switch (counter) {
case 25 :
_visible = false;
break;
case 20 :
_visible = true;
break;
case 15 :
_visible = false;
break;
case 10 :
_visible = true;
break;
case 5 :
_visible = true;
break;
}
if (counter > -10) {
counter--;
if (counter < 0) {
_visible = false;
}
}
}
Instance of Symbol 75 MovieClip "fogtext1" in Frame 5
onClipEvent (load) {
_visible = false;
counter = 0;
go = 0;
if (this._name == "fogtext1") {
duplicateMovieClip (this, "fogtext", 1000012);
}
}
onClipEvent (enterFrame) {
if (go == 1) {
_visible = true;
counter = 30;
go = 0;
}
switch (counter) {
case 25 :
_visible = false;
break;
case 20 :
_visible = true;
break;
case 15 :
_visible = false;
break;
case 10 :
_visible = true;
break;
case 5 :
_visible = true;
break;
}
if (counter > -10) {
counter--;
if (counter < 0) {
_visible = false;
}
}
}
Instance of Symbol 78 MovieClip "twowaymode1" in Frame 5
onClipEvent (load) {
_visible = false;
counter = 0;
go = 0;
if (this._name == "twowaymode1") {
duplicateMovieClip (this, "twowaymode", 1000014);
}
}
onClipEvent (enterFrame) {
if (go == 1) {
_visible = true;
counter = 30;
go = 0;
}
switch (counter) {
case 25 :
_visible = false;
break;
case 20 :
_visible = true;
break;
case 15 :
_visible = false;
break;
case 10 :
_visible = true;
break;
case 5 :
_visible = true;
break;
}
if (counter > -10) {
counter--;
if (counter < 0) {
_visible = false;
}
}
}
Instance of Symbol 79 MovieClip "cb" in Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 83 MovieClip "dir1" in Frame 5
onClipEvent (load) {
if (_name == "dir1") {
duplicateMovieClip (this, "dir11", 1000030);
_visible = false;
}
}
onClipEvent (enterFrame) {
switch (_root.varr.dir1) {
case 1 :
_rotation = 0;
break;
case 2 :
_rotation = 180;
break;
case 3 :
_rotation = 90;
break;
case 4 :
_rotation = 270;
}
if (_root._currentframe != 5) {
removeMovieClip(this);
}
}
Instance of Symbol 83 MovieClip "dir2" in Frame 5
onClipEvent (load) {
if (_name == "dir2") {
duplicateMovieClip (this, "dir22", 1000031);
_visible = false;
}
}
onClipEvent (enterFrame) {
switch (_root.varr.dir2) {
case 1 :
_rotation = 0;
break;
case 2 :
_rotation = 180;
break;
case 3 :
_rotation = 90;
break;
case 4 :
_rotation = 270;
}
if (_root._currentframe != 5) {
removeMovieClip(this);
}
}
Instance of Symbol 87 MovieClip "sc" in Frame 5
onClipEvent (load) {
if (_name == "sc") {
duplicateMovieClip (this, "sc1", 1000019);
_visible = false;
}
}
onClipEvent (enterFrame) {
scores = _root.varr.scores;
if (_root._currentframe != 5) {
removeMovieClip(this);
}
}
Instance of Symbol 92 MovieClip "star1" in Frame 5
onClipEvent (load) {
timer = 150;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_name != "star1") {
timer--;
if (timer < 0) {
removeMovieClip(this);
}
if (timer > 130) {
_alpha = (_alpha + 5);
}
if (timer < 20) {
_alpha = (_alpha - 5);
}
if (this.hitTest(_root.player)) {
_root.varr.scores = _root.varr.scores + 50;
_root.s3.gotoAndPlay(2);
i = 0;
while (i < 15) {
duplicateMovieClip (_root.part1, "p1" + _root.fc, _root.fc);
_root["p1" + _root.fc]._x = _x;
_root["p1" + _root.fc]._y = _y;
_root.fc++;
i++;
}
removeMovieClip(this);
}
if (_root.varr.gameover == true) {
removeMovieClip(this);
}
}
}
Instance of Symbol 94 MovieClip "star2" in Frame 5
onClipEvent (load) {
timer = 150;
_alpha = 0;
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
removeMovieClip(this);
}
if (timer > 130) {
_alpha = (_alpha + 5);
}
if (timer < 20) {
_alpha = (_alpha - 5);
}
if (this.hitTest(_root.player)) {
_root.varr.scores = _root.varr.scores - 50;
_root.s4.gotoAndPlay(2);
removeMovieClip(this);
}
if (_root.varr.gameover == true) {
removeMovieClip(this);
}
}
Instance of Symbol 106 MovieClip "submit" in Frame 5
onClipEvent (load) {
_visible = false;
sent = 0;
timer = 50;
}
onClipEvent (enterFrame) {
if (go == 1) {
_visible = true;
scores = _root.varr.scores;
if ((submit == 1) && (sent == 0)) {
level = 0;
scores = _root.varr.scores;
loadVariables (((((("http://www.mjgames-online.com/database/blockdodge/insert.php?names=" + names) + "&score=") + scores) + "&level=") + level) + "&ident=2781", this);
trace("sending");
sent = 1;
submit = 0;
}
}
if (sent == 1) {
timer--;
if (timer < 0) {
stopAllSounds();
_root.gotoAndStop(3);
}
}
}
Instance of Symbol 118 MovieClip "part1" in Frame 5
onClipEvent (load) {
timer = random(20) + 10;
ang = (random(360) / 180) * Math.PI;
speed = (random(60) / 10) + 2;
xdir = Math.cos(ang) * speed;
ydir = Math.sin(ang) * speed;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
duplicateMovieClip (_root.part2, "p2" + _root.fc, _root.fc);
_root["p2" + _root.fc]._x = _x;
_root["p2" + _root.fc]._y = _y;
_root.fc++;
_x = (_x + xdir);
_y = (_y + ydir);
timer--;
if (timer < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 118 MovieClip "part2" in Frame 5
onClipEvent (load) {
timer = random(10) + 5;
ang = (random(360) / 180) * Math.PI;
speed = (random(10) / 10) + 0.5;
xdir = Math.cos(ang) * speed;
ydir = Math.sin(ang) * speed;
gotoAndStop(random(4) + 1);
}
onClipEvent (enterFrame) {
_x = (_x + xdir);
_y = (_y + ydir);
timer--;
if (timer < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 130 MovieClip "trail" in Frame 5
onClipEvent (load) {
_alpha = 100;
dir = random(360);
xp = Math.cos((dir / Math.PI) * 180);
yp = Math.sin((dir / Math.PI) * 180);
timer = random(10) + 15;
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
removeMovieClip(this);
}
if (this.hitTest(_root.player)) {
_visible = false;
} else {
_visible = true;
}
_alpha = (_alpha - 3);
_x = (_x + xp);
_y = (_y + yp);
}
Instance of Symbol 135 MovieClip "fog" in Frame 5
onClipEvent (load) {
if (_name == "fog") {
duplicateMovieClip (this, "fog2", 1000000);
_visible = false;
}
_visible = false;
gofog = 0;
frm = 0;
}
onClipEvent (enterFrame) {
if (_root.varr.fog == 1) {
frm = 20;
if (gofog == 0) {
gotoAndPlay (1);
gofog = 1;
}
_x = _root._xmouse;
_y = _root._ymouse;
_visible = true;
} else {
if (frm > 0) {
frm--;
gotoAndPlay(frm);
} else {
_visible = false;
}
gofog = 0;
}
if (_root._currentframe != 5) {
removeMovieClip(this);
}
if (_root.varr.gameover == true) {
_visible = false;
}
}
Instance of Symbol 45 MovieClip "green" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
gone = 0;
}
onClipEvent (enterFrame) {
if (go == 1) {
go = 0;
_visible = true;
_alpha = 40;
}
if (_alpha > -10) {
_alpha = (_alpha - 3);
}
if (_alpha < 0) {
_visible = false;
}
}
Instance of Symbol 49 MovieClip "green" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
gone = 0;
}
onClipEvent (enterFrame) {
if (go == 1) {
go = 0;
_visible = true;
_alpha = 70;
}
if (_alpha > -10) {
_alpha = (_alpha - 3);
}
if (_alpha < 0) {
_visible = false;
}
}
Symbol 64 MovieClip Frame 30
stop();
Instance of Symbol 89 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 89 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 102 MovieClip in Symbol 106 MovieClip Frame 1
on (release) {
getURL ("http://www.mjgames-online.com/games/highscores/blockdodge.php", "_blank");
this._parent.submit = 1;
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.gotoAndPlay(3);
}
Symbol 109 MovieClip Frame 9
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 20
stop();