Frame 1
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
_quality = "MEDIUM";
__com_mochibot__("0a3c949f", this, 10301, true);
stop();
Frame 2
stop();
Frame 3
onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndStop(4);
}
};
Frame 4
dist = 0;
m = 4;
i = 83;
score = 0;
stop();
inte = 0;
brg = 170;
m = 30;
to = 90;
lolol = 1;
feet = 0;
dead = false;
fttext = "m";
killed = false;
onEnterFrame = function () {
if (dead == true) {
if (killed == false) {
duplicateMovieClip (_root.gameover, "gaveroover", 999999);
killed = true;
}
}
fttext = feet + " feet";
if (inte < 0) {
feet = feet - 1;
inte = 3;
}
if (inte > 3) {
feet = feet + 1;
inte = 0;
}
if (dist > 20) {
m = 28;
}
if (dist > 60) {
m = 26;
}
if (dist > 100) {
m = 24;
}
if (dist > 160) {
m = 22;
}
if (dist > 250) {
m = 20;
}
if (dist > 300) {
m = 18;
}
if (dist > 350) {
m = 16;
}
if (dist > 400) {
m = 14;
}
if (dist > 450) {
m = 12;
}
if (dist > 556) {
m = 10;
}
if (dist > 666) {
m = 8;
}
if (dist > 777) {
m = 6;
}
if (dist > 888) {
m = 4;
}
if (dist > 999) {
m = 2;
}
if (_root._currentframe == 4) {
if (to < 1) {
if (random(m) == 0) {
i++;
duplicateMovieClip (_root.box, "box" + i, i);
}
}
}
if (_root._currentframe == 4) {
if (lolol > (m + 300)) {
to = 90;
i++;
duplicateMovieClip (_root.gap, "gap" + i, i);
lolol = 1;
}
if (_root._currentframe == 4) {
if (random(400) == 1) {
if (to < 1) {
if (brg < 1) {
i++;
duplicateMovieClip (_root.bridge, "bridge" + i, i);
lolol = 1;
brg = 170;
}
}
}
}
if (_root._currentframe == 4) {
if (random(150) == 1) {
if (lolol > 70) {
if (to < 1) {
i++;
duplicateMovieClip (_root.bush, "bush" + i, i);
}
}
}
}
if (_root._currentframe == 4) {
if (lolol > 94) {
if (random(150) == 1) {
i++;
duplicateMovieClip (_root.bushb, "bushb" + i, i);
}
}
}
}
};
Instance of Symbol 115 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (Key.isDown(37)) {
_x = (_x + 10);
}
if (Key.isDown(39)) {
_x = (_x - 10);
}
if (_x < -2728) {
_x = 2328;
}
}
}
Instance of Symbol 115 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (Key.isDown(37)) {
_x = (_x + 10);
}
if (Key.isDown(39)) {
_x = (_x - 10);
}
if (_x < -2728) {
_x = 2328;
}
}
}
Instance of Symbol 133 MovieClip "char" in Frame 4
onClipEvent (load) {
grv = 0;
_xscale = -100;
pup = 0;
}
onClipEvent (enterFrame) {
if (_root.dead == true) {
stop();
}
if (_root.dead == false) {
_y = (_y + grv);
if (_y < 206) {
grv = grv + 0.2;
} else {
grv = 0;
pup = 0;
}
if (Key.isDown(38)) {
if (pup == 0) {
gotoAndStop (2);
grv = -4;
pup = 1;
}
}
if (Key.isDown(39)) {
_root.brg = _root.brg - 1;
_root.to = _root.to - 1;
_root.inte = _root.inte + 1;
_root.lolol = _root.lolol + 1;
_xscale = -100;
if (_y > 205) {
play();
if (_currentframe > 10) {
gotoAndStop (1);
}
} else {
gotoAndStop (11);
}
_root.grn.gotoAndStop((_root.grn._currentframe = _root.grn._currentframe + 1));
_root.dist = _root.dist + 1;
}
if (!Key.isDown(37)) {
if (!Key.isDown(39)) {
if (_y > 205) {
gotoAndStop (12);
} else {
gotoAndStop (11);
}
}
}
if (Key.isDown(37)) {
_root.brg = _root.brg + 1;
_root.inte = _root.inte - 1;
if (_y > 205) {
play();
if (_currentframe > 10) {
gotoAndStop (1);
}
} else {
gotoAndStop (11);
}
_root.lolol = _root.lolol - 1;
_xscale = 100;
_root.grn.gotoAndStop((_root.grn._currentframe = _root.grn._currentframe - 1));
}
}
}
Instance of Symbol 137 MovieClip "gap" in Frame 4
onClipEvent (load) {
_y = 259.8;
_x = 700;
t = 0;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === 4)) {
this.getNextHighestDepth();
this.removeMovieClip();
this._y = this._y + 1000;
}
if (this.hitTest(_root.char)) {
if (_root.char._x > (this._x + 10)) {
if (_root.char._x < (this._x + 85)) {
if (t == 0) {
_root.i++;
duplicateMovieClip (_root.fall, "fall" + _root.i, _root.i);
_root.char._alpha = 0;
_root.dead = true;
t = 1;
}
}
}
}
if (_root.dead == false) {
if (Key.isDown(37)) {
_x = (_x + 10);
}
if (Key.isDown(39)) {
_x = (_x - 10);
}
}
}
Instance of Symbol 144 MovieClip "box" in Frame 4
onClipEvent (load) {
_x = random(950);
_y = -40;
grav = 0;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === 4)) {
this.getNextHighestDepth();
this.removeMovieClip();
this._y = this._y + 1000;
}
if (!(this._name === "box")) {
if (_root.dead == false) {
if (this.hitTest(_root.char)) {
if (_currentframe == 1) {
_root.dead = true;
}
}
if (this._name == "box") {
_y = 1000;
}
if (_y < 208) {
if (Key.isDown(39)) {
_x = (_x - 10);
}
if (Key.isDown(37)) {
_x = (_x + 10);
}
if (this.hitTest(_root.collide)) {
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
}
_y = (_y + grav);
grav = grav + 0.2;
} else {
if (Key.isDown(39)) {
_x = (_x - 10);
}
if (Key.isDown(37)) {
_x = (_x + 10);
}
play();
}
}
}
}
Instance of Symbol 146 MovieClip "fall" in Frame 4
onClipEvent (load) {
_xscale = _root.char._xscale;
_x = _root.char._x;
_y = _root.char._y;
grv = 1;
if (_name == "fall") {
_y = (_y + 1000);
}
}
onClipEvent (enterFrame) {
_y = (_y + grv);
grv = grv + 0.2;
}
Instance of Symbol 148 MovieClip "bridge" in Frame 4
onClipEvent (load) {
_y = 224;
_x = 700;
t = 0;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === 4)) {
this.getNextHighestDepth();
this.removeMovieClip();
this._y = this._y + 1000;
}
if (_root.dead == false) {
if (this._name == "bridge") {
_y = 1000;
}
if (Key.isDown(37)) {
_x = (_x + 10);
}
if (Key.isDown(39)) {
_x = (_x - 10);
}
}
}
Instance of Symbol 150 MovieClip "bush" in Frame 4
onClipEvent (load) {
_y = 215.4;
_x = 600;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === 4)) {
this.getNextHighestDepth();
this.removeMovieClip();
this._y = this._y + 1000;
}
if (_root.dead == false) {
if (Key.isDown(37)) {
_x = (_x + 10);
}
if (Key.isDown(39)) {
_x = (_x - 10);
}
}
}
Instance of Symbol 152 MovieClip "bushb" in Frame 4
onClipEvent (load) {
_y = 213.1;
_x = 600;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === 4)) {
this.getNextHighestDepth();
this.removeMovieClip();
this._y = this._y + 1000;
}
if (_root.dead == false) {
if (Key.isDown(37)) {
_x = (_x + 10);
}
if (Key.isDown(39)) {
_x = (_x - 10);
}
}
}
Instance of Symbol 190 MovieClip "gameover" in Frame 4
onClipEvent (load) {
if (this._name == "gameover") {
_y = (_y + 1000);
stop();
} else {
_x = 273.9;
_y = 148.9;
}
}
Instance of Symbol 192 MovieClip "collide" in Frame 4
onClipEvent (enterFrame) {
_x = _root.char._x;
_y = _root.char._y;
}
Symbol 5 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.freeworldgroup.com", "_blank");
};
Symbol 56 MovieClip Frame 1
stop();
Instance of Symbol 7 MovieClip in Symbol 56 MovieClip Frame 1
on (release) {
_root.getURL("http://www.freeworldgroup.com", _blank);
}
Instance of Symbol 7 MovieClip in Symbol 56 MovieClip Frame 38
on (release) {
_root.getURL("http://www.st1k.com", _blank);
}
Symbol 56 MovieClip Frame 275
_root.gotoAndStop(_root._currentframe + 1);
Symbol 60 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 60 MovieClip Frame 2
gotoAndPlay (1);
Symbol 60 MovieClip Frame 3
stop();
_root.intro.gotoAndPlay(2);
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 20
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 20
stop();
Symbol 79 MovieClip Frame 65
stop();
Instance of Symbol 77 MovieClip in Symbol 79 MovieClip Frame 65
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(21);
}
on (release) {
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
}
Instance of Symbol 78 MovieClip in Symbol 79 MovieClip Frame 65
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay(21);
}
on (release) {
getURL ("http://www.freeworldgroup.com", _blank);
}
Symbol 83 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.soundstatus = "off";
}
on (release) {
_root.d01.gotoAndStop(1);
_root.d02.gotoAndStop(1);
}
Symbol 86 Button
on (release) {
gotoAndPlay (1);
}
on (release) {
_root.soundstatus = "on";
}
on (release) {
_root.d01.gotoAndPlay(1);
_root.d02.gotoAndPlay(1);
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 17
stop();
Symbol 94 MovieClip Frame 12
stop();
Symbol 97 MovieClip Frame 13
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Instance of Symbol 103 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Symbol 112 MovieClip Frame 129
_root.gotoAndStop((_root._currentframe = _root._currentframe + 1));
Symbol 121 MovieClip Frame 1
gotoAndStop (54);
Symbol 121 MovieClip Frame 55
gotoAndStop (2);
Symbol 133 MovieClip Frame 10
gotoAndPlay (1);
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 10
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 158 MovieClip Frame 80
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 170 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 186 Button
on (release) {
viewHighscore();
}
Symbol 189 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore == 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
Symbol 189 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 172 MovieClip in Symbol 189 MovieClip Frame 3
on (release) {
}
Symbol 190 MovieClip Frame 52
stop();
stop();
Instance of Symbol 167 MovieClip in Symbol 190 MovieClip Frame 52
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop((_root._currentframe = _root._currentframe - 1));
_parent.removeMovieClip();
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip Frame 52
//component parameters
onClipEvent (construct) {
_game_name = "boxdodgefury";
score_var = "_root.feet";
}