Frame 2
stop();
Frame 3
stop();
_global.return_title = false;
_root.attachMovie("mainmenu", "mainmenu", 99999, {_x:Stage.width / 2, _y:(Stage.height / 2) - 35});
_root.attachMovie("credits", "credits", 6000, {_x:Stage.width / 2, _y:390});
Frame 4
stop();
function Timer() {
if (_root.paused == false) {
if (!_root.timing) {
if (_root.paused) {
_root.startTime = getTimer() - _root.elapsedTime;
} else {
_root.startTime = getTimer();
}
_root.paused = false;
_root.timing = true;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer_txt = (((minutes + ":") + seconds) + ":") + hundredths;
_root.easy = minutes + seconds;
}
}
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
filterArray = [];
}
}
}
function barHEALTH(energy, b, fluid) {
tot_frames = b._totalframes;
bar_d = Math.round((100 - energy) / (100 / tot_frames));
if (fluid) {
if (bar_d != b._currentframe) {
if (bar_d > b._currentframe) {
b.gotoAndStop(b._currentframe + 1);
} else {
b.gotoAndStop(b._currentframe - 1);
}
}
} else {
b.gotoAndStop(bar_d);
}
}
function Initialize(ob, player) {
if (player == 1) {
ob.key_up = 87;
ob.key_down = 83;
ob.key_left = 65;
ob.key_right = 68;
} else if (player == 2) {
ob.key_up = 38;
ob.key_down = 40;
ob.key_left = 37;
ob.key_right = 39;
var _local3 = ob;
var _local8 = randRange(0, 1);
var _local7 = randRange(0, 1);
var _local5 = randRange(0, 1);
var _local6 = new Array();
var _local4 = [1, 0, 0.3, 0, 0, 0.33, 1, 0.3, 0, 0, 0, 0.33, 1, 0, 0, 0, 0, 0, 1, 0];
var _local2 = new flash.filters.ColorMatrixFilter(_local4);
_local3.filters = new Array(_local2);
}
ob.step = 5;
ob.speed = step;
ob.frame = "stance";
ob.attack = false;
ob.stance = RIGHT;
ob.charge = 0;
ob.keydown = false;
ob.distance = 0;
ob.stage = 1;
ob.swim = 1;
ob.tempY = ob._y;
ob.leftarm = false;
ob.leftcharge = 0;
ob.rightarm = false;
ob.rightcharge = 0;
ob.laymilk = true;
ob.tag = 0;
ob.uvel = 20;
ob.gravity = 3;
ob.jump = false;
ob.jumpheld = false;
}
function Jump(ob) {
ob._y = ob._y - ob.uvel;
ob.uvel = ob.uvel - ob.gravity;
}
function TimeAnimation(ob) {
if (ob.running) {
var _local2 = Math.round(ob.charge);
if (_local2 < 5) {
ob.run_stage = 0;
} else if ((_local2 > 5) and (_local2 < 35)) {
ob.run_stage = 1;
} else if ((_local2 > 35) and (_local2 < 75)) {
ob.run_stage = 2;
} else if ((_local2 > 75) and (_local2 < 100)) {
ob.run_stage = 3;
}
switch (ob.run_stage) {
case 0 :
if (ob._currentframe >= 22) {
ob.gotoAndStop(1);
} else {
ob.nextFrame();
}
break;
case 1 :
if (ob._currentframe >= 41) {
ob.gotoAndStop(23);
} else {
ob.nextFrame();
}
break;
case 2 :
if (ob._currentframe >= 60) {
ob.gotoAndStop(43);
} else {
ob.nextFrame();
}
break;
case 3 :
if (ob._currentframe >= 78) {
ob.gotoAndStop(61);
} else {
ob.nextFrame();
if (_local2 <= 90) {
break;
}
ob.nextFrame();
}
}
} else {
ob.stop();
if (ob._currentframe != 1) {
ob.prevFrame();
}
}
}
function CheckCharge(ob) {
if ((!Key.isDown(ob.key_left)) && (ob.dude)) {
ob.charge = ob.charge + 1.6;
ob.dude = false;
} else if (Key.isDown(ob.key_left) && (!Key.isDown(ob.key_right))) {
ob.dude = true;
}
if ((!Key.isDown(ob.key_right)) && (ob.dude2)) {
ob.charge = ob.charge + 1.6;
ob.dude2 = false;
} else if (Key.isDown(ob.key_right) && (!Key.isDown(ob.key_left))) {
ob.dude2 = true;
}
if (ob.charge < 60) {
ob.charge = ob.charge - 0.5;
} else {
ob.charge = ob.charge - 0.6;
}
if (ob.charge > 0) {
ob.running = true;
}
if (ob.charge < 0) {
ob.charge = 0;
ob.running = false;
}
if (ob.charge > 100) {
ob.charge = 100;
}
}
function CheckCharge2(ob) {
if (Key.isDown(ob.key_left)) {
ob.dude = true;
}
if (((!Key.isDown(ob.key_left)) && (ob.dude)) && (ob.leftarm)) {
ob.leftcharge = ob.leftcharge + 12;
ob.nextFrame();
ob.dude = false;
}
if (Key.isDown(ob.key_right)) {
ob.dude2 = true;
}
if (((!Key.isDown(ob.key_right)) && (ob.dude2)) && (ob.rightarm)) {
ob.rightcharge = ob.rightcharge + 12;
ob.nextFrame();
ob.dude2 = false;
}
ob.leftcharge = ob.leftcharge - 1;
ob.rightcharge = ob.rightcharge - 1;
if (ob.rightarm && (Key.isDown(ob.key_left))) {
ob.leftcharge = ob.leftcharge - 8;
}
if (ob.leftarm && (Key.isDown(ob.key_right))) {
ob.rightcharge = ob.rightcharge - 8;
}
if (ob.charge > 0) {
ob.running = true;
} else {
ob.charge = 0;
ob.running = false;
}
if (ob.leftcharge < 0) {
ob.leftcharge = 0;
}
if (ob.rightcharge < 0) {
ob.rightcharge = 0;
}
if (ob.charge > 100) {
ob.charge = 60;
}
if (ob.charge < 60) {
ob.charge = ob.charge - 0.46;
} else {
ob.charge = ob.charge - 0.6;
}
if (ob.leftarm) {
if (ob == rick_mc) {
d.l._visible = true;
d.r._visible = false;
} else if (ob == rick_mc2) {
l2._visible = true;
r2._visible = false;
}
}
if (ob.rightarm) {
if (ob == rick_mc) {
d.l._visible = false;
d.r._visible = true;
} else if (ob == rick_mc2) {
l2._visible = false;
r2._visible = true;
}
}
if (ob.leftcharge >= 100) {
ob.leftcharge = 80;
ob.leftarm = false;
ob.rightarm = true;
ob.charge = ob.charge + 25;
}
if (ob.rightcharge >= 100) {
ob.rightcharge = 80;
ob.rightarm = false;
ob.leftarm = true;
ob.charge = ob.charge + 25;
}
if (ob._currentframe >= 109) {
ob.gotoAndStop(90);
}
if (!ob.running) {
ob.stop();
} else {
ob.nextFrame();
}
_root.w1._xscale = (_root.w1._yscale = (ob.charge * 1.1) + 40);
}
function CheckCharge3(ob) {
var _local2 = offset;
if (Key.isDown(ob.key_left)) {
ob.dude = true;
}
if ((!Key.isDown(ob.key_left)) && (ob.dude)) {
ob.charge = ob.charge + 0.35;
if (ob.charge < 50) {
ob.nextFrame();
}
ob.dude = false;
}
if (Key.isDown(ob.key_right)) {
ob.dude2 = true;
}
if ((!Key.isDown(ob.key_right)) && (ob.dude2)) {
ob.charge = ob.charge + 0.35;
if (ob.charge < 50) {
ob.nextFrame();
}
ob.dude2 = false;
}
if (Key.isDown(ob.key_up) && (ob._y > (ob.tempY - 5))) {
ob._y = ob._y - 1;
}
if (Key.isDown(ob.key_down) && (ob._y < (ob.tempY + 60))) {
ob._y = ob._y + 1;
}
ob.charge = ob.charge - 0.1;
if (ob.charge > 0) {
ob.running = true;
}
if (ob.charge < 0) {
ob.charge = 0;
ob.running = false;
}
if (ob.charge > 100) {
ob.charge = 100;
}
}
function Swim(ob) {
if (ob.swim == 1) {
ob.gotoAndStop("jumping");
ob.swim = 2;
}
if (ob.swim == 2) {
if (ob._currentframe == 88) {
ob.stop();
ob.swim = 3;
} else {
ob.nextFrame();
}
}
if (ob.swim == 3) {
Jump(ob);
ob._rotation = 90;
if (ob._y > ob.tempY) {
ob.uvel = -15;
ob.gravity = 0.8;
ob.gravity = -ob.gravity;
ob.swim = 4;
}
}
if (ob.swim == 4) {
ob._alpha = 50;
if (ob._currentframe >= 109) {
ob.gotoAndStop(90);
} else {
ob.nextFrame();
}
Jump(ob);
if (ob.uvel >= 10) {
ob._rotation = 90;
ob.leftarm = true;
ob.stage = 3;
if (ob == rick_mc) {
_root.attachMovie("bar2", "lbar", _root.getNextHighestDepth(), {_x:140, _y:380, _yscale:100});
_root.attachMovie("bar2", "rbar", _root.getNextHighestDepth(), {_x:280, _y:380, _yscale:100});
var _local3 = {x:0, y:0};
ob.localToGlobal(_local3);
_root.attachMovie("waves", "w1", _root.getNextHighestDepth(), {_x:_local3.x - 110, _y:_local3.y - 15});
}
}
}
ob.charge = ob.charge - 0.01;
if (ob.charge < 0) {
ob.charge = 0;
}
}
function MilkRace(ob) {
if (ob._currentframe >= 126) {
ob.gotoAndStop("cycle");
} else if (!ob.running) {
stop();
} else {
ob.nextFrame();
}
}
function RandomMilk(ob) {
if (ob.laymilk) {
if (ob == rick_mc) {
removeMovieClip(_root.w1);
_root.attachMovie("milk", "milk" + ob.tag, _root.getNextHighestDepth(), {_x:ob._x + randRange(200, 600), _y:ob.tempY + randRange(60, 130)});
ob.tag++;
}
var _local5 = 1;
while (_local5 <= 30) {
if (ob == rick_mc) {
_root.attachMovie("milk", "milk" + _local5, _root.getNextHighestDepth(), {_x:_root["milk" + (_local5 - 1)]._x + randRange(600, 900), _y:ob.tempY + randRange(60, 130)});
ob.tag++;
}
_local5++;
}
ob.laymilk = false;
}
var _local4 = 0;
while (_local4 <= 30) {
if (ob == rick_mc) {
var _local3 = _root["milk" + _local4];
var _local6 = _root["milk" + _local4].bbox;
} else if (ob == rick_mc2) {
var _local3 = _root["milkb" + _local4];
var _local6 = _root["milkb" + _local4].bbox;
}
if (_local3._x <= Stage.width) {
ob.swapDepths(((ob._y + ob._height) - 200) * 100);
_local3.swapDepths((_local3._y + _local3._height) * 100);
if (_local6.hitTest(ob.bbox)) {
CRIES = new Sound(_root.createEmptyMovieClip("cries_mc", _root.getNextHighestDepth()));
CRIES.attachSound("tink");
CRIES.start();
removeMovieClip(_local3);
ob.charge = ob.charge + 4;
}
}
_local3._x = _local3._x - (Math.round(ob.charge) * ob.groundSpeed);
_local4++;
}
}
function MainLoop(ob) {
if (ob == rick_mc) {
barHEALTH(ob.charge, barhealth, false);
}
ob.distance = ob.distance + (Math.round(ob.charge) / 100);
_root.run._x = ob.distance / 2;
if (ob.stage == 1) {
CheckCharge(ob);
TimeAnimation(ob);
if (ob.distance >= 313) {
ob.stage = 2;
}
}
if (ob.stage == 2) {
Swim(ob);
}
if (ob.stage == 3) {
if (ob == rick_mc) {
barHEALTH(ob.leftcharge, lbar, false);
barHEALTH(ob.rightcharge, rbar, false);
} else if (ob == rick_mc2) {
barHEALTH(ob.leftcharge, lbar2, false);
barHEALTH(ob.rightcharge, rbar2, false);
}
CheckCharge2(ob);
if (ob.distance >= 602) {
ob.stage = 4;
if (ob == rick_mc) {
removeMovieClip(lbar);
removeMovieClip(rbar);
d.l._visible = false;
d.r._visible = false;
if (ob.charge >= 20) {
ob.charge = ob.charge - 20;
}
}
ob.gotoAndStop("cycle");
ob._y = ob.tempY;
}
}
if (ob.stage == 4) {
ob._alpha = 100;
ob._rotation = 0;
CheckCharge3(ob);
MilkRace(ob);
RandomMilk(ob);
if (ob.distance >= 1000) {
ob.groundSpeed = 0;
ob.stage = 5;
ob.finish = true;
ob.finaltime = timer_txt;
ob.feasy = easy;
if (ob == rick_mc) {
btimer._visible = true;
btimer.swapDepths(50000);
} else if (ob == rick_mc2) {
ttimer._visible = true;
ttimer.swapDepths(50001);
}
}
}
if (ob.stage == 5) {
ob._x = ob._x + (ob.charge / 2);
ob.charge = ob.charge - 8;
if (ob._x > (Stage.width - 250)) {
ob.charge = 0;
}
if (ob.charge <= 0) {
ob.charge = 0;
}
if (ob.finish) {
ob.gotoAndPlay("finish");
Scores(ob);
ob.finish = false;
_root.paused = true;
}
if (ob._currentframe == ob._totalframes) {
ob.gotoAndStop(130);
} else {
ob.nextFrame();
}
}
}
function Scores(ob) {
this.attachMovie("emenu", "emenu", 900012, {_x:Stage.width / 2, _y:140});
if (ob.feasy <= 72) {
_root.attachMovie("gold", "gold", 900011, {_x:470, _y:290});
} else if ((ob.feasy <= 80) && (ob.feasy > 72)) {
_root.attachMovie("silver", "silver", 900011, {_x:470, _y:290});
} else if ((ob.feasy <= 88) && (ob.feasy > 80)) {
_root.attachMovie("bronze", "bronze", 900011, {_x:470, _y:290});
} else {
_root.attachMovie("nomedal", "nomedal", 900011, {_x:470, _y:290});
}
this.attachMovie("nameentry", "nameentry", 900013, {_x:120, _y:(Stage.height / 2) + 50});
}
function MainLoopM() {
if (startok) {
Timer();
MainLoop(rick_mc);
}
}
this._lockroot = true;
stop();
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
if (fpsCounterInterval == undefined) {
fpsTicks = 0;
fpsCounterInterval = setInterval(function () {
twat = fpsTicks;
fpsTicks = 0;
}, 1000);
_root.createEmptyMovieClip("fpsCounterMC", 99999);
fpsCounterMC.onEnterFrame = function () {
fpsTicks++;
};
}
Color.prototype.setTint = function (r, g, b, amount) {
var _local4 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local4));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
q_jump = 3;
flipflop = 0;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getCode() == key_left) {
trace("YO");
}
if (Key.getCode() == key_quality) {
q_jump++;
if (q_jump > 3) {
q_jump = 1;
}
switch (q_jump) {
case 1 :
_quality = "LOW";
return;
case 2 :
_quality = "MEDIUM";
return;
case 3 :
_quality = "HIGH";
return;
default :
_quality = "HIGH";
}
}
};
Key.addListener(keyListener);
p_held = false;
d.l._visible = false;
d.r._visible = false;
l2._visible = false;
r2._visible = false;
btimer._visible = false;
ttimer._visible = false;
startok = false;
game_over = false;
easy = 0;
key_quality = 17;
music = 1;
key2_up = 38;
key2_down = 40;
key2_left = 37;
key2_right = 39;
key_up = 87;
key_down = 83;
key_left = 65;
key_right = 68;
LEFT = 0;
RIGHT = 1;
MonstersInScene = new Array();
shit = false;
ob.tag = 0;
_root.attachMovie("bar", "barhealth", 90010, {_x:10, _y:400, _yscale:350});
_root.attachMovie("counter", "counter_mc", 50060, {_x:450, _y:170});
_root.attachMovie("playerONE", "playerONE", 50061, {_x:Stage.width / 2, _y:100});
_root.attachMovie("run", "run", 3, {_x:0, _y:-3, _xscale:70, _yscale:70});
_root.attachMovie("hero", "rick_mc", 4, {_x:100, _y:170, _xscale:110, _yscale:110});
SpawnEnemy = function () {
attachedObj = _root.attachMovie("hero", "enemy" + ob.tag, tag, {_x:600, _y:270});
attachedObj.health = 100;
attachedObj.speed = 3;
attachedObj.hit = false;
attachedObj.alive = true;
attachedObj.stumble = false;
attachedObj.gotoFunction = AIZombie;
MonstersInScene.push(attachedObj);
ob.tag++;
};
Initialize(rick_mc, 1);
_root.timing = false;
_root.paused = false;
_root.timer_txt = "00:00:00";
onEnterFrame = function () {
quality = _quality;
MainLoopM();
};
Instance of Symbol 511 MovieClip in Frame 4
onClipEvent (load) {
backg.duplicateMovieClip("backg2", 105);
backg2.duplicateMovieClip("backg3", 106);
backg2._x = backg._x + backg._width;
backg3._x = backg._x - backg._width;
this.startx = backg._x + backg._width;
this.backgSpeed = 0.1;
}
onClipEvent (enterFrame) {
this._x = this._x - (Math.round(_root.rick_mc.charge) * this.backgSpeed);
if (this._x <= (this.startx - backg._width)) {
this._x = this.startx;
}
if (this._x >= (this.startx + backg._width)) {
this._x = this.startx;
}
}
Instance of Symbol 524 MovieClip in Frame 4
onClipEvent (load) {
this.water = 1;
ground.duplicateMovieClip("ground2", 100);
ground2.duplicateMovieClip("ground3", 101);
ground2._x = (ground._x + ground._width) - 1;
ground3._x = (ground2._x + ground._width) - 1;
this.startx = (ground._x + ground._width) - 1;
this.tileArray = [1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5];
this.counter = 0;
}
onClipEvent (enterFrame) {
if (_root.rick_mc.stage == 1) {
this.groundSpeed = 0.2;
}
if (_root.rick_mc.stage == 2) {
this.groundSpeed = 0.1;
}
if (_root.rick_mc.stage == 3) {
this.groundSpeed = 0.3;
}
_root.rick_mc.groundSpeed = this.groundSpeed;
ground._x = ground._x - (Math.round(_root.rick_mc.charge) * this.groundSpeed);
ground2._x = ground2._x - (Math.round(_root.rick_mc.charge) * this.groundSpeed);
ground3._x = ground3._x - (Math.round(_root.rick_mc.charge) * this.groundSpeed);
if (ground._x < (this.startx - ground._width)) {
ground._x = (ground3._x + ground._width) - 1;
ground.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
if (ground2._x < (this.startx - ground._width)) {
ground2._x = (ground._x + ground._width) - 1;
ground2.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
if (ground3._x < (this.startx - ground._width)) {
ground3._x = (ground2._x + ground._width) - 1;
ground3.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
}
Instance of Symbol 529 MovieClip in Frame 4
onClipEvent (load) {
this.swapDepths(5000);
}
Instance of Symbol 547 MovieClip "d" in Frame 4
onClipEvent (load) {
this.swapDepths(90003);
}
Instance of Symbol 553 MovieClip "a3" in Frame 4
onClipEvent (load) {
fence.duplicateMovieClip("fence2", 47);
fence2.duplicateMovieClip("fence3", 48);
fence2._x = fence._x + fence._width;
fence3._x = fence._x - fence._width;
this.startx = fence._x + fence._width;
this.fenceSpeed = 0.5;
this.swapDepths(90000);
}
onClipEvent (enterFrame) {
this._x = this._x - (Math.round(_root.rick_mc.charge) * this.fenceSpeed);
if (this._x <= (this.startx - fence._width)) {
this._x = this.startx;
}
if (this._x >= (this.startx + fence._width)) {
this._x = this.startx;
}
}
Instance of Symbol 557 MovieClip "a4" in Frame 4
onClipEvent (load) {
grass.duplicateMovieClip("grass2", 50);
grass2.duplicateMovieClip("grass3", 60);
grass2._x = grass._x + grass._width;
grass3._x = grass._x - grass._width;
this.startx = grass._x + grass._width;
this.grassSpeed = 1;
this.swapDepths(90001);
}
onClipEvent (enterFrame) {
this._x = this._x - (Math.round(_root.rick_mc.charge) * this.grassSpeed);
if (this._x <= (this.startx - grass._width)) {
this._x = this.startx;
}
if (this._x >= (this.startx + grass._width)) {
this._x = this.startx;
}
}
Frame 5
function Timer() {
if (_root.paused == false) {
if (!_root.timing) {
if (_root.paused) {
_root.startTime = getTimer() - _root.elapsedTime;
} else {
_root.startTime = getTimer();
}
_root.paused = false;
_root.timing = true;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer_txt = (((minutes + ":") + seconds) + ":") + hundredths;
_root.easy = minutes + seconds;
}
}
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function blurMe(blurX, blurY) {
quality = 1;
filter = new flash.filters.BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
filterArray = [];
}
}
}
function barHEALTH(energy, b, fluid) {
tot_frames = b._totalframes;
bar_d = Math.round((100 - energy) / (100 / tot_frames));
if (fluid) {
if (bar_d != b._currentframe) {
if (bar_d > b._currentframe) {
b.gotoAndStop(b._currentframe + 1);
} else {
b.gotoAndStop(b._currentframe - 1);
}
}
} else {
b.gotoAndStop(bar_d);
}
}
function Initialize(ob, player) {
if (player == 1) {
ob.key_up = 87;
ob.key_down = 83;
ob.key_left = 65;
ob.key_right = 68;
} else if (player == 2) {
ob.key_up = 38;
ob.key_down = 40;
ob.key_left = 37;
ob.key_right = 39;
var _local3 = ob;
var _local8 = randRange(0, 1);
var _local7 = randRange(0, 1);
var _local5 = randRange(0, 1);
var _local6 = new Array();
var _local4 = [1, 0, 0.3, 0, 0, 0.33, 1, 0.3, 0, 0, 0, 0.33, 1, 0, 0, 0, 0, 0, 1, 0];
var _local2 = new flash.filters.ColorMatrixFilter(_local4);
_local3.filters = new Array(_local2);
}
ob.step = 5;
ob.speed = step;
ob.frame = "stance";
ob.attack = false;
ob.stance = RIGHT;
ob.charge = 0;
ob.keydown = false;
ob.distance = 0;
ob.stage = 1;
ob.swim = 1;
ob.tempY = ob._y;
ob.leftarm = false;
ob.leftcharge = 0;
ob.rightarm = false;
ob.rightcharge = 0;
ob.laymilk = true;
ob.tag = 0;
ob.uvel = 20;
ob.gravity = 3;
ob.jump = false;
ob.jumpheld = false;
}
function Jump(ob) {
ob._y = ob._y - ob.uvel;
ob.uvel = ob.uvel - ob.gravity;
}
function TimeAnimation(ob) {
if (ob.running) {
var _local2 = Math.round(ob.charge);
if (_local2 < 5) {
ob.run_stage = 0;
} else if ((_local2 > 5) and (_local2 < 35)) {
ob.run_stage = 1;
} else if ((_local2 > 35) and (_local2 < 75)) {
ob.run_stage = 2;
} else if ((_local2 > 75) and (_local2 < 100)) {
ob.run_stage = 3;
}
switch (ob.run_stage) {
case 0 :
if (ob._currentframe >= 22) {
ob.gotoAndStop(1);
} else {
ob.nextFrame();
}
break;
case 1 :
if (ob._currentframe >= 41) {
ob.gotoAndStop(23);
} else {
ob.nextFrame();
}
break;
case 2 :
if (ob._currentframe >= 60) {
ob.gotoAndStop(43);
} else {
ob.nextFrame();
}
break;
case 3 :
if (ob._currentframe >= 78) {
ob.gotoAndStop(61);
} else {
ob.nextFrame();
if (_local2 <= 90) {
break;
}
ob.nextFrame();
}
}
} else {
ob.stop();
if (ob._currentframe != 1) {
ob.prevFrame();
}
}
}
function CheckCharge(ob) {
if ((!Key.isDown(ob.key_left)) && (ob.dude)) {
ob.charge = ob.charge + 1.6;
ob.dude = false;
} else if (Key.isDown(ob.key_left) && (!Key.isDown(ob.key_right))) {
ob.dude = true;
}
if ((!Key.isDown(ob.key_right)) && (ob.dude2)) {
ob.charge = ob.charge + 1.6;
ob.dude2 = false;
} else if (Key.isDown(ob.key_right) && (!Key.isDown(ob.key_left))) {
ob.dude2 = true;
}
if (ob.charge < 60) {
ob.charge = ob.charge - 0.5;
} else {
ob.charge = ob.charge - 0.6;
}
if (ob.charge > 0) {
ob.running = true;
}
if (ob.charge < 0) {
ob.charge = 0;
ob.running = false;
}
if (ob.charge > 100) {
ob.charge = 100;
}
}
function CheckCharge2(ob) {
if (Key.isDown(ob.key_left)) {
ob.dude = true;
}
if (((!Key.isDown(ob.key_left)) && (ob.dude)) && (ob.leftarm)) {
ob.leftcharge = ob.leftcharge + 12;
ob.nextFrame();
ob.dude = false;
}
if (Key.isDown(ob.key_right)) {
ob.dude2 = true;
}
if (((!Key.isDown(ob.key_right)) && (ob.dude2)) && (ob.rightarm)) {
ob.rightcharge = ob.rightcharge + 12;
ob.nextFrame();
ob.dude2 = false;
}
ob.leftcharge = ob.leftcharge - 1;
ob.rightcharge = ob.rightcharge - 1;
if (ob.rightarm && (Key.isDown(ob.key_left))) {
ob.leftcharge = ob.leftcharge - 8;
}
if (ob.leftarm && (Key.isDown(ob.key_right))) {
ob.rightcharge = ob.rightcharge - 8;
}
if (ob.charge > 0) {
ob.running = true;
} else {
ob.charge = 0;
ob.running = false;
}
if (ob.leftcharge < 0) {
ob.leftcharge = 0;
}
if (ob.rightcharge < 0) {
ob.rightcharge = 0;
}
if (ob.charge > 100) {
ob.charge = 60;
}
if (ob.charge < 60) {
ob.charge = ob.charge - 0.46;
} else {
ob.charge = ob.charge - 0.6;
}
if (ob.leftarm) {
if (ob == rick_mc) {
l._visible = true;
r._visible = false;
} else if (ob == rick_mc2) {
l2._visible = true;
r2._visible = false;
}
}
if (ob.rightarm) {
if (ob == rick_mc) {
l._visible = false;
r._visible = true;
} else if (ob == rick_mc2) {
l2._visible = false;
r2._visible = true;
}
}
if (ob.leftcharge >= 100) {
ob.leftcharge = 80;
ob.leftarm = false;
ob.rightarm = true;
ob.charge = ob.charge + 25;
}
if (ob.rightcharge >= 100) {
ob.rightcharge = 80;
ob.rightarm = false;
ob.leftarm = true;
ob.charge = ob.charge + 25;
}
if (ob._currentframe >= 109) {
ob.gotoAndStop(90);
}
if (!ob.running) {
ob.stop();
} else {
ob.nextFrame();
}
if (ob == rick_mc) {
_root.w1._xscale = (_root.w1._yscale = (ob.charge * 1.1) + 40);
}
if (ob == rick_mc2) {
_root.w2._xscale = (_root.w1._yscale = (ob.charge * 1.1) + 40);
}
}
function CheckCharge3(ob) {
var _local2 = offset;
if (Key.isDown(ob.key_left)) {
ob.dude = true;
}
if ((!Key.isDown(ob.key_left)) && (ob.dude)) {
ob.charge = ob.charge + 0.35;
if (ob.charge < 50) {
ob.nextFrame();
}
ob.dude = false;
}
if (Key.isDown(ob.key_right)) {
ob.dude2 = true;
}
if ((!Key.isDown(ob.key_right)) && (ob.dude2)) {
ob.charge = ob.charge + 0.35;
if (ob.charge < 50) {
ob.nextFrame();
}
ob.dude2 = false;
}
if (Key.isDown(ob.key_up) && (ob._y > (ob.tempY - 5))) {
ob._y = ob._y - 1;
}
if (Key.isDown(ob.key_down) && (ob._y < (ob.tempY + 60))) {
ob._y = ob._y + 1;
}
ob.charge = ob.charge - 0.1;
if (ob.charge > 0) {
ob.running = true;
}
if (ob.charge < 0) {
ob.charge = 0;
ob.running = false;
}
if (ob.charge > 100) {
ob.charge = 100;
}
}
function Swim(ob) {
if (ob.swim == 1) {
ob.gotoAndStop("jumping");
ob.swim = 2;
}
if (ob.swim == 2) {
if (ob._currentframe == 88) {
ob.stop();
ob.swim = 3;
} else {
ob.nextFrame();
}
}
if (ob.swim == 3) {
Jump(ob);
ob._rotation = 90;
if (ob._y > ob.tempY) {
ob.uvel = -15;
ob.gravity = 0.8;
ob.gravity = -ob.gravity;
ob.swim = 4;
}
}
if (ob.swim == 4) {
ob._alpha = 50;
if (ob._currentframe >= 109) {
ob.gotoAndStop(90);
} else {
ob.nextFrame();
}
Jump(ob);
if (ob.uvel >= 10) {
ob._rotation = 90;
ob.leftarm = true;
ob.stage = 3;
if (ob == rick_mc) {
_root.attachMovie("bar2", "lbar", _root.getNextHighestDepth(), {_x:140, _y:380, _yscale:100});
_root.attachMovie("bar2", "rbar", _root.getNextHighestDepth(), {_x:280, _y:380, _yscale:100});
var _local4 = {x:0, y:0};
ob.localToGlobal(_local4);
_root.attachMovie("waves", "w1", _root.getNextHighestDepth(), {_x:_local4.x - 110, _y:_local4.y - 15});
} else if (ob == rick_mc2) {
_root.attachMovie("bar2", "lbar2", _root.getNextHighestDepth(), {_x:140, _y:180, _yscale:100});
_root.attachMovie("bar2", "rbar2", _root.getNextHighestDepth(), {_x:280, _y:180, _yscale:100});
var _local3 = {x:0, y:0};
ob.localToGlobal(_local3);
_root.attachMovie("waves", "w2", _root.getNextHighestDepth(), {_x:_local3.x - 110, _y:_local3.y - 15});
}
}
}
ob.charge = ob.charge - 0.01;
if (ob.charge < 0) {
ob.charge = 0;
}
}
function MilkRace(ob) {
if (ob._currentframe >= 126) {
ob.gotoAndStop("cycle");
} else if (!ob.running) {
stop();
} else {
ob.nextFrame();
}
}
function RandomMilk(ob) {
if (ob.laymilk) {
if (ob == rick_mc) {
removeMovieClip(_root.w1);
_root.attachMovie("milk", "milk" + ob.tag, _root.getNextHighestDepth(), {_x:ob._x + randRange(200, 600), _y:ob.tempY + randRange(40, 100)});
ob.tag++;
} else if (ob == rick_mc2) {
removeMovieClip(_root.w2);
_root.attachMovie("milk", "milkb" + ob.tag, _root.getNextHighestDepth(), {_x:ob._x + randRange(200, 600), _y:ob.tempY + randRange(40, 100)});
ob.tag++;
}
var _local4 = 1;
while (_local4 <= 30) {
if (ob == rick_mc) {
_root.attachMovie("milk", "milk" + _local4, _root.getNextHighestDepth(), {_x:_root["milk" + (_local4 - 1)]._x + randRange(300, 500), _y:ob.tempY + randRange(40, 100)});
ob.tag++;
} else if (ob == rick_mc2) {
_root.attachMovie("milk", "milkb" + _local4, _root.getNextHighestDepth(), {_x:_root["milkb" + (_local4 - 1)]._x + randRange(300, 500), _y:ob.tempY + randRange(40, 100)});
ob.tag++;
}
_local4++;
}
ob.laymilk = false;
}
var _local5 = 0;
while (_local5 <= 30) {
if (ob == rick_mc) {
var _local3 = _root["milk" + _local5];
var _local6 = _root["milk" + _local5].bbox;
} else if (ob == rick_mc2) {
var _local3 = _root["milkb" + _local5];
var _local6 = _root["milkb" + _local5].bbox;
}
if (_local3._x <= Stage.width) {
ob.swapDepths(((ob._y + ob._height) - 200) * 1000);
_local3.swapDepths((_local3._y + _local3._height) * 1000);
if (_local6.hitTest(ob.bbox)) {
CRIES = new Sound(_root.createEmptyMovieClip("cries_mc", _root.getNextHighestDepth()));
CRIES.attachSound("tink");
CRIES.start();
removeMovieClip(_local3);
ob.charge = ob.charge + 7;
}
}
_local3._x = _local3._x - (Math.round(ob.charge) * ob.groundSpeed);
_local5++;
}
}
function MainLoop(ob) {
if (ob == rick_mc) {
barHEALTH(ob.charge, barhealth, false);
} else if (ob == rick_mc2) {
barHEALTH(ob.charge, barhealth2, false);
}
ob.distance = ob.distance + (Math.round(ob.charge) / 100);
if (ob.stage == 1) {
CheckCharge(ob);
TimeAnimation(ob);
if (ob.distance >= 313) {
ob.stage = 2;
}
}
if (ob.stage == 2) {
Swim(ob);
}
if (ob.stage == 3) {
if (ob == rick_mc) {
barHEALTH(ob.leftcharge, lbar, false);
barHEALTH(ob.rightcharge, rbar, false);
} else if (ob == rick_mc2) {
barHEALTH(ob.leftcharge, lbar2, false);
barHEALTH(ob.rightcharge, rbar2, false);
}
CheckCharge2(ob);
if (ob.distance >= 600) {
ob.stage = 4;
if (ob == rick_mc) {
removeMovieClip(lbar);
removeMovieClip(rbar);
l._visible = false;
r._visible = false;
if (ob.charge >= 20) {
ob.charge = ob.charge - 20;
}
} else if (ob == rick_mc2) {
removeMovieClip(lbar2);
removeMovieClip(rbar2);
l2._visible = false;
r2._visible = false;
if (ob.charge >= 20) {
ob.charge = ob.charge - 20;
}
}
ob.gotoAndStop("cycle");
ob._y = ob.tempY;
ob.charge = ob.charge * 2;
}
}
if (ob.stage == 4) {
ob._alpha = 100;
ob._rotation = 0;
CheckCharge3(ob);
MilkRace(ob);
RandomMilk(ob);
if (ob.distance >= 1000) {
ob.groundSpeed = 0;
ob.stage = 5;
ob.finish = true;
ob.finaltime = timer_txt;
ob.feasy = easy;
if (ob == rick_mc) {
btimer._visible = true;
btimer.swapDepths(50000);
} else if (ob == rick_mc2) {
ttimer._visible = true;
ttimer.swapDepths(50001);
}
}
}
if (ob.stage == 5) {
ob._x = ob._x + (ob.charge / 2);
ob.charge = ob.charge - 8;
if (ob._x > (Stage.width - 250)) {
ob.charge = 0;
}
if (ob.charge <= 0) {
ob.charge = 0;
}
if (ob.finish) {
ob.gotoAndPlay("finish");
if (ob == rick_mc) {
Scores(ob, 460, 350);
} else {
Scores(ob, 460, 150);
}
ob.finish = false;
}
if (ob._currentframe == ob._totalframes) {
ob.gotoAndStop(130);
} else {
ob.nextFrame();
}
}
}
function Scores(ob, tx, ty) {
if (ob == rick_mc) {
var _local4 = 900011 /* 0x0DBBAB */;
} else {
var _local4 = 900013 /* 0x0DBBAD */;
}
trace(ob.feasy);
this.attachMovie("emenu", "emenu", 900012, {_x:Stage.width / 2, _y:250});
if (ob.feasy <= 83) {
_root.attachMovie("gold", "gold", _local4, {_x:tx, _y:ty});
} else if ((ob.feasy <= 86) && (ob.feasy > 83)) {
_root.attachMovie("silver", "silver", _local4, {_x:tx, _y:ty});
} else if ((ob.feasy <= 89) && (ob.feasy > 86)) {
_root.attachMovie("bronze", "bronze", _local4, {_x:tx, _y:ty});
} else {
_root.attachMovie("nomedal", "nomedal", _local4, {_x:tx, _y:ty});
}
}
function MainLoopM() {
if (startok) {
Timer();
MainLoop(rick_mc);
MainLoop(rick_mc2);
}
}
this._lockroot = true;
stop();
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
if (fpsCounterInterval == undefined) {
fpsTicks = 0;
fpsCounterInterval = setInterval(function () {
twat = fpsTicks;
fpsTicks = 0;
}, 1000);
_root.createEmptyMovieClip("fpsCounterMC", 99999);
fpsCounterMC.onEnterFrame = function () {
fpsTicks++;
};
}
Color.prototype.setTint = function (r, g, b, amount) {
var _local4 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local4));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
q_jump = 3;
flipflop = 0;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getCode() == key_left) {
trace("YO");
}
if (Key.getCode() == key_quality) {
q_jump++;
if (q_jump > 3) {
q_jump = 1;
}
switch (q_jump) {
case 1 :
_quality = "LOW";
return;
case 2 :
_quality = "MEDIUM";
return;
case 3 :
_quality = "HIGH";
return;
default :
_quality = "HIGH";
}
}
};
Key.addListener(keyListener);
p_held = false;
l._visible = false;
r._visible = false;
l2._visible = false;
r2._visible = false;
btimer._visible = false;
ttimer._visible = false;
startok = false;
game_over = false;
easy = 0;
key_quality = 17;
key2_up = 38;
key2_down = 40;
key2_left = 37;
key2_right = 39;
LEFT = 0;
RIGHT = 1;
MonstersInScene = new Array();
shit = false;
ob.tag = 0;
_root.attachMovie("bar", "barhealth", 1, {_x:10, _y:400, _yscale:350});
_root.attachMovie("bar", "barhealth2", 2, {_x:10, _y:200, _yscale:350});
_root.attachMovie("hero", "rick_mc", 4, {_x:100, _y:260});
_root.attachMovie("hero", "rick_mc2", 5, {_x:100, _y:60});
_root.attachMovie("counter", "counter_mc", 50060, {_x:450, _y:170});
_root.attachMovie("playerONE", "playerONE", 50061, {_x:Stage.width / 2, _y:100});
_root.attachMovie("playerTWO", "playerTWO", 50062, {_x:Stage.width / 2, _y:300});
SpawnEnemy = function () {
attachedObj = _root.attachMovie("hero", "enemy" + ob.tag, tag, {_x:600, _y:270});
attachedObj.health = 100;
attachedObj.speed = 3;
attachedObj.hit = false;
attachedObj.alive = true;
attachedObj.stumble = false;
attachedObj.gotoFunction = AIZombie;
MonstersInScene.push(attachedObj);
ob.tag++;
};
Initialize(rick_mc, 1);
Initialize(rick_mc2, 2);
_root.timing = false;
_root.paused = false;
_root.timer_txt = "00:00:00";
onEnterFrame = function () {
quality = _quality;
if (!game_over) {
MainLoopM();
} else {
Scores();
}
};
Instance of Symbol 511 MovieClip in Frame 5
onClipEvent (load) {
backg.duplicateMovieClip("backg2", 105);
backg2.duplicateMovieClip("backg3", 106);
backg2._x = backg._x + backg._width;
backg3._x = backg._x - backg._width;
this.startx = backg._x + backg._width;
backgSpeed = 0.3;
}
onClipEvent (enterFrame) {
this._x = this._x - (Math.round(_root.rick_mc2.charge) * backgSpeed);
if (this._x <= (this.startx - backg._width)) {
this._x = this.startx;
}
if (this._x >= (this.startx + backg._width)) {
this._x = this.startx;
}
}
Instance of Symbol 524 MovieClip in Frame 5
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2.duplicateMovieClip("ground3", 101);
ground2._x = (ground._x + ground._width) - 1;
ground3._x = (ground2._x + ground._width) - 1;
this.startx = (ground._x + ground._width) - 1;
this.groundSpeed = 0.3;
this.tileArray = [1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5];
this.counter = 0;
}
onClipEvent (enterFrame) {
if (_root.rick_mc2.stage == 1) {
this.groundSpeed = 0.2;
}
if (_root.rick_mc2.stage == 2) {
this.groundSpeed = 0.1;
}
if (_root.rick_mc2.stage == 3) {
this.groundSpeed = 0.3;
}
if ((_root.rick_mc2.swim > 1) and (_root.rick_mc2.swim < 4)) {
_root.rick_mc2.groundSpeed = 1;
}
_root.rick_mc2.groundSpeed = this.groundSpeed;
ground._x = ground._x - (Math.round(_root.rick_mc2.charge) * this.groundSpeed);
ground2._x = ground2._x - (Math.round(_root.rick_mc2.charge) * this.groundSpeed);
ground3._x = ground3._x - (Math.round(_root.rick_mc2.charge) * this.groundSpeed);
if (ground._x < (this.startx - ground._width)) {
ground._x = (ground3._x + ground._width) - 1;
ground.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
if (ground2._x < (this.startx - ground._width)) {
ground2._x = (ground._x + ground._width) - 1;
ground2.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
if (ground3._x < (this.startx - ground._width)) {
ground3._x = (ground2._x + ground._width) - 1;
ground3.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
}
Instance of Symbol 553 MovieClip in Frame 5
onClipEvent (load) {
grass.duplicateMovieClip("grass2", 50);
grass2.duplicateMovieClip("grass3", 60);
grass2._x = grass._x + grass._width;
grass3._x = grass._x - grass._width;
this.startx = grass._x + grass._width;
this.grassSpeed = 1;
}
onClipEvent (enterFrame) {
this._x = this._x - (Math.round(_root.rick_mc2.charge) * this.grassSpeed);
if (this._x <= (this.startx - grass._width)) {
this._x = this.startx;
}
if (this._x >= (this.startx + grass._width)) {
this._x = this.startx;
}
}
Instance of Symbol 511 MovieClip in Frame 5
onClipEvent (load) {
backg.duplicateMovieClip("backg2", 105);
backg2.duplicateMovieClip("backg3", 106);
backg2._x = backg._x + backg._width;
backg3._x = backg._x - backg._width;
this.startx = backg._x + backg._width;
this.backgSpeed = 0.3;
}
onClipEvent (enterFrame) {
this._x = this._x - (Math.round(_root.rick_mc.charge) * this.backgSpeed);
if (this._x <= (this.startx - backg._width)) {
this._x = this.startx;
}
if (this._x >= (this.startx + backg._width)) {
this._x = this.startx;
}
}
Instance of Symbol 524 MovieClip in Frame 5
onClipEvent (load) {
this.water = 1;
ground.duplicateMovieClip("ground2", 100);
ground2.duplicateMovieClip("ground3", 101);
ground2._x = (ground._x + ground._width) - 1;
ground3._x = (ground2._x + ground._width) - 1;
this.startx = (ground._x + ground._width) - 1;
this.groundSpeed = 0.3;
this.tileArray = [1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5];
this.counter = 0;
}
onClipEvent (enterFrame) {
if (_root.rick_mc.stage == 1) {
this.groundSpeed = 0.2;
}
if (_root.rick_mc.stage == 2) {
this.groundSpeed = 0.1;
}
if (_root.rick_mc.stage == 3) {
this.groundSpeed = 0.3;
}
_root.rick_mc.groundSpeed = this.groundSpeed;
ground._x = ground._x - (Math.round(_root.rick_mc.charge) * this.groundSpeed);
ground2._x = ground2._x - (Math.round(_root.rick_mc.charge) * this.groundSpeed);
ground3._x = ground3._x - (Math.round(_root.rick_mc.charge) * this.groundSpeed);
if (ground._x < (this.startx - ground._width)) {
ground._x = (ground3._x + ground._width) - 1;
ground.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
if (ground2._x < (this.startx - ground._width)) {
ground2._x = (ground._x + ground._width) - 1;
ground2.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
if (ground3._x < (this.startx - ground._width)) {
ground3._x = (ground2._x + ground._width) - 1;
ground3.gotoAndStop(this.tileArray[this.counter]);
this.counter++;
}
}
Instance of Symbol 553 MovieClip in Frame 5
onClipEvent (load) {
grass.duplicateMovieClip("grass2", 50);
grass2.duplicateMovieClip("grass3", 60);
grass2._x = grass._x + grass._width;
grass3._x = grass._x - grass._width;
this.startx = grass._x + grass._width;
this.grassSpeed = 1;
}
onClipEvent (enterFrame) {
this._x = this._x - (Math.round(_root.rick_mc.charge) * this.grassSpeed);
if (this._x <= (this.startx - grass._width)) {
this._x = this.startx;
}
if (this._x >= (this.startx + grass._width)) {
this._x = this.startx;
}
}
Instance of Symbol 573 MovieClip in Frame 5
onClipEvent (load) {
this.swapDepths(5000);
}
Instance of Symbol 545 MovieClip in Frame 5
onClipEvent (load) {
this.swapDepths(500051);
}
Instance of Symbol 576 MovieClip in Frame 5
onClipEvent (load) {
this.swapDepths(5000);
}
Symbol 16 Button
on (press) {
ab20_09 = new LoadVars();
ab20_09.z = namehere;
ab20_09.x = _root.rick_mc.feasy;
ab20_09.c = 1403;
ab20_09.v = "LVYISA";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
removeMovieClip(this);
}
Symbol 17 MovieClip [nameentry] Frame 1
namehere = "TYPE HERE";
Symbol 46 Button
on (press) {
this._visible = false;
}
Symbol 48 MovieClip [highscore] Frame 1
stop();
this._alpha = 100;
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1403;
__top10_send__.kid = "LVYISA";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_level0.mainmenu.hscore.highscore[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_level0.mainmenu.hscore.highscore[("_score" + i) + "_"].text = __top10_receive__["score" + i];
i++;
}
} else {
trace("IT AINT LOADING YAH CUNT!");
}
};
Symbol 59 MovieClip [preloader anim] Frame 1
var value = 0;
onEnterFrame = function () {
if (value) {
loaded_txt.text = Math.round(100 * value) + "%";
}
};
Symbol 66 MovieClip [run] Frame 1
this.onEnterFrame = function () {
if (!_root.startok) {
stop();
} else {
play();
}
};
Symbol 70 MovieClip [nomedal] Frame 53
stop();
Symbol 74 Button
on (press) {
loadMovieNum (_url, 0);
}
Symbol 80 MovieClip [gold] Frame 45
stop();
Symbol 85 MovieClip [silver] Frame 45
stop();
Symbol 95 MovieClip Frame 21
stop();
Symbol 96 MovieClip [playerTWO] Frame 10
if (_root.game_over) {
stop();
}
Symbol 96 MovieClip [playerTWO] Frame 53
removeMovieClip(this);
Symbol 104 MovieClip Frame 21
stop();
Symbol 105 MovieClip [playerONE] Frame 10
if (_root.game_over) {
stop();
}
Symbol 105 MovieClip [playerONE] Frame 53
removeMovieClip(this);
Symbol 111 MovieClip [credits] Frame 148
removeMovieClip(this);
Symbol 122 Button
on (press) {
removeMovieClip(_parent);
_root.gotoAndStop(4);
}
Symbol 124 Button
on (press) {
removeMovieClip(_parent);
_root.gotoAndStop(5);
}
Symbol 134 Button
on (press) {
this.attachMovie("highscore", "highscore", this.getDepth() + 50, {_x:0, _y:50});
}
Symbol 135 MovieClip Frame 29
stop();
Symbol 141 MovieClip [bar2] Frame 1
stop();
Symbol 141 MovieClip [bar2] Frame 100
stop();
Symbol 146 MovieClip [bar] Frame 1
stop();
Symbol 146 MovieClip [bar] Frame 100
stop();
Symbol 398 MovieClip [hero] Frame 1
stop();
Symbol 475 MovieClip [counter] Frame 1
M = new Sound(_root.createEmptyMovieClip("music", _root.getNextHighestDepth()));
M.attachSound("music");
M.start(0, 999);
Symbol 475 MovieClip [counter] Frame 31
_root.startok = false;
Symbol 475 MovieClip [counter] Frame 99
_root.startok = true;
Symbol 475 MovieClip [counter] Frame 127
removeMovieClip(this);
Symbol 486 MovieClip [waves] Frame 1
this.onEnterFrame = function () {
this.gotoAndStop(_root.randRange(0, this._totalframes));
this._yscale = _root.randRange(50, 100);
};
Symbol 490 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 490 MovieClip Frame 2
gotoAndPlay (1);
Symbol 490 MovieClip Frame 3
_root.play();
Symbol 493 Button
on (release) {
getURL ("http://www.flashninjaclan.com");
}
Symbol 497 MovieClip Frame 94
_parent.gotoAndStop(3);
Symbol 499 MovieClip Frame 72
stop();
Symbol 500 Button
on (release) {
getURL ("http://www.flashninjaclan.com");
}
Symbol 502 Button
on (release) {
getURL ("http://www.flashninjaclan.com");
}
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 2
stop();
Symbol 523 MovieClip Frame 3
stop();
Symbol 523 MovieClip Frame 4
stop();
Symbol 523 MovieClip Frame 5
stop();
Symbol 543 Button
on (press) {
_root.music = -_root.music;
if (_root.music == -1) {
stopAllSounds();
} else if (_root.music == 1) {
M = new Sound(_root.createEmptyMovieClip("music", _root.getNextHighestDepth()));
M.attachSound("music");
M.start(0, 999);
}
}
Instance of Symbol 545 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(500051);
}
Symbol 571 MovieClip Frame 23
stop();
Symbol 574 Button
on (press) {
music = -music;
if (music == -1) {
stopAllSounds();
} else if (music == 1) {
M = new Sound(_root.createEmptyMovieClip("music", _root.getNextHighestDepth()));
M.attachSound("music");
M.start(0, 999);
}
}
Symbol 581 MovieClip Frame 23
stop();