Frame 1
MochiAd.showPreGameAd({id:"36d1cef432fe62e3", res:"500x550", background:0, color:11184810, outline:11184810, no_bg:false});
var _mochiads_game_id = "36d1cef432fe62e3";
mochi.MochiServices.connect("36d1cef432fe62e3");
Frame 2
function itemHandler(obj, item) {
getURL ("http://www.iojoe.com/", "_blank");
}
_quality = "MEDIUM";
globalvolume = new Sound();
my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.zoom = true;
my_cm.customItems.push(new ContextMenuItem("furious moles \u00A92009 iojoe.com", itemHandler));
this.menu = my_cm;
gotoAndPlay ("intro");
Frame 11
stop();
Frame 20
stop();
var so = SharedObject.getLocal("ach");
if (so.data.ach == null) {
so.data.ach = "ooooo";
so.flush();
}
if (so.data.ach == "xxxxx") {
unlocked = true;
} else {
unlocked = false;
}
final = false;
level = 99;
Frame 21
gotoAndStop ("intro");
intro.gotoAndStop("select");
Frame 31
stop();
if (final) {
gotoAndPlay ("final");
}
flavoursServed = new Array();
i = 1;
while (i < 8) {
flavoursServed[i] = false;
i++;
}
malletGiven = false;
malletUsed = false;
score = 0;
if (hard) {
level = 11;
} else {
level = 1;
}
if (hard) {
energy = 12;
} else {
energy = 16;
}
if (hard) {
multiplier = 2;
} else {
multiplier = 1;
}
Frame 33
game_over.gotoAndPlay("start");
prevFrame();
Frame 41
stop();
energy = 20;
Symbol 590 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.35");
}
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 ((args.options != null) && (args.options.onError != null)) {
args.options.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 function addLinkEvent(url, burl, btn, onClick) {
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
var _local3;
var _local2 = new LoadVars();
var timeout = 1500;
var t0 = getTimer();
var ping = this.createEmptyMovieClip("ping", 777);
this.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
delete this.ping;
getURL (url + s, "_blank");
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
delete this.ping;
getURL (burl, "_blank");
}
};
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
if (onClick != undefined) {
onClick();
}
};
}
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 591 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
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 load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 592 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 10 MovieClip Frame 16
gotoAndPlay ("loop");
Symbol 11 MovieClip Frame 10
targetMoleMod = random(42) + 1;
i = 1;
while (i < 3) {
this["mole" + i].targetMole = targetMoleMod + (i - 1);
this["mole" + i].fed = true;
this["mole" + i].fedLoop = true;
this["mole" + i].IamIceCream = random(7) + 1;
i++;
}
Symbol 11 MovieClip Frame 20
stop();
Symbol 12 MovieClip Frame 10
stop();
waitC = 124;
onEnterFrame = function () {
if ((waitC--) <= 0) {
play();
delete onEnterFrame;
}
};
Symbol 12 MovieClip Frame 20
stop();
_parent.gotoAndPlay("intro");
Symbol 76 MovieClip Frame 1
gotoAndStop(_parent._parent.targetMole);
Symbol 84 MovieClip Frame 1
stop();
played = true;
onEnterFrame = function () {
if (played) {
if (_parent.muffledTalking && (!_parent.finishedTalking)) {
gotoAndPlay("m" + (random(10) + 1));
played = false;
}
}
};
Symbol 84 MovieClip Frame 25
played = true;
Symbol 84 MovieClip Frame 42
played = true;
Symbol 84 MovieClip Frame 59
played = true;
Symbol 84 MovieClip Frame 80
played = true;
Symbol 84 MovieClip Frame 101
played = true;
Symbol 84 MovieClip Frame 124
played = true;
Symbol 84 MovieClip Frame 137
played = true;
Symbol 84 MovieClip Frame 156
played = true;
Symbol 84 MovieClip Frame 176
played = true;
Symbol 84 MovieClip Frame 186
played = true;
Symbol 92 MovieClip Frame 1
gotoAndPlay(random(11) + 1);
Symbol 109 MovieClip Frame 1
stop();
if (!arraySet) {
nUsed = new Array();
i = 0;
while (i <= 16) {
nUsed[i] = false;
i++;
}
arraySet = true;
}
if (nC == null) {
nC = _parent.yelps;
}
if (ntC == null) {
ntC = 10;
}
played = true;
onEnterFrame = function () {
if (played) {
gotoAndStop (2);
if (!_parent.stopTalking) {
if ((nC--) > 0) {
targetNoise = random(16) + 1;
while (used[targetNoise]) {
targetNoise++;
if (targetNoise > 16) {
targetNoise = 1;
}
}
gotoAndPlay("n" + targetNoise);
played = false;
} else {
_parent.finishedTalking = true;
delete onEnterFrame;
}
} else {
if ((ntC--) <= 0) {
ntC = 10;
nC--;
}
if (nC <= 0) {
_parent.finishedTalking = true;
delete onEnterFrame;
}
}
}
};
Symbol 109 MovieClip Frame 29
played = true;
Symbol 109 MovieClip Frame 41
played = true;
Symbol 109 MovieClip Frame 53
played = true;
Symbol 109 MovieClip Frame 60
played = true;
Symbol 109 MovieClip Frame 70
played = true;
Symbol 109 MovieClip Frame 78
played = true;
Symbol 109 MovieClip Frame 87
played = true;
Symbol 109 MovieClip Frame 97
played = true;
Symbol 109 MovieClip Frame 106
played = true;
Symbol 109 MovieClip Frame 114
played = true;
Symbol 109 MovieClip Frame 123
played = true;
Symbol 109 MovieClip Frame 131
played = true;
Symbol 109 MovieClip Frame 139
played = true;
Symbol 109 MovieClip Frame 148
played = true;
Symbol 109 MovieClip Frame 157
played = true;
Symbol 109 MovieClip Frame 168
played = true;
Symbol 118 MovieClip Frame 1
stop();
gotoAndPlay("m" + (random(3) + 1));
Symbol 118 MovieClip Frame 37
stop();
Symbol 118 MovieClip Frame 62
stop();
Symbol 118 MovieClip Frame 88
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 5
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 5
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 5
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 5
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 5
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 5
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 5
stop();
Symbol 165 MovieClip Frame 1
if (_parent._parent.IamIceCream != null) {
gotoAndStop(_parent._parent.IamIceCream);
_parent._parent._parent._parent.flavoursServed[_parent._parent.IamIceCream] = true;
} else {
gotoAndStop(_parent._parent._parent.IamIceCream);
}
Symbol 173 MovieClip Frame 1
gotoAndStop("o" + (random(3) + 1));
Symbol 173 MovieClip Frame 26
stop();
Symbol 173 MovieClip Frame 45
stop();
Symbol 173 MovieClip Frame 64
stop();
Symbol 178 MovieClip Frame 1
if (!_parent.introOn) {
delayC = (15 - _parent._parent._parent.level) * 3;
pauseForBreath = 20 - _parent._parent._parent.level;
yelps = random(6) + 6;
} else {
delayC = (15 - _parent._parent._parent.level) * 3;
pauseForBreath = 2;
yelps = 1;
}
finishedTalking = false;
emerged = false;
talking = false;
onEnterFrame = function () {
if (_parent.fed || (_parent.struck)) {
if (beenFedWA == null) {
beenFedWA = 0;
}
if ((beenFedWA--) <= 0) {
if (_parent.struck) {
gotoAndPlay ("struck");
} else {
gotoAndPlay ("fed");
}
}
} else {
if (_parent.covered) {
stopTalking = true;
muffledTalking = true;
if (!beenCovered) {
gotoAndPlay ("covered");
}
}
if (emerged) {
if (!_parent.covered) {
stopTalking = false;
muffledTalking = false;
if (beenCovered) {
gotoAndPlay ("uncovered");
beenCovered = false;
}
}
if (!talking) {
if (((delayC--) <= 0) && (!_parent.covered)) {
gotoAndPlay ("talking");
talking = true;
}
}
}
if (finishedTalking) {
if (!_parent.covered) {
gotoAndPlay ("submerge");
}
_parent.submerge = true;
_parent.gotoAndPlay("submerge");
delete onEnterFrame;
}
}
};
Symbol 178 MovieClip Frame 12
stop();
emerged = true;
Symbol 178 MovieClip Frame 13
beenCovered = false;
Symbol 178 MovieClip Frame 14
beenCovered = false;
Symbol 178 MovieClip Frame 15
beenCovered = false;
Symbol 178 MovieClip Frame 16
beenCovered = false;
Symbol 178 MovieClip Frame 17
beenCovered = false;
Symbol 178 MovieClip Frame 18
beenCovered = false;
Symbol 178 MovieClip Frame 19
beenCovered = false;
Symbol 178 MovieClip Frame 20
beenCovered = false;
Symbol 178 MovieClip Frame 21
beenCovered = false;
Symbol 178 MovieClip Frame 22
beenCovered = false;
Symbol 178 MovieClip Frame 23
beenCovered = false;
Symbol 178 MovieClip Frame 24
beenCovered = false;
Symbol 178 MovieClip Frame 25
beenCovered = false;
Symbol 178 MovieClip Frame 26
beenCovered = false;
Symbol 178 MovieClip Frame 27
beenCovered = false;
Symbol 178 MovieClip Frame 28
beenCovered = false;
Symbol 178 MovieClip Frame 29
beenCovered = false;
Symbol 178 MovieClip Frame 30
beenCovered = false;
_parent._parent._parent.energy = _parent._parent._parent.energy - 1;
_parent._parent.noDamage = false;
Symbol 178 MovieClip Frame 31
beenCovered = false;
Symbol 178 MovieClip Frame 32
beenCovered = false;
Symbol 178 MovieClip Frame 33
beenCovered = false;
Symbol 178 MovieClip Frame 34
beenCovered = false;
Symbol 178 MovieClip Frame 35
gotoAndPlay ("talking");
Symbol 178 MovieClip Frame 44
stop();
Symbol 178 MovieClip Frame 45
beenCovered = true;
Symbol 178 MovieClip Frame 51
stop();
Symbol 178 MovieClip Frame 58
gotoAndPlay ("talking");
Symbol 178 MovieClip Frame 60
beenFedWA = 1;
Symbol 178 MovieClip Frame 61
beenFedWA = 1;
Symbol 178 MovieClip Frame 62
beenFedWA = 1;
Symbol 178 MovieClip Frame 63
beenFedWA = 1;
Symbol 178 MovieClip Frame 64
beenFedWA = 100;
_parent._parent._parent.score = _parent._parent._parent.score + (1000 * _parent._parent._parent.multiplier);
Symbol 178 MovieClip Frame 68
if (_parent.fedLoop) {
gotoAndPlay(60 + random(2));
}
Symbol 178 MovieClip Frame 75
_parent._parent._parent.energy = _parent._parent._parent.energy + 4;
Symbol 178 MovieClip Frame 86
_parent.submerge = true;
_parent.gotoAndPlay("submerge");
finishedTalking = true;
Symbol 178 MovieClip Frame 92
stop();
Symbol 178 MovieClip Frame 93
beenFedWA = 1;
Symbol 178 MovieClip Frame 94
beenFedWA = 1;
Symbol 178 MovieClip Frame 95
beenFedWA = 1;
Symbol 178 MovieClip Frame 96
beenFedWA = 1;
Symbol 178 MovieClip Frame 97
beenFedWA = 100;
_parent._parent._parent.level = _parent._parent._parent.level + 5;
_parent._parent.level_skip.play();
_parent._parent._parent.malletUsed = true;
Symbol 178 MovieClip Frame 124
_parent.submerge = true;
_parent.gotoAndPlay("submerge");
finishedTalking = true;
Symbol 178 MovieClip Frame 130
stop();
Symbol 179 MovieClip Frame 1
stop();
fed = false;
struck = false;
_parent.lastMole = _parent.lastMoleBut1;
_parent.lastMoleBut1 = _parent.lastMoleBut2;
_parent.lastMoleBut2 = _parent.lastMoleBut3;
_parent.lastMoleBut3 = _parent.lastMoleBut4;
_parent.lastMoleBut4 = _parent.lastMoleBut5;
chosen = false;
while (!chosen) {
targetMole = random(50) + 1;
chosen = true;
if (targetMole == _parent.lastMole) {
chosen = false;
}
if (targetMole == _parent.lastMoleBut1) {
chosen = false;
}
if (targetMole == _parent.lastMoleBut2) {
chosen = false;
}
if (targetMole == _parent.lastMoleBut3) {
chosen = false;
}
if (targetMole == _parent.lastMoleBut4) {
chosen = false;
}
}
_parent.lastMoleBut5 = targetMole;
Symbol 179 MovieClip Frame 2
mole.gotoAndPlay("emerge");
active = true;
submerge = false;
Symbol 179 MovieClip Frame 12
mole.emerged = true;
Symbol 179 MovieClip Frame 15
moleUp = true;
Symbol 179 MovieClip Frame 35
if (!submerge) {
gotoAndPlay ("up");
}
Symbol 179 MovieClip Frame 36
moleUp = false;
Symbol 179 MovieClip Frame 46
_parent.noDamageC++;
active = false;
gotoAndStop (1);
Symbol 183 Button
on (release) {
achievements.play();
}
Symbol 186 Button
on (release) {
gotoAndStop ("highscores");
}
Symbol 189 Button
on (release) {
credits.play();
}
Symbol 194 Button
on (release) {
getURL ("http://www.iojoe.com/", "_blank");
}
Symbol 197 Button
on (release) {
_parent._parent.globalvolume.setVolume(0);
gotoAndStop (2);
}
Symbol 200 Button
on (release) {
_parent._parent.globalvolume.setVolume(100);
gotoAndStop (1);
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 204 Button
on (release) {
play();
}
Symbol 209 Button
on (release) {
_parent.play();
}
Symbol 213 Button
on (release) {
getURL ("http://www.iojoe.com/", "_blank");
}
Symbol 217 Button
on (release) {
getURL ("http://www.myspace.com/iamfrankylou", "_blank");
}
Symbol 219 Button
on (keyPress "h") {
cheatStr = "h";
}
on (keyPress "a") {
if (cheatStr == "h") {
cheatStr = "ha";
} else {
cheatStr = "";
}
}
on (keyPress "p") {
if (cheatStr == "ha") {
cheatStr = "hap";
} else if (cheatStr == "hap") {
cheatStr = "happ";
} else {
cheatStr = "";
}
}
on (keyPress "y") {
if (cheatStr == "happ") {
var so = SharedObject.getLocal("ach");
so.data.ach = "xxxxx";
so.flush();
_parent._parent._parent.unlocked = true;
gotoAndStop (3);
} else {
cheatStr = "";
}
}
Symbol 226 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 13
stop();
var so = SharedObject.getLocal("ach");
if (so.data.ach.substr(2, 1) == "o") {
newAch = (so.data.ach.substr(0, 2) + "n") + so.data.ach.substr(3, 2);
so.data.ach = newAch;
panel.gotoAndStop(2);
so.flush();
}
Symbol 234 Button
on (release) {
var so = SharedObject.getLocal("ach");
so.data.ach = "ooooo";
so.flush();
_parent._parent._parent.unlocked = false;
play();
}
Symbol 252 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
var so = SharedObject.getLocal("ach");
newAch = "";
playedSFX = false;
i = 0;
while (i < 5) {
if (so.data.ach.substr(i, 1) != "o") {
if (so.data.ach.substr(i, 1) == "n") {
this["ach" + i]._xscale = 465;
this["ach" + i]._yscale = 465;
if (!playedSFX) {
ach_sfx.gotoAndPlay(2);
playedSFX = true;
}
}
newAch = newAch + "x";
this["ach" + i].gotoAndStop(2);
} else {
newAch = newAch + "o";
this["ach" + i].gotoAndStop(1);
}
i++;
}
so.data.ach = newAch;
so.flush();
onEnterFrame = function () {
allScaled = true;
i = 0;
while (i < 5) {
if (Math.floor(this["ach" + i]._xscale) > 65) {
this["ach" + i]._xscale = this["ach" + i]._xscale - 20;
this["ach" + i]._yscale = this["ach" + i]._yscale - 20;
allScaled = false;
}
i++;
}
if (allScaled) {
delete onEnterFrame;
}
};
Symbol 254 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 13
stop();
Symbol 269 Button
on (release) {
getURL ("http://www.iojoe.com", "_blank");
}
Symbol 285 MovieClip Frame 1
stop();
if (_parent._parent._parent.unlocked) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
onEnterFrame = function () {
if (_parent._parent._parent.unlocked) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 5
stop();
Symbol 290 MovieClip Frame 8
gotoAndStop (1);
Symbol 291 MovieClip Frame 2
mochi.MochiScores.showLeaderboard({boardID:"4835fb564eaebe49", width:500, numScores:30, onError:function () {
clip.play();
}});
Symbol 291 MovieClip Frame 40
gotoAndPlay (3);
Symbol 292 MovieClip Frame 35
stop();
play_normal_btn.onRelease = function () {
_parent.hard = false;
delete onEnterFrame;
play();
};
play_hard_btn.onRelease = function () {
_parent.hard = true;
delete onEnterFrame;
play();
};
final_stage_btn.onRollOver = function () {
if (!_parent.unlocked) {
unlock_info.gotoAndPlay("on");
}
};
final_stage_btn.onRollOut = function () {
if (!_parent.unlocked) {
unlock_info.gotoAndPlay("off");
}
};
final_stage_btn.onDragOver = function () {
if (!_parent.unlocked) {
unlock_info.gotoAndPlay("on");
}
};
final_stage_btn.onDragOut = function () {
if (!_parent.unlocked) {
unlock_info.gotoAndPlay("off");
}
};
final_stage_btn.onRelease = function () {
if (_parent.unlocked) {
_parent.final = true;
delete onEnterFrame;
play();
}
};
waitC = 2;
holex.introOn = true;
onEnterFrame = function () {
if ((waitC--) <= 0) {
holex.gotoAndPlay("emerge");
waitC = random(62) + 45;
}
};
Symbol 292 MovieClip Frame 36
gotoAndPlay ("hop");
Symbol 292 MovieClip Frame 74
stop();
_parent.gotoAndPlay("main");
Symbol 307 MovieClip Frame 1
if (gtF == null) {
gtF = 0;
}
onEnterFrame = function () {
if (gtF == 0) {
this._alpha = 0;
this._xscale = 200;
this._yscale = this._xscale;
} else {
gotoAndStop(gtF);
this._alpha = 100;
if (this._xscale > 100) {
this._xscale = this._xscale - 10;
this._yscale = this._xscale;
} else {
delete onEnterFrame;
}
}
};
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 5
gotoAndPlay (2);
Symbol 310 MovieClip Frame 30
gotoAndStop (1);
Symbol 321 MovieClip Frame 1
if (spinC == null) {
spinC = 60;
}
onEnterFrame = function () {
if ((spinC--) <= 0) {
if (_parent._parent._parent.score == 0) {
rank = 1;
} else {
if (!_parent._parent._parent.hard) {
rank = Math.ceil(_parent._parent._parent.level / 2) + 1;
} else {
rank = Math.ceil(_parent._parent._parent.level - 10) + 1;
}
if (rank > 11) {
rank = 11;
}
if (_parent._parent._parent.malletUsed) {
rank = rank - 2;
}
}
gotoAndStop(rank);
verdict.gtF = rank;
delete onEnterFrame;
} else {
gotoAndStop(random(11) + 1);
}
};
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 2
Mouse.show();
if (_parent.score == 0) {
var so = SharedObject.getLocal("ach");
if (so.data.ach.substr(1, 1) != "x") {
newAch = (so.data.ach.substr(0, 1) + "n") + so.data.ach.substr(2, 3);
so.data.ach = newAch;
so.flush();
}
}
passed10 = false;
if ((_parent.level >= 10) && (!_parent.hard)) {
passed10 = true;
}
if ((_parent.level >= 20) && (_parent.hard)) {
passed10 = true;
}
if (passed10) {
var so = SharedObject.getLocal("ach");
if (so.data.ach.substr(0, 1) != "x") {
newAch = "n" + so.data.ach.substr(1, 4);
so.data.ach = newAch;
so.flush();
}
}
if (_parent.malletGiven && (!_parent.malletUsed)) {
var so = SharedObject.getLocal("ach");
if (so.data.ach.substr(3, 1) != "x") {
newAch = (so.data.ach.substr(0, 3) + "n") + so.data.ach.substr(4, 1);
so.data.ach = newAch;
so.flush();
}
}
allServed = true;
i = 1;
while (i < 8) {
if (!_parent.flavoursServed[i]) {
allServed = false;
}
i++;
}
if (allServed) {
var so = SharedObject.getLocal("ach");
if (so.data.ach.substr(4, 1) != "x") {
newAch = so.data.ach.substr(0, 4) + "n";
so.data.ach = newAch;
so.flush();
}
}
Symbol 329 MovieClip Frame 118
stop();
Mouse.show();
mochi.MochiScores.showLeaderboard({boardID:"4835fb564eaebe49", width:500, numScores:30, score:_parent.score, onError:function () {
clip.play();
}});
Symbol 329 MovieClip Frame 125
stop();
start_again_btn.onRelease = function () {
play();
};
Symbol 329 MovieClip Frame 130
_parent.gotoAndPlay("intro");
Symbol 337 MovieClip Frame 1
gotoAndStop (2);
Symbol 337 MovieClip Frame 7
gotoAndStop (2);
Symbol 344 MovieClip Frame 1
stop();
energy.gotoAndStop(21);
onEnterFrame = function () {
if (_parent.invincible) {
_parent.energy = 20;
}
level.text = _parent.level;
score.text = _parent.score;
if (_parent.energy > 20) {
_parent.energy = 20;
}
energy.gotoAndStop(21 - _parent.energy);
if (_parent.displayDamage) {
energy.damage.gotoAndPlay(3);
_parent.displayDamage = false;
}
};
Symbol 354 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 369 MovieClip Frame 6
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 19
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 10
stop();
Symbol 373 MovieClip Frame 11
_parent._parent.coverMole();
Symbol 373 MovieClip Frame 20
stop();
damageC = 0;
onEnterFrame = function () {
if (_parent._parent.active) {
damageC++;
if (damageC >= 10) {
_parent._parent._parent._parent.score = _parent._parent._parent._parent.score + ((10 * Math.ceil(_parent._parent._parent._parent.level / 5)) * _parent._parent._parent._parent.multiplier);
damage.nextFrame();
damageC = 0;
}
if (damage._currentframe == damage._totalframes) {
delete onEnterFrame;
this._rotation = 0;
play();
}
this._rotation = random(10) - 5;
} else {
this._rotation = 0;
}
};
Symbol 373 MovieClip Frame 21
_parent._parent.lockObject = true;
_parent._parent.uncoverMole();
Symbol 373 MovieClip Frame 40
stop();
_parent._parent._parent.objectsOnStage--;
removeMovieClip(_parent._parent);
Symbol 393 MovieClip Frame 20
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 30
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 10
stop();
Symbol 396 MovieClip Frame 11
_parent._parent.coverMole();
Symbol 396 MovieClip Frame 20
stop();
damageC = 0;
onEnterFrame = function () {
if (_parent._parent.active) {
damageC++;
if (damageC >= 10) {
_parent._parent._parent._parent.score = _parent._parent._parent._parent.score + ((10 * Math.ceil(_parent._parent._parent._parent.level / 5)) * _parent._parent._parent._parent.multiplier);
damage.nextFrame();
damageC = 0;
}
if (damage._currentframe == damage._totalframes) {
delete onEnterFrame;
this._rotation = 0;
play();
}
this._rotation = random(10) - 5;
} else {
this._rotation = 0;
}
};
Symbol 396 MovieClip Frame 21
_parent._parent.lockObject = true;
_parent._parent.uncoverMole();
Symbol 396 MovieClip Frame 40
stop();
_parent._parent._parent.objectsOnStage--;
removeMovieClip(_parent._parent);
Symbol 403 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent._parent._parent._parent.active) {
this._alpha = 100;
this._xscale = random(50) + 75;
this._yscale = this._xscale;
this._rotation = random(360);
} else {
this._alpha = 0;
}
};
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 50
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 10
stop();
Symbol 418 MovieClip Frame 11
_parent._parent.coverMole();
Symbol 418 MovieClip Frame 20
stop();
damageC = 0;
onEnterFrame = function () {
if (_parent._parent.active) {
damageC++;
if (damageC >= 10) {
_parent._parent._parent._parent.score = _parent._parent._parent._parent.score + ((10 * Math.ceil(_parent._parent._parent._parent.level / 5)) * _parent._parent._parent._parent.multiplier);
damage.nextFrame();
damageC = 0;
}
if (damage._currentframe == damage._totalframes) {
delete onEnterFrame;
this._rotation = 0;
play();
}
if (damage._currentframe < 46) {
this._rotation = random(30) / 30;
} else {
this._rotation = 1 - (random(30) / 10);
}
} else {
this._rotation = 0;
}
};
Symbol 418 MovieClip Frame 21
_parent._parent.lockObject = true;
_parent._parent.uncoverMole();
Symbol 418 MovieClip Frame 40
stop();
_parent._parent._parent.objectsOnStage--;
removeMovieClip(_parent._parent);
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
_parent._parent.lockObject = true;
Symbol 421 MovieClip Frame 10
stop();
Symbol 421 MovieClip Frame 25
if (_parent._parent.active) {
_parent._parent.feedMole();
removeMe = true;
}
Symbol 421 MovieClip Frame 26
if (removeMe) {
removeMovieClip(_parent._parent);
}
Symbol 421 MovieClip Frame 28
cone.coneState.play();
Symbol 421 MovieClip Frame 60
stop();
removeMovieClip(_parent._parent);
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 2
_parent._parent.lockObject = true;
Symbol 425 MovieClip Frame 10
stop();
Symbol 425 MovieClip Frame 19
if (_parent._parent.active) {
_parent._parent.strikeMole();
removeMe = true;
}
Symbol 425 MovieClip Frame 20
if (removeMe) {
removeMovieClip(_parent._parent);
}
Symbol 425 MovieClip Frame 104
stop();
removeMovieClip(_parent._parent);
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
_parent._parent.cardboard_boxC++;
gotoAndStop(random(3) + _currentframe);
Symbol 426 MovieClip Frame 10
stop();
_parent._parent.flower_potC++;
gotoAndStop(random(5) + _currentframe);
Symbol 426 MovieClip Frame 20
stop();
Symbol 426 MovieClip Frame 30
stop();
Symbol 426 MovieClip Frame 40
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 20
gotoAndPlay (12);
Symbol 431 MovieClip Frame 1
stop();
if (snapTo == null) {
snapTo = "spawnPoint";
}
_parent.arrow._alpha = 0;
_parent.shadow._alpha = 0;
coverMole = function () {
_parent[snapTo].covered = true;
};
feedMole = function () {
_parent[snapTo].fed = true;
};
strikeMole = function () {
_parent[snapTo].struck = true;
};
uncoverMole = function () {
_parent[snapTo].covered = false;
};
liftObject = function () {
_parent.started = true;
if (!touched) {
touched = true;
_parent.lockSpawner = false;
}
active = false;
_parent[snapTo].covered = false;
_parent.IamActive = this;
startDrag (this, true);
Mouse.hide();
gotoAndStop (2);
in_use.object.gotoAndPlay("raise");
lifted = true;
};
dropObject = function () {
stopDrag();
_parent.arrow._alpha = 0;
_parent.shadow._alpha = 0;
Mouse.show();
gotoAndStop (1);
in_use.object.gotoAndPlay("drop");
overHole = 0;
i = 1;
while (i <= 9) {
if (hit_area.hitTest(_parent["hole" + i].hit_area)) {
overHole = i;
}
i++;
}
if (overHole == 0) {
snapTo = "object";
} else {
snapTo = "hole" + overHole;
}
if (_parent[snapTo].covered) {
this._y = (_parent[snapTo]._y - 60) + (random(100) / 10);
this._x = (_parent[snapTo]._x - 60) + (random(1200) / 10);
snapTo = "object";
}
lifted = false;
};
onEnterFrame = function () {
if (lifted) {
_parent.arrow._x = this._x;
_parent.arrow._y = this._y;
_parent.shadow._x = this._x;
_parent.shadow._y = this._y;
_parent.arrow._alpha = 100;
_parent.shadow._alpha = 100;
this.swapDepths(Math.floor((this._y * 100) - this._x) + 70001);
_parent.arrow.swapDepths(Math.floor((this._y * 100) - this._x) + 70000);
} else {
if (snapTo != "object") {
this.swapDepths(Math.floor((_parent[snapTo]._y * 100) - _parent[snapTo]._x) + 50500);
} else {
this.swapDepths(Math.floor((this._y * 100) - this._x) + 50500);
}
this._x = Math.floor((_parent[snapTo]._x + (this._x * 3)) / 4);
this._y = Math.floor((_parent[snapTo]._y + (this._y * 3)) / 4);
active = _parent[snapTo].moleUp;
_parent[snapTo].IamIceCream = IamIceCream;
}
};
this.onPress = function () {
if (!lockObject) {
if (!_parent.gameIsOver) {
liftObject();
}
}
};
this.onRelease = function () {
if (lifted) {
dropObject();
}
};
Symbol 448 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 1
if (_parent._parent.hard) {
stop();
}
Symbol 457 MovieClip Frame 10
stop();
onEnterFrame = function () {
if (_parent.started) {
play();
delete onEnterFrame;
}
};
Symbol 457 MovieClip Frame 20
stop();
Symbol 458 MovieClip Frame 1
stop();
specialC = 0;
nextIceCream = 0;
cardboard_boxC = 0;
flower_potC = 0;
moleC = 0;
noDamageC = 0;
noDamage = true;
if (_parent.hard) {
started = true;
} else {
started = false;
}
object0.snapTo = "object0";
interval = 63;
intervalC = 20;
waitedC = 0;
for (i in this) {
this[i].swapDepths(Math.floor((this[i]._y * 100) - this[i]._x) + 49000);
}
shadow.swapDepths(-16000);
objectPointer = 1;
objectsOnStage = 0;
maxObjectsOnStage = 4;
gameIsOver = false;
gameOver = function () {
i = 1;
while (i <= 9) {
targetHole = "hole" + i;
if (this[targetHole].active) {
this[targetHole].submerge = true;
this[targetHole].gotoAndPlay("submerge");
}
i++;
}
};
spawnObject = function () {
if (objectsOnStage < maxObjectsOnStage) {
lockSpawner = true;
newObject = "object" + (objectPointer++);
duplicateMovieClip ("object0", newObject, 50000);
this[newObject]._x = spawnPoint._x + 2000;
this[newObject]._y = spawnPoint._y;
if (!special) {
objectsOnStage++;
if (cardboard_boxC == flower_potC) {
if (random(2) == 1) {
this[newObject].in_use.gotoAndPlay("cardboard_box");
} else {
this[newObject].in_use.gotoAndPlay("flower_pot");
}
} else if (cardboard_boxC < flower_potC) {
this[newObject].in_use.gotoAndPlay("cardboard_box");
} else {
this[newObject].in_use.gotoAndPlay("flower_pot");
}
} else {
objectsOnStage++;
special = false;
specialC++;
if ((specialC % 3) == 0) {
this[newObject].in_use.gotoAndPlay("bucket");
objectsOnStage++;
} else if ((specialC % 7) == 0) {
this[newObject].in_use.gotoAndPlay("mallet");
_parent.malletGiven = true;
} else {
if ((nextIceCream++) == 7) {
nextIceCream = 1;
}
this[newObject].IamIceCream = nextIceCream;
this[newObject].in_use.gotoAndPlay("ice_cream");
}
}
}
};
removeObject = function (target) {
removeMovieClip(target);
objectsOnStage--;
};
moleSpawner = function () {
if ((intervalC--) <= 0) {
targetHole = "hole" + (random(9) + 1);
if (!this[targetHole].active) {
this[targetHole].gotoAndPlay("emerge");
intervalC = ((30 - _parent.level) * 2) + 20;
moleC++;
if (moleC >= (4 + _parent.level)) {
level_up.play();
_parent.level++;
special = true;
objectsOnStage--;
moleC = 0;
}
}
}
};
onEnterFrame = function () {
i = 1;
while (i < 10) {
this["hole" + i].swapDepths(Math.floor((this["hole" + i]._y * 100) - this["hole" + i]._x) + 49000);
i++;
}
if (_parent.energy <= 0) {
gameIsOver = true;
gameOver();
multiplier.gotoAndStop(1);
delete onEnterFrame;
_parent.game_over.play();
_parent.displayDamage = true;
} else {
if (!lockSpawner) {
spawnObject();
}
if (started) {
moleSpawner();
} else if ((waitedC++) >= 310) {
started = true;
} else if (waitedC > 31) {
object1.pick_me_up.play();
}
if (noDamage) {
if (noDamageC >= 5) {
multiplier_up.play();
_parent.multiplier++;
noDamageC = 0;
}
} else {
_parent.displayDamage = true;
noDamageC = 0;
noDamage = true;
prevMultiplier = _parent.multiplier;
if (_parent.hard) {
_parent.multiplier = 2;
} else {
_parent.multiplier = 1;
}
if (prevMultiplier != _parent.multiplier) {
multiplier_lost.play();
}
}
multiplier.gotoAndStop(_parent.multiplier);
}
};
Symbol 460 MovieClip Frame 1
stop();
energy.gotoAndStop(21);
onEnterFrame = function () {
if (_parent.invincible) {
_parent.energy = 20;
}
level.text = _parent.level;
score.text = _parent.score;
if (_parent.energy > 20) {
_parent.energy = 20;
}
energy.gotoAndStop(21 - _parent.energy);
if (_parent.displayDamage) {
energy.damage.gotoAndPlay(3);
_parent.displayDamage = false;
}
};
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 4
gotoAndPlay ("a");
Symbol 473 MovieClip Frame 16
gotoAndPlay ("b");
Symbol 473 MovieClip Frame 30
gotoAndPlay ("c");
Symbol 480 MovieClip Frame 32
gotoAndPlay ("e");
Symbol 480 MovieClip Frame 34
stop();
Symbol 480 MovieClip Frame 47
gotoAndPlay ("f");
Symbol 480 MovieClip Frame 54
gotoAndPlay ("w");
Symbol 486 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 1
bubbleSpeedMod = 0;
if (_parent._parent.useClip != null) {
_parent._parent.useClip++;
} else {
_parent._parent.useClip = 1;
}
Symbol 500 MovieClip Frame 7
stop();
playClip = false;
bubble.onPress = function () {
playClip = true;
bubble.gotoAndStop(2);
bubbleSpeedMod = 20;
_parent._parent.finalScore++;
};
onEnterFrame = function () {
bubble._y = bubble._y + (_parent._parent.bubbleSpeed + bubbleSpeedMod);
if (bubble._y > 40) {
play();
delete onEnterFrame;
}
};
Symbol 500 MovieClip Frame 14
stop();
if (playClip) {
play();
}
_parent._parent.bubbleSpeed = _parent._parent.bubbleSpeed + 0.5;
Symbol 500 MovieClip Frame 15
body.gotoAndStop(_parent._parent.duetMole);
Symbol 500 MovieClip Frame 25
gotoAndPlay("clip" + _parent._parent.useClip);
Symbol 500 MovieClip Frame 45
gotoAndPlay ("downHole");
Symbol 500 MovieClip Frame 68
gotoAndPlay ("downHole");
Symbol 500 MovieClip Frame 98
gotoAndPlay ("downHole");
Symbol 500 MovieClip Frame 132
gotoAndPlay ("downHole");
Symbol 500 MovieClip Frame 201
gotoAndPlay ("downHole");
Symbol 500 MovieClip Frame 224
gotoAndPlay ("downHole");
Symbol 500 MovieClip Frame 267
gotoAndPlay ("downHole");
Symbol 500 MovieClip Frame 342
gotoAndPlay ("downHoleHappy");
Symbol 500 MovieClip Frame 414
if (_parent._parent.finalScore == 9) {
gotoAndPlay ("icecream");
}
Symbol 500 MovieClip Frame 421
gotoAndPlay ("downHoleHappy");
Symbol 500 MovieClip Frame 541
if (_parent._parent.finalScore == 10) {
stopWaving = false;
waitC = 153;
onEnterFrame = function () {
if ((waitC--) <= 0) {
stopWaving = true;
delete onEnterFrame;
}
};
gotoAndPlay ("waving");
} else {
gotoAndPlay ("downHoleHappy");
}
Symbol 500 MovieClip Frame 562
gotoAndStop ("blank");
Symbol 500 MovieClip Frame 578
gotoAndStop ("blank");
Symbol 500 MovieClip Frame 625
gotoAndStop ("blank");
Symbol 500 MovieClip Frame 632
if (!stopWaving) {
gotoAndPlay ("waving");
} else {
gotoAndPlay ("downHoleHappy");
}
Symbol 500 MovieClip Frame 641
stop();
Symbol 501 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 577 Button
on (release) {
getURL ("http://www.myspace.com/iamfrankylou", "_blank");
}
Symbol 589 MovieClip Frame 1
bubbleSpeed = 6.5;
finalScore = 0;
duetMole = random(50) + 1;
Symbol 589 MovieClip Frame 49
happy_mole.gotoAndPlay("d");
Symbol 589 MovieClip Frame 73
happy_mole.gotoAndPlay("e");
Symbol 589 MovieClip Frame 76
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 135
happy_mole.gotoAndPlay("f");
Symbol 589 MovieClip Frame 168
happy_mole.gotoAndPlay("d");
Symbol 589 MovieClip Frame 183
happy_mole.gotoAndPlay("e");
Symbol 589 MovieClip Frame 186
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 249
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 278
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 350
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 373
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 431
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 458
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 528
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 617
happy_mole.expr.gotoAndPlay("b");
Symbol 589 MovieClip Frame 633
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 652
happy_mole.expr.gotoAndPlay("b");
Symbol 589 MovieClip Frame 679
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 694
happy_mole.expr.gotoAndPlay("b");
Symbol 589 MovieClip Frame 757
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 780
happy_mole.gotoAndPlay("f");
Symbol 589 MovieClip Frame 807
happy_mole.gotoAndPlay("d");
Symbol 589 MovieClip Frame 825
happy_mole.gotoAndPlay("e");
Symbol 589 MovieClip Frame 831
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 900
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 934
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1002
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1016
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1060
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1070
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1175
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1258
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1274
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1293
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1325
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1336
happy_mole.expr.gotoAndPlay("b");
Symbol 589 MovieClip Frame 1400
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1418
happy_mole.gotoAndPlay("f");
Symbol 589 MovieClip Frame 1451
happy_mole.gotoAndPlay("d");
Symbol 589 MovieClip Frame 1471
happy_mole.gotoAndPlay("e");
Symbol 589 MovieClip Frame 1474
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1494
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1508
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1537
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1553
happy_mole.expr.gotoAndPlay("c");
Symbol 589 MovieClip Frame 1613
happy_mole.expr.gotoAndPlay("a");
Symbol 589 MovieClip Frame 1630
happy_mole.gotoAndPlay("f");
Symbol 589 MovieClip Frame 1668
happy_mole.gotoAndPlay("d");
Symbol 589 MovieClip Frame 1679
happy_mole.gotoAndPlay("e");
Symbol 589 MovieClip Frame 1701
happy_mole.gotoAndPlay("d");
Symbol 589 MovieClip Frame 1716
final_results.gotoAndStop(finalScore + 1);
Symbol 589 MovieClip Frame 1736
if ((finalScore == 0) || (finalScore == 10)) {
happy_mole.gotoAndPlay("w");
stop();
waitC = 155;
onEnterFrame = function () {
if ((waitC--) <= 0) {
play();
delete onEnterFrame;
}
};
}
Symbol 589 MovieClip Frame 1794
stop();
_parent.gotoAndPlay("intro");