Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
Stage.scaleMode = "noScale";
fr.swapDepths(200010);
_global.r = this;
Frame 2
loadAmount = _totalframes;
persen = 1;
onEnterFrame = function () {
if (_framesloaded == loadAmount) {
delete onEnterFrame;
udamusik = 0;
gotoAndPlay ("menu");
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
persen = Math.round((loaded / total) * 100);
}
};
stop();
Frame 10
MovieClip.prototype.popempty = function () {
r.stat.attachMovie("emptycan", "emptycan", r.nbd + 100, {_x:345, _y:160});
};
MovieClip.prototype.initwatermeter = function () {
var t = this;
t._alpha = 0;
t.onEnterFrame = function () {
if ((t._parent.zone.hitTest(r._xmouse, r._ymouse, 1) or (r.act == "pumping")) or (r.act == "watering")) {
t._alpha = Math.min(100, t._alpha + 10);
} else {
t._alpha = Math.max(0, t._alpha - 10);
}
t.bar._yscale = (r.watercontent / r.watercontentmax) * 100;
};
stop();
};
MovieClip.prototype.initmap = function () {
if ((r.totalfence < 2) && (r.totalbeeskep.length < 3)) {
var _local10 = 10;
} else {
var _local10 = 0;
}
var _local11 = 0;
var _local3 = 400;
var _local1 = 10;
var _local14 = 0;
var _local6 = 125;
var _local2 = (_local11 + 100) + _local10;
var _local5 = 1;
while (_local5 <= r.totalfence) {
m.attachMovie("fence" + _local5, "fence" + _local5, _local1, {_x:_local2, _y:_local3});
m.place.attachMovie("soil", "soil" + _local5, _local1, {_x:_local2, _y:_local3});
_local2 = _local2 + _local6;
_local1++;
_local5++;
}
_local2 = _local2 + _local10;
m.attachMovie("pump", "pump", _local1, {_x:_local2, _y:_local3 + 3});
_local1++;
_local2 = _local2 + 22;
m.attachMovie("watercan" + r.watercansize, "watercan", _local1, {_x:_local2, _y:_local3 - 22});
_local1++;
_local2 = _local2 + (65 + _local10);
m.attachMovie("roundtable", "roundtable", _local1, {_x:_local2, _y:_local3 + 3});
_local1++;
if (r.honeytype.length == 3) {
pos = [{xx:_local2 - 16, yy:_local3 - 62}, {xx:_local2, yy:_local3 - 59.5}, {xx:_local2 + 16, yy:_local3 - 62}];
} else if (r.honeytype.length == 2) {
pos = [{xx:_local2 - 10, yy:_local3 - 60}, {xx:_local2 + 10, yy:_local3 - 60}];
} else {
pos = [{xx:_local2, yy:_local3 - 60}];
}
_local5 = 0;
while (_local5 < r.honeytype.length) {
m.attachMovie("pouch" + r.honeytype[_local5], "pouch" + r.honeytype[_local5], _local1, {_x:pos[_local5].xx, _y:pos[_local5].yy});
_local1++;
_local5++;
}
_local2 = _local2 + 80;
var _local4 = 1;
_local6 = 85;
var _local8 = r.totalbeeskep.count(1);
var _local9 = r.totalbeeskep.count(2);
if (_local8) {
_local5 = 0;
while (_local5 < _local8) {
m.attachMovie("beeskep", "beeskep" + _local4, _local1, {_x:_local2, _y:_local3, bsize:1});
_local2 = _local2 + _local6;
_local4++;
_local1++;
_local5++;
}
}
_local5 = 0;
while (_local5 < _local9) {
m.attachMovie("beeskep", "beeskep" + _local4, _local1, {_x:_local2, _y:_local3, bsize:2});
_local2 = _local2 + _local6;
_local4++;
_local1++;
_local5++;
}
_local2 = _local2 + (60 + _local10);
m.attachMovie("tablebig", "tablebig", _local1, {_x:_local2, _y:_local3});
_local1++;
if (r.honeytype.length == 1) {
m.attachMovie("basket" + r.honeytype[0], "basket1", _local1, {_x:_local2 - 40, _y:_local3 - 70});
_local1++;
r.maxwid = _local2;
} else if (r.honeytype.length == 2) {
m.attachMovie("basket" + r.honeytype[0], "basket1", _local1, {_x:_local2 - 45, _y:_local3 - 70});
_local1++;
m.attachMovie("basket" + r.honeytype[1], "basket2", _local1, {_x:_local2 + 25, _y:_local3 - 70});
_local1++;
r.maxwid = _local2 + 100;
} else {
m.attachMovie("basket1", "basket1", _local1, {_x:_local2 - 62, _y:_local3 - 70});
_local1++;
m.attachMovie("basket2", "basket2", _local1, {_x:_local2, _y:_local3 - 70});
_local1++;
m.attachMovie("basket3", "basket3", _local1, {_x:_local2 + 62, _y:_local3 - 70});
_local1++;
r.maxwid = _local2 + 160;
}
m.tree._x = m.tablebig._x + 160;
};
MovieClip.prototype.removeorder = function (id) {
r.order.splice(id, 1);
var _local1 = id;
while (_local1 < r.order.length) {
if (r.order[_local1]) {
r.order[_local1].id--;
}
_local1++;
}
};
MovieClip.prototype.initnote = function () {
var t = this;
t.xx = t._x;
t.yy = t._y;
t._y = t._y - 30;
t._alpha = 0;
t.d = 17;
t.but.enabled = false;
t.onEnterFrame = function () {
t._y = t._y + ((t.yy - t._y) / 5);
t._alpha = Math.min(100, t._alpha + 10);
t.d--;
if (!t.d) {
t._y = t.yy;
t._alpha = 100;
t.mouseover = 0;
t.d = r.notetime;
t.idnow = t.id;
t.onEnterFrame = function () {
t.xx = r.ox + (t.id * r.ospacing);
t._x = t._x + ((t.xx - t._x) / 5);
if (t.zone.hitTest(r._xmouse, r._ymouse, 1)) {
t.but.enabled = true;
t.a.hilite();
t.mouseover = 1;
popbignote(t.id, t.onumber, t.no, t.from, t.tipe, t.quan);
} else {
t.mouseover = 0;
t.a.nolite();
}
t.d--;
t.timer.bar._xscale = Math.max(0, Math.min((t.d / r.notetime) * 100, 100));
if (!t.d) {
t.onEnterFrame = function () {
t._alpha = t._alpha - 10;
if (t._alpha <= 0) {
if (r.stat.notebig.onumber == t.onumber) {
r.stat.notebig.removeMovieClip();
}
removeorder(t.id);
t.removeMovieClip();
}
};
}
};
}
};
t.stop();
};
MovieClip.prototype.toCurrency = function (amount) {
var _local1 = amount % 100;
if (!_local1) {
var _local3 = Math.floor(amount / 100) + ".00";
} else {
if (_local1 < 10) {
_local1 = "0" + _local1;
}
var _local3 = (Math.floor(amount / 100) + ".") + _local1;
}
return(_local3);
};
MovieClip.prototype.cekfulfill = function () {
var t = this;
var b = r.stat.notebig;
if (r.jars[t.no] >= t.sum) {
r.ofulfilled++;
r.jarsold[t.no] = r.jarsold[t.no] + t.sum;
r.jarsoldtotal = r.jarsoldtotal + t.sum;
r.jars[t.no] = r.jars[t.no] - t.sum;
b.attachMovie("ready", "ready", 11, {_x:53, _y:145, _rotation:-20 - random(20)});
var _local2 = r.nil * t.sum;
var _local7 = "$" + toCurrency(_local2);
r.stat.attachMovie("money", "money" + r.md, r.md, {_x:b._x, _y:b._y + 70, txt:_local7});
r.md++;
r.ang = r.ang + _local2;
updatesum();
r.zcash.start();
var _local3 = 40;
b._alpha = 100;
b.d = _local3;
b.onEnterFrame = function () {
b.d--;
if (b.d < 5) {
b._alpha = b._alpha - 20;
if (!b.d) {
b.removeMovieClip();
}
}
};
t.but.enabled = false;
t.d = _local3;
t.onEnterFrame = function () {
t._alpha = Math.max(0, t._alpha - 10);
t._y++;
t.d--;
if (!t.d) {
removeorder(t.id);
t.removeMovieClip();
}
};
} else {
r.stat.attachMovie("notenough", "notenough", r.nbd + 100, {_x:345, _y:228});
}
};
MovieClip.prototype.popbignote = function (id, onumber, no, from, tipe, quan) {
if ((!r.stat.notebig._visible) or (r.stat.notebig.onumber != onumber)) {
var _local1 = random(10);
if (random(100) > 50) {
_local1 = -_local1;
}
r.stat.attachMovie("notebig", "notebig", r.nbd, {_x:345, _y:146, _rotation:_local1, onumber:onumber, no:no, from:from, tipe:tipe, quan:quan});
}
};
MovieClip.prototype.makeorder = function () {
var _local7 = false;
id = r.order.length;
var _local4 = getrandom("custnames");
var _local5 = getrandom("honeytype");
var _local12 = r.honeynames[_local5];
var _local8 = 1 + random(Math.min(3, r.level));
if (_local8 > 1) {
var _local6 = _local8 + " jars";
} else {
var _local6 = _local8 + " jar";
}
var _local2 = r.ox + (id * ospacing);
var _local1 = random(5);
if (random(100) > 50) {
_local1 = -_local1;
}
r.stat.attachMovie("notesmall", "notesmall" + r.nd, r.nd, {_x:_local2, _y:r.oy, _rotation:_local1, id:id, onumber:r.onumber, no:_local5, from:_local4, tipe:_local12, quan:_local6, sum:_local8});
r.order[id] = r.stat["notesmall" + r.nd];
r.onumber++;
r.nd++;
};
MovieClip.prototype.appear = function (speed) {
var t = this;
if (!speed) {
speed = 10;
}
t.speed = speed;
t._alpha = 0;
t.onEnterFrame = function () {
t._alpha = t._alpha + speed;
if (t._alpha >= 100) {
t._alpha = 100;
delete t.onEnterFrame;
}
};
};
MovieClip.prototype.disappear = function (speed) {
var t = this;
if (!speed) {
speed = 10;
}
t.speed = speed;
t.onEnterFrame = function () {
t._alpha = t._alpha - speed;
if (t._alpha <= 0) {
t._alpha = 0;
delete t.onEnterFrame;
t.removeMovieClip();
}
};
};
MovieClip.prototype.updatesum = function () {
var _local3 = "x " + r.jars[1];
var _local2 = "x " + r.jars[2];
var _local1 = "x " + r.jars[3];
if (r.stat.honey.sum1.txt != _local3) {
r.stat.honey.sum1.txt = _local3;
r.stat.honey.box1.gotoAndPlay(2);
}
if (r.stat.honey.sum2.txt != _local2) {
r.stat.honey.sum2.txt = _local2;
r.stat.honey.box2.gotoAndPlay(2);
}
if (r.stat.honey.sum3.txt != _local1) {
r.stat.honey.sum3.txt = _local1;
r.stat.honey.box3.gotoAndPlay(2);
}
r.stat.cash.txt = "$" + toCurrency(r.ang);
r.stat.saving.txt = "$" + toCurrency(r.totalang);
};
MovieClip.prototype.initob2 = function (id) {
var t = this;
t.id = id;
t.onEnterFrame = function () {
if (t.zone.hitTest(r._xmouse, r._ymouse, 1)) {
t.a.hilite();
} else {
t.a.nolite();
}
};
t.stop();
};
MovieClip.prototype.removeflower = function (it) {
it.plant = 0;
var f = it.place.flowers;
f.onEnterFrame = function () {
f._alpha = f._alpha - 5;
if (f._alpha <= 0) {
f.removeMovieClip();
}
};
};
MovieClip.prototype.beestupid = function () {
var _local2 = this;
_local2.think = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_local2.think.randomize();
_local2.thinkno = 0;
_local2.stupid = 1;
_local2.speed = 2 + (0.1 * random(20));
};
MovieClip.prototype.beesmart = function () {
var _local2 = this;
_local2.think = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_local2.think.randomize();
_local2.thinkno = 0;
_local2.stupid = 0;
_local2.speed = 5 + (0.1 * random(20));
};
MovieClip.prototype.cekfence = function () {
var _local4 = [];
var _local3 = 0;
while (_local3 < r.fences.length) {
var _local2 = r.fences[_local3];
if (_local2.plant > 10) {
var _local1 = 0;
while (_local1 < r.nests.length) {
if (r.nests[_local1].targetflower == _local2) {
_local2 = undefined;
break;
}
_local1++;
}
if (_local2 != undefined) {
_local4.push(_local2);
}
}
_local3++;
}
if (_local4.length) {
_local4.randomize();
var _local5 = _local4.pop();
return(_local5);
}
return(false);
};
MovieClip.prototype.cekclick = function () {
var _local2 = this;
r.pressed = cekzone();
if (!r.pressed) {
r.newpos = m._xmouse;
} else {
_local2.pmc = r.pressed._parent;
_local2.pid = r.pressed.id;
if ((r.hold == 30) && ((_local2.pid > 40) && (_local2.pid <= 43))) {
if ((_local2.pmc.plant > 0) && (_local2.pmc.plant < 10)) {
r.newpos = _local2.pmc._x - 40;
} else {
r.newpos = _local2.pmc._x;
_local2.pmc = (_local2.pid = undefined);
r.pressed = 0;
}
} else {
r.newpos = _local2.pmc._x;
}
}
};
MovieClip.prototype.snapshot = function (dest, sourc, x1, y1, wid, hei) {
var _local1 = new flash.display.BitmapData(wid, hei, true, 16777215);
var _local2 = new flash.geom.Matrix();
_local2.translate(-x1, -y1);
_local1.draw(sourc, _local2, null, null, new flash.geom.Rectangle(0, 0, wid, hei), true);
dest.attachBitmap(_local1, 1, "auto", true);
};
MovieClip.prototype.waitandsnap = function (delay) {
var t = this;
t.d = delay;
t.onEnterFrame = function () {
t.d--;
if (!t.d) {
t.wid = 190;
t.hei = 160;
t.bottombleed = 10;
t.createEmptyMovieClip("place2", 200);
snapshot(t.place2, t.place, (-t.wid) / 2, (-t.hei) + t.bottombleed, t.wid, t.hei);
t.place2._x = (-t.wid) / 2;
t.place2._y = (-t.hei) + t.bottombleed;
t.place.removeMovieClip();
t.fence.plant = t.fence.plant + 10;
}
};
};
MovieClip.prototype.hilite = function () {
var _local2 = new flash.filters.GlowFilter(16777215, 100, 2, 2, 10, 3, false, false);
this.filters = [_local2];
};
MovieClip.prototype.nolite = function () {
this.filters = undefined;
};
MovieClip.prototype.initob = function (id) {
var t = this;
t.id = id;
t.picked = 0;
t._visible = true;
t.onEnterFrame = function () {
if (r.hold == t.id) {
if (!t.picked) {
t.picked = 1;
t._visible = false;
}
} else if (t.picked) {
t.picked = 0;
t._alpha = 0;
t._visible = true;
t.onEnterFrame = function () {
t._alpha = t._alpha + 10;
if (t._alpha >= 100) {
t._alpha = 100;
t.initob(t.id);
}
};
}
if (t.zone.hitTest(r._xmouse, r._ymouse, 1)) {
t.a.hilite();
} else {
t.a.nolite();
}
};
t.stop();
};
MovieClip.prototype.cekzone = function () {
var _local1 = 0;
while (_local1 < r.ob.length) {
if (r.ob[_local1].hitTest(r._xmouse, r._ymouse, 1)) {
return(r.ob[_local1]);
}
_local1++;
}
return(false);
};
MovieClip.prototype.initzone = function () {
var _local2 = this;
r.ob.push(_local2);
_local2.id = Number(substring(_local2._name, 2, 2));
_local2._parent.zone = _local2;
_local2._visible = false;
};
MovieClip.prototype.energize = function (a) {
r.energy = Math.min(r.energymax, r.energy + a);
r.energy = Math.max(0, r.energy);
if (a > 0) {
r.zbonus.start();
} else {
r.zhit.start();
}
r.energybar.gotoAndPlay(1);
};
MovieClip.prototype.initpopup = function (delay, distance, golabel) {
var t = this;
if (!delay) {
delay = 30;
}
if (!distance) {
distance = 20;
}
t.yy = t._y - distance;
t._alpha = 0;
var d = delay;
t.onEnterFrame = function () {
t._alpha = Math.min(100, t._alpha + 20);
t._y = Math.floor(t._y + ((t.yy - t._y) / 3));
d--;
if (!d) {
t.onEnterFrame = function () {
t._alpha = t._alpha - 20;
t._y = t._y - 3;
if (t._alpha <= 0) {
delete t.onEnterFrame;
if (!golabel) {
t.removeMovieClip();
} else {
t.gotoAndPlay(golabel);
}
}
};
}
};
t.stop();
};
MovieClip.prototype.jiggle = function (beginska) {
var t = this;
if (!beginska) {
beginska = 150;
}
t._xscale = (t._yscale = beginska);
t.ska = 100;
t.dx = 0;
t.dy = 0;
t.dv = 0.8;
t.dvstep = 0.6;
t.onEnterFrame = function () {
t.dx = (t.dx * t.dvstep) + ((t.ska - t._xscale) * t.dv);
t._xscale = t._xscale + t.dx;
t._yscale = t._xscale;
};
};
Array.prototype.count = function (val) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] == val) {
_local3++;
}
_local2++;
}
return(_local3);
};
Array.prototype.contain = function (val) {
var _local3 = false;
var _local2 = 0;
_local2 = 0;
while (_local2 < this.length) {
if (this[_local2] == val) {
_local3++;
}
_local2++;
}
return(_local3);
};
Array.prototype.removeElement = function (i) {
if (i == null) {
i = 0;
}
var _local4 = this[i];
var _local2 = i;
while (_local2 < (this.length - 1)) {
this[_local2] = this[_local2 + 1];
_local2++;
}
this.pop();
return(_local4);
};
Array.prototype.removeValue = function (a) {
var _local2 = 0;
while (_local2 < this.length) {
if (a == this[_local2]) {
this.removeElement(_local2);
}
_local2++;
}
};
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
Array.prototype.copy = Array.prototype.slice;
Object.prototype.clone = function () {
if (this instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < this.length) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
_local3++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var _local2 = null;
trace("Warning! Object.clone can not be used on MovieClip or XML objects");
} else {
var _local2 = {};
for (var _local3 in this) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["clone"], 1);
MovieClip.prototype.fadescreen = function (speed) {
if (!speed) {
speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
d.speed = speed;
d.lineStyle(1, 0, 100);
d.beginFill(16777215, 100);
d.moveTo(-5000, -5000);
d.lineTo(5000, -5000);
d.lineTo(5000, 5000);
d.lineTo(-5000, 5000);
d.endFill();
d.onEnterFrame = function () {
d._alpha = d._alpha - d.speed;
if (d._alpha <= 0) {
d.removeMovieClip();
d.stop();
}
};
};
MovieClip.prototype.getrandom = function (aray) {
if (r.randomlisting.length > 0) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
if (r.randomlisting[_local1] == aray) {
_local3 = 1;
break;
}
_local1++;
}
if (!_local3) {
r.randomlisting.push(aray);
}
} else {
r.randomlisting = [];
r.randomlisting.push(aray);
}
if (r[aray + "getrandom"].length <= 0) {
r[aray + "getrandom"] = [];
r[aray + "getrandom"] = r[aray].clone();
r[aray + "getrandom"].randomize();
if (r[aray + "getrandom"].length > 1) {
if (r[aray + "lastpop"] == r[aray + "getrandom"][r[aray + "getrandom"].length - 1]) {
r[aray + "getrandom"].pop();
}
}
}
var _local4 = r[aray + "getrandom"].pop();
r[aray + "lastpop"] = _local4;
return(_local4);
};
MovieClip.prototype.resetrandom = function () {
if (r.randomlisting.length > 0) {
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
r[r.randomlisting[_local1] + "getrandom"] = [];
r[r.randomlisting[_local1] + "lastpop"] = undefined;
_local1++;
}
}
};
MovieClip.prototype.findang = function (dx, dy) {
return(deg(Math.atan2(dy, dx)));
};
MovieClip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
MovieClip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
Color.prototype.setBrightness = function (value) {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
var trans = this.getTransform();
var percent = (Math.abs(value) / 100);
var brightnessColor = ((value > 0) ? 255 : 0);
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((brightnessColor - rb) * percent);
gb = gb + ((brightnessColor - gb) * percent);
bb = bb + ((brightnessColor - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.resetColor = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
Sound.prototype.fade = function (fadeType, fadeDuration) {
this.fadeDuration = (fadeDuration * 1000) / 100;
this.fadeType = fadeType;
this.currentVolume = this.getVolume();
this.intID = setInterval(function (thisObj) {
thisObj.doFade(thisObj.fadeType);
}, this.fadeDuration, this);
this.doFade = function (fadeType) {
if (fadeType == "out") {
this.setVolume(this.currentVolume--);
if (this.getVolume() <= 0) {
clearInterval(this.intID);
}
} else if (fadeType == "in") {
this.setVolume(this.currentVolume++);
if (this.getVolume() >= 100) {
clearInterval(this.intID);
}
}
};
};
MovieClip.prototype.wait = function (delay) {
this.createEmptyMovieClip("wdl", 55555);
this.wdl.delay = delay;
this.wdl.onenterframe = function () {
this.delay--;
if (!this.delay) {
delete this.onenterframe;
this._parent.play();
this.removeMovieClip();
}
};
this.stop();
};
MovieClip.prototype.savecookie = function (vari, value) {
var _local1 = SharedObject.getLocal("lazcookie", "/");
_local1.data[vari] = value;
_local1.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var _local1 = SharedObject.getLocal("lazcookie", "/");
if (_local1.data[vari] != null) {
return(_local1.data[vari]);
}
return(false);
};
Frame 16
delete onEnterFrame;
call("pro");
fadescreen();
stop();
Frame 23
fadescreen();
stop();
Frame 30
fadescreen();
stop();
Frame 40
_global.m = this.map;
_global.p = m.player;
_global.b1 = this.bg1;
_global.b2 = this.bg2;
_global.b3 = this.bg3;
_global.gtop = this.gtop;
delete onEnterFrame;
call("pro");
fadescreen();
if (!level) {
level = 1;
totalang = 1000;
watercansize = 1;
totalfence = 1;
totalbeeskep = [1];
}
r.prices = [0, 400, 600, 300, 300];
ang = 0;
nil = 150;
bookprice = 500;
goals = [0, 600, 1200, 2200, 3000, 4500, 5500, 7000];
leveltimes = [0, 3000, 4500, 6000, 7000, 8000, 9000, 10000];
goal = goals[level];
leveltime = leveltimes[level];
levelmax = goals.length - 1;
notetime = 1500;
seedtimer = 300;
maxbeeskep = 3;
maxfence = 3;
jars = ["", 0, 0, 0];
jarsold = ["", 0, 0, 0];
jarsoldtotal = 0;
r.stat.sum1.txt = "x " + r.jars[1];
r.stat.sum2.txt = "x " + r.jars[2];
r.stat.sum3.txt = "x " + r.jars[3];
r.stat.cash.txt = "$" + toCurrency(r.ang);
pumpdelay = 29;
waterdelay = 24;
if (watercansize == 2) {
watercontentmax = 3;
} else {
watercontentmax = 2;
}
watercontent = 0;
prodtime = 40;
if (level == 1) {
honeytype = [2];
} else if (r.level == 2) {
honeytype = [1, 2];
} else {
honeytype = [1, 2, 3];
}
timenow = 0;
pspeed = 16;
pressed = 0;
hold = 0;
screenwid = 700;
screenhei = 450;
halfscreenwid = screenwid / 2;
finish = 0;
honeynames = ["", "Hollihocks", "Susans", "Lupines"];
custnames = ["Ms. Julia", "Mrs. Garrett", "Mr. Smith", "Mr. Joseph", "Mrs. Summers", "Mr. Logan", "Mrs. Pride", "Ms. Abigail", "Ms. Emma", "Mr. Owen"];
ob = [];
fences = [];
nests = [];
od = 1000;
jd = 2000;
bd = 3000;
nd = 100;
nbd = 8000;
md = 9000;
onumber = 1;
order = [];
totalslot = Math.min(3, level);
ox = 40;
oy = 17;
ofulfilled = 0;
ospacing = 62;
odelay = 40;
d = 9999999 /* 0x98967F */;
initmap();
updatesum();
resetrandom();
p._x = m.roundtable._x;
midwid = maxwid / 2;
midx = screenwid / 2;
xmin = 50;
xmax = maxwid - 50;
if (!udamusik) {
udamusik = 1;
stopAllSounds();
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zpump", "zcash", "zpack", "zjar", "zgrow", "zbees", "zseed", "zstep", "zbonus", "ztink"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new Sound(sfx);
r[allsfx[i]].attachSound(allsfx[i]);
i++;
}
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new Sound(sfx2);
r.zloop.attachSound("zloop");
r.zloop.start(0, 99999);
r.zloop.setVolume(0);
r.zloop.fade("in", 1);
r.createEmptyMovieClip("sfx3", 60003);
r.zwater = new Sound(sfx3);
r.zwater.attachSound("zwater");
}
r.stat.attachMovie("levelinfo", "levelinfo", r.nbd + 100, {_x:345, _y:160});
var pad = 50;
oldx = r._xmouse;
detectspace = 100;
scrolldiv = 4;
onEnterFrame = function () {
if (r.maxwid > r.screenwid) {
if (r._xmouse != oldx) {
dx = Math.abs(r._xmouse - oldx);
newx = -(((Math.max(pad, Math.min(r.screenwid - pad, r._xmouse)) - pad) / (r.screenwid - (2 * pad))) * (r.maxwid - screenwid));
if (dx > 350) {
r.scrolldiv = 6;
} else if (dx < 80) {
r.scrolldiv = 25;
} else if (r.scrolldiv < 16) {
r.scrolldiv = Math.min(1.1 * r.scrolldiv, 16);
}
}
b3._x = (gtop._x = (m._x = Math.round(m._x + ((newx - m._x) / r.scrolldiv))));
b2._x = 400 + (0.5 * m._x);
b1._x = 400 + (0.25 * m._x);
}
d--;
if (!d) {
d = odelay;
if (r.order.length < r.totalslot) {
makeorder();
}
}
};
stop();
Instance of Symbol 510 MovieClip in Frame 40
onClipEvent (load) {
letterkeys = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
numberkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
numpadkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "Enter", "-", ".", "/"];
functionkeys = ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"];
otherkeys = ["Space", "Page Up", "Page Down", "End", "Home", "Left", "Up", "Right", "Down"];
keypressed = "";
}
onClipEvent (keyDown) {
k = Key.getCode();
if ((k >= 65) and (k <= 90)) {
keyp = letterkeys[k - 65];
}
if ((k >= 48) and (k <= 57)) {
keyp = numberkeys[k - 48];
}
if ((k >= 96) and (k <= 111)) {
keyp = numpadkeys[k - 96];
}
if ((k >= 112) and (k <= 123)) {
keyp = functionkeys[k - 112];
}
if ((k >= 32) and (k <= 40)) {
keyp = otherkeys[k - 32];
}
if (k == 8) {
keyp = "BackSpace";
}
if (k == 9) {
keyp = "Tab";
}
if (k == 12) {
keyp = "Clear";
}
if (k == 13) {
keyp = "Enter";
}
if (k == 16) {
keyp = "Shift";
}
if (k == 17) {
keyp = "Control";
}
if (k == 18) {
keyp = "Alt";
}
if (k == 20) {
keyp = "Caps Lock";
}
if (k == 27) {
keyp = "Esc";
}
if (k == 45) {
keyp = "Insert";
}
if (k == 46) {
keyp = "Delete";
}
if (k == 47) {
keyp = "help";
}
if (k == 144) {
keyp = "Num Lock";
}
if (k == 186) {
keyp = ";:";
}
if (k == 187) {
keyp = "=+";
}
if (k == 189) {
keyp = "-_";
}
if (k == 191) {
keyp = "/?";
}
if (k == 192) {
keyp = "'@";
}
if (k == 219) {
keyp = "[{";
}
if (k == 220) {
keyp = "\\|";
}
if (k == 221) {
keyp = "]}";
}
keypressed = keypressed + keyp;
if ((substring(keypressed, keypressed.length - 3, 4)) == "NMNM") {
r.ang = r.goal + 50;
r.gotoAndPlay("end");
keypressed = "";
}
}
Frame 41
delete onEnterFrame;
fadescreen();
if (r.ang >= r.goal) {
r.totalang = r.totalang + r.ang;
}
stop();
Frame 47
delete onEnterFrame;
fadescreen();
r.shopitems = [];
if (r.totalbeeskep.length < r.maxbeeskep) {
r.shopitems.push(1);
} else if (r.totalbeeskep.contain(1)) {
r.shopitems.push(2);
}
if (r.totalfence < r.maxfence) {
r.shopitems.push(3);
}
if (r.watercansize != 2) {
r.shopitems.push(4);
}
stop();
Frame 54
delete onEnterFrame;
fadescreen();
stop();
Symbol 7 MovieClip [leaf1b] Frame 1
if (random(100) > 50) {
gotoAndPlay ("ani2");
}
Symbol 7 MovieClip [leaf1b] Frame 18
stop();
Symbol 7 MovieClip [leaf1b] Frame 36
stop();
Symbol 10 MovieClip Frame 1
d = 25;
skadiv = (len - a._xscale) / d;
n = 100;
leafska = 70;
uda = 0;
ld = 1;
onEnterFrame = function () {
a._xscale = a._xscale + skadiv;
ld--;
if (!ld) {
ld = 4;
this.attachMovie("leaf3b", "leaf" + n, n, {_x:a._xscale, _xscale:leafska, _yscale:leafska, _rotation:random(30)});
n++;
this.attachMovie("leaf3b", "leaf" + n, n, {_x:a._xscale, _xscale:leafska, _yscale:-leafska, _rotation:-random(30)});
n++;
}
if (d > 1) {
leafska = Math.min(100, 1.2 * leafska);
} else {
leafska = Math.max(30, 0.96 * leafska);
}
d--;
if (d < -10) {
this.attachMovie("leaf3b", "leaf" + n, n, {_x:a._xscale, _xscale:60, _yscale:100, _rotation:-90});
n++;
delete onEnterFrame;
}
};
stop();
Symbol 11 MovieClip [flower3] Frame 1
s3._rotation = 270;
s3.len = 25 + random(5);
s3.id = id;
Symbol 14 MovieClip Frame 1
d = 20 + random(15);
skadiv = (len - a._xscale) / d;
onEnterFrame = function () {
d--;
if (d > 0) {
a._xscale = a._xscale + skadiv;
}
if (!d) {
a._xscale = ska;
this.attachMovie("flower3", "flower", 10, {_x:a._xscale, _rotation:90});
delete onEnterFrame;
}
};
stop();
Symbol 15 MovieClip [branch3f] Frame 1
s3._rotation = 270 + ro;
s3.len = len;
s3.id = id;
Symbol 18 MovieClip [stem3] Frame 1
d = 15 + random(40);
if (random(100) > 50) {
a._yscale = -a._yscale;
}
skadiv = (len - a._xscale) / d;
onEnterFrame = function () {
d--;
if (d > 0) {
a._xscale = a._xscale + skadiv;
}
if (!d) {
a._xscale = ska;
this.attachMovie("leaf3", "leaf", 10, {_x:a._xscale});
delete onEnterFrame;
}
};
stop();
Symbol 19 MovieClip [branch3] Frame 1
s3._rotation = 270 + ro;
s3.len = len;
s3.id = id;
Symbol 22 MovieClip Frame 1
d = 40 + random(30);
skadiv = (len - a._xscale) / d;
n = 100;
leafska = 100;
biglimit = 40;
tinylimit = 30;
ld = 1;
firstleaves = 3;
onEnterFrame = function () {
d--;
if (d > 0) {
a._xscale = a._xscale + skadiv;
}
if (!d) {
a._xscale = ska;
}
if (d < -20) {
delete onEnterFrame;
}
ld--;
if (!ld) {
if (a._xscale < biglimit) {
ld = 5 + random(3);
} else if ((len - a._xscale) < tinylimit) {
ld = 1 + random(2);
} else {
ld = 2 + random(3);
}
if (((firstleaves < 0) && (random(100) > 84)) && ((len - a._xscale) > 4)) {
this.attachMovie("flower" + id, "flower" + n, 1000 + n, {_x:a._xscale});
n++;
} else {
firstleaves--;
leafska = Math.max(10, leafska * 0.92);
if (a._xscale < biglimit) {
ro = 20 + random(40);
if (random(100) > 50) {
ro = -ro;
}
this.attachMovie("leaf1b", "leaf" + n, n, {_x:a._xscale, _xscale:leafska, _yscale:leafska - random(30), _rotation:ro});
} else {
ro = 10 + random(50);
if (random(100) > 50) {
ro = -ro;
}
this.attachMovie("leaf1", "leaf" + n, n, {_x:a._xscale, _xscale:leafska, _yscale:leafska, _rotation:ro});
if ((len - a._xscale) < tinylimit) {
this.attachMovie("leaf1", "leaf" + n, n, {_x:(a._xscale - 2) - random(4), _xscale:leafska, _yscale:leafska, _rotation:-ro});
}
}
n++;
}
}
};
stop();
Symbol 23 MovieClip [branch1] Frame 1
ran = random(10);
if (random(100) > 50) {
ran = -ran;
}
s1._rotation = 270 + ran;
s1.len = 100 + random(50);
s1.id = id;
Symbol 26 MovieClip Frame 1
d = 4 + random(15);
skadiv = (len - a._xscale) / d;
if (step > 2) {
ran = 20;
} else {
ran = 50;
}
onEnterFrame = function () {
a._xscale = a._xscale + skadiv;
d--;
if ((d == 4) and bottomleaves) {
this.attachMovie("leaf" + id, "leaf", 71, {_x:random(7), _rotation:random(50), _xscale:50 + random(70), _yscale:50 + random(80)});
this.attachMovie("leaf" + id, "leaf", 72, {_x:5 + random(10), _rotation:-random(90), _xscale:50 + random(70), _yscale:50 + random(80)});
this.attachMovie("leaf" + id, "leaf", 72, {_x:10 + random(12), _rotation:-random(50), _xscale:50 + random(70), _yscale:50 + random(80)});
}
if (!d) {
a._xscale = ska;
delete onEnterFrame;
if (random(100) > ran) {
xx = len / (2 + random(2));
leafro = random(50);
ang = _rotation;
if (ang < 0) {
ang = ang + 360;
}
if (ang < 270) {
leafro = -leafro;
}
this.attachMovie("leaf" + id, "leaf", 80, {_x:xx, _rotation:leafro, _xscale:50 + random(70), _yscale:50 + random(80)});
}
if (step < 1) {
this.attachMovie("flower" + id, "flower", 90, {_x:len});
}
if (step) {
this.attachMovie("branch2", "branch", 50, {_x:len, _rotation:-_rotation, step:step - 1, id:id});
}
}
};
Symbol 27 MovieClip [branch2] Frame 1
s1._rotation = s1._rotation + (275 + random(35));
s2._rotation = s2._rotation + (265 - random(35));
if (step > 1) {
s1.len = 5 + random(20);
s2.len = 5 + random(20);
} else {
s1.len = 5 + random(10);
s2.len = 5 + random(10);
}
if (separate) {
s1._x = 4;
s2._x = -4;
s1.bottomleaves = (s2.bottomleaves = 1);
}
s1.step = (s2.step = step);
s1.id = (s2.id = id);
Symbol 30 MovieClip [leaf3b] Frame 13
stop();
Symbol 33 MovieClip [leaf3] Frame 1
_rotation = random(360);
_xscale = Math.max(70, (80 + random(50)) - _parent.len);
_yscale = Math.max(60, (80 + random(50)) - _parent.len);
Symbol 33 MovieClip [leaf3] Frame 14
stop();
Symbol 36 MovieClip [leaf1] Frame 11
stop();
Symbol 39 MovieClip [leaf2] Frame 9
stop();
Symbol 42 MovieClip Frame 1
d = random(30);
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
}
};
play();
Symbol 42 MovieClip Frame 15
stop();
Symbol 44 MovieClip [flower1] Frame 1
_rotation = random(360);
_xscale = (60 + random(40));
_yscale = (60 + random(40));
Symbol 49 MovieClip Frame 1
d = random(30);
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
}
};
play();
Symbol 49 MovieClip Frame 12
stop();
Symbol 50 MovieClip Frame 7
stop();
Symbol 51 MovieClip [flower2] Frame 1
_rotation = random(360);
_xscale = (60 + random(40));
_yscale = (60 + random(40));
Symbol 52 MovieClip [flowers3grow] Frame 1
id = 3;
this.createEmptyMovieClip("place", 100);
flowertotal = 7;
flowerspacing = 12;
n = 100;
leaftotal = 20;
leafspacing = 3;
rospan = 70;
rostart = (-rospan) / 2;
rostep = rospan / leaftotal;
var i = 0;
while (i < leaftotal) {
ro = rostart + (i * rostep);
if (i < (leaftotal / 2)) {
lenplus = i;
} else {
lenplus = leaftotal - i;
}
var len = ((35 + random(20)) + (2.5 * lenplus));
place.attachMovie("branch" + id, "branch" + n, n, {_x:((((-0.5 * (leaftotal - 1)) * leafspacing) + (i * leafspacing)) + 3) - random(6), id:id, ro:ro, len:len});
n++;
i++;
}
leaftotal = 50;
leafspacing = 2;
var i = 0;
while (i < leaftotal) {
var ro = (-10 + random(20));
var len = (7 + random(50));
place.attachMovie("branch" + id, "branch" + n, n, {_x:(((-2 + ((-0.5 * (leaftotal - 1)) * leafspacing)) + (i * leafspacing)) + 3) - random(6), id:id, ro:ro, len:len});
n++;
i++;
}
rospan = 32;
rostart = (-rospan) / 2;
rostep = rospan / flowertotal;
var i = 0;
while (i < flowertotal) {
ro = ((rostart + (i * rostep)) + 4) - random(8);
var len = (50 + random(30));
place.attachMovie("branch3f", "branch" + n, n, {_x:((((-0.5 * (flowertotal - 1)) * flowerspacing) + (i * flowerspacing)) + 1) - random(2), id:id, ro:ro, len:len});
n++;
i++;
}
waitandsnap(100);
Symbol 53 MovieClip [flowers1grow] Frame 1
id = 1;
total = 10;
spacing = 10;
this.createEmptyMovieClip("place", 100);
var i = 0;
while (i < total) {
place.attachMovie("branch" + id, "branch" + i, i, {_x:((((-0.5 * (total - 1)) * spacing) + (i * spacing)) + 3) - random(6), step:1 + random(2), id:id});
i++;
}
waitandsnap(100);
Symbol 54 MovieClip [flowers2grow] Frame 1
id = 2;
total = 3;
spacing = 30;
r.zgrow.start();
this.createEmptyMovieClip("place", 100);
step = [3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4];
var i = 0;
while (i < total) {
place.attachMovie("branch2", "branch" + i, i, {_x:((-0.5 * (total - 1)) * spacing) + (i * spacing), step:step.pop(), separate:1, id:id});
i++;
}
waitandsnap(100);
Symbol 55 MovieClip [fadeout] Frame 1
vs = 5;
vol = r.zloop.getVolume();
if (vol > 0) {
onEnterFrame = function () {
vol = vol - vs;
if (vs > 0.5) {
vs = 0.95 * vs;
}
r.zloop.setVolume(vol);
if (vol <= 0) {
r.zloop.stop();
delete onEnterFrame;
}
};
}
Symbol 60 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 61 MovieClip [flag] Frame 25
d = r.seedtimer;
out = 0;
onEnterFrame = function () {
if (out) {
_visible = true;
delete onEnterFrame;
play();
} else {
d--;
if (d < 30) {
_visible = (!_visible);
}
if (d < 0) {
if (r.act != "watering") {
_parent._parent.plant = 0;
this.removeMovieClip();
}
}
}
};
stop();
Symbol 61 MovieClip [flag] Frame 34
this.removeMovieClip();
Symbol 80 MovieClip Frame 1
_alpha = 0;
onEnterFrame = function () {
_alpha = Math.min(100, _alpha + 10);
n = _parent.persen;
if (n <= 50) {
ro1 = (n / 50) * 180;
ring.r1._rotation = ro1;
ring.r2._rotation = 180;
} else {
ring.r1._rotation = 180;
ro2 = ((n - 50) / 50) * 180;
ring.r2._rotation = 180 + ro2;
}
if (n >= 100) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this._visible = false;
delete onEnterFrame;
}
};
}
};
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 100 MovieClip [bee] Frame 1
range = 30;
reset = 0;
d = 8;
doorx = home._x + home.door._x;
doory = home._y + home.door._y;
_x = doorx;
_y = doory;
beestupid();
if (random(100) > 20) {
gotoAndPlay ("hide");
} else {
gotoAndPlay ("fly");
}
stop();
Symbol 100 MovieClip [bee] Frame 5
ceknext = 30 + random(30);
yrange = 100;
targ = home;
gothoney = 0;
makehoney = 0;
stupid = 1;
onEnterFrame = function () {
thinkno++;
if (thinkno > think.length) {
thinkno = 0;
}
if (!think[thinkno]) {
if (d > 0) {
d--;
ang = ang + (3 + random(range));
if (ang > 360) {
ang = ang - 360;
}
} else {
d++;
ang = ang - (3 + random(range));
if (ang < 0) {
ang = ang + 360;
}
}
if (!d) {
d = 20 + random(40);
if (random(100) > 50) {
d = -d;
}
}
rang = rad(ang);
xs = Math.cos(rang) * speed;
ys = Math.sin(rang) * speed;
_x = (_x + xs);
_y = (_y + ys);
} else {
dy = ((targ._y - yrange) + random(40)) - _y;
dx = ((targ._x - 80) + random(160)) - _x;
if (gothoney == 1) {
if (((targ._x - _x) > 10) && (Math.abs(dy) < 80)) {
if (!stupid) {
beestupid();
}
ceknext = Math.min(ceknext, 0);
}
} else if (gothoney == 3) {
if ((Math.abs(doorx - _x) < 10) && (Math.abs(doory - _y) < 10)) {
gotoAndPlay ("make");
}
} else if (!stupid) {
if ((Math.abs(dx) < 50) && (Math.abs(dy) < 50)) {
beestupid();
}
}
angt = Math.atan2(dy, dx);
axs = Math.cos(angt) * speed;
ays = Math.sin(angt) * speed;
ang = deg(angt);
_x = (_x + axs);
_y = (_y + ays);
}
ceknext--;
if (ceknext <= 0) {
if (gothoney) {
gothoney = 2;
} else if (!home.targetflower) {
ceknext = 10 + random(20);
} else {
targ = home.targetflower;
ceknext = 200;
gothoney = 1;
if ((targ.plant == 11) || (targ.plant == 21)) {
yrange = 120;
} else if ((targ.plant == 12) || (targ.plant == 22)) {
yrange = 90;
} else {
yrange = 100;
}
beesmart();
}
}
if (reset) {
delete onEnterFrame;
gotoAndPlay ("reset");
}
if (goback) {
goback = 0;
gothoney = 3;
targ = home;
yrange = 70;
ceknext = 999999999 /* 0x3B9AC9FF */;
beesmart();
}
};
stop();
Symbol 100 MovieClip [bee] Frame 11
_x = doorx;
_y = doory;
d = 1;
onEnterFrame = function () {
d--;
if (!d) {
if ((!home.targetflower) and (random(100) > 5)) {
d = 10 + random(20);
} else {
beestupid();
delete onEnterFrame;
gotoAndPlay ("fly");
}
}
};
stop();
Symbol 100 MovieClip [bee] Frame 18
makehoney = 1;
beestupid();
_x = doorx;
_y = doory;
onEnterFrame = function () {
if (reset) {
delete onEnterFrame;
gotoAndPlay ("reset");
}
};
stop();
Symbol 100 MovieClip [bee] Frame 25
reset = (gothoney = 0);
beestupid();
if (makehoney) {
makehoney = 0;
gotoAndPlay ("hide");
} else {
gotoAndPlay ("fly");
}
Symbol 103 MovieClip Frame 1
initzone();
Symbol 110 MovieClip [jar1] Frame 1
a.appear();
initob2(51);
Symbol 113 MovieClip [jar2] Frame 1
a.appear();
initob2(52);
Symbol 116 MovieClip [jar3] Frame 1
a.appear();
initob2(53);
Symbol 120 MovieClip Frame 1
initzone();
Symbol 139 MovieClip Frame 1
gotoAndStop(no);
Symbol 142 Button
on (release) {
this.cekfulfill();
}
Symbol 146 MovieClip [notesmall] Frame 1
a.txt.no = no;
a.txt.from = from;
a.txt.tipe = tipe;
a.txt.quan = quan;
initnote();
Symbol 149 MovieClip [notebig] Frame 1
a.txt.no = no;
a.txt.from = from;
a.txt.tipe = tipe;
a.txt.quan = quan;
a.appear();
onEnterFrame = function () {
if (r._ymouse > 75) {
onEnterFrame = function () {
_alpha = (_alpha - 20);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
}
};
stop();
Symbol 157 MovieClip [emptycan] Frame 1
a.appear(15);
d = 35;
onEnterFrame = function () {
d--;
if (!d) {
disappear(15);
}
};
Symbol 162 MovieClip [money] Frame 1
a.a.txt = txt;
_visible = false;
d = 7;
onEnterFrame = function () {
d--;
if (!d) {
_visible = true;
delete onEnterFrame;
play();
}
};
stop();
Symbol 162 MovieClip [money] Frame 9
d = 20;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
play();
}
};
stop();
Symbol 162 MovieClip [money] Frame 20
this.removeMovieClip();
stop();
Symbol 165 MovieClip [ready] Frame 15
stop();
Symbol 167 MovieClip [jar1double] Frame 1
a.appear();
initob2(56);
Symbol 169 MovieClip [jar2double] Frame 1
a.appear();
initob2(57);
Symbol 171 MovieClip [jar3double] Frame 1
a.appear();
initob2(58);
Symbol 178 MovieClip Frame 1
initwatermeter();
Symbol 179 MovieClip [watercan1] Frame 1
initob(30);
Symbol 185 MovieClip Frame 1
initwatermeter();
Symbol 186 MovieClip [watercan2] Frame 1
initob(30);
Symbol 199 MovieClip Frame 1
gotoAndStop(_parent.bsize);
Symbol 200 MovieClip [beeskep] Frame 1
if (!bsize) {
bsize = 2;
}
r.nests.push(this);
targetflower = (flowertype = 0);
bees = [];
if (bsize == 2) {
totalbees = 16;
} else {
totalbees = 10;
}
var i = 0;
while (i < totalbees) {
m.attachMovie("bee", "bee" + r.bd, r.bd, {home:this});
bees.push(m["bee" + r.bd]);
r.bd++;
i++;
}
gotoAndPlay ("idle");
Symbol 200 MovieClip [beeskep] Frame 3
d = (cekdelay = 10);
onEnterFrame = function () {
d--;
if (!d) {
targetflower = cekfence();
if (!targetflower) {
d = cekdelay;
} else {
if (targetflower.plant > 20) {
flowertype = targetflower.plant - 20;
} else {
flowertype = targetflower.plant - 10;
}
delete onEnterFrame;
gotoAndPlay ("drink");
}
}
};
stop();
Symbol 200 MovieClip [beeskep] Frame 9
d = (cekdelay = 5);
udasfx = 0;
udagot = 0;
onEnterFrame = function () {
d--;
if (!d) {
d = cekdelay;
if (!udasfx) {
udasfx = 1;
r.zbees.start();
}
if (!udagot) {
bsum = 0;
var _local1 = 0;
while (_local1 < bees.length) {
if (bees[_local1].gothoney == 2) {
bsum++;
}
_local1++;
}
if (bsum > 3) {
removeflower(targetflower);
targetflower = 0;
udagot = 1;
_local1 = 0;
while (_local1 < bees.length) {
bees[_local1].goback = 1;
_local1++;
}
}
} else {
var _local1 = 0;
while (_local1 < bees.length) {
if (bees[_local1].makehoney) {
delete onEnterFrame;
gotoAndPlay ("makejar");
break;
}
_local1++;
}
}
}
};
stop();
Symbol 200 MovieClip [beeskep] Frame 16
if (bsize == 2) {
ring._y = -63;
ring._xscale = (ring._yscale = 100);
} else {
ring._y = -57;
ring._xscale = (ring._yscale = 85);
}
d = r.prodtime;
persen = 0;
onEnterFrame = function () {
d--;
persen = Math.max(1, ((r.prodtime - d) / r.prodtime) * 100);
if (!d) {
if (bsize == 2) {
it = ("jar" + flowertype) + "double";
} else {
it = "jar" + flowertype;
}
m.attachMovie(it, "jar" + r.jd, r.jd, {_x:_x + 26, _y:_y - 41});
jar = m["jar" + r.jd];
r.jd++;
r.zjar.start();
onEnterFrame = function () {
if (!jar._visible) {
jar = undefined;
flowertype = 0;
var _local1 = 0;
while (_local1 < bees.length) {
bees[_local1].reset = 1;
_local1++;
}
delete onEnterFrame;
gotoAndPlay ("idle");
}
};
}
};
stop();
Symbol 209 MovieClip [fence3] Frame 1
r.fences.push(this);
plant = 0;
initob(43);
Symbol 223 MovieClip [pouch1] Frame 1
initob(1);
Symbol 227 MovieClip [pouch2] Frame 1
initob(2);
Symbol 231 MovieClip [pouch3] Frame 1
initob(3);
Symbol 239 MovieClip [basket1] Frame 1
initob2(61);
Symbol 242 MovieClip [basket2] Frame 1
initob2(62);
Symbol 245 MovieClip [basket3] Frame 1
initob2(63);
Symbol 246 MovieClip [fence2] Frame 1
r.fences.push(this);
plant = 0;
initob(42);
Symbol 247 MovieClip [fence1] Frame 1
r.fences.push(this);
plant = 0;
initob(41);
Symbol 254 MovieClip [nomoney] Frame 1
onum = r.stat.notebig.onumber;
a.appear(25);
d = 35;
onEnterFrame = function () {
d--;
if ((!d) or (r.stat.notebig.onumber != onum)) {
disappear(25);
}
};
Symbol 259 MovieClip Frame 1
a = "LEVEL " + r.level;
b = "GOAL : $" + toCurrency(r.goal);
Symbol 264 MovieClip [levelinfo] Frame 1
a.appear(25);
onMouseDown = function () {
delete onMouseDown;
gotoAndPlay (2);
};
stop();
Symbol 264 MovieClip [levelinfo] Frame 2
r.stat.timer.play();
if (r.tutorial && (r.level == 1)) {
r.stat.attachMovie("tutorial", "tutorial", 10001, {_x:350, _y:170});
r.stat.attachMovie("tutdots", "tutdots", 10002, {_x:-1000, _y:-1000});
}
r.d = 5;
disappear(25);
stop();
Symbol 273 MovieClip Frame 1
beginska = 120;
ska = 100;
dx = (dy = 0);
dv = 0.8;
dvstep = 0.6;
cnow = 0;
onEnterFrame = function () {
if (_parent._currentframe != cnow) {
cnow = _parent._currentframe;
_parent._xscale = (_parent._yscale = beginska);
} else {
dx = (dx * dvstep) + ((ska - _parent._xscale) * dv);
_parent._xscale = _parent._xscale + dx;
_parent._yscale = _parent._xscale;
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 1
var dot = r.stat.tutdots;
a._visible = false;
Symbol 294 MovieClip [tutorial] Frame 2
dot._x = 40;
dot._y = 38;
dot._xscale = (dot._yscale = 110);
dot._alpha = 0;
d = 25;
onEnterFrame = function () {
d--;
if (!d) {
onEnterFrame = function () {
dot._alpha = Math.min(100, dot._alpha + 10);
if (r.stat.notebig._visible) {
dot._alpha = 100;
delete onEnterFrame;
nextFrame();
}
};
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 3
dot._x = -1000;
dot._y = -1000;
onEnterFrame = function () {
if (!r.stat.notebig._visible) {
delete onEnterFrame;
nextFrame();
}
};
Symbol 294 MovieClip [tutorial] Frame 4
dot._x = m.pouch2._x;
dot._y = m.pouch2._y;
dot._xscale = (dot._yscale = 100);
onEnterFrame = function () {
if (r.hold == r.honeytype[0]) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 5
dot._x = m.fence1._x;
dot._y = m.fence1._y - 20;
dot._xscale = (dot._yscale = 100);
onEnterFrame = function () {
if (m.fence1.plant) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 6
dot._x = m.pump._x - 10;
dot._y = m.pump._y - 100;
dot._xscale = (dot._yscale = 128);
onEnterFrame = function () {
if (r.watercontent == r.watercontentmax) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 7
dot._x = m.watercan._x;
dot._y = m.watercan._y;
dot._xscale = (dot._yscale = 108);
onEnterFrame = function () {
if (r.hold == 30) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 8
dot._x = m.fence1._x;
dot._y = m.fence1._y - 20;
dot._xscale = (dot._yscale = 100);
onEnterFrame = function () {
if (m.fence1.plant > 10) {
delete onEnterFrame;
nextFrame();
} else if (!m.fence1.plant) {
delete onEnterFrame;
gotoAndPlay ("dry");
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 9
dot._x = -1000;
dot._y = -1000;
dot._xscale = (dot._yscale = 100);
onEnterFrame = function () {
if (m.beeskep1.udagot) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 10
dot._x = -1000;
dot._y = -1000;
dot._xscale = (dot._yscale = 100);
onEnterFrame = function () {
if (m.beeskep1.jar._visible) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 11
dot._x = m.beeskep1._x + 26;
dot._y = m.beeskep1._y - 52;
dot._xscale = (dot._yscale = 100);
onEnterFrame = function () {
if ((r.hold > 50) and (r.hold < 60)) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 12
dot._x = m.basket1._x;
dot._y = m.basket1._y - 20;
dot._xscale = (dot._yscale = 120);
onEnterFrame = function () {
if (r.jars[r.honeytype[0]] > 0) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 13
dot._x = 40;
dot._y = 38;
dot._xscale = (dot._yscale = 110);
onEnterFrame = function () {
if (r.ang) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 14
dot._x = -1000;
dot._y = -1000;
dot._xscale = (dot._yscale = 100);
d = 120;
onEnterFrame = function () {
d--;
if (!d) {
onEnterFrame = function () {
_y = (_y - 2);
_alpha = (_alpha - 10);
if (_alpha <= 0) {
r.tutorial = 0;
delete onEnterFrame;
this.removeMovieClip();
}
};
}
};
stop();
Symbol 294 MovieClip [tutorial] Frame 18
dot._x = m.pouch2._x;
dot._y = m.pouch2._y;
dot._xscale = (dot._yscale = 100);
onEnterFrame = function () {
if (r.hold == r.honeytype[0]) {
delete onEnterFrame;
gotoAndPlay ("plant");
}
};
stop();
Symbol 300 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 4);
};
Symbol 317 MovieClip Frame 6
gotoAndPlay (1);
Symbol 320 MovieClip Frame 8
water._alpha = 100;
Symbol 321 MovieClip Frame 1
stop();
Symbol 326 MovieClip [notenough] Frame 1
onum = r.stat.notebig.onumber;
a.appear(25);
d = 35;
onEnterFrame = function () {
d--;
if ((!d) or (r.stat.notebig.onumber != onum)) {
disappear(25);
}
};
Symbol 364 Button
on (release) {
r.asktut.gotoAndPlay(2);
}
Symbol 369 Button
on (release) {
r.gotoAndPlay("story");
}
Symbol 374 Button
on (release) {
r.gotoAndPlay("honeybees");
}
Symbol 384 Button
on (release) {
r.tutorial = 1;
r.gotoAndPlay("start");
}
Symbol 385 Button
on (release) {
r.tutorial = 0;
r.gotoAndPlay("start");
}
Symbol 390 MovieClip Frame 1
_visible = false;
stop();
Symbol 390 MovieClip Frame 2
_visible = true;
r.b1.enabled = false;
r.b2.enabled = false;
r.b3.enabled = false;
jiggle(120);
stop();
Symbol 403 Button
on (release) {
r.gotoAndPlay("menu");
}
Symbol 432 MovieClip Frame 1
gotoAndStop(r.hold);
Symbol 442 MovieClip Frame 1
gotoAndStop(r.watercansize);
Symbol 457 MovieClip Frame 7
r.zstep.start();
Symbol 457 MovieClip Frame 15
r.zstep.start();
Symbol 457 MovieClip Frame 17
gotoAndPlay (1);
Symbol 459 MovieClip Frame 1
gotoAndStop(r.watercansize);
Symbol 461 MovieClip Frame 1
gotoAndStop(r.hold);
Symbol 462 MovieClip Frame 6
r.zstep.start();
Symbol 462 MovieClip Frame 12
r.zstep.start();
Symbol 462 MovieClip Frame 13
gotoAndPlay (1);
Symbol 465 MovieClip Frame 1
gotoAndStop(r.watercansize);
Symbol 471 MovieClip Frame 16
gotoAndPlay (1);
Symbol 478 MovieClip Frame 10
stop();
Symbol 481 MovieClip Frame 10
stop();
Symbol 482 MovieClip Frame 1
gotoAndStop(r.watercansize);
Symbol 483 MovieClip Frame 8
d = r.waterdelay;
r.zwater.start();
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
play();
}
};
stop();
Symbol 483 MovieClip Frame 15
r.zwater.stop();
Symbol 483 MovieClip Frame 16
stop();
Symbol 493 MovieClip Frame 1
gotoAndStop(r.hold);
Symbol 497 MovieClip Frame 1
n = 0;
Symbol 497 MovieClip Frame 9
r.zseed.start();
Symbol 497 MovieClip Frame 35
stop();
Symbol 498 MovieClip Frame 12
stop();
Symbol 499 MovieClip Frame 12
stop();
Symbol 500 MovieClip Frame 9
stop();
Symbol 501 MovieClip Frame 13
if (!n) {
n = 0;
}
n++;
if (n < 2) {
gotoAndPlay (1);
}
Symbol 501 MovieClip Frame 17
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 1
r.act = "front";
p.gotoAndStop(r.act + r.hold);
p._xscale = 100;
r.pressed = 0;
pmc = (pid = undefined);
onMouseDown = function () {
if (r._ymouse > 75) {
cekclick();
delete onMouseDown;
gotoAndPlay ("run");
}
};
stop();
Symbol 508 MovieClip Frame 7
r.act = "run";
p.gotoAndStop(r.act + r.hold);
if (p._x < r.newpos) {
xs = r.pspeed;
p._xscale = 100;
} else {
xs = -r.pspeed;
p._xscale = -100;
}
uda = 0;
gotoAndPlay ("run2");
Symbol 508 MovieClip Frame 13
onMouseDown = function () {
if (!uda) {
if (r._ymouse > 75) {
cekclick();
delete onMouseDown;
gotoAndPlay ("run");
}
}
};
onEnterFrame = function () {
nx = p._x + xs;
if (xs > 0) {
if (nx > r.newpos) {
nx = r.newpos;
uda = 1;
}
} else if (nx < r.newpos) {
nx = r.newpos;
uda = 1;
}
p._x = nx;
if (uda) {
delete onEnterFrame;
delete onMouseDown;
if (!r.pressed) {
gotoAndPlay ("idle");
} else {
gotoAndPlay ("action");
}
}
};
stop();
Symbol 508 MovieClip Frame 20
p._xscale = 100;
if (((pid < 10) or (pid == 30)) or ((pid > 50) and (pid < 60))) {
if ((pid == 30) and (!r.watercontent)) {
popempty();
gotoAndPlay ("idle");
} else if ((r.hold != pid) and (r.hold < 50)) {
r.act = "grab";
p.gotoAndStop(r.act + pid);
r.hold = 0;
d = 10;
onEnterFrame = function () {
d--;
if (d == 5) {
r.hold = pid;
if ((r.hold > 50) and (r.hold < 60)) {
pmc.removeMovieClip();
}
}
if (!d) {
delete onEnterFrame;
gotoAndPlay ("idle");
}
};
} else {
gotoAndPlay ("idle");
}
} else if (pid == 80) {
if (r.hold < 50) {
r.hold = 0;
r.act = "pumping";
p.gotoAndStop(r.act);
m.pump.a.gotoAndStop("pumping");
d = r.pumpdelay;
filler = (r.watercontentmax - r.watercontent) / d;
r.zpump.start();
onEnterFrame = function () {
d--;
if (d < 5) {
m.pump.a.a.water._alpha = m.pump.a.a.water._alpha - 20;
}
r.watercontent = r.watercontent + filler;
if (!d) {
r.watercontent = r.watercontentmax;
m.pump.a.gotoAndStop("idle");
delete onEnterFrame;
gotoAndPlay ("idle");
}
};
} else {
gotoAndPlay ("idle");
}
} else if ((pid > 40) && (pid <= 43)) {
if ((((r.hold > 0) && (r.hold <= 3)) && (pmc.plant < 10)) && (pmc.plant != r.hold)) {
r.act = "planting";
p.gotoAndStop(r.act);
if (pmc.plant > 0) {
pmc.place.flag.out = 1;
}
pmc.plant = r.hold;
d = 34;
onEnterFrame = function () {
d--;
if (d == 15) {
pmc.place.attachMovie("flag", "flag", 100, {no:pmc.plant});
}
if (!d) {
delete onEnterFrame;
gotoAndPlay ("idle");
}
};
} else if ((r.hold == 30) && ((pmc.plant > 0) && (pmc.plant < 10))) {
if (r.watercontent) {
r.act = "watering";
fenceflowertype = pmc.plant;
p.gotoAndStop(r.act);
d = 16 + r.waterdelay;
var step = (1 / d);
onEnterFrame = function () {
d--;
if (d == 32) {
pmc.place.flag.out = 1;
}
if (d == 20) {
pmc.place.attachMovie(("flowers" + pmc.plant) + "grow", "flowers", 100, {fence:pmc});
pmc.plant = 10 + fenceflowertype;
}
if (d == 10) {
r.act = "stopwatering";
}
r.watercontent = r.watercontent - step;
if (!d) {
r.watercontent = Math.round(r.watercontent);
delete onEnterFrame;
gotoAndPlay ("idle");
}
};
} else {
popempty();
gotoAndPlay ("idle");
}
} else {
gotoAndPlay ("idle");
}
} else if ((pid > 60) && (pid <= 63)) {
var tipe = (pid - 60);
if ((r.hold > 50) and (r.hold < 55)) {
var holdtipe = (r.hold - 50);
} else if ((r.hold > 55) and (r.hold < 60)) {
var holdtipe = (r.hold - 55);
} else {
var holdtipe = undefined;
}
if (holdtipe == tipe) {
r.act = "packing";
p.gotoAndStop(r.act);
r.ztink.start();
d = 9;
onEnterFrame = function () {
d--;
if (d == 4) {
if (r.hold > 55) {
r.jars[tipe] = r.jars[tipe] + 2;
} else {
r.jars[tipe]++;
}
updatesum();
r.hold = 0;
}
if (!d) {
delete onEnterFrame;
gotoAndPlay ("idle");
}
};
} else {
gotoAndPlay ("idle");
}
}
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 2
onEnterFrame = function () {
r.timenow = Math.min(r.leveltime, r.timenow + 1);
n = (r.timenow / r.leveltime) * 100;
if (n <= 50) {
ro1 = (n / 50) * 180;
ring.r1._rotation = ro1;
ring.r2._rotation = 180;
} else {
ring.r1._rotation = 180;
ro2 = ((n - 50) / 50) * 180;
ring.r2._rotation = 180 + ro2;
}
if (r.timenow >= r.leveltime) {
r.gotoAndPlay("end");
}
if ((r.leveltime - r.timenow) < 300) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
};
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 1
gotoAndStop(Math.min(3, r.level));
Symbol 549 MovieClip Frame 1
gotoAndStop(Math.min(3, r.level));
Symbol 554 MovieClip Frame 1
if (r.ang >= r.goal) {
cl = ("LEVEL " + r.level) + " CLEARED";
txt1 = "You managed to earn $" + toCurrency(r.ang);
if (r.ofulfilled > 1) {
order = " orders";
} else {
order = " order";
}
if (r.jarsoldtotal > 1) {
jar = " jars";
} else {
jar = " jar";
}
txt2 = (((((("You completed " + r.ofulfilled) + order) + newline) + "and sold ") + r.jarsoldtotal) + jar) + " of honey.";
txt3 = "The total saving is now $" + toCurrency(r.totalang);
stop();
} else {
gotoAndStop (2);
}
Symbol 554 MovieClip Frame 2
if (!r.ang) {
txt1 = "You did not earn anything.";
txt2 = "You did not manage to sell any honey.";
txt3 = "Your total saving is still $" + toCurrency(r.totalang);
} else {
txt1 = "You only managed to earn $" + toCurrency(r.ang);
txt2 = ((("You need $" + toCurrency(r.goal)) + " to complete Level ") + r.level) + ".";
txt3 = "The total saving is $" + toCurrency(r.totalang + r.ang);
}
stop();
Symbol 555 Button
on (release) {
r.level++;
if (r.level > r.levelmax) {
r.gotoAndPlay("win");
} else {
r.gotoAndPlay("shop");
}
}
Symbol 556 Button
on (release) {
r.gotoAndPlay("start");
}
Symbol 559 MovieClip Frame 1
if (r.ang >= r.goal) {
stop();
} else {
gotoAndStop (2);
}
Symbol 560 MovieClip Frame 1
if (r.shopitems.length > 2) {
gotoAndStop (2);
} else {
stop();
}
Symbol 561 Button
on (release) {
r.gotoAndPlay("start");
}
Symbol 567 MovieClip Frame 1
onEnterFrame = function () {
cash = "YOU HAVE $" + toCurrency(r.totalang);
};
Symbol 574 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 579 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 585 MovieClip Frame 1
beginska = 120;
_yscale = beginska;
_xscale = beginska;
ska = 100;
dx = (dy = 0);
dv = 0.8;
dvstep = 0.6;
onEnterFrame = function () {
if (!_visible) {
_yscale = beginska;
_xscale = beginska;
} else {
dx = (dx * dvstep) + ((ska - _xscale) * dv);
_xscale = (_xscale + dx);
_yscale = _xscale;
}
};
gotoAndStop(_parent.no);
Symbol 588 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 591 Button
on (rollOver) {
r.shopinfo = no;
pr._visible = (info._visible = true);
}
on (rollOut) {
r.shopinfo = 0;
pr._visible = (info._visible = false);
}
on (release) {
if (r.totalang >= price) {
r.totalang = r.totalang - price;
if (no == 1) {
r.totalbeeskep.push(1);
} else if (no == 2) {
var i = 0;
while (i < r.totalbeeskep.length) {
if (r.totalbeeskep[i] == 1) {
r.totalbeeskep[i] = 2;
break;
}
i++;
}
} else if (no == 3) {
r.totalfence++;
} else if (no == 4) {
r.watercansize = 2;
}
r.zcash.start();
gotoAndStop (2);
} else {
r.place.attachMovie("nomoney", "nomoney", 10, {_x:350, _y:220});
}
}
Symbol 594 MovieClip Frame 15
stop();
Symbol 595 MovieClip Frame 1
no = r.shopitems[Number(substring(_name, 2, 1))];
price = r.prices[no];
pr.a.a = "$" + toCurrency(price);
pr._visible = (info._visible = false);
stop();
Symbol 598 MovieClip Frame 1
if (!r.shopitems.length) {
gotoAndStop ("none");
} else {
gotoAndStop(r.shopitems.length);
}
Symbol 607 MovieClip Frame 1
if (r.ofulfilled > 1) {
order = " orders";
} else {
order = " order";
}
if (r.jarsoldtotal > 1) {
jar = " jars";
} else {
jar = " jar";
}
totalbooks = Math.round(r.totalang / r.bookprice);
txt1 = (((((("You filled " + r.ofulfilled) + order) + newline) + "and sold ") + r.jarsoldtotal) + jar) + " of honey.";
txt2 = "You made a profit of $" + toCurrency(r.totalang);
txt3 = ("That was enough money for Kirsten to buy " + totalbooks) + " books for her school. Great job! Congratulations!";
stop();
Symbol 608 Button
on (release) {
r.level = 0;
r.gotoAndPlay("start");
}