Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
Stage.scaleMode = "noScale";
fr.swapDepths(200010);
_global.r = this;
Frame 2
onEnterFrame = function () {
if (_framesloaded == _totalframes) {
r.music = 1;
r.udamusik = 0;
delete onEnterFrame;
gotoAndStop ("menu");
}
};
stop();
Frame 10
MovieClip.prototype.formatnumber = function (amount) {
if (isNaN(amount)) {
return("0");
}
amount = Math.round(amount * 100) / 100;
var _local6 = String(amount);
var _local3 = _local6.split(".");
var _local4 = new Array();
var _local2;
var _local1 = _local3[0].length;
while (_local1 > 0) {
_local2 = Math.max(_local1 - 3, 0);
_local4.unshift(_local3[0].slice(_local2, _local1));
_local1 = _local2;
}
_local3[0] = _local4.join(",");
return(_local3.join("."));
};
MovieClip.prototype.initleaf = function () {
var t = this;
t.ro = 0;
t.accel = 0.95;
t.convert = 0.9;
t.xs = 0;
t.a._rotation = 0;
t.onEnterFrame = function () {
((r.rain.a._alpha > 50) ? (t.leafshake()) : null);
};
};
MovieClip.prototype.leafshake = function () {
var t = this;
t.d = 10 + random(10);
t.onEnterFrame = function () {
t.d--;
if (!t.d) {
t.d = 8 + random(8);
t.a._rotation = 0.1 + (0.1 * random(24));
} else {
t.xs = (t.xs * t.accel) + ((t.ro - t.a._rotation) * t.convert);
t.a._rotation = t.a._rotation + t.xs;
}
if (r.rain.a._alpha < 90) {
t.d = 999;
((Math.abs(t.xs) < 0.1) ? (t.initleaf()) : null);
}
};
};
MovieClip.prototype.sortdepths = function () {
var _local3 = startdep;
var _local2 = [];
var _local1 = 0;
while (_local1 < r.deparray.length) {
_local2.push({mc:r.deparray[_local1], yy:r.deparray[_local1]._y});
_local1++;
}
_local2.sortOn("yy");
_local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].mc.swapDepths(_local3);
_local3++;
_local1++;
}
};
MovieClip.prototype.initplant = function () {
var t = this;
r.plants.push(t);
r.deparray.push(t);
t.lite = (t.done = (t.playerstay = (t.justfixed = (t.hit = 0))));
t.fixedsafetime = 80;
t.growran = 10;
t.soil = m2.attachMovie("soil", t._name + "soil", r.od, {_x:t._x, _y:t._y, plant:t});
r.od++;
t.px = t._x;
t.py = t._y - 5;
t.bu2.bu.onPress = function () {
((!r.walking) ? ((r.nx = t.px)(r.ny = t.py)) : null);
};
t.bu.onPress = function () {
((!r.walking) ? ((r.nx = t.px)(r.ny = t.py)) : null);
};
t.bu.enabled = false;
t.bu2.bu.enabled = false;
t.d = r.initgrowingdelay.shift() + random(20);
t.onEnterFrame = function () {
t.d--;
((!t.d) ? (t.grow()) : null);
};
};
MovieClip.prototype.grow = function () {
var t = this;
t.onEnterFrame = function () {
(t.hit ? (t.shrink()) : null);
if (!t.lite) {
t.bu.enabled = false;
t.bu2.bu.enabled = false;
t.playerstay = 0;
if (!t.done) {
if ((t.a._currentframe < t.a._totalframes) and (random(100) > t.growran)) {
t.a.nextFrame();
if (t.a._currentframe == t.a._totalframes) {
t.done = 1;
t.lite = 0;
r.zdone.start();
var _local2 = 1;
var _local1 = 0;
while (_local1 < r.plants.length) {
((!r.plants[_local1].done) ? (_local2 = 0) : null);
_local1++;
}
if (_local2) {
r.raining = 0;
r.finish = 1;
r.timebonus = r.waktu * 2;
m.attachMovie("levelend", "levelend", r.popd, {_x:360, _y:55});
r.popd++;
}
}
}
}
t.brighten.gotoAndStop(1);
} else {
t.bu.enabled = true;
t.bu2.bu.enabled = true;
if (!r.walking) {
if ((Math.abs(p._x - t.px) < 5) and (Math.abs(p._y - t.py) < 5)) {
t.playerstay++;
if (t.playerstay > 10) {
t.lite = 0;
t.justfixed = t.fixedsafetime;
t.attachMovie("fixflash", "fixflash", 99);
t.soil.a.gotoAndPlay(2);
r.zfix.start();
r.popd++;
}
}
}
t.brighten.gotoAndStop(2);
}
((t.justfixed > 0) ? (t.justfixed--) : null);
};
};
MovieClip.prototype.shrink = function () {
var t = this;
r.zchomp.start();
t.cnow = t.a._currentframe;
((t.cnow > 300) ? ((t.sdiv = 30)) : (((t.cnow > 200) ? ((t.sdiv = 20)) : ((t.sdiv = 10)))));
t.ro = 0;
t.accel = 0.8;
t.convert = 0.95;
t.xs = 0;
t.a._rotation = 5;
t.onEnterFrame = function () {
t.xs = (t.xs * t.accel) + ((t.ro - t.a._rotation) * t.convert);
t.a._rotation = t.a._rotation + t.xs;
t.cnow = Math.max(1, t.cnow - t.sdiv);
t.sdiv = Math.max(10, t.sdiv - 1);
t.a.gotoAndStop(t.cnow);
if (t.cnow == 1) {
t.d = 30;
t.onEnterFrame = function () {
t.d--;
((!t.d) ? ((t.lite = (t.done = (t.playerstay = (t.justfixed = (t.hit = (t.a._rotation = 0))))))t.grow()) : null);
};
}
};
};
MovieClip.prototype.initsoil = function () {
var t = this;
t.onEnterFrame = function () {
if (!t.plant.lite) {
(t.ring.gotoAndStop(1));// not popped
} else {
(t.ring.gotoAndStop(2));// not popped
}
};
};
MovieClip.prototype.initbunny = function () {
var t = this;
r.all.push(t);
r.deparray.push(t);
t.sh = m2.attachMovie("bunnysh", t._name + "sh", r.od, {_x:t._x, _y:t._y});
r.od++;
t.xmin = -30;
t.xmax = r.screenwid + 30;
t.xs = r.bunnyspeed + (0.1 * random(10));
((t._x > 300) ? ((t.hd = -1)(t.xs = -t.xs)(t._xscale = -t._xscale)(t.sh._xscale = -t.sh._xscale)) : null);
t.pl = [];
var _local2 = 0;
while (_local2 < r.plants.length) {
((r.plants[_local2]._y == t._y) ? (t.pl.push(r.plants[_local2])) : null);
_local2++;
}
t.onEnterFrame = function () {
t._x = t._x + t.xs;
t.sh._x = t._x;
if (!t.uda) {
if ((r._xmouse > (t._x - 25)) and (r._xmouse < (t._x + 25))) {
if ((r._ymouse > (t._y - 72)) and (r._ymouse < (t._y + 5))) {
if (t.hitTest(r._xmouse, r._ymouse)) {
t.turnback();
t.attachMovie("circ", "circ", 98);
r.ztouch.start();
r.ang = r.ang + r.nil;
}
}
}
if (!t.uda) {
if ((t._x > 140) and (t._x < 580)) {
var _local2 = 0;
var _local1 = 0;
while (_local1 < t.pl.length) {
if (t.pl[_local1].a._currentframe > 10) {
if (Math.abs(t._x - t.pl[_local1]._x) < 20) {
t.pl[_local1].hit = 1;
t.pl[_local1].tint();
_local2 = t.pl[_local1];
break;
}
}
_local1++;
}
(_local2 ? ((t.pl = [])t.turnback()) : null);
}
}
}
(((t._x < t.xmin) or (t._x > t.xmax)) ? (t.sh.removeMovieClip()r.deparray.removeValue(t)t.removeit(r.all)) : null);
};
};
MovieClip.prototype.turnback = function () {
var _local2 = this;
_local2.uda = 1;
_local2.xs = -_local2.xs;
_local2._y = _local2._y - 8;
_local2.sh._y = _local2._y;
_local2._xscale = -_local2._xscale;
_local2.sh._xscale = -_local2.sh._xscale;
};
MovieClip.prototype.make = function (id, xx, yy) {
m.attachMovie("o" + id, "o" + r.od, r.od, {_x:xx, _y:yy});
r.od++;
};
MovieClip.prototype.popskor = function (xx, yy, sk, got) {
m.attachMovie("popscore", "pop" + r.popd, r.popd, {_x:xx, _y:yy, sk:sk, got:got});
r.popd++;
};
MovieClip.prototype.popmessage = function (xx, yy, no) {
m.attachMovie("popmessage", "pop" + r.popd, r.popd, {_x:xx, _y:yy, no:no});
r.popd++;
};
MovieClip.prototype.initzonecircle = function () {
var _local2 = this;
r["zone" + _local2._name] = _local2;
_local2.radius = _local2._width / 2;
_local2._visible = false;
};
Instance of Symbol 27 MovieClip [bunnysh] in Frame 10
onClipEvent (enterFrame) {
_x = (_x + 3.5);
}
Frame 11
MovieClip.prototype.cekhitpix = function (a, b, alphatolerance) {
((alphatolerance == undefined) ? (alphatolerance = 255) : null);
var _local2 = a.getBounds(r);
var _local1 = b.getBounds(r);
if ((Stage.width == r.screenwid) and (Stage.height == r.screenhei)) {
var _local5 = (hdif = 0);
} else {
var _local5 = Math.round((Stage.width - r.screenwid) / 2);
var hdif = Math.round((Stage.height - r.screenhei) / 2);
_local2.xMin = _local2.xMin + _local5;
_local2.xMax = _local2.xMax + _local5;
_local1.xMin = _local1.xMin + _local5;
_local1.xMax = _local1.xMax + _local5;
_local2.yMin = _local2.yMin + hdif;
_local2.yMax = _local2.yMax + hdif;
_local1.yMin = _local1.yMin + hdif;
_local1.yMax = _local1.yMax + hdif;
}
if (_local2.xMax > _local1.xMin) {
if (_local1.xMax > _local2.xMin) {
if (_local2.yMax > _local1.yMin) {
if (_local1.yMax > _local2.yMin) {
var _local3 = {xMin:Math.max(_local2.xMin, _local1.xMin), xMax:Math.min(_local2.xMax, _local1.xMax), yMin:Math.max(_local2.yMin, _local1.yMin), yMax:Math.min(_local2.yMax, _local1.yMax)};
var _local7 = new flash.display.BitmapData(_local3.xMax - _local3.xMin, _local3.yMax - _local3.yMin, false);
var _local4 = a.transform.concatenatedMatrix;
_local4.tx = _local4.tx - _local3.xMin;
_local4.ty = _local4.ty - _local3.yMin;
_local7.draw(a, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, alphatolerance));
_local4 = b.transform.concatenatedMatrix;
_local4.tx = _local4.tx - _local3.xMin;
_local4.ty = _local4.ty - _local3.yMin;
_local7.draw(b, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, alphatolerance), "difference");
var _local6 = _local7.getColorBoundsRect(4294967295, 4278255615);
_local7.dispose();
if (_local6.width) {
_local6.x = _local6.x + (_local3.xMin - _local5);
_local6.y = _local6.y + (_local3.yMin - hdif);
return(_local6);
}
}
}
}
}
return(false);
};
MovieClip.prototype.globalpos = function (mc) {
var _local1 = {x:0, y:0};
mc.localToGlobal(_local1);
return({xx:_local1.x, yy:_local1.y});
};
MovieClip.prototype.localpos = function (mc, m) {
var _local2 = globalpos(mc);
var _local1 = {x:_local2.xx, y:_local2.yy};
m.globalToLocal(_local1);
return({xx:_local1.x, yy:_local1.y});
};
MovieClip.prototype.jiggle = function (beginska) {
var t = this;
if (!beginska) {
beginska = 200;
}
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.dy = (t.dy * t.dvstep) + ((t.ska - t._yscale) * t.dv);
t._xscale = t._xscale + t.dx;
t._yscale = t._yscale + (t.dy * 1.5);
};
};
MovieClip.prototype.removeit = function (arr) {
arr.removeValue(this);
this.removeMovieClip();
};
MovieClip.prototype.appear = function (speed) {
var t = this.createEmptyMovieClip("appearmc", this.getNextHighestDepth());
((!speed) ? (speed = 10) : null);
t.speed = speed;
t.yy = t._parent._y - 15;
t._parent._alpha = 0;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + ((t.yy - t._parent._y) / 3);
t._parent._alpha = t._parent._alpha + t.speed;
if (t._parent._alpha >= 100) {
t._parent._alpha = 100;
delete t.onEnterFrame;
}
};
};
MovieClip.prototype.disappear = function (speed, ys) {
var t = this.createEmptyMovieClip("disappearmc", this.getNextHighestDepth());
((!speed) ? (speed = 20) : null);
((ys == undefined) ? (ys = -2) : null);
t.speed = speed;
t.ys = ys;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + t.ys;
t._parent._alpha = t._parent._alpha - t.speed;
if (t._parent._alpha <= 0) {
delete t.onEnterFrame;
t._parent.removeMovieClip();
}
};
t.stop();
};
MovieClip.prototype.appearbright = function (speed, clr) {
var t = this.createEmptyMovieClip("appearmc", this.getNextHighestDepth());
((!speed) ? (speed = 15) : null);
t.yy = t._parent._y - 25;
t.c = new Color(t._parent);
((!clr) ? (clr = 16777215) : null);
t.clr = clr;
t.c.setTint(t.clr, t.br);
t.br = 100;
t.brless = t.br / speed;
t.blur = 12;
t.blurless = t.blur / speed;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + ((t.yy - t._parent._y) / 2);
t.blur = t.blur - t.blurless;
t._parent.filters = [new flash.filters.BlurFilter(t.blur, t.blur, 3)];
t.br = t.br - t.brless;
t.c.resetColor();
t.c.setTint(t.clr, t.br);
if (t.br <= 0) {
t._parent.filters = null;
c.resetColor();
delete t.onEnterFrame;
}
};
};
MovieClip.prototype.disappearbright = function (speed, clr) {
var t = this.createEmptyMovieClip("disappearmc", this.getNextHighestDepth());
((!speed) ? (speed = 8) : null);
t.c = new Color(t._parent);
t.br = 10;
t.bradd = 100 / speed;
((!clr) ? (clr = 16777215) : null);
t.clr = clr;
t.c.setTint(t.clr, t.br);
t.blur = 1;
t.bluradd = 12 / speed;
t.onEnterFrame = function () {
t.blur = t.blur + t.bluradd;
t._parent.filters = [new flash.filters.BlurFilter(t.blur, t.blur, 3)];
t.br = t.br + t.bradd;
t.c.resetColor();
t.c.setTint(t.clr, t.br);
if (t.br >= 100) {
t.onEnterFrame = function () {
t._parent._alpha = t._parent._alpha - 10;
if (t._parent._alpha <= 0) {
t._parent.filters = null;
c.resetColor();
delete t.onEnterFrame;
}
};
}
};
};
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.contain = function (val) {
var _local3 = this.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this[_local2] == val) {
return(true);
}
_local2++;
}
return(false);
};
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.clon = function () {
if (this instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < this.length) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clon()) : (this[_local3]));
_local3++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var _local2 = null;
trace("Warning! Object.clon 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].clon()) : (this[_local3]));
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["clon"], 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;
((d._alpha <= 0) ? (d.removeMovieClip()) : null);
};
};
MovieClip.prototype.fadescreen2 = 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._alpha = 0;
d.onEnterFrame = function () {
d._alpha = Math.min(100, d._alpha + d.speed);
};
};
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].clon();
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.tint = function (delay, colr) {
var t = this.createEmptyMovieClip("tintmc", this.getNextHighestDepth());
t.d = delay;
((!t.d) ? ((t.d = 10)) : null);
t.colr = colr;
((!t.colr) ? ((t.colr = 16737792)) : null);
t.c = new Color(t._parent);
t.a = (t.b = 1);
t._parent.filters = [new flash.filters.GlowFilter(t.colr, 1, 7, 7, 1.5, 1, false, false)];
t.onEnterFrame = function () {
t.d--;
t.a--;
if (!t.a) {
t.a = 2;
t.b = !t.b;
if (t.b) {
t.c.setTint(t.colr, 100);
} else {
t.c.setTint(16777215, 100);
}
} else {
t.c.resetColor();
}
if (!t.d) {
t.c.resetColor();
t._parent.filters = null;
t.removeMovieClip();
}
};
};
MovieClip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
MovieClip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
Number.prototype.limit = function (floor, ceil) {
return(Math.min(ceil, Math.max(floor, this)));
};
Number.prototype.isEven = function () {
return(!(this % 2));
};
Number.prototype.isMultipleOf = function (BaseNum) {
return(!(this % BaseNum));
};
Number.prototype.between = function (lo, hi) {
return((this > lo) && (this < hi));
};
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.setTint = function (col, percent) {
if (isNaN(col) || (isNaN(percent))) {
return(undefined);
}
col = ((col <= 0) ? 0 : (((col >= 16777215) ? 16777215 : (Math.round(col)))));
percent = ((percent <= 0) ? 0 : (((percent >= 100) ? 1 : (percent / 100))));
var trans = this.getTransform();
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((((col & 16711680) >> 16) - rb) * percent);
gb = gb + ((((col & 65280) >> 8) - gb) * percent);
bb = bb + (((col & 255) - 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) {
var t = this.createEmptyMovieClip("wdl", 55555, {delay:delay});
t.onEnterFrame = function () {
t.delay--;
((t.delay < 0) ? (t._parent.play()t.removeMovieClip()) : null);
};
t._parent.stop();
};
MovieClip.prototype.savecookie = function (vari, value) {
var _local1 = SharedObject.getLocal("AGspringcookie", "/");
_local1.data[vari] = value;
_local1.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var _local1 = SharedObject.getLocal("AGspringcookie", "/");
if (_local1.data[vari] != null) {
return(_local1.data[vari]);
}
return(false);
};
Frame 12
pos1 = [{xx:275, yy:325}, {xx:360, yy:357}, {xx:445, yy:325}];
pos2 = [{xx:250, yy:369}, {xx:360, yy:337}, {xx:470, yy:305}];
pos3 = [{xx:260, yy:337}, {xx:328, yy:305}, {xx:392, yy:369}, {xx:460, yy:337}];
pos4 = [{xx:250, yy:305}, {xx:323, yy:337}, {xx:397, yy:337}, {xx:470, yy:369}];
pos5 = [{xx:250, yy:305}, {xx:305, yy:369}, {xx:360, yy:337}, {xx:415, yy:369}, {xx:470, yy:305}];
pos6 = [{xx:240, yy:369}, {xx:300, yy:337}, {xx:360, yy:305}, {xx:420, yy:337}, {xx:480, yy:369}];
pos7 = [{xx:240, yy:337}, {xx:300, yy:305}, {xx:360, yy:369}, {xx:420, yy:305}, {xx:480, yy:337}];
pos8 = [{xx:220, yy:305}, {xx:276, yy:369}, {xx:332, yy:337}, {xx:388, yy:337}, {xx:444, yy:369}, {xx:500, yy:305}];
pos9 = [{xx:220, yy:337}, {xx:276, yy:369}, {xx:332, yy:305}, {xx:388, yy:337}, {xx:444, yy:369}, {xx:500, yy:337}];
pos10 = [{xx:220, yy:337}, {xx:267, yy:305}, {xx:313, yy:369}, {xx:360, yy:337}, {xx:407, yy:369}, {xx:454, yy:305}, {xx:500, yy:337}];
pos11 = [{xx:194, yy:337}, {xx:250, yy:369}, {xx:305, yy:305}, {xx:360, yy:369}, {xx:415, yy:305}, {xx:470, yy:369}, {xx:526, yy:337}];
pos12 = [{xx:161, yy:369}, {xx:211, yy:337}, {xx:260, yy:305}, {xx:310, yy:337}, {xx:360, yy:369}, {xx:410, yy:337}, {xx:460, yy:305}, {xx:509, yy:337}, {xx:559, yy:369}];
girlpos = [{xx:363, yy:304}, {xx:363, yy:304}, {xx:396, yy:324}, {xx:363, yy:304}, {xx:363, yy:304}, {xx:287, yy:304}, {xx:363, yy:333}, {xx:363, yy:304}, {xx:424, yy:304}, {xx:363, yy:304}, {xx:363, yy:333}, {xx:363, yy:304}];
Frame 20
call("pro2");
fadescreen();
stop();
Frame 28
call("pro2");
fadescreen();
stop();
Frame 34
_global.m = this.map;
_global.m2 = this.map2;
_global.stat = this.stat;
_global.p = m.player;
_global.psh = m2.playersh;
delete onEnterFrame;
call("pro");
call("pro2");
call("pos");
p.dep = p.getDepth();
if (!r.level) {
r.level = 1;
r.ang = 0;
}
girlxy = girlpos[r.level - 1];
p._x = (psh._x = girlxy.xx);
p._y = (psh._y = girlxy.yy);
levelmax = 12;
plantpos = r["pos" + r.level];
leveltime = [0, 50, 50, 50, 50, 50, 60, 60, 60, 70, 70, 80, 80];
plantlitedelay = [0, 120, 110, 100, 90, 80, 80, 70, 70, 60, 60, 60, 60];
initgrowingdelay = [40, 80, 120, 160, 200, 240, 280, 320, 360, 400, 440, 480];
pd = (plantdelay = plantlitedelay[r.level]);
levelenemydelay = [0, 30, 25, 20, 15, 10, 8, 6, 5, 4, 3, 2, 1];
ed = (enemydelay = 40);
onesec = 30;
bunnypos = [];
var i = 0;
while (i < plantpos.length) {
if (!bunnypos.contain(plantpos[i].yy)) {
bunnypos.push(plantpos[i].yy);
}
i++;
}
bunnyspeed = 3.5;
waktu = (waktumax = leveltime[r.level] * onesec);
fadescreen();
pspeed = 5;
nil = 100;
ymin = 40;
ymax = 360;
xmin = 0;
xmax = 720;
screenwid = 720;
screenhei = 400;
energy = (energymax = 100);
finish = (timebonus = (winning = (raining = 0)));
nx = p._x;
ny = p._y;
od = 2000;
popd = 50000;
all = [];
plants = [];
plantpos.randomize();
var i = 0;
while (i < plantpos.length) {
make(2, plantpos[i].xx, plantpos[i].yy);
i++;
}
deparray = [p];
startdep = 1000;
if (!r.udamusik) {
r.udamusik = 1;
stopAllSounds();
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zchomp", "ztictoc1", "ztictoc2", "zfix", "zshrink", "ztouch", "zdone"];
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.createEmptyMovieClip("sfx3", 60003);
r.zwater = new Sound(sfx3);
r.zwater.attachSound("zwater");
}
m.attachMovie("levelinfo", "levelinfo", r.popd, {_x:360, _y:80});
r.popd++;
onEnterFrame = function () {
if (!r.finish) {
r.ed--;
if (!r.ed) {
r.ed = r.enemydelay;
make(1, ((random(100) > 50) ? -25 : (r.screenwid + 25)), r.bunnypos[random(r.bunnypos.length)]);
}
r.pd--;
if (r.pd < 0) {
r.pd = r.plantdelay;
r.plants.randomize();
var _local2 = 0;
while (_local2 < r.plants.length) {
var _local1 = r.plants[_local2];
if (((((!_local1.lite) and (_local1.a._currentframe > 50)) and (!_local1.done)) and (!_local1.justfixed)) and (!((p._x == _local1.px) and (p._y == _local1.py)))) {
_local1.lite = 1;
break;
}
_local2++;
}
}
sortdepths();
}
};
stop();
Instance of Symbol 380 MovieClip in Frame 34
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)) == "NNNN") {
r.gotoAndPlay("next");
keypressed = "";
}
}
Frame 40
r.ang = r.ang + r.timebonus;
r.zwater.stop();
r.level++;
((r.level > r.levelmax) ? (gotoAndPlay ("win")) : (gotoAndPlay ("start")));
Frame 47
delete onEnterFrame;
fadescreen();
r.winning = 1;
d = 100;
onEnterFrame = function () {
d--;
((d == 20) ? (fadescreen2()) : null);
((!d) ? (delete onEnterFramegotoAndPlay ("end")) : null);
};
stop();
Frame 53
delete onEnterFrame;
r.zwater.stop();
fadescreen();
stop();
Symbol 8 MovieClip Frame 1
accel = 0.8;
convert = 0.5;
b._xscale = 1;
xs = 0;
onEnterFrame = function () {
persen = Math.floor((r.getBytesLoaded() / r.getBytesTotal()) * 100);
xs = (xs * accel) + ((persen - b._xscale) * convert);
b._xscale = b._xscale + xs;
};
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 21 MovieClip [popmessage] Frame 1
appear();
Symbol 21 MovieClip [popmessage] Frame 32
disappear();
Symbol 24 MovieClip [flowerpetal] Frame 20
stop();
Symbol 42 MovieClip Frame 16
gotoAndPlay (1);
Symbol 45 MovieClip Frame 20
gotoAndPlay (1);
Symbol 46 MovieClip [o1] Frame 1
initbunny();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 23
gotoAndStop (1);
Symbol 54 MovieClip Frame 1
stop();
Symbol 55 MovieClip [soil] Frame 1
initsoil();
Symbol 60 MovieClip Frame 1
onEnterFrame = function () {
_width = _parent.a._width;
_height = _parent.a._height;
};
stop();
Symbol 64 MovieClip Frame 1
initleaf();
Symbol 73 MovieClip Frame 81
stop();
Symbol 74 MovieClip Frame 1
n = 0;
startro = 0;
ro = 30;
dep = 100;
delay = 3;
d = 1;
ska = 20;
_yscale = ska;
_xscale = ska;
onEnterFrame = function () {
d--;
if (!d) {
d = delay;
place.attachMovie("flowerpetal", "flowerpetal" + n, dep, {_rotation:startro + (n * ro)});
dep++;
n++;
if (n >= 12) {
((startro == 0) ? ((startro = 15)(n = 0)) : (delete onEnterFrame));
}
}
ska = ska + ((100 - ska) / 25);
_yscale = ska;
_xscale = ska;
};
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 400
stop();
Symbol 76 MovieClip Frame 1
delete onEnterFrame;
clr = new Color(_parent.a);
clr.resetColor();
_parent.a.filters = null;
stop();
Symbol 76 MovieClip Frame 2
c = 0;
br = [0, 20, 30, 40, 50, 40, 30, 20, 0];
_parent.a.filters = [new flash.filters.GlowFilter(16777215, 1, 7, 7, 1.5, 1, false, false)];
onEnterFrame = function () {
clr.setBrightness(br[c]);
c++;
((c >= br.length) ? ((c = 0)) : null);
};
stop();
Symbol 77 MovieClip [o2] Frame 1
initplant();
Symbol 80 MovieClip [circani] Frame 16
this.removeMovieClip();
Symbol 81 MovieClip [circ] Frame 1
d = 3;
onEnterFrame = function () {
m.attachMovie("circani", "circani" + r.popd, r.popd, {_x:r._xmouse, _y:r._ymouse});
r.popd++;
d--;
((!d) ? (this.removeMovieClip()) : null);
};
Symbol 84 MovieClip Frame 16
stop();
Symbol 85 MovieClip [fixflash] Frame 8
c = 0;
br = 100;
clr = new Color(_parent.a);
onEnterFrame = function () {
clr.setBrightness(br);
br = br - 10;
((br <= 0) ? (delete onEnterFramethis.removeMovieClip()) : null);
};
Symbol 85 MovieClip [fixflash] Frame 15
stop();
Symbol 88 MovieClip Frame 1
txt = ("Level " + r.level) + " Completed";
Symbol 92 MovieClip Frame 1
bonus = formatnumber(r.timebonus);
appear();
Symbol 93 MovieClip Frame 35
stop();
Symbol 94 MovieClip [levelend] Frame 1
d = 80;
onEnterFrame = function () {
d--;
((!d) ? (play()) : null);
};
stop();
Symbol 94 MovieClip [levelend] Frame 2
d = 120;
onEnterFrame = function () {
d--;
((d == 20) ? (fadescreen2()) : null);
if (d) {
} else {
(r.gotoAndPlay("next"));// not popped
}
};
stop();
Symbol 96 MovieClip Frame 1
txt = "Level " + r.level;
Symbol 98 MovieClip Frame 91
stop();
Symbol 99 MovieClip [levelinfo] Frame 1
d = 90;
onEnterFrame = function () {
d--;
((!d) ? (this.removeMovieClip()) : null);
};
Symbol 117 Button
on (press) {
r.gotoAndStop("ins");
}
Symbol 126 Button
on (press) {
r.gotoAndPlay("start");
}
Symbol 138 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
((r.rain.a._alpha > 80) ? (gotoAndStop (2)) : null);
};
stop();
Symbol 138 MovieClip Frame 2
_visible = true;
_alpha = 0;
onEnterFrame = function () {
_alpha = Math.min(100, _alpha + 4);
if (_alpha >= 100) {
onEnterFrame = function () {
if (r.rain.a._alpha < 100) {
onEnterFrame = function () {
_alpha = Math.max(0, _alpha - 4);
((_alpha <= 0) ? (gotoAndStop (1)) : null);
};
}
};
}
};
stop();
Symbol 173 MovieClip Frame 15
stop();
Symbol 202 MovieClip Frame 18
gotoAndPlay (1);
Symbol 216 MovieClip Frame 19
gotoAndPlay (1);
Symbol 218 MovieClip Frame 19
gotoAndPlay (1);
Symbol 257 MovieClip Frame 19
gotoAndPlay (1);
Symbol 268 MovieClip Frame 19
gotoAndPlay (1);
Symbol 274 MovieClip Frame 19
gotoAndPlay (1);
Symbol 276 MovieClip Frame 19
gotoAndPlay (1);
Symbol 322 MovieClip Frame 18
gotoAndPlay (1);
Symbol 335 MovieClip Frame 19
gotoAndPlay (1);
Symbol 337 MovieClip Frame 19
gotoAndPlay (1);
Symbol 338 MovieClip Frame 11
stop();
Symbol 349 MovieClip Frame 8
stop();
Symbol 356 MovieClip Frame 16
gotoAndPlay (1);
Symbol 363 MovieClip Frame 6
stop();
Symbol 364 MovieClip Frame 5
r.zwater.start();
stop();
Symbol 365 MovieClip Frame 11
stop();
Symbol 371 MovieClip Frame 10
stop();
Symbol 372 MovieClip Frame 11
stop();
Symbol 374 MovieClip Frame 9
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 1
if (uda) {
(d = 70);
(p.gotoAndStop("pour"));// not popped
} else {
(uda = 1);
(d = -1);
(p.gotoAndStop("front0"));// not popped
}
p._xscale = 100;
speed = 5;
r.walking = 0;
ydiv = 0.7;
onEnterFrame = function () {
if ((r.nx != p._x) or (r.ny != p._y)) {
dx = r.nx - p._x;
dy = (1 / ydiv) * (r.ny - p._y);
if (!((dx == 0) and (dy == 0))) {
ang = Math.atan2(dy, dx);
ang2 = deg(ang);
xs = Math.cos(ang) * speed;
ys = (ydiv * Math.sin(ang)) * speed;
d = Math.ceil(Math.sqrt((dx * dx) + (dy * dy)) / speed);
delete onEnterFrame;
gotoAndPlay ("walk");
}
}
d--;
if (d) {
} else {
r.zwater.stop();
(p.gotoAndStop("pourstop"));// not popped
}
};
stop();
Symbol 378 MovieClip Frame 5
r.walking = 1;
r.zwater.stop();
((ang2 < 0) ? ((ang2 = ang2 + 360)) : null);
if (!((ang2 > 315) or (ang2 < 45))) {
} else {
(p.gotoAndStop("side1"));// not popped
}
(((ang2 > 135) and (ang2 < 225)) ? (p.gotoAndStop("side1")(p._xscale = -100)) : null);
if (!((ang2 <= 315) and (ang2 >= 225))) {
} else {
(p.gotoAndStop("back1"));// not popped
}
if (!((ang2 >= 45) and (ang2 <= 135))) {
} else {
(p.gotoAndStop("front1"));// not popped
}
onEnterFrame = function () {
d--;
p._x = p._x + xs;
p._y = p._y + ys;
psh._x = p._x;
psh._y = p._y;
if (!d) {
p._x = (psh._x = r.nx);
p._y = (psh._y = r.ny);
delete onEnterFrame;
gotoAndPlay (1);
}
};
stop();
Symbol 381 MovieClip Frame 1
low = 250;
onEnterFrame = function () {
(((r.waktu <= low) and (!r.finish)) ? (gotoAndStop (2)) : null);
};
stop();
Symbol 381 MovieClip Frame 2
d = (delay = 20);
flip = 1;
onEnterFrame = function () {
d--;
if (!d) {
d = delay;
flip = !flip;
(flip ? (r.ztictoc1.start()) : (r.ztictoc2.start()));
_parent.b.tint(5, 16683666);
}
(((r.waktu > low) or r.finish) ? (gotoAndStop (1)) : null);
};
stop();
Symbol 387 MovieClip Frame 1
accel = 0.8;
convert = 0.5;
xs = 0;
onEnterFrame = function () {
if (!r.finish) {
r.waktu = Math.max(0, r.waktu - 1);
persen = (r.waktu / r.waktumax) * 100;
xs = (xs * accel) + ((persen - b._xscale) * convert);
b._xscale = Math.max(0, Math.min(100, b._xscale + xs));
if (r.waktu) {
} else {
(r.gotoAndPlay("end"));// not popped
}
}
};
stop();
Symbol 391 Button
on (release) {
r.music = 0;
r.zloop.setVolume(0);
r.zhit.setVolume(0);
gotoAndStop (2);
}
Symbol 395 Button
on (release) {
r.music = 1;
r.zloop.setVolume(100);
r.zhit.setVolume(100);
gotoAndStop (1);
}
Symbol 396 MovieClip Frame 1
if (r.music) {
stop();
} else {
gotoAndStop (2);
}
Symbol 398 MovieClip Frame 1
a = (anow = 0);
onEnterFrame = function () {
if (anow != r.ang) {
anow = r.ang;
a = formatnumber(anow);
}
};
Symbol 411 Button
on (press) {
r.level = 0;
r.gotoAndPlay("start");
}
Symbol 417 MovieClip Frame 1
(r.winning ? (gotoAndStop (2)) : (stop()));
Symbol 428 MovieClip Frame 1
ang = r.ang;
oldang = loadcookie("ang");
ang1 = formatnumber(ang);
oldang1 = formatnumber(oldang);
if (!oldang) {
savecookie("ang", r.ang);
stop();
} else if (r.ang > oldang) {
savecookie("ang", r.ang);
gotoAndStop (3);
} else {
gotoAndStop (2);
}