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;
gotoAndPlay ("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.initbonus = function () {
var t = this;
t.no = 81;
r.all.push(t);
t.ys = 3 * leafspeed;
t.onEnterFrame = function () {
t._y = t._y + t.ys;
((t._y > 520) ? (r.all.removeValue(t)t.removeMovieClip()) : null);
};
};
MovieClip.prototype.initleaf = function () {
var t = this;
r.all.push(t);
t.no = 1 + random(r.totalcolor);
t._rotation = random(360);
((random(100) > 50) ? ((t._xscale = 90 + random(10))) : ((t._yscale = 90 + random(10))));
t.ys = r.leafspeed + (0.1 * random(7));
t.ro = t.ys;
((random(100) > 50) ? ((t.ro = -t.ro)) : null);
t.onEnterFrame = function () {
if (!r.freezing) {
t._y = t._y + t.ys;
t._rotation = t._rotation + t.ro;
((t._y > 520) ? (r.all.removeValue(t)t.removeMovieClip()) : null);
}
};
};
stop();
MovieClip.prototype.startdraw = function () {
var t = m.createEmptyMovieClip("drawing" + r.dp, r.dp);
r.dp++;
t.dot = [];
var thick = 0;
var colr = 16777215;
var _local19 = new flash.filters.GlowFilter(6737151, 100, 10, 10, 1.5, 1, false, false);
t.filters = [_local19];
t.lineStyle(thick, colr, 100);
t.dot.push({xx:p._x, yy:p._y});
t.moveTo(p._x, p._y);
t.star = [];
t.sn = 10;
t.attachMovie("star", "star" + t.sn, t.sn, {_x:p._x, _y:p._y});
t.star.push(t["star" + t.sn]);
t.sn++;
t.onEnterFrame = function () {
var _local15 = p._x - t.dot[t.dot.length - 1].xx;
var _local14 = p._y - t.dot[t.dot.length - 1].yy;
if (((_local15 * _local15) + (_local14 * _local14)) > 70) {
t.dot.push({xx:p._x, yy:p._y});
if (t.dot.length > 5) {
t.nx = t.dot[t.dot.length - 1].xx;
t.ny = t.dot[t.dot.length - 1].yy;
t.ox = t.dot[t.dot.length - 2].xx;
t.oy = t.dot[t.dot.length - 2].yy;
var _local4 = 1;
while (_local4 < (t.dot.length - 2)) {
var _local6 = t.dot[_local4];
var _local7 = t.dot[_local4 - 1];
var _local5 = line2line(t.nx, t.ny, t.ox, t.oy, _local6.xx, _local6.yy, _local7.xx, _local7.yy);
if (_local5.collide) {
r.drawing = 0;
t.dot.pop();
t.dot.push({xx:_local5.xx, yy:_local5.yy});
t.collindex = _local4;
break;
}
_local4++;
}
}
t.s1x = t.dot[t.dot.length - 1].xx;
t.s1y = t.dot[t.dot.length - 1].yy;
t.s2x = t["star" + (t.sn - 1)]._x;
t.s2y = t["star" + (t.sn - 1)]._y;
t.sdx = t.s1x - t.s2x;
t.sdy = t.s1y - t.s2y;
if (((t.sdx * t.sdx) + (t.sdy * t.sdy)) > 500) {
t.attachMovie("star", "star" + t.sn, t.sn, {_x:t.s1x, _y:t.s1y});
t.star.push(t["star" + t.sn]);
t.sn++;
}
}
if (!r.drawing) {
t.dot.splice(0, t.collindex);
t.clear();
t.lineStyle(thick, colr, 100);
t.beginFill(colr, 40);
t.drawdot();
var _local1 = [];
var _local11 = 0;
var _local8 = 0;
var _local4 = 0;
while (_local4 < r.all.length) {
if (t.hitTest(r.all[_local4]._x, r.all[_local4]._y, 1)) {
if (r.all[_local4].no > 80) {
_local1.push(r.all[_local4]);
_local11 = {xx:r.all[_local4]._x, yy:r.all[_local4]._y};
} else {
((!_local8) ? (_local8 = r.all[_local4].no) : null);
if (_local8 != r.all[_local4].no) {
_local1 = [];
break;
}
_local1.push(r.all[_local4]);
}
}
_local4++;
}
if (_local1.length > 0) {
var _local10 = (aymin = 700);
var _local9 = (aymax = 0);
_local4 = 0;
while (_local4 < _local1.length) {
var _local3 = _local1[_local4]._x;
var _local2 = _local1[_local4]._y;
((_local3 < _local10) ? (_local10 = _local3) : null);
((_local2 < aymin) ? ((aymin = _local2)) : null);
((_local3 > _local9) ? (_local9 = _local3) : null);
((_local2 > aymax) ? ((aymax = _local2)) : null);
r.place.attachMovie("flake", "flake" + r.od, r.od, {_x:_local1[_local4]._x, _y:_local1[_local4]._y});
r.od++;
_local1[_local4]._y = 8000;
_local4++;
}
r.zmagic.start();
r.ang = r.ang + r.scorelist[_local1.length];
if (_local1.length > 1) {
var _local17 = Math.min(r.screenwid - 50, Math.max(50, (_local10 + _local9) / 2));
var _local16 = Math.max(60, (aymin + aymax) / 2);
popskor(_local17, _local16, r.scorelist[_local1.length], _local1.length);
if (r.freezing) {
r.timer = Math.min(r.timemax, r.timer + (2.5 * _local1.length));
} else {
r.timer = Math.min(r.timemax, r.timer + (1.4 * _local1.length));
}
}
if (_local11) {
if (((r.maxtimebonus > 0) and (r.timer < (0.6 * r.timemax))) and (random(100) > 40)) {
r.maxtimebonus--;
r.timer = Math.min(r.timemax, r.timer + r.timebonus);
stat.timebar.tint(20, 16776960);
var _local18 = 1;
} else {
r.freezing = r.freezetime;
var colr = (1 + random(r.totalcolor));
_local4 = 0;
while (_local4 < r.all.length) {
r.all[_local4].no = colr;
r.all[_local4].a.gotoAndStop(colr);
_local4++;
}
var _local18 = 2;
}
_local11.yy = Math.min(470, Math.max(_local11.yy, _local16 + 30));
stat.attachMovie("popbonus", "pop" + r.popd, r.popd, {_x:_local11.xx, _y:_local11.yy, no:_local18});
r.popd++;
r.zmagic2.start();
}
}
t.onEnterFrame = function () {
t._alpha = t._alpha - 5;
((t._alpha < 0) ? (t.removeMovieClip()) : null);
};
} else {
t.clear();
t.lineStyle(thick, colr, 100);
t.drawdot();
}
};
};
MovieClip.prototype.drawdot = function () {
var _local3 = this;
_local3.moveTo(_local3.dot[0].xx, _local3.dot[0].yy);
var _local2 = 1;
while (_local2 < _local3.dot.length) {
_local3.lineTo(_local3.dot[_local2].xx, _local3.dot[_local2 - 1].yy);
_local2++;
}
};
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) {
stat.attachMovie("popscore", "pop" + r.popd, r.popd, {_x:xx, _y:yy, sk:sk, got:got});
r.popd++;
};
MovieClip.prototype.makesquirrel = function () {
var _local1 = getrandom("squirrelpos");
((!_local1.ska) ? ((_local1.ska = 100)) : null);
r.bg.attachMovie("squirrel", "squirrel" + r.rd, r.rd, {_x:_local1.xx, _y:510, _xscale:_local1.ska, _yscale:_local1.ska, tin:_local1.tin});
r.rd++;
};
MovieClip.prototype.makebird = function () {
var _local1 = getrandom("birdpos");
var _local2 = 70 + random(70);
((random(100) > 50) ? ((xp = _local1.xx + _local2)) : ((xp = _local1.xx - _local2)));
((!_local1.ska) ? ((_local1.ska = 100)) : null);
r.bg.attachMovie("bird", "bird" + r.id, r.id, {_x:xp, _y:-5, _xscale:_local1.ska, _yscale:_local1.ska, xx:_local1.xx, yy:_local1.yy, tin:_local1.tin});
r.id++;
};
MovieClip.prototype.angbetween2lines = function (x1, y1, x2, y2, x3, y3, x4, y4) {
var _local4 = x2 - x1;
var _local3 = y2 - y1;
var _local2 = x4 - x3;
var _local1 = y4 - y3;
var _local5 = ((_local4 * _local2) + (_local3 * _local1)) / (Math.sqrt((_local4 * _local4) + (_local3 * _local3)) * Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
return((Math.acos(_local5) * 180) / Math.PI);
};
MovieClip.prototype.drawdot = function () {
var _local3 = this;
_local3.moveTo(_local3.dot[0].xx, _local3.dot[0].yy);
var _local2 = 1;
while (_local2 < _local3.dot.length) {
var _local4 = _local3.dot[_local2];
var _local5 = _local3.dot[_local2 - 1];
_local3.lineTo(_local4.xx, _local4.yy);
_local2++;
}
};
MovieClip.prototype.appear = function (speed) {
var t = this;
((!speed) ? (speed = 15) : null);
t.speed = speed;
t.yy = t._y - 25;
t._alpha = 0;
t.onEnterFrame = function () {
t._y = t._y + ((t.yy - t._y) / 3);
t._alpha = t._alpha + t.speed;
if (t._alpha >= 100) {
t._alpha = 100;
delete t.onEnterFrame;
}
};
};
MovieClip.prototype.disappear = function (speed, ys) {
var t = this;
((!speed) ? (speed = 20) : null);
if (ys == undefined) {
ys = -2;
}
t.speed = speed;
t.ys = ys;
t.onEnterFrame = function () {
t._y = t._y + t.ys;
t._alpha = t._alpha - t.speed;
((t._alpha <= 0) ? (t.removeMovieClip()) : null);
};
t.stop();
};
MovieClip.prototype.energize = function (a) {
r.energy = Math.max(0, Math.min(r.energymax, r.energy + a));
((a > 0) ? (r.zbonus.start()) : (stat.bar.tint(10)r.zhit.start()));
};
MovieClip.prototype.initpopup = function (delay, distance, golabel) {
var t = this;
((!delay) ? (delay = 30) : null);
((!distance) ? (distance = 20) : null);
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.line2line = function (p0x, p0y, p1x, p1y, p2x, p2y, p3x, p3y, ref) {
((p0y == p1y) ? (p0y = p0y + 1E-5) : null);
((p0x == p1x) ? (p0x = p0x + 1E-5) : null);
((p2y == p3y) ? (p2y = p2y + 1E-5) : null);
((p2x == p3x) ? (p2x = p2x + 1E-5) : null);
var _local2 = p1x - p0x;
var _local1 = p1y - p0y;
var _local4 = p3x - p2x;
var _local3 = p3y - p2y;
var _local12 = (((-_local1) * (p0x - p2x)) + (_local2 * (p0y - p2y))) / (((-_local4) * _local1) + (_local2 * _local3));
var _local7 = ((_local4 * (p0y - p2y)) - (_local3 * (p0x - p2x))) / (((-_local4) * _local1) + (_local2 * _local3));
if (((_local12 >= 0) and (_local12 <= 1)) and ((_local7 >= 0) and (_local7 <= 1))) {
var _local9 = {collide:true, xx:p0x + (_local7 * _local2), yy:p0y + (_local7 * _local1)};
if (ref) {
var _local11 = Math.sqrt(((-_local1) * (-_local1)) + (_local2 * _local2));
var _local15 = (-_local1) / _local11;
var _local14 = _local2 / _local11;
var _local16 = ((-_local4) * _local15) + ((-_local3) * _local14);
var _local13 = 2 * _local16;
_local9.xr = (_local13 * _local15) + _local4;
_local9.yr = (_local13 * _local14) + _local3;
}
return(_local9);
}
return(false);
};
MovieClip.prototype.jiggle = function (beginska) {
var t = this;
((!beginska) ? (beginska = 200) : null);
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);
};
};
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.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;
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].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) {
this.createEmptyMovieClip("tintmc", this.getNextHighestDepth());
var t = this.tintmc;
t.d = delay;
t.c = new Color(t._parent);
t.a = 1;
t.b = 1;
if (!colr) {
colr = 16711680 /* 0xFF0000 */;
}
t.colr = colr;
this.filters = [new flash.filters.GlowFilter(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, 80);
} else {
t.c.setTint(16777215, 100);
}
} else {
t.c.resetColor();
}
if (!t.d) {
t.c.resetColor();
t._parent.filters = null;
t.removeMovieClip();
}
};
};
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.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) {
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("fsnowcookie", "/");
_local1.data[vari] = value;
_local1.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var _local1 = SharedObject.getLocal("fsnowcookie", "/");
if (_local1.data[vari] != null) {
return(_local1.data[vari]);
}
return(false);
};
Frame 20
call("pro");
fadescreen();
stop();
Frame 27
call("pro");
fadescreen();
stop();
Frame 28
fadescreen();
stop();
Frame 33
_global.m = this.map;
_global.stat = this.stat;
_global.p = m.player;
var glo = (new flash.filters.GlowFilter(16777215, 100, 10, 10, 1, 1, false, false));
place.filters = [glo];
delete onEnterFrame;
call("pro");
fadescreen();
totalcolor = 2;
leafspeed = 0.4;
bonusdelay = 24;
nd = 16;
maxtimebonus = 7;
timer = (timemax = 100);
timebonus = timemax / 2;
timeless = 0.05;
freezing = 0;
freezetime = 120;
leafpos = [40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 340, 360, 380, 400, 420, 440, 460, 480, 500, 520, 540, 560, 580, 600, 620, 640, 660];
scorelist = [0, 100, 300, 600, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000];
flaketype = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
leafmax = 20;
birdpos = [{xx:178, yy:75, ska:70, tin:30}, {xx:558, yy:214, ska:60, tin:50}, {xx:458, yy:132, ska:60, tin:50}, {xx:478, yy:142, ska:60, tin:50}, {xx:108, yy:150}, {xx:110, yy:160}, {xx:129, yy:165}, {xx:144, yy:139}, {xx:156, yy:137}, {xx:121, yy:162}, {xx:138, yy:138}];
squirrelpos = [{xx:66, tin:20}, {xx:504, ska:70, tin:40}];
ang = (drawing = 0);
nil = 100;
ymin = 10;
ymax = 470;
xmin = 20;
xmax = 680;
screenwid = 700;
screenhei = 500;
rd = 2000;
id = 4000;
dp = 30000;
od = 70000 /* 0x011170 */;
popd = 5000;
ld = (ldelay = 25);
bd = (birddelay = 200);
sd = (squirreldelay = 400);
all = [];
dif = (diffdelay = 100);
resetrandom();
if (!r.udamusik) {
r.udamusik = 1;
stopAllSounds();
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zmagic", "zmagic2", "ztic"];
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);
}
var i = 0;
while (i < 5) {
make(1, getrandom("leafpos"), random(100));
i++;
}
onEnterFrame = function () {
ld--;
if (!ld) {
ld = Math.round(ldelay) + random(10);
if (!r.freezing) {
r.nd--;
if (!r.nd) {
r.nd = r.bonusdelay + random(10);
r.bonusdelay = r.bonusdelay + 7;
make(80, 100 + random(500), -10);
} else {
((r.all.length < r.leafmax) ? (make(1, getrandom("leafpos"), -10)) : null);
}
}
}
bd--;
((!bd) ? ((bd = birddelay + random(400))makebird()) : null);
sd--;
((!sd) ? ((sd = squirreldelay + random(400))makesquirrel()) : null);
if (!r.freezing) {
r.timer = Math.max(0, r.timer - r.timeless);
if (r.timer) {
} else {
(r.gotoAndPlay("end"));// not popped
}
} else {
r.freezing--;
}
r.dif--;
if (r.dif < 0) {
r.dif = r.diffdelay;
r.leafspeed = Math.min(3, r.leafspeed + 0.02);
r.ldelay = Math.max(8, r.ldelay - 0.2);
}
};
stop();
Frame 34
delete onEnterFrame;
fadescreen();
stop();
Symbol 1 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 7 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 15 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
got = _parent.got;
sk = _parent.sk;
Symbol 20 MovieClip [popscore] Frame 1
appear();
Symbol 20 MovieClip [popscore] Frame 32
disappear();
Symbol 24 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 25 MovieClip [popbonus] Frame 1
appear();
Symbol 25 MovieClip [popbonus] Frame 32
disappear();
Symbol 38 MovieClip Frame 3
stop();
Symbol 41 MovieClip Frame 1
wait(10 + random(30));
Symbol 41 MovieClip Frame 8
wait(10 + random(30));
Symbol 41 MovieClip Frame 18
n = 5 + random(5);
Symbol 41 MovieClip Frame 22
n--;
if (n > 0) {
gotoAndPlay ("l");
}
Symbol 41 MovieClip Frame 27
wait(10 + random(30));
Symbol 47 MovieClip Frame 6
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 59 MovieClip [bird] Frame 1
if (tin > 0) {
cl = new Color(this);
cl.setTint(16777215, tin);
}
a.gotoAndStop("fly");
a._rotation = 0;
xsm = -8;
xsadd = -0.2;
if (_x < xx) {
_xscale = (-_xscale);
xsm = -xsm;
xsadd = -xsadd;
}
onEnterFrame = function () {
_y = (_y + ((yy - _y) / 14));
_x = (_x + ((xx - _x) / 10));
if (Math.abs(_y - yy) < 3) {
_y = yy;
_x = xx;
a.gotoAndStop("stand");
d = 80 + random(100);
onEnterFrame = function () {
d--;
if (!d) {
a.gotoAndStop("fly");
ys = -2;
xs = xsadd * 7;
a._rotation = -15;
_y = (_y - 3);
onEnterFrame = function () {
_x = (_x + xs);
_y = (_y + ys);
if (xsm < 0) {
xs = Math.max(xsm, xs + xsadd);
} else {
xs = Math.min(xsm, xs + xsadd);
}
ys = Math.max(-6, ys - 0.2);
a._rotation = Math.min(15, _rotation + 2);
if (_y < 0) {
this.removeMovieClip();
}
};
}
};
}
};
stop();
Symbol 88 MovieClip [squirrel] Frame 1
if (tin > 0) {
cl = new Color(this);
cl.setTint(16777215, tin);
} else {
tin = 0;
}
ys = -5;
if (random(100) > 50) {
a._xscale = -a._xscale;
}
if (_yscale != 100) {
ys = ys * (_yscale / 100);
}
onEnterFrame = function () {
_y = (_y + ys);
if (_y < 200) {
cl.resetColor();
cl.setTint(16777215, Math.round(tin + (0.25 * (200 - _y))));
}
if (_y < -30) {
this.removeMovieClip();
}
};
stop();
Symbol 93 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 94 MovieClip [o1] Frame 1
initleaf();
Symbol 97 MovieClip Frame 19
wait(5 + random(40));
Symbol 98 MovieClip [star] Frame 1
_yscale = (70 + random(70));
_xscale = (70 + random(70));
ro = 2 + random(3);
onEnterFrame = function () {
_rotation = (_rotation + ro);
};
stop();
Symbol 132 MovieClip Frame 1
no = getrandom("flaketype");
gotoAndStop(no);
Symbol 133 MovieClip Frame 32
onEnterFrame = function () {
_rotation = (_rotation + 1);
};
stop();
Symbol 134 MovieClip [flake] Frame 1
ys = 1;
onEnterFrame = function () {
_y = (_y + ys);
((_y > 520) ? (this.removeMovieClip()) : null);
};
stop();
Symbol 140 MovieClip Frame 1
aro = 3;
bro = 7;
onEnterFrame = function () {
a._rotation = a._rotation + aro;
b._rotation = b._rotation + bro;
};
Symbol 141 MovieClip [o80] Frame 1
initbonus();
Symbol 148 Button
on (press) {
r.gotoAndPlay("ins");
}
Symbol 164 MovieClip Frame 1
if (!_parent.no) {
_parent.no = 1;
} else if (_parent.no == 1) {
_parent.no = 2;
} else {
_parent.no = 1;
}
gotoAndStop(_parent.no);
Symbol 189 MovieClip Frame 7
gotoAndPlay (1);
Symbol 192 MovieClip Frame 1
r.flaketype = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
_alpha = 0;
n = 1;
onEnterFrame = function () {
_alpha = Math.min(100, _alpha + 10);
if (_alpha == 100) {
play();
}
};
stop();
Symbol 192 MovieClip Frame 30
n--;
if (n > 0) {
gotoAndPlay ("l");
}
Symbol 192 MovieClip Frame 31
_global.p = this.a;
_global.m = this.place;
r.drawing = 1;
r.dp = 1000;
startdraw();
Symbol 192 MovieClip Frame 130
n = 2;
Symbol 192 MovieClip Frame 160
n--;
if (!n) {
onEnterFrame = function () {
_alpha = Math.max(0, _alpha - 10);
if (!_alpha) {
delete onEnterFrame;
}
};
}
if (_alpha > 0) {
gotoAndPlay ("l2");
} else {
gotoAndPlay (1);
}
Symbol 193 Button
on (press) {
r.gotoAndPlay("ins2");
}
Symbol 201 Button
on (press) {
r.gotoAndPlay("start");
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
uda = 0;
onEnterFrame = function () {
if (!r.drawing) {
if (!uda) {
uda = 1;
a._y = 0;
range = 0.6;
speed = 0.05;
starty = 0;
ys = range;
}
a._y = a._y + ys;
if (a._y > starty) {
ys = Math.max(ys - speed, -range);
} else {
ys = Math.min(ys + speed, range);
}
} else {
a._y = a._y + ((-a._y) / 2);
uda = 0;
}
};
stop();
Symbol 223 MovieClip Frame 1
r.xx = p._x;
r.yy = p._y;
xs = r.pspeed;
yland = p._y;
r.act = "stand";
onMouseDown = function () {
if (!r.drawing) {
r.drawing = 1;
startdraw();
}
};
onEnterFrame = function () {
r.xx = Math.max(r.xmin, Math.min(r._xmouse, r.xmax));
r.yy = Math.max(r.ymin, Math.min(r._ymouse, r.ymax));
p._x = p._x + ((r.xx - p._x) / 5);
p._y = p._y + ((r.yy - p._y) / 5);
dx = r.xx - p._x;
if (Math.abs(dx) > 1) {
if (dx > 0) {
r.hd = 2;
} else {
r.hd = 1;
}
}
p.gotoAndStop(r.act);
if (r.hd == 2) {
p._xscale = 100;
} else {
p._xscale = -100;
}
};
Symbol 226 MovieClip Frame 1
low = 20;
onEnterFrame = function () {
((r.timer <= low) ? (gotoAndStop (2)) : null);
};
stop();
Symbol 226 MovieClip Frame 2
d = (delay = 20);
onEnterFrame = function () {
d--;
if (!d) {
d = delay;
r.ztic.start();
_parent.b.tint(5, 16683666);
}
((r.timer > low) ? (gotoAndStop (1)) : null);
};
stop();
Symbol 227 MovieClip Frame 1
accel = 0.8;
convert = 0.5;
xs = 0;
onEnterFrame = function () {
xs = (xs * accel) + ((r.timer - b._xscale) * convert);
b._xscale = b._xscale + xs;
if (r.timer <= 10) {
(b.gotoAndStop(2));// not popped
} else {
(b.gotoAndStop(1));// not popped
}
};
stop();
Symbol 229 MovieClip Frame 1
angnow = (sk = 0);
onEnterFrame = function () {
if (angnow != r.ang) {
angnow = r.ang;
sk = formatnumber(angnow);
}
};
stop();
Symbol 251 MovieClip Frame 1
a = r.totalcarpassed;
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);
}