Frame 175
_global.game.getPlayerInfo();
stop();
stop();
Frame 177
stop();
Frame 178
mochi.MochiScores.showLeaderboard({boardID:"b6eb59e4c1a59847"});
Frame 179
score = 0;
Frame 222
stop();
Frame 510
_root.bob.swapDepths(1000);
_root.onEnterFrame = function () {
bob._x = _root._xmouse;
bob._y = _root._ymouse;
};
_root.bob.swapDepths(1000);
_root.onEnterFrame = function () {
bob._x = _root._xmouse;
bob._y = _root._ymouse;
};
Frame 511
stop();
Frame 720
stop();
Frame 983
stop();
Frame 1218
stop();
Instance of Symbol 115 MovieClip in Frame 1218
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndPlay("first");
}
}
Frame 1484
stop();
Frame 1780
stop();
Frame 2139
stop();
Frame 2354
stop();
Frame 2654
_global.game.showFinalScore();
stop();
Symbol 12 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 13 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 182 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 _local3 = scores;
var so = {};
var _local1;
var j;
var _local2;
var row_obj;
for (var item in _local3) {
if (typeof(_local3[item]) == "object") {
if ((_local3[item].cols != null) && (_local3[item].rows != null)) {
so[item] = [];
_local2 = _local3[item];
j = 0;
while (j < _local2.rows.length) {
row_obj = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
row_obj[_local2.cols[_local1]] = _local2.rows[j][_local1];
_local1++;
}
so[item].push(row_obj);
j++;
}
} else {
so[item] = {};
for (var param in _local3[item]) {
so[item][param] = _local3[item][param];
}
}
} else {
so[item] = _local3[item];
}
}
return(so);
}
static function doClose(args) {
var _local1 = args;
if (_local1.error == true) {
if (_local1.errorCode == undefined) {
_local1.errorCode = "IOError";
}
onError.apply(null, [_local1.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 183 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) {
var _local1 = val;
if (_local1 != undefined) {
if (_local1.length > 3) {
_sendChannelName = _local1 + "_fromgame";
_rcvChannelName = _local1;
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 _local1 = this;
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 () {
var _local1 = this;
if ((getTimer() - _local1.startTime) > 10000) {
if (!_local1.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(_local1.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 cb = pkg.callbackID;
var _local3 = this._callbacks[cb];
if (!_local3) {
} else {
var _local1 = _local3.callbackMethod;
var _local2 = _local3.callbackObject;
if (_local2 && (typeof(_local1) == "string")) {
_local1 = _local2[_local1];
}
if (_local1 != undefined) {
_local1.apply(_local2, pkg.args);
}
delete this._callbacks[cb];
}
};
_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 _local3 = 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 (_local3) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
var _local1 = args;
var _local2 = callbackMethod;
if (_local1 != null) {
if (_local1.onError != null) {
_local1.onError.apply(null, ["NotConnected"]);
}
}
if (_local2 != null) {
_local1 = {};
_local1.error = true;
_local1.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(_local2) == "string")) {
callbackObject[_local2](_local1);
} else if (_local2 != null) {
_local2.apply(_local1);
}
}
}
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 35 Button
on (release) {
getURL ("http://allgamesallfree.com", "_blank");
}
Symbol 38 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 42 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 43 Button
on (release) {
_global.game.showScores();
}
Symbol 47 Button
on (release) {
gotoAndPlay ("1intro");
}
Symbol 50 Button
on (release) {
stopAllSounds();
gotoAndPlay ("menu");
}
Symbol 52 Button
on (release) {
getURL ("http://allgamesallfree.com", "_blank");
}
Symbol 56 Button
on (release) {
stopAllSounds();
gotoAndPlay ("menu");
}
Symbol 62 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}
Symbol 64 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 68 Button
on (release) {
_root.gotoAndPlay(_currentframe + 1);
}
Instance of Symbol 74 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("1maze");
}
}
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("2intro");
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndStop("2maze");
}
}
Instance of Symbol 89 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndStop("2maze");
}
}
Instance of Symbol 76 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("3intro");
}
}
Instance of Symbol 89 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("2maze");
}
}
Instance of Symbol 76 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("3intro");
}
}
Instance of Symbol 101 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndStop("3maze");
}
}
Instance of Symbol 102 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("4intro");
}
}
Instance of Symbol 101 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("3maze");
}
}
Instance of Symbol 102 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("4intro");
}
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndStop("4maze");
}
}
Instance of Symbol 76 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("5intro");
}
}
Instance of Symbol 108 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("4maze");
}
}
Instance of Symbol 76 MovieClip in Symbol 110 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("5intro");
}
}
Symbol 116 Button
on (release) {
_root.gotoAndPlay(_currentframe + 1);
}
Instance of Symbol 118 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("5maze");
}
}
Instance of Symbol 115 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("6intro");
}
}
Instance of Symbol 129 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("7maze");
}
}
Instance of Symbol 130 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("8intro");
}
}
Symbol 137 Button
on (release) {
_root.gotoAndPlay(_currentframe + 1);
}
Instance of Symbol 144 MovieClip in Symbol 146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("6maze");
}
}
Instance of Symbol 145 MovieClip in Symbol 146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("7intro");
}
}
Instance of Symbol 144 MovieClip in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("6maze");
}
}
Instance of Symbol 145 MovieClip in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("7intro");
}
}
Symbol 154 MovieClip Frame 33
stop();
Instance of Symbol 160 MovieClip in Symbol 162 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("8maze");
}
}
Instance of Symbol 161 MovieClip in Symbol 162 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndPlay("9intro");
}
}
Instance of Symbol 172 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.score = _root.score + 1;
_root.gotoAndStop("9maze");
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.gotoAndStop("fin");
}
}
Symbol 177 Button
on (release) {
getURL ("http://allgamesallfree.com", "_blank");
}
Symbol 178 Button
on (release) {
stopAllSounds();
gotoAndPlay ("menu");
}