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);
}
function countDown() {
sec++;
}
function postMindJoltAPIConnect(success) {
trace("[MindJoltAPI] service successfully loaded");
}
__com_mochibot__("4625e3a1", this, 10301, true);
stop();
var CPMStarContentSpotID = "1806Q67072BFE";
System.security.allowDomain("server.cpmstar.com");
loader.adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
sec = 0;
countdown = setInterval(countDown, 45);
var MindJoltAPI;
if (MindJoltAPI == undefined) {
System.security.allowDomain("static.mindjolt.com");
MindJoltAPI = createEmptyMovieClip("MindJoltAPI", getNextHighestDepth());
var apiPath = ((_level0.mjPath != undefined) ? (_level0.mjPath) : "http://static.mindjolt.com/api/as2/api_as2_local.swf");
var apiLoader = new MovieClipLoader();
var apiLoadListener = new Object();
apiLoader.addListener(apiLoadListener);
apiLoadListener.onLoadInit = function () {
MindJoltAPI.service.connect(postMindJoltAPIConnect);
};
apiLoadListener.onLoadError = function () {
trace("[MindJoltAPI] failed to load.");
};
apiLoader.loadClip(apiPath, MindJoltAPI);
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
af.onRelease = function () {
getURL ("http://agitatedferret.com/", "_blank");
};
Frame 2
function onEnterFrame() {
blockeMove2();
expMove2();
if (awe._currentframe == 195) {
gotoAndStop (3);
}
}
function blockeMove2() {
i = lsers.length - 1;
while (i >= 0) {
lsers[i]._x = lsers[i]._x + lsX[i];
lsers[i]._y = lsers[i]._y + lsY[i];
lsY[i] = lsY[i] + grav;
lsX[i] = lsX[i] * airF;
if ((lsers[i]._x + (lsers[i]._width / 2)) >= Stage.width) {
lsX[i] = lsX[i] * -1;
}
if ((lsers[i]._x - (lsers[i]._width / 2)) <= 0) {
lsX[i] = lsX[i] * -1;
lsers[i]._x = lsers[i]._x + lsX[i];
}
if ((lsers[i]._y + (lsers[i]._height / 2)) >= Stage.height) {
lsY[i] = lsY[i] * -0.5;
lsers[i]._y = Stage.height - (lsers[i]._height / 2);
}
lsLive[i] = lsLive[i] - 1;
if (lsLive[i] <= 0) {
lsers[i]._alpha = lsers[i]._alpha - 2;
if (lsers[i]._alpha <= 0) {
removeBlock2();
}
}
i--;
}
}
function removeBlock2() {
lsers[i].removeMovieClip();
lsers.splice(i, 1);
lsX.splice(i, 1);
lsY.splice(i, 1);
lsLive.splice(i, 1);
}
function blockSplode2() {
b = 10;
while (b > 0) {
ls = attachMovie("aa", "lser" + depth2, depth2);
depth2++;
lsers.push(ls);
ls._x = random(Stage.width);
ls._y = random(Stage.height);
dire = random(180);
lsX.push(Math.cos((dire * Math.PI) / 180) * 20);
lsY.push((-Math.sin((dire * Math.PI) / 180)) * 20);
lsLive.push(30);
b--;
}
}
function expMove2() {
i = exp.length - 1;
while (i >= 0) {
exp[i]._x = exp[i]._x + expX[i];
exp[i]._y = exp[i]._y + expY[i];
expX[i] = expX[i] * 0.98;
expY[i] = expY[i] * 0.98;
exp[i]._alpha = exp[i]._alpha - 5;
if (exp[i]._alpha <= 0) {
removeExp2();
}
i--;
}
}
function explosion2() {
b = 3;
while (b >= 0) {
cna = attachMovie("pua", "cn" + depth2, depth2);
depth2++;
cna._x = _xmouse;
cna._y = _ymouse;
rotTemp = random(360);
exp.push(cna);
expX.push(random(10) - 5);
expY.push(random(10) - 5);
cna._xscale = (cna._yscale = random(50) + 25);
b--;
}
}
function removeExp2() {
exp[i].removeMovieClip();
exp.splice(i, 1);
expX.splice(i, 1);
expY.splice(i, 1);
}
stop();
depth2 = 103;
grav = 1;
airF = 0.9;
exp = new Array();
expX = new Array();
expY = new Array();
lsers = new Array();
lsY = new Array();
lsX = new Array();
lsLive = new Array();
dire = 0;
awe.onRelease = function () {
getURL ("http://agitatedferret.com/", "_blank");
};
Frame 3
function createHover(button) {
button.onRollOver = function () {
button.gotoAndStop(2);
};
button.onRollOut = function () {
button.gotoAndStop(1);
};
}
createHover(p1);
createHover(i1);
createHover(c1);
createHover(m1);
p1.onRelease = function () {
gotoAndStop (4);
};
i1.onRelease = function () {
gotoAndStop (6);
};
afa.onRelease = function () {
getURL ("http://agitatedferret.com/", "_blank");
};
c1.onRelease = function () {
gotoAndStop (7);
};
m1.onRelease = function () {
getURL ("http://agitatedferret.com", "_blank");
};
Frame 4
function updateStats() {
iBox.scoreTxt = score;
iBox.speedTxt = speed;
if (gUp == 1) {
iBox.speedTxt = speed + 10;
}
if (gDown == 1) {
iBox.speedTxt = speed - 10;
}
if (score >= pBest) {
pBest = score;
}
iBox.recTxt = pBest;
}
function onEnterFrame() {
if (this._currentframe == 4) {
if (Key.isDown(39)) {
car._x = car._x + speedq;
car._rotation = 6;
}
if (Key.isDown(37)) {
car._x = car._x - speedq;
car._rotation = -6;
}
gUp = 0;
gDown = 0;
if (Key.isDown(38)) {
car._y = car._y - speedq;
gUp = 1;
}
if (Key.isDown(40)) {
car._y = car._y + (speedq * 2);
gDown = 1;
}
if (car._rotation > 0) {
car._rotation = car._rotation - 2;
}
if (car._rotation < 0) {
car._rotation = car._rotation + 2;
}
if ((car._x + (car._width / 2)) >= Stage.width) {
car._x = Stage.width - (car._width / 2);
}
if ((car._x - (car._width / 2)) <= 20) {
car._x = (car._width / 2) + 20;
}
if ((car._y + (car._height / 2)) >= Stage.height) {
car._y = Stage.height - (car._height / 2);
}
if (((car._y - (car._height / 2)) - 20) <= 0) {
car._y = (car._height / 2) + 20;
}
sCount = road.road._currentframe + Math.floor(speed / 8);
if (sCount >= 40) {
sCount = sCount - 39;
}
score = score + Math.floor(speed / 50);
road.road.gotoAndStop(sCount);
upSpeed();
if (speed <= 70) {
speed = speed + 2;
speedq = speed / 30;
}
i = lanes.length - 1;
while (i >= 0) {
lanes[i] = lanes[i] - 1;
i--;
}
addCarDelay = addCarDelay - 1;
if (addCarDelay <= 0) {
addCarDelay = 14 - Math.floor(speed / 10);
makeEnemy();
}
addCopDelay = addCopDelay - 1;
if (addCopDelay <= 0) {
addCopDelay = 180 - Math.floor(speed / 10);
makeCop();
}
enemyMovement();
updateStats();
expMove();
}
}
function upSpeed() {
delay = delay - 1;
if (delay <= 0) {
delay = 90;
speed = speed + 1;
if (speed >= 150) {
speed = 80;
}
speedq = speed / 30;
}
}
function makeEnemy() {
laneChoice = random(12);
laneChoice2 = laneChoice;
noEn = 0;
while ((lanes[laneChoice] >= 0) && (noEn == 0)) {
laneChoice = laneChoice + 1;
if (laneChoice > 11) {
laneChoice = 0;
}
if (laneChoice2 == laneChoice) {
noEn = 1;
break;
}
}
if (noEn == 0) {
carq = attachMovie("enCar", "enCar" + depth, depth);
depth++;
carq.gotoAndStop(random(4) + 1);
if (carq._currentframe == 1) {
carq.cF.gotoAndStop(random(3) + 1);
}
if (carq._currentframe == 3) {
carq.cF.gotoAndStop(random(2) + 1);
}
if (laneChoice >= 6) {
carq._y = carq._y - (carq._height * 2);
carq._rotation = carq._rotation + 180;
} else if (carq._currentframe == 4) {
carq.gotoAndStop(1);
}
lanes[laneChoice] = 30;
enemyCars.push(carq);
carq._x = 12 + (laneChoice * 25);
enemyCarLane.push(laneChoice);
}
}
function makeCop() {
cop = attachMovie("police", "cop" + depth, depth);
depth++;
cops.push(cop);
cop._y = Stage.height;
cop._x = car._x;
}
function enemyMovement() {
i = enemyCars.length - 1;
while (i >= 0) {
if (enemyCarLane[i] < 6) {
enemyCars[i]._y = enemyCars[i]._y + ((speed / 6) + (enemyCarLane[i] * (speed / 130)));
} else {
enemyCars[i]._y = enemyCars[i]._y + ((speed / 30) + ((enemyCarLane[i] - 6) * (speed / 130)));
}
if ((enemyCars[i]._y - enemyCars[i]._height) >= Stage.height) {
removeCar(i);
}
if (enemyCars[i].hitTest(car.ita)) {
if (enemyCars[i]._currentframe == 4) {
score = score + (speed * 2);
cc.start();
removeCar(i);
} else {
gameOver();
}
}
i--;
}
i = cops.length - 1;
while (i >= 0) {
cops[i]._y = cops[i]._y - 1;
if (car._y > cops[i]._y) {
cops[i]._y = cops[i]._y + 2;
}
if ((car._x - 5) > cops[i]._x) {
cops[i]._rotation = 6;
cops[i]._x = cops[i]._x + 1;
}
if ((car._x + 5) < cops[i]._x) {
cops[i]._rotation = -6;
cops[i]._x = cops[i]._x - 1;
}
if (cops[i]._rotation > 0) {
cops[i]._rotation = cops[i]._rotation - 2;
}
if (cops[i]._rotation < 0) {
cops[i]._rotation = cops[i]._rotation + 2;
}
b = enemyCars.length - 1;
while (b >= 0) {
if (cops[i].hitTest(enemyCars[b]) && (enemyCars[b]._currentframe != 4)) {
exa = attachMovie("explosion", "epa" + depth, depth);
expload.start();
depth++;
exa._x = enemyCars[b]._x;
exa._y = enemyCars[b]._y;
exa._xscale = (exa._yscale = 50);
exa2 = attachMovie("explosion", "epa" + depth, depth);
depth++;
exa2._x = cops[i]._x;
exa2._y = cops[i]._y;
exa2._xscale = (exa2._yscale = 50);
removeCar(b);
removeCop();
}
b--;
}
if (cops[i].hitTest(car.ita)) {
gameOver();
}
i--;
}
}
function removeCop() {
cops[i].removeMovieClip();
cops.splice(i, 1);
}
function expMove() {
i = exp.length - 1;
while (i >= 0) {
exp[i]._x = exp[i]._x + expX[i];
exp[i]._y = exp[i]._y + expY[i];
expX[i] = expX[i] * 0.98;
expY[i] = expY[i] * 0.98;
exp[i]._alpha = exp[i]._alpha - 5;
if (exp[i]._alpha <= 0) {
removeExp();
}
i--;
}
}
function removeExp() {
exp[i].removeMovieClip();
exp.splice(i, 1);
expX.splice(i, 1);
expY.splice(i, 1);
}
function removeCar(i) {
if (enemyCars[i]._currentframe == 4) {
b = 10;
while (b >= 0) {
cna = attachMovie("cn", "cn" + depth, depth);
depth++;
cna._x = enemyCars[i]._x;
cna._y = enemyCars[i]._y;
rotTemp = random(360);
exp.push(cna);
expX.push(random(20) - 10);
expY.push(random(20) - 10);
cna._xscale = (cna._yscale = random(50) + 25);
b--;
}
}
enemyCars[i].removeMovieClip();
enemyCars.splice(i, 1);
enemyCarLane.splice(i, 1);
}
function gameOver() {
i = enemyCars.length - 1;
while (i >= 0) {
removeCar(i);
i--;
}
i = cops.length - 1;
while (i >= 0) {
removeCop();
i--;
}
i = exp.length - 1;
while (i >= 0) {
removeExp();
i--;
}
car.swapDepths(20);
car.removeMovieClip();
removeMovieClip(iBox);
gotoAndStop (5);
}
stop();
var my_sound = new Sound();
my_sound.attachSound("286056_tomaction.mp3");
my_sound.start(0, 100);
my_sound.start(0, 100);
var cc = new Sound();
cc.attachSound("Bdllet-Public_D-303.wav");
var expload = new Sound();
expload.attachSound("enemy_expload");
sObject = SharedObject.getLocal("objectName");
pBest = 0;
if (sObject.data.pBest > 0) {
pBest = sObject.data.pBest;
}
speed = 20;
speedq = 0;
depth = 102;
lanes = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
enemyCars = new Array();
enemyCarLane = new Array();
cops = new Array();
addCarDelay = 20;
addCopDelay = 20;
score = 0;
iBox.swapDepths(750222);
exp = new Array();
expX = new Array();
expY = new Array();
gUp = 0;
gDown = 0;
delay = 60;
noEn = 0;
Frame 5
function sendScore(GameName, SubmitterName, ScoreVar, Type, Mode) {
if (Base64.Decode(sentScore) != ScoreVar.toString()) {
sentScore = ScoreVar.toString();
sentScore = Base64.Encode(sentScore);
GameName = GameName.split(" ");
GameName = GameName.join("_");
_root.loadVariables(((((("http://www.agitatedferret.com/send_score.php?game=" + GameName) + "&name=") + SubmitterName) + "&developer=agitatedferret") + "&mode=") + Mode, "POST");
getURL (((((("http://www.agitatedferret.com/scores.php?game=" + GameName) + "&type=") + Type) + "&developer=agitatedferret") + "&mode=") + Mode, "_blank");
}
}
sObject.data.pBest = pBest;
Object.flush();
my_sound.stop();
rBtn.onRollOver = function () {
rBtn.gotoAndStop(2);
};
rBtn.onRollOut = function () {
rBtn.gotoAndStop(1);
};
rBtn.onRelease = function () {
gotoAndStop (4);
};
Key.removeListener(keyListener);
stop();
submit.onRelease = function () {
sendScore("Road Rage", name.text, score, "descending", "Standard");
};
Frame 6
bb.onRelease = function () {
gotoAndStop (3);
};
Frame 7
bb.onRelease = function () {
gotoAndStop (3);
};
Symbol 20 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 33 MovieClip [enCar] Frame 1
stop();
Symbol 53 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 54 MovieClip Frame 1
_root.stop();
PercentLoaded = _root.sec / 2;
if (PercentLoaded < 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 54 MovieClip Frame 2
gotoAndPlay (1);
Symbol 207 MovieClip [__Packages.Base64] Frame 0
class Base64 extends Object
{
static var _CharsReverseLookup;
var _base64Str, _base64Count;
function Base64 () {
super();
}
static function Encode(str) {
var _local1 = new Base64();
return(_local1.encodeBase64(str));
}
static function Decode(str) {
var _local1 = new Base64();
return(_local1.decodeBase64(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setBase64Str(str) {
_base64Str = str;
_base64Count = 0;
}
function readBase64() {
if (!_base64Str) {
return(_EndOfInput);
}
if (_base64Count >= _base64Str.length) {
return(_EndOfInput);
}
var _local2 = _base64Str.charCodeAt(_base64Count) & 255;
_base64Count++;
return(_local2);
}
function encodeBase64(str) {
setBase64Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readBase64())) != _EndOfInput)) {
_local2[1] = readBase64();
_local2[2] = readBase64();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseBase64() {
if (!_base64Str) {
return(_EndOfInput);
}
while (true) {
if (_base64Count >= _base64Str.length) {
return(_EndOfInput);
}
var _local2 = _base64Str.charAt(_base64Count);
_base64Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeBase64(str) {
setBase64Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseBase64())) != _EndOfInput)) && (((_local2[1] = readReverseBase64())) != _EndOfInput)) {
_local2[2] = readReverseBase64();
_local2[3] = readReverseBase64();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 157 MovieClip [explosion] Frame 29
this.removeMovieClip();
Symbol 174 MovieClip Frame 1
stop();
Symbol 186 Button
on (release) {
_root.gotoAndStop(3);
}