Frame 3
Stage.showMenu = false;
var getloadprogress;
loadprogress = (this.getBytesLoaded() / this.getBytesTotal()) * 100;
if (loadprogress > 100) {
loadprogress = 100;
}
loading.progressbar._xscale = loadprogress;
if (getBytesLoaded() < getBytesTotal()) {
gotoAndPlay (2);
}
Frame 4
function fadeInSound(sound, id) {
clearInterval(this[id]);
sound.start(0, 9999);
this[id] = setInterval(this, "fadeIn", 10, sound, id);
}
function fadeIn(sound, id) {
sound.setVolume(sound.getVolume() + 1);
if (sound.getVolume() >= soundVolume) {
clearInterval(this[id]);
}
}
function fadeOutSound(sound, id) {
clearInterval(this[id]);
this[id] = setInterval(this, "fadeOut", 10, sound, id);
}
function fadeOut(sound, id) {
sound.setVolume(sound.getVolume() - 1);
if (sound.getVolume() <= 0) {
clearInterval(this[id]);
sound.stop();
}
}
this.createEmptyMovieClip("soundholder1", 10000);
loop1 = new Sound(soundholder1);
loop1.attachSound("loop1");
loop1.setVolume(100);
fadeInSound(loop1, "id1");
Frame 9
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__("30f67414", this, 10301, true);
Frame 10
stop();
var PATH = "http://www.robotjamgames.com/highscores/";
var GAMENAME = "blobuloids";
highScoreBox._visible = false;
playGame.onPress = function () {
gotoAndPlay ("fade");
};
instructions.onPress = function () {
gotoAndPlay ("instructs");
};
sendtofriend.onPress = function () {
gotoAndPlay ("send");
};
highScores.onPress = function () {
gotoAndPlay ("highscores");
};
Frame 30
stop();
highScoreBox.sorry._visible = false;
var scorePos = 0;
myVars = new LoadVars();
myVars.onLoad = function (success) {
if (success) {
highScoreBox.loading._visible = false;
LoadHighScores();
} else {
highScoreBox.sorry._visible = true;
}
};
rn = Math.round(Math.random() * 1000000);
myVars.load((PATH + "get_score.php?flash=1?gameName=") + GAMENAME, 0);
highScoreBox._visible = true;
highScoreBox.loading.gotoAndPlay(1);
highScoreBox.loading._visible = true;
back.onPress = function () {
highScoreBox._visible = false;
gotoAndPlay ("options");
};
highScoreBox.scoreUp.onPress = function () {
if (this._parent._parent.scorePos != 0) {
this._parent._parent.scorePos--;
this._parent._parent.LoadHighScores();
}
};
highScoreBox.scoreDown.onPress = function () {
if (this._parent._parent.scorePos != 4) {
this._parent._parent.scorePos++;
this._parent._parent.LoadHighScores();
}
};
LoadHighScores = function () {
var _local1 = 1;
while (_local1 <= 10) {
highScoreBox["num" + _local1] = _local1 + (scorePos * 10);
highScoreBox["name" + _local1] = myVars["name" + ((scorePos * 10) + _local1)];
highScoreBox["score" + _local1] = myVars["score" + ((scorePos * 10) + _local1)];
_local1++;
}
};
Frame 46
stop();
back.onPress = function () {
gotoAndPlay ("options");
};
Frame 62
stop();
back.onPress = function () {
gotoAndPlay ("options");
};
Frame 87
stop();
var score = 0;
scoreBox.score = 0;
scoreBox.scoreShad = 0;
Frame 96
stop();
var choice = 0;
yourScore.scoreText.text = score;
yourScore.scoreTextShad.text = score;
yourScore.backMenu.onPress = function () {
play();
};
yourScore.submit._alpha = 50;
yourScore.submit.enabled = false;
yourScore.submit.onPress = function () {
highSender.pass = "blobscores";
highSender.playerName = yourScore.nameText;
highSender.score = score;
highSender.gameName = GAMENAME;
highSender.loadVariables(PATH + "new_score.php", "POST");
choice = 1;
play();
};
onEnterFrame = function () {
if (yourScore.nameText != eval("NULL")) {
yourScore.submit._alpha = 100;
yourScore.submit.enabled = true;
}
};
Frame 100
MochiAd.showTimedAd({id:"e9032635fb9f8404", res:"610x420", ad_msec:"2000"});
Frame 103
if (choice == 0) {
gotoAndStop ("options");
} else {
gotoAndPlay ("highscores");
}
Symbol 350 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
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.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_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 showTimedAd(options) {
var _local15 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
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.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
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) {
_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 load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_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 _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".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);
}
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++;
}
}
return(_local4);
}
}
Symbol 72 MovieClip Frame 20
gotoAndPlay (2);
Symbol 92 Button
on (release) {
_parent._parent._parent.rateOpen();
}
Symbol 99 Button
on (release) {
_parent.rateOpen();
}
Symbol 101 Button
on (release) {
_parent.showInfo();
}
Symbol 125 Button
on (release) {
_parent.showComments();
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
play();
Symbol 128 MovieClip Frame 6
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
star1_mc.gotoAndPlay("grow");
Symbol 129 MovieClip Frame 3
star2_mc.gotoAndPlay("grow");
Symbol 129 MovieClip Frame 4
star3_mc.gotoAndPlay("grow");
Symbol 129 MovieClip Frame 5
star4_mc.gotoAndPlay("grow");
Symbol 129 MovieClip Frame 6
star5_mc.gotoAndPlay("grow");
Symbol 132 MovieClip Frame 1
var base_mc = this;
var i = 1;
while (i <= 5) {
base_mc["b" + i].num = i;
base_mc["b" + i].onRollOver = function () {
stars_mc.gotoAndStop(this.num + 1);
};
base_mc["b" + i].onRollOut = function () {
stars_mc.gotoAndStop(1);
};
base_mc["b" + i].onPress = function () {
submit_vote(this.num);
};
i++;
}
Symbol 140 MovieClip Frame 15
stop();
Symbol 140 MovieClip Frame 23
stop();
Symbol 140 MovieClip Frame 66
var flr = Math.floor(this.score);
var flr_w = (flr * 20);
var dc = (this.score - Math.floor(this.score));
var dc_w = (dc * 17.1);
var w = (flr_w + dc_w);
star_mask_mc._width = w;
Symbol 140 MovieClip Frame 72
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 4
stop();
Symbol 147 MovieClip Frame 11
stop();
mochibot_btn.onPress = function () {
getURL ("http://www.mochibot.com?cpe=dT0yJmNwPUluZm8gUGFuZWwgTGluayZzPUZlZWRiYWNrIEJhciB2MQ%3D%3D", "_blank");
};
mochibot_btn.onRollOver = function () {
logo_mc.gotoAndPlay("in");
};
mochibot_btn.onRollOut = function () {
logo_mc.gotoAndPlay("out");
};
Symbol 150 Button
on (release) {
_parent.rateOpen();
}
Symbol 155 MovieClip Frame 1
stop();
_parent.init_rate_me();
Symbol 155 MovieClip Frame 10
stop();
Symbol 155 MovieClip Frame 18
stop();
Symbol 156 MovieClip Frame 1
function init_rate_me() {
cookie = SharedObject.getLocal("rate_me_limit");
var _local1 = cookie.data.year;
var _local4 = cookie.data.month;
var _local3 = cookie.data.date;
var _local5 = cookie.data.hour;
var _local6 = cookie.data.min;
var _local9 = cookie.data.sec;
cookieDate = new Date(_local1, _local4, _local3, _local5, _local6, _local9);
cookieMillisecs = cookieDate.getTime();
currentDate = new Date();
currentMillisecs = currentDate.getTime();
var _local8 = currentMillisecs - cookieMillisecs;
var _local7 = Math.floor(_local8 / 1000);
var _local2 = Math.floor(_local7 / 60);
var _local10 = Math.floor(_local2 / 60);
if ((_local2 < mochi_rate_me_time) && (_local1 != undefined)) {
get_rating();
}
}
function set_rate_me_cookie() {
cookie = SharedObject.getLocal("rate_me_limit");
var _local1 = new Date();
var _local4 = _local1.getFullYear();
var _local3 = _local1.getMonth();
var _local5 = _local1.getDate();
var _local7 = _local1.getHours();
var _local6 = _local1.getMinutes();
var _local2 = _local1.getSeconds();
cookie.data.year = _local4;
cookie.data.month = _local3;
cookie.data.date = _local5;
cookie.data.hour = _local7;
cookie.data.min = _local6;
cookie.data.sec = _local2;
cookie.flush();
}
function show_comment_pane() {
if (!comment_on) {
comment_on = true;
if (!help_on) {
gotoAndPlay ("comment_on");
} else {
help_on = false;
next_frame = "comment_on";
gotoAndPlay ("comment_off");
}
comment_btn_mc.gotoAndPlay("off");
} else {
comment_on = false;
next_frame = null;
gotoAndPlay ("comment_off");
comment_btn_mc.gotoAndPlay("off");
}
}
function show_help_pane() {
if (!help_on) {
help_on = true;
if (!comment_on) {
gotoAndPlay ("comment_on");
} else {
comment_on = false;
next_frame = "comment_on";
gotoAndPlay ("comment_off");
}
} else {
help_on = false;
next_frame = null;
gotoAndPlay ("comment_off");
}
}
function show_component(comment_on) {
if (!is_on) {
is_on = true;
gotoAndPlay ("component_on");
} else if (comment_on) {
next_frame = "component_off";
comment_on = false;
gotoAndPlay ("comment_off");
} else {
next_frame = null;
is_on = false;
gotoAndPlay ("component_off");
}
}
function clear_cookie() {
cookie = SharedObject.getLocal("rate_me_limit");
cookie.clear();
}
var mochibot_id = "30f67414";
guide_mc._visible = false;
var mochi_rate_me_time = 720;
var mochi_vote_url = "http://www.mochibot.com/api/api-feedback.html";
var mochi_comment_url = "http://www.mochibot.com/api/api-feedback.html";
var mochi_public_comments_url = ("http://www.mochibot.com/shared/shared_feedback.html?swfid=" + mochibot_id);
var comment_on = false;
var help_on = false;
var is_on = false;
var next_frame = null;
_global.submit_vote = function (vote) {
get_rating();
panel_mc.rate_me.gotoAndPlay("out");
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local3.mochibot_id = mochibot_id;
_local3.vote = vote;
_local3.swfurl = _root._url;
_local4.onLoad = function () {
panel_mc.rate.score = this.score;
panel_mc.rate_me.gotoAndPlay("thanks");
};
_local3.sendAndLoad(mochi_vote_url, _local4, "POST");
set_rate_me_cookie();
};
_global.submit_comment = function (name_str, email_str, comment_str) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local3.name = name_str;
_local3.email = email_str;
_local3.comment = comment_str;
_local3.mochibot_id = mochibot_id;
_local3.swfurl = _root._url;
_local4.onLoad = function () {
if (this.invalidSwf == "true") {
panel_mc.gotoAndStop("error");
} else {
panel_mc.gotoAndStop("success");
}
};
_local3.sendAndLoad(mochi_comment_url, _local4, "POST");
};
_global.get_rating = function () {
panel_mc.rate_me.gotoAndStop("score");
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.mochibot_id = mochibot_id;
_local3.onLoad = function () {
panel_mc.rate_me.score = this.score;
panel_mc.rate_me.gotoAndPlay("score");
};
_local2.sendAndLoad(mochi_vote_url, _local3, "GET");
};
toggle_btn.onRelease = function () {
show_component();
};
toggle_btn.onRollOver = function () {
head_mc._alpha = 100;
bubble_mc.gotoAndPlay(2);
};
toggle_btn.onRollOut = function () {
head_mc._alpha = 50;
bubble_mc.gotoAndStop(1);
};
init_rate_me();
Symbol 156 MovieClip Frame 11
function showComments() {
getURL (mochi_public_comments_url, "_blank");
}
function showInfo() {
if (showingInfo == true) {
panel_mc.gotoAndStop("feedback");
showingInfo = false;
} else {
panel_mc.gotoAndStop("info");
showingInfo = true;
}
}
function rateOpen() {
play();
}
function valid() {
if ((panel_mc.comment_txt.text == undefined) || (panel_mc.comment_txt.text == "")) {
return(false);
}
return(true);
}
stop();
init_rate_me();
panel_mc.gotoAndStop(1);
panel_mc.btnSubmit.onPress = function () {
if (valid()) {
panel_mc.btnSubmit.enabled = false;
submit_comment(panel_mc.name_txt.text, panel_mc.email_txt.text, panel_mc.comment_txt.text);
}
};
Symbol 156 MovieClip Frame 21
stop();
Symbol 156 MovieClip Frame 27
gotoAndStop ("open");
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 10
stop();
Symbol 177 Button
on (release) {
sendToFriend.loadVariables(_root.PATH + "blob_email.php", "POST");
sendemail._visible = false;
sendToFriend.gotoAndStop("sent");
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 80));
Symbol 198 MovieClip Frame 155
gotoAndPlay ("start");
Symbol 209 MovieClip Frame 1
stop();
this._visible = false;
Symbol 209 MovieClip Frame 2
this._visible = true;
Symbol 209 MovieClip Frame 10
stop();
Symbol 221 MovieClip Frame 1
stop();
this._visible = false;
Symbol 221 MovieClip Frame 2
this._visible = true;
Symbol 303 MovieClip Frame 2
stop();
Symbol 303 MovieClip Frame 67
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 105
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 151
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 192
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 231
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 276
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 315
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 350
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 433
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 481
gotoAndStop ("idle");
Symbol 303 MovieClip Frame 485
gotoAndStop ("idle");
Symbol 305 MovieClip Frame 3
stop();
Symbol 306 MovieClip Frame 1
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 307 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 40));
Symbol 307 MovieClip Frame 85
gotoAndPlay ("start");
Symbol 308 MovieClip Frame 1
this.counter = 1;
stop();
bubble._visible = false;
var product = 0;
blob.blobBody.mouth.gotoAndStop("idle");
Symbol 308 MovieClip Frame 20
stop();
blob.blobBody.mouth.gotoAndStop("hungry");
Symbol 308 MovieClip Frame 30
this._parent.gameScore++;
this._parent.score++;
randMouth = Math.round(Math.random() * 5);
if (randMouth == 0) {
randMouth = 1;
}
blob.blobBody.mouth.gotoAndPlay("happy" + randMouth);
Symbol 308 MovieClip Frame 68
gotoAndStop ("initial");
Symbol 308 MovieClip Frame 69
randCry = Math.round(Math.random() * 4);
if (randCry == 0) {
randCry = 1;
}
blob.blobBody.mouth.gotoAndPlay("cry" + randCry);
blob.blobBody.eyecry.play();
Symbol 308 MovieClip Frame 100
gotoAndStop ("initial");
Symbol 308 MovieClip Frame 101
blob.blobBody.mouth.gotoAndPlay("wrongfood");
Symbol 308 MovieClip Frame 134
gotoAndStop ("initial");
Symbol 308 MovieClip Frame 135
blob.blobBody.mouth.gotoAndPlay("yawn");
blob.blobBody.eyelid.play();
Symbol 308 MovieClip Frame 186
stop();
Symbol 321 MovieClip Frame 1
gotoAndStop ("blank");
Symbol 328 MovieClip Frame 1
var foodPicked = 0;
var blobsUp = 0;
var frameCounter = 0;
var BLOBUP = 150;
var NUMFOODS = 2;
var NUMBLOBS = 15;
var DELAY = 150;
var RANDDELAY = 400;
var BLOBSCALEUP = 15;
var blobFullUps = 0;
var pauseCounter = 0;
var bonus = 5000;
bonusBox.bonusText.text = bonus;
bonusBox.bonusTextShad.text = bonus;
var i = 1;
while (i <= NUMBLOBS) {
this["randcounter" + i] = 1;
this["randplay" + i] = Math.round(Math.random() * RANDDELAY);
this["blobUpCounter" + i] = 1;
this["blobUp" + i] = 0;
this["blob" + i].blobId = i;
this["blobScaler" + i] = 0;
this["blobScaleCounter" + i] = 0;
this["blobTempScale" + i] = 0;
this["blobLevel" + i] = 1;
this["blobFoodLevel" + i] = 1;
this["blobFull" + i] = 0;
this["hotspot" + i]._visible = false;
this["hotspot" + i].i = i;
i++;
}
onEnterFrame = function () {
frameCounter++;
food._x = _xmouse;
food._y = _ymouse;
if ((frameCounter % 100) == 0) {
bonus = bonus - 100;
bonusBox.bonusText.text = bonus;
bonusBox.bonusTextShad.text = bonus;
}
if (blobFullUps == NUMBLOBS) {
pauseCounter++;
if (pauseCounter == 100) {
this._parent.score = this._parent.score + bonus;
_parent.play();
}
}
var i = 1;
while (i <= NUMBLOBS) {
this["randcounter" + i]++;
if (((this["randcounter" + i] >= this["randplay" + i]) && (!this["blobFull" + i])) && (!this["blobUp" + i])) {
this["hotspot" + i]._visible = true;
this["randcounter" + i] = 1;
this["randplay" + i] = DELAY + Math.round(Math.random() * RANDDELAY);
this["blobUp" + i] = 1;
this["blobUpCounter" + i] = 0;
this["blob" + i].gotoAndStop("up");
this["blob" + i].bubble.gotoAndStop("product" + this["blob" + i].blobFood);
}
if (this["blobUp" + i] == 1) {
this["blobUpCounter" + i]++;
if (this["blobUpCounter" + i] >= BLOBUP) {
this._parent.score = this._parent.score - 50;
tempScore = this._parent.score;
this._parent.scoreBox.scoreText.text = tempScore;
this._parent.scoreBox.scoreTextShad.text = tempScore;
this["blob" + i].gotoAndPlay("notpressed");
this["blobUp" + i] = 0;
this["hotspot" + i]._visible = false;
}
this["hotspot" + i].onPress = function () {
this._visible = false;
food.gotoAndStop("blank");
this._parent["blobUp" + this.i] = 0;
if (foodPicked == this._parent["blobFoodLevel" + this.i]) {
this._parent["blobLevel" + this.i]++;
this._parent["blobScaler" + this.i] = 1;
this._parent["blob" + this.i].gotoAndPlay("pressed");
this._parent._parent.score = this._parent._parent.score + (BLOBUP - this._parent["blobUpCounter" + this.i]);
tempScore = this._parent._parent.score;
this._parent._parent.scoreBox.scoreText.text = tempScore;
this._parent._parent.scoreBox.scoreTextShad.text = tempScore;
if (this._parent["blobLevel" + this.i] == 2) {
this._parent["blobFoodLevel" + this.i]++;
this._parent["blob" + this.i].blob.blobBody.body.gotoAndStop(2);
}
if (this._parent["blobLevel" + this.i] == 3) {
this._parent["blobFoodLevel" + this.i]++;
this._parent["blob" + this.i].blob.blobBody.body.gotoAndStop(3);
}
if (this._parent["blobLevel" + this.i] == 4) {
this._parent["blobFull" + this.i] = 1;
this._parent.blobFullUps++;
this._parent.RANDDELAY = this._parent.RANDDELAY - 25;
this._parent["blob" + this.i].gotoAndPlay("fullup");
}
} else {
this._parent["blob" + this.i].gotoAndPlay("wrongfood");
this._parent._parent.score = this._parent._parent.score - 50;
tempScore = this._parent._parent.score;
this._parent._parent.scoreBox.scoreText.text = tempScore;
this._parent._parent.scoreBox.scoreTextShad.text = tempScore;
}
foodPicked = 0;
};
}
if (this["blobScaler" + i] == 1) {
this["blobScaleCounter" + i]++;
if (this["blobScaleCounter" + i] == 1) {
this["blobTempScale" + i] = this["blob" + i]._xscale;
}
scaler = easeInOutQuad(this["blobScaleCounter" + i], this["blobTempScale" + i], BLOBSCALEUP, 20);
this["blob" + i]._xscale = scaler;
this["blob" + i]._yscale = scaler;
if (this["blobScaleCounter" + i] == 21) {
this["blobScaler" + i] = 0;
this["blobScaleCounter" + i] = 0;
}
}
i++;
}
};
easeInOutQuad = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
};
but_prod1.onPress = function () {
foodPicked = 1;
food.gotoAndStop("product1");
};
but_prod2.onPress = function () {
foodPicked = 2;
food.gotoAndStop("product2");
};
but_prod3.onPress = function () {
foodPicked = 3;
food.gotoAndStop("product3");
};