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);
}
__com_mochibot__("0be1efca", this, 10301, true);
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
loader.gotoAndStop(percentbytes);
Frame 2
if (loadedbytes == totalbytes) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 4
stop();
_root.guyframe = 1;
Frame 8
stop();
stopAllSounds();
mainchar.gotoAndStop(guyframe);
onEnterFrame = function () {
spawned.removeMovieClip();
};
Frame 9
function send_vars(username, score, code, u) {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.username = username;
_local1.score = score;
_local1.code458 = code;
_local1.sendAndLoad(u, _local2, "POST");
box.btn_send._x = 999999 /* 0x0F423F */;
}
stop();
x1 = -600;
x2 = 1000;
gradual = 0;
angle = 15;
counter = 25;
scount = 5;
side = 1;
spawndelay = 5;
spawntimer = 0;
evar = 1000;
xspeed = 0;
speed = 1;
friction = 0.4;
yspeed = 4;
score = 0;
leveltimer = 500;
leveldelay = 500;
level = 1;
colorlevel = 1;
pfired = 9000;
sfx.stop();
sfx = new Sound();
sfx.attachSound("song");
sfx.start();
attachMovie("option", "option", 13800);
option._x = -32;
option._y = 550;
attachMovie("leveltxt", "leveltxt", 11100);
leveltxt._x = 200;
leveltxt._y = -60;
attachMovie("guy", "guy", 100);
guy._x = 200;
guy._y = 440;
guy.gotoAndStop(guyframe);
options = false;
onEnterFrame = function () {
if (options == true) {
if (option._y > 65) {
option._y = option._y - 13;
}
if (option._y < 455) {
option._y = 455;
}
_root.option.volumecontrol.onPress = function () {
_root.option.volumecontrol.slide.startDrag(true, 0, 0, _root.option.volumecontrol.line._width, 0);
};
_root.option.volumecontrol.onRelease = function () {
_root.option.volumecontrol.slide.stopDrag();
};
slider = _root.option.volumecontrol.slide._x;
sfx.setVolume(slider * 1.3);
option.volpercent.text = Math.round(slider * 1.3);
}
if (options == false) {
if (track == true) {
x1 = x1 - xspeed;
x2 = x2 - xspeed;
}
sfx.onSoundComplete = function () {
sfx.start();
};
if (dead == true) {
guy.removeMovieClip();
scoretxt._y = -100;
if (box._x < 59) {
box._x = box._x + 10;
}
}
scoretxt.text = "Score: " + score;
box.scoretxt.text = "Score: " + score;
leveltxt._y--;
if (leveltimer == 20) {
leveltxt.gotoAndStop(1);
if (level == 1) {
leveltxt.gotoAndStop(6);
}
if (level == 2) {
leveltxt.gotoAndStop(7);
}
if (level == 3) {
leveltxt.gotoAndStop(8);
}
if (level == 4) {
leveltxt.gotoAndStop(5);
}
if (level == 5) {
leveltxt.gotoAndStop(2);
}
if (level == 6) {
leveltxt.gotoAndStop(3);
}
if (level == 7) {
leveltxt.gotoAndStop(4);
}
leveltxt._y = 60;
}
if (dead != true) {
leveltimer--;
}
if (leveltimer < 1) {
leveltimer = leveldelay;
yspeed = yspeed + 1;
spawndelay = spawndelay - 0.3;
level++;
backg.play();
spawntimer = spawndelay;
x1 = -600;
x2 = 1000;
colorlevel++;
}
spawntimer--;
if (spawntimer < 1) {
if (dead != true) {
spawn();
}
}
}
spawned.onEnterFrame = function () {
if (options == false) {
if ((level == 5) and (this._currentframe == 5)) {
this._xscale = this._xscale + 0.7;
this._yscale = this._yscale + 0.7;
}
if (((level == 7) and (this.randy == 5)) and (this._currentframe == 7)) {
this._x = this._x + (angle / 12);
this.rectang.play();
}
if ((level == 6) and (this._currentframe == 6)) {
this._x = this._x + (angle / 10);
}
if (dead == true) {
this.removeMovieClip();
}
this._y = this._y + yspeed;
this._x = this._x - xspeed;
if (this._y > 500) {
score++;
this.removeMovieClip();
}
guy1x = guy.hitbox1._x + guy._x;
guy1y = guy.hitbox1._y + guy._y;
guy2x = guy.hitbox2._x + guy._x;
guy2y = guy.hitbox2._y + guy._y;
guy3x = guy.hitbox3._x + guy._x;
guy3y = guy.hitbox3._y + guy._y;
if ((this.hitTest(guy1x, guy1y, true) or this.hitTest(guy2x, guy2y, true)) or this.hitTest(guy3x, guy3y, true)) {
particles();
dead = true;
speed = 0;
xspeed = 0;
b = new Sound();
b.attachSound("zap");
b.start();
}
}
};
if (options == false) {
moving = "none";
if (Key.isDown(65) or Key.isDown(37)) {
moving = "left";
}
if (Key.isDown(68) or Key.isDown(39)) {
moving = "right";
}
if (moving == "left") {
xspeed = xspeed - speed;
}
if (moving == "right") {
xspeed = xspeed + speed;
}
if (xspeed > 7) {
xspeed = 7;
}
if (xspeed < -7) {
xspeed = -7;
}
if (moving == "none") {
if ((xspeed <= 0.5) and (xspeed >= -0.5)) {
xspeed = 0;
}
if (xspeed > 0.5) {
xspeed = xspeed - friction;
}
if (xspeed < -0.5) {
xspeed = xspeed + friction;
}
}
guy._rotation = xspeed * 3;
}
};
spawn = function () {
spawntimer = spawndelay;
if (level == 8) {
spawntimer = 18;
}
if (level == 1) {
diff = x2 - x1;
if (diff < 260) {
x1 = x1 + angle;
x2 = x2 + angle;
}
}
if (level == 3) {
x1 = x1 + gradual;
x2 = x2 + gradual;
gradual = gradual + (angle * 0.15);
if (gradual > 13) {
gradual = 13;
}
if (gradual < -13) {
gradual = -13;
}
}
if (level == 7) {
diff = x2 - x1;
if (diff < 290) {
x1 = x1 + angle;
x2 = x2 + angle;
}
}
if (counter < 1) {
angle = angle * -1;
counter = 20;
}
counter--;
if (track == true) {
diff = x2 - x1;
if (level == 7) {
diff = diff * 0.8;
}
if (diff > 230) {
x1 = x1 + 22;
x2 = x2 - 22;
}
if (diff < 200) {
x1 = x1 - 22;
x2 = x2 + 22;
}
}
if (side == 1) {
start_x = x1;
side = 2;
skipside = true;
}
if ((side == 2) and (skipside != true)) {
start_x = x2;
side = 1;
}
skipside = false;
if (track != true) {
start_x = Math.round(Math.random() * 1200) - 400;
}
start_y = -50;
evar++;
spawned = attachMovie("baddy", "baddy" + evar, evar, {_x:start_x, _y:start_y});
_root["baddy" + evar].gotoAndStop(_root.backg._currentframe);
_root["baddy" + evar].randy = Math.round(Math.random() * 10);
};
particles = function () {
partx = guy._x;
party = guy._y;
par = 50;
var _local3;
_local3 = 0;
while (_local3 < par) {
pfired++;
part = attachMovie("particle", "particle" + pfired, pfired, {_x:partx, _y:party});
pdeg = Math.random() * 360;
_root["particle" + pfired].dirx = Math.cos((pdeg * Math.PI) / 180) * 4.5;
_root["particle" + pfired].diry = Math.sin((pdeg * Math.PI) / 180) * 4.5;
_root["particle" + pfired]._rotation = pdeg;
multiplier = (Math.random() * 3) + 4;
_root["particle" + pfired].dirx = _root["particle" + pfired].dirx * (multiplier / 4);
_root["particle" + pfired].diry = _root["particle" + pfired].diry * (multiplier / 4);
_root["particle" + pfired].timer = (Math.random() * 6) + 5;
_root["particle" + pfired].slow = 5;
_root["particle" + pfired].speedg = -3;
_root["particle" + pfired].gravity = Math.random() * 1.3;
size = (Math.random() * 50) + 50;
_root["particle" + pfired]._xscale = size;
_root["particle" + pfired]._yscale = size;
parframe = Math.round(Math.random() + 1);
_root["particle" + pfired].pframe = parframe;
part.onEnterFrame = function () {
this.gotoAndStop(this.pframe);
this.timer--;
if (this.timer < 0) {
this.removeMovieClip();
}
this.slow = this.slow - 0.5;
this._alpha = this._alpha - 3;
this.speedx = this.dirx * this.slow;
this.speedy = this.diry * this.slow;
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
this.speedg = this.speedg + this.gravity;
this._y = this._y + this.speedg;
};
_local3++;
}
};
box.btn_send.onRelease = function () {
player_name = box.user_name.text;
if (player_name == "") {
player_name = "No Name";
}
player_score = score;
send_vars(player_name, player_score, "X5tQVu6B4x6LYlQSY9HAl8LDEGWE4dc4", "http://www.pogollama.com/scoreboards/submit_scores.php");
getURL ("http://www.pogollama.com/scoreboards/crazy_shape_runner/view_scores_1.php", _blank);
};
Symbol 25 Button
on (release) {
_quality = "low";
_root.qual = 3;
}
Symbol 29 Button
on (release) {
_quality = "medium";
_root.qual = 2;
}
Symbol 33 Button
on (release) {
_quality = "high";
_root.qual = 1;
}
Symbol 38 Button
on (release) {
_root.options = false;
_root.option.volumecontrol.slide.stopDrag();
_root.option._y = 550;
}
Symbol 42 MovieClip [particle] Frame 1
stop();
Symbol 42 MovieClip [particle] Frame 2
stop();
Symbol 68 MovieClip [guy] Frame 1
stop();
Symbol 68 MovieClip [guy] Frame 2
stop();
Symbol 68 MovieClip [guy] Frame 3
stop();
Symbol 68 MovieClip [guy] Frame 4
stop();
Symbol 68 MovieClip [guy] Frame 5
stop();
Symbol 68 MovieClip [guy] Frame 6
stop();
Symbol 68 MovieClip [guy] Frame 7
stop();
Symbol 68 MovieClip [guy] Frame 8
stop();
Symbol 68 MovieClip [guy] Frame 9
stop();
Symbol 68 MovieClip [guy] Frame 10
stop();
Symbol 68 MovieClip [guy] Frame 11
stop();
Symbol 68 MovieClip [guy] Frame 12
stop();
Symbol 68 MovieClip [guy] Frame 13
stop();
Symbol 68 MovieClip [guy] Frame 14
stop();
Symbol 68 MovieClip [guy] Frame 15
stop();
Symbol 68 MovieClip [guy] Frame 16
stop();
Symbol 68 MovieClip [guy] Frame 17
stop();
Symbol 68 MovieClip [guy] Frame 18
stop();
Symbol 68 MovieClip [guy] Frame 19
stop();
Symbol 68 MovieClip [guy] Frame 20
stop();
Symbol 68 MovieClip [guy] Frame 21
stop();
Symbol 68 MovieClip [guy] Frame 22
stop();
Symbol 68 MovieClip [guy] Frame 23
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 87 MovieClip [baddy] Frame 1
stop();
_root.track = false;
Symbol 87 MovieClip [baddy] Frame 2
stop();
_root.track = false;
Symbol 87 MovieClip [baddy] Frame 3
stop();
_root.track = true;
Symbol 87 MovieClip [baddy] Frame 4
stop();
_root.track = false;
Symbol 87 MovieClip [baddy] Frame 5
stop();
_root.track = false;
Symbol 87 MovieClip [baddy] Frame 6
stop();
_root.track = true;
Symbol 87 MovieClip [baddy] Frame 7
stop();
_root.track = false;
Symbol 87 MovieClip [baddy] Frame 8
stop();
_root.track = false;
Instance of Symbol 86 MovieClip in Symbol 87 MovieClip [baddy] Frame 8
onClipEvent (enterFrame) {
this._rotation = this._rotation + 3;
}
Symbol 97 MovieClip [leveltxt] Frame 1
stop();
Symbol 97 MovieClip [leveltxt] Frame 2
stop();
Symbol 97 MovieClip [leveltxt] Frame 3
stop();
Symbol 97 MovieClip [leveltxt] Frame 4
stop();
Symbol 97 MovieClip [leveltxt] Frame 5
stop();
Symbol 97 MovieClip [leveltxt] Frame 6
stop();
Symbol 97 MovieClip [leveltxt] Frame 7
stop();
Symbol 97 MovieClip [leveltxt] Frame 8
stop();
Symbol 121 MovieClip Frame 34
stop();
Symbol 141 MovieClip Frame 1
_root.stop();
Symbol 141 MovieClip Frame 264
_root.play();
Symbol 143 Button
on (release) {
getURL ("http://www.pogollama.com", _blank);
}
Symbol 162 MovieClip Frame 162
_root.play();
Symbol 173 Button
on (release) {
_root.play();
_root.guyframe = _root.mainchar._currentframe;
}
Symbol 210 MovieClip Frame 1
stop();
_root.nextbtn.onRelease = function () {
if (_root.mainchar._currentframe == 23) {
gotoAndStop (1);
skipy = true;
}
if (skipy != true) {
nextFrame();
}
skipy = false;
};
_root.prevbtn.onRelease = function () {
if (_root.mainchar._currentframe == 1) {
gotoAndStop (23);
skipy = true;
}
if (skipy != true) {
prevFrame();
}
skipy = false;
};
Symbol 210 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 3
stop();
Symbol 210 MovieClip Frame 4
stop();
Symbol 210 MovieClip Frame 5
stop();
Symbol 210 MovieClip Frame 6
stop();
Symbol 210 MovieClip Frame 7
stop();
Symbol 210 MovieClip Frame 8
stop();
Symbol 210 MovieClip Frame 9
stop();
Symbol 210 MovieClip Frame 10
stop();
Symbol 210 MovieClip Frame 11
stop();
Symbol 210 MovieClip Frame 12
stop();
Symbol 210 MovieClip Frame 13
stop();
Symbol 210 MovieClip Frame 14
stop();
Symbol 210 MovieClip Frame 15
stop();
Symbol 210 MovieClip Frame 16
stop();
Symbol 210 MovieClip Frame 17
stop();
Symbol 210 MovieClip Frame 18
stop();
Symbol 210 MovieClip Frame 19
stop();
Symbol 210 MovieClip Frame 20
stop();
Symbol 210 MovieClip Frame 21
stop();
Symbol 210 MovieClip Frame 22
stop();
Symbol 210 MovieClip Frame 23
stop();
Symbol 211 Button
on (release) {
_root.gotoAndPlay("f2");
}
Symbol 214 Button
on (release) {
getURL ("http://www.hallpass.com", _blank);
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 3
stop();
Symbol 216 MovieClip Frame 4
stop();
Symbol 216 MovieClip Frame 5
stop();
Symbol 216 MovieClip Frame 6
stop();
Symbol 216 MovieClip Frame 7
stop();
Symbol 216 MovieClip Frame 8
stop();
Symbol 221 Button
on (release) {
_root.dead = false;
_root.spawndelay = 99999999 /* 0x5F5E0FF */;
_root.gotoAndStop(8);
}
Symbol 226 MovieClip Frame 1
user_name.onSetFocus = function () {
user_name.text = "";
};
Symbol 233 Button
on (release) {
_root.options = true;
}