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;
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__("b7af8f3c", this, 10301, true);
Frame 2
stop();
Frame 3
mochi.MochiServices.connect("d1ca665fe0c5d717");
Frame 4
stop();
Frame 41
stop();
Instance of Symbol 4 MovieClip in Frame 43
onClipEvent (mouseDown) {
_root.gotoAndStop(41);
this.swapDepths(5532);
this.removeMovieClip();
}
Frame 44
var ls = attachMovie("carss", "sslo", 100, {l:"up"});
var main = new mainframe();
score = 0;
times = 60;
stop();
Frame 46
mochi.MochiScores.showLeaderboard({boardID:"4e0b30cb61fae7f5", score:score, name:nameServ});
Frame 47
_root.gotoAndPlay(38);
Symbol 11 MovieClip [carss] Frame 1
#initclip 7
Object.registerClass("carss", cars);
#endinitclip
Symbol 15 MovieClip Frame 1
_visible = false;
Symbol 18 MovieClip [Polic] Frame 1
#initclip 6
Object.registerClass("Polic", officer);
#endinitclip
Symbol 29 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Instance of Symbol 25 MovieClip in Symbol 29 MovieClip Frame 1
on (press) {
_root.getURL("http://www.shockgames.info/", "_blank");
}
Symbol 29 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 25 MovieClip in Symbol 29 MovieClip Frame 20
on (press) {
_root.getURL("http://www.shockgames.info/", "_blank");
}
Instance of Symbol 25 MovieClip in Symbol 29 MovieClip Frame 30
on (press) {
_root.getURL("http://www.shockgames.info/", "_blank");
}
Symbol 29 MovieClip Frame 40
_root.play();
Symbol 108 MovieClip [__Packages.officer] Frame 0
class officer extends MovieClip
{
var _rotation, line;
function officer () {
super();
}
function onEnterFrame() {
if (Key.isDown(37)) {
_rotation = -90;
line._visible = true;
dire = "right";
} else if (Key.isDown(39)) {
_rotation = 90;
line._visible = true;
dire = "left";
} else if (Key.isDown(38)) {
_rotation = 0;
line._visible = true;
dire = "down";
} else if (Key.isDown(40)) {
_rotation = -180;
line._visible = true;
dire = "up";
} else {
line._visible = false;
}
}
var dire = "up";
var xSpeed = 0;
var speed = 3;
var ySpeed = 0;
var l = "";
}
Symbol 109 MovieClip [__Packages.cars] Frame 0
class cars extends MovieClip
{
var gotoAndStop, _rotation, _x, _y, removeMovieClip, hitTest;
function cars () {
super();
gotoAndStop(random(3) + 1);
if (random(10) == 2) {
gotoAndStop(4);
}
if (l == "left") {
_rotation = 90;
xSpeed = speed;
} else if (l == "right") {
_rotation = -90;
xSpeed = -speed;
} else if (l == "up") {
_rotation = 180;
ySpeed = speed;
} else if (l == "down") {
ySpeed = -speed;
}
g = l;
e = l;
elasRot = _rotation;
_x = _root.street[l + "A"]._x + _root.street._x;
_y = _root.street[l + "A"]._y + _root.street._y;
elasX = _root.street[l + "A"]._x + _root.street._x;
elasY = _root.street[l + "A"]._y + _root.street._y;
}
function dirChange() {
xSpeed = 0;
ySpeed = 0;
if (l == "left") {
elasRot = 90;
elasY = _root.street[l + "A"]._y + _root.street._y;
xSpeed = speed;
} else if (l == "right") {
elasRot = -90;
elasY = _root.street[l + "A"]._y + _root.street._y;
xSpeed = -speed;
} else if (l == "up") {
elasX = _root.street[l + "A"]._x + _root.street._x;
elasRot = 180;
ySpeed = speed;
} else if (l == "down") {
elasRot = 0;
elasX = _root.street[l + "A"]._x + _root.street._x;
ySpeed = -speed;
}
}
function onEnterFrame() {
if (_root.stopAlls) {
removeMovieClip();
}
if (!sstop) {
if (_root.p1.dire == "left") {
g = "right";
} else if (_root.p1.dire == "right") {
g = "left";
} else if (_root.p1.dire == "up") {
g = "down";
} else if (_root.p1.dire == "down") {
g = "up";
}
if (g == l) {
} else if (_root.p1.line._visible) {
if (hitTest(_root.p1.hit) and (!stopTurning)) {
l = _root.p1.dire;
dirChange();
stopTurning = true;
}
}
if (((hitTest(_root.street.leftB) or hitTest(_root.street.rightB)) or hitTest(_root.street.upB)) or hitTest(_root.street.downB)) {
_root.main.carStop(this);
sstop = true;
}
_rotation = _rotation - ((_rotation - elasRot) / 2);
if ((l == "left") or (l == "right")) {
_y = _y + ((elasY - _y) / 10);
} else {
_x = _x + ((elasX - _x) / 10);
}
_x = _x + xSpeed;
_y = _y + ySpeed;
}
}
var xSpeed = 0;
var speed = 3;
var ySpeed = 0;
var elasY = 0;
var elasX = 0;
var elasRot = 0;
var l = "";
var g = "";
var e = "";
var sstop = false;
var stopTurning = false;
}
Symbol 110 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 111 MovieClip [__Packages.mainframe] Frame 0
class mainframe
{
function mainframe (l) {
multi = [1, 1, 1, 1];
carsArray = new Array(new Array(0), new Array(0), new Array(0), new Array(0));
_root.onEnterFrame = function () {
if (_root.times < 0) {
_root.scoress = this.score;
if (_currentframe < 45) {
_root.gotoAndStop(45);
}
_root.onEnterFrame = null;
_root.stopAlls = true;
} else {
_root.stopAlls = false;
}
_root.times = _root.times - 0.0333333333333333;
_root.scoreShow.text = _root.score;
_root.timeShow.text = Math.round(_root.times);
_root.main.spwnTme--;
if (_root.main.spwnTme < 0) {
this.temp = random(50);
if (this.temp < 10) {
_root.attachMovie("carss", String(_root.getNextHighestDepth() + 500), _root.getNextHighestDepth(), {l:"up"});
} else if (this.temp < 20) {
_root.attachMovie("carss", String(_root.getNextHighestDepth() + 500), _root.getNextHighestDepth(), {l:"down"});
} else if (this.temp < 30) {
_root.attachMovie("carss", String(_root.getNextHighestDepth() + 500), _root.getNextHighestDepth(), {l:"left"});
} else {
_root.attachMovie("carss", String(_root.getNextHighestDepth() + 500), _root.getNextHighestDepth(), {l:"right"});
}
_root.main.spwnTme = 34;
}
_root.mult1.text = String(_root.main.multi[2] - 1);
_root.mult2.text = String(_root.main.multi[0] - 1);
_root.mult3.text = String(_root.main.multi[3] - 1);
_root.mult4.text = String(_root.main.multi[1] - 1);
};
}
function carStop(l) {
if (l._currentframe == 4) {
if (l.l == "left") {
carsArray[3] = new Array(0);
multi[3] = 1;
_root.carly2.gotoAndStop(1);
} else if (l.l == "right") {
carsArray[2] = new Array(0);
multi[2] = 1;
_root.carly4.gotoAndStop(1);
} else if (l.l == "up") {
carsArray[0] = new Array(0);
multi[0] = 1;
_root.carly3.gotoAndStop(1);
} else if (l.l == "down") {
carsArray[1] = new Array(0);
multi[1] = 1;
_root.carly1.gotoAndStop(1);
}
} else if (l.l == "left") {
if (multi[3] > 6) {
_root.times = _root.times + 1;
}
_root.score = _root.score + (_root.main.scoreTime * multi[3]);
carsArray[3].push(l._currentframe);
if (carsArray[3][0] == carsArray[3][carsArray[3].length - 1]) {
multi[3]++;
temp1 = l._currentframe;
l.gotoAndStop(6);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
} else {
l.gotoAndStop(5);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
multi[3] = 1;
carsArray[3] = new Array(0);
}
if (carsArray[3][0] != undefined) {
_root.carly2.gotoAndStop(carsArray[3][0] + 1);
} else {
_root.carly2.gotoAndStop(1);
}
} else if (l.l == "right") {
if (multi[3] > 6) {
_root.times = _root.times + 1;
}
_root.score = _root.score + (_root.main.scoreTime * multi[2]);
carsArray[2].push(l._currentframe);
if (carsArray[2][0] == carsArray[2][carsArray[2].length - 1]) {
temp1 = l._currentframe;
l.gotoAndStop(6);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
multi[2]++;
} else {
carsArray[2] = new Array(0);
l.gotoAndStop(5);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
multi[2] = 1;
}
if (carsArray[2][0] != undefined) {
_root.carly4.gotoAndStop(carsArray[2][0] + 1);
} else {
_root.carly4.gotoAndStop(1);
}
} else if (l.l == "up") {
if (multi[3] > 6) {
_root.times = _root.times + 1;
}
_root.score = _root.score + (_root.main.scoreTime * multi[0]);
carsArray[0].push(l._currentframe);
if (carsArray[0][0] == carsArray[0][carsArray[0].length - 1]) {
temp1 = l._currentframe;
l.gotoAndStop(6);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
multi[0]++;
} else {
carsArray[0] = new Array(0);
l.gotoAndStop(5);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
multi[0] = 1;
}
if (carsArray[0][0] != undefined) {
_root.carly3.gotoAndStop(carsArray[0][0] + 1);
} else {
_root.carly3.gotoAndStop(1);
}
} else if (l.l == "down") {
if (multi[3] > 6) {
_root.times = _root.times + 1;
}
_root.score = _root.score + (_root.main.scoreTime * multi[1]);
carsArray[1].push(l._currentframe);
if (carsArray[1][0] == carsArray[1][carsArray[1].length - 1]) {
temp1 = l._currentframe;
l.gotoAndStop(6);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
multi[1]++;
} else {
l.gotoAndStop(5);
l.gotoAndStop(temp1);
_root.l.xSpeed = 0;
_root.l.ySpeed = 0;
carsArray[1] = new Array(0);
multi[1] = 1;
}
if (carsArray[1][0] != undefined) {
_root.carly1.gotoAndStop(carsArray[1][0] + 1);
} else {
_root.carly1.gotoAndStop(1);
}
}
l.removeMovieClip();
}
var carsArray = new Array(new Array(0), new Array(0), new Array(0), new Array(0));
var multi = [1, 1, 1, 1];
var spwnTme = 40;
var temp = 0;
var temp1 = 0;
var score = 0;
var scoreTime = 1;
}
Symbol 112 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 37 Button
on (release) {
_root.nameServ = _root.inputser.text;
_root.play();
}
Instance of Symbol 25 MovieClip in Symbol 38 MovieClip Frame 1
on (press) {
_root.getURL("http://www.shockgames.info/", "_blank");
}
Symbol 38 MovieClip Frame 152
_root.play();
Symbol 66 Button
on (release) {
_root.gotoAndStop(44);
}
Symbol 67 Button
on (release) {
_root.gotoAndStop(43);
}
Symbol 68 Button
on (press) {
_root.getURL("http://www.shockgames.info/", "_blank");
}
Symbol 69 Button
on (press) {
_root.getURL("http://www.newgamesforyourwebsite.com/", "_blank");
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 101 Button
on (release) {
nextFrame();
}
Symbol 107 Button
on (release) {
_root.gotoAndPlay(38);
}