Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
duplicateMovieClip ("fr", "frame", 100010);
_global.r = this;
Frame 2
var loadAmount = _totalframes;
onEnterFrame = function () {
if (_framesloaded == loadAmount) {
delete onEnterFrame;
gotoAndPlay (5);
} else {
persen = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
}
};
stop();
Frame 9
reply = 1;
Frame 11
if (reply ne 1) {
prevFrame();
play();
} else {
gotoAndPlay (22);
}
Frame 16
MovieClip.prototype.getclosepos = function (x, space) {
var _local3 = x;
var _local1 = 40 + random(Math.floor(space - 40));
if (random(100) > 50) {
var _local2 = _local3 + _local1;
if (_local2 > 700) {
_local2 = _local3 - _local1;
}
} else {
var _local2 = _local3 - _local1;
if (_local2 < 50) {
_local2 = _local3 + _local1;
}
}
return(_local2);
};
MovieClip.prototype.make = function (x, y, tipe) {
var _local1 = tipe;
if (_local1 == undefined) {
_local1 = "bell";
}
m.attachMovie(_local1, "bell" + r.ed, r.ed, {_x:x, _y:y});
r.lastbell = m["bell" + r.ed];
r.skala = Math.max(r.minskala, r.skala - 0.5);
r.ed++;
};
MovieClip.prototype.initbird = function () {
var t = this;
r.all.push(t);
t.ys = r.bellspeed;
t.xs = r.birdspeed;
if (random(100) > 50) {
t.xs = -t.xs;
t._xscale = -100;
}
t.onEnterFrame = function () {
t._y = t._y + t.ys;
t._x = t._x + t.xs;
if (t._x < r.xmin) {
t._x = r.xmin;
t.xs = -t.xs;
t._xscale = -t._xscale;
} else if (t._x > r.xmax) {
t._x = r.xmax;
t.xs = -t.xs;
t._xscale = -t._xscale;
}
if (t.hit) {
r.all.removevalue(t);
t.gotoAndPlay("hit");
} else if (t._y > ((-r.ynow) + 700)) {
r.all.removevalue(t);
t.removeMovieClip();
}
};
t.stop();
};
MovieClip.prototype.initbell = function () {
var t = this;
r.all.push(t);
t.ys = r.bellspeed;
t.onEnterFrame = function () {
t._y = t._y + t.ys;
if (t.hit) {
r.all.removevalue(t);
t.gotoAndPlay("hit");
} else if (t._y > 300) {
t._alpha = t._alpha - 10;
if (t._alpha <= 0) {
r.all.removevalue(t);
t.removeMovieClip();
}
} else if (t._y > ((-r.ynow) + 700)) {
r.all.removevalue(t);
t.removeMovieClip();
}
};
t.stop();
};
movieclip.prototype.ceklimits = function () {
var _local1 = this;
_local1.nx = Math.max(_local1.nx, r.xmin);
_local1.nx = Math.min(_local1.nx, r.xmax);
_local1.ny = Math.max(_local1.ny, r.ymin);
_local1.ny = Math.min(_local1.ny, r.ymax);
};
Array.prototype.removeElement = function (i) {
var _local2 = this;
var _local3 = i;
if (_local3 == null) {
_local3 = 0;
}
var r = _local2[_local3];
var _local1 = _local3;
while (_local1 < (_local2.length - 1)) {
_local2[_local1] = _local2[_local1 + 1];
_local1++;
}
_local2.pop();
return(r);
};
Array.prototype.removeValue = function (a) {
var _local2 = this;
var _local3 = a;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local3 == _local2[_local1]) {
_local2.removeElement(_local1);
}
_local1++;
}
};
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 () {
var _local1 = this;
if (_local1 instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < _local1.length) {
_local2[_local3] = ((typeof(_local1[_local3]) == "object") ? (_local1[_local3].clone()) : (_local1[_local3]));
_local3++;
}
} else if ((_local1 instanceof XML) || (_local1 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 _local1) {
_local2[_local3] = ((typeof(_local1[_local3]) == "object") ? (_local1[_local3].clone()) : (_local1[_local3]));
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["clone"], 1);
Movieclip.prototype.fadescreen = function (speed) {
if (!speed) {
var speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
var alp = 100;
with (d) {
lineStyle(1, 0, 100);
beginfill(0, 100);
moveto(-5000, -5000);
lineto(5000, -5000);
lineto(5000, 5000);
lineto(-5000, 5000);
endfill();
d.onEnterFrame = function () {
if (alp > 0) {
_alpha = _alpha - speed;
}
if (_alpha <= 0) {
removeMovieClip("");
stop();
}
};
}
};
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) {
var _local1 = this;
var _local2 = fadeType;
_local1.fadeDuration = (fadeDuration * 1000) / 100;
_local1.fadeType = _local2;
_local1.currentVolume = _local1.getVolume();
_local1.intID = setInterval(function (thisObj) {
thisObj.doFade(thisObj.fadeType);
}, _local1.fadeDuration, _local1);
_local1.doFade = function (fadeType) {
var _local1 = this;
if (fadeType == "out") {
_local1.setVolume(_local1.currentVolume--);
if (_local1.getVolume() <= 0) {
clearInterval(_local1.intID);
}
} else if (fadetype == "in") {
_local1.setVolume(_local1.currentVolume++);
if (_local1.getVolume() >= 100) {
clearInterval(_local1.intID);
}
}
};
};
movieclip.prototype.wait = function (delay) {
var _local1 = this;
_local1.createEmptyMovieClip("wdl", 55555);
_local1.wdl.delay = delay;
_local1.wdl.onenterframe = function () {
var _local1 = this;
_local1.delay--;
if (!_local1.delay) {
delete _local1.onenterframe;
_local1._parent.play();
_local1.removeMovieClip();
}
};
_local1.stop();
};
MovieClip.prototype.savecookie = function (vari, value) {
var _local1 = SharedObject.getLocal("oribells", "/");
_local1.data[vari] = value;
_local1.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var _local1 = SharedObject.getLocal("oribells", "/");
if (_local1.data[vari] != null) {
return(_local1.data[vari]);
}
return(false);
};
Frame 22
call("pro");
stopAllSounds();
music = 0;
startB.onRelease = function () {
r.gotoAndPlay("start");
};
helpB.onRelease = function () {
r.gotoAndPlay("help");
};
stop();
Frame 24
r.zover.start();
r.zloop.stop();
Frame 28
call("pro");
onMouseDown = function () {
delete onMouseDown;
r.gotoAndPlay("menu");
};
stop();
Frame 33
r.zover.stop();
_global.m = this.map;
_global.m2 = this.map2;
_global.p = m.player;
delete onEnterFrame;
call("pro");
fadescreen(8);
bellspeed = 1;
birdspeed = 3;
birdspacing = 2000;
birdnext = 1000;
got = 0;
skala = 160;
minskala = 70;
pspeed = 10;
jumppower = -22;
bouncepower = -18;
grav = 1;
nojump = 0;
ang = 0;
nil = 0;
ymin = 40;
ymax = 360;
xmin = 30;
xmax = 720;
ed = 1000;
all = [];
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zhit", "zbonus", "ztink", "zover"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new Sound(sfx);
r[allsfx[i]].attachsound(allsfx[i]);
i++;
}
if (!music) {
music = 1;
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new Sound(sfx2);
r.zloop.attachsound("zloop");
r.zloop.start(0, 99999);
} else {
r.zloop.start(0, 99999);
}
bxspacing = 150;
byspacing = 80;
make(50 + random(650), 200);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
r.ynow = 0;
onEnterFrame = function () {
r.ynow = Math.max(0, (-p._y) + 300);
bbg._y = bbg._y + ((r.ynow - m._y) / div);
if (bbg._y >= 0) {
bbg._y = -500;
}
if (r.vy > 30) {
div = 2;
if (p._y > 0) {
m._y = 0;
bgg._y = -500;
} else {
m._y = m._y + ((r.ynow - m._y) / div);
}
} else {
div = 10;
m._y = m._y + ((r.ynow - m._y) / div);
}
if ((p._y - r.lastbell._y) < 500) {
if (r.ynow > r.birdnext) {
r.birdnext = r.birdnext + r.birdspacing;
make(300, r.lastbell._y - r.byspacing, "bird");
} else if (r.bxspacing < 400) {
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
r.bxspacing = r.bxspacing + 5;
} else {
make(50 + random(650), r.lastbell._y - r.byspacing);
}
}
if (r.nojump > 0) {
r.nojump--;
}
};
stop();
Frame 34
delete onEnterFrame;
Frame 39
gotoAndPlay (33);
Symbol 6 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 13 MovieClip Frame 60
this.removeMovieClip();
Symbol 25 Button
on (release) {
r.gotoAndPlay("end");
}
Symbol 57 MovieClip [popend] Frame 1
r.stat._visible = 0;
ang = r.ang;
_alpha = 0;
y = _y - 10;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_y = (_y + ((y - _y) / 5));
};
oldang = loadcookie("ang");
if (!oldang) {
savecookie("ang", r.ang);
stop();
} else if (r.ang > oldang) {
savecookie("ang", r.ang);
gotoAndStop (3);
} else {
gotoAndStop (2);
}
_root.gotoAndStop("gameover");
Symbol 61 MovieClip [double] Frame 31
this.removeMovieClip();
Symbol 63 MovieClip Frame 1
_visible = 0;
Symbol 77 MovieClip Frame 15
gotoAndPlay (1);
Symbol 107 MovieClip Frame 12
stop();
Symbol 108 MovieClip [bird] Frame 1
var frame = (random(2) + 3);
gotoAndStop(frame);
Symbol 108 MovieClip [bird] Frame 2
initbird();
Symbol 108 MovieClip [bird] Frame 3
initbird();
Symbol 108 MovieClip [bird] Frame 4
initbird();
Symbol 108 MovieClip [bird] Frame 5
trace(frame);
if (frame == 2) {
gotoAndStop (6);
}
if (frame == 3) {
gotoAndStop (7);
}
if (frame == 4) {
gotoAndStop (8);
}
Symbol 108 MovieClip [bird] Frame 6
total = 8;
ro = 360 / total;
var i = 0;
while (i < total) {
this.attachMovie("star2", "star" + i, i + 10);
this["star" + i]._rotation = i * ro;
i++;
}
r.ang = r.ang + r.ang;
r.got++;
r.zbonus.start();
m2.attachMovie("double", "double", 99, {_x:_x, _y:_y + r.ynow});
d = 12;
xsmax = xs * 8;
onEnterFrame = function () {
_y = (_y + ys);
_x = (_x + xs);
d--;
if (d == 0) {
xs = xs * 2;
}
if (d < 0) {
if (Math.abs(xs) < Math.abs(xsmax)) {
xs = xs * 1.5;
}
}
if ((_x < -30) or (_x > 780)) {
this.removeMovieClip();
}
};
stop();
Symbol 108 MovieClip [bird] Frame 7
total = 8;
ro = 360 / total;
var i = 0;
while (i < total) {
this.attachMovie("star2", "star" + i, i + 10);
this["star" + i]._rotation = i * ro;
i++;
}
r.ang = r.ang + r.ang;
r.got++;
r.zbonus.start();
m2.attachMovie("double", "double", 99, {_x:_x, _y:_y + r.ynow});
d = 12;
xsmax = xs * 8;
onEnterFrame = function () {
_y = (_y + ys);
_x = (_x + xs);
d--;
if (d == 0) {
xs = xs * 2;
}
if (d < 0) {
if (Math.abs(xs) < Math.abs(xsmax)) {
xs = xs * 1.5;
}
}
if ((_x < -30) or (_x > 780)) {
this.removeMovieClip();
}
};
stop();
Symbol 108 MovieClip [bird] Frame 8
total = 8;
ro = 360 / total;
var i = 0;
while (i < total) {
this.attachMovie("star2", "star" + i, i + 10);
this["star" + i]._rotation = i * ro;
i++;
}
r.ang = r.ang + r.ang;
r.got++;
r.zbonus.start();
m2.attachMovie("double", "double", 99, {_x:_x, _y:_y + r.ynow});
d = 12;
xsmax = xs * 8;
onEnterFrame = function () {
_y = (_y + ys);
_x = (_x + xs);
d--;
if (d == 0) {
xs = xs * 2;
}
if (d < 0) {
if (Math.abs(xs) < Math.abs(xsmax)) {
xs = xs * 1.5;
}
}
if ((_x < -30) or (_x > 780)) {
this.removeMovieClip();
}
};
stop();
Symbol 110 MovieClip [snow] Frame 1
range = 0.5 + (random(5) / 10);
speed = 0.02 + (random(4) / 100);
startx = _x;
xs = range;
if (random(100) > 50) {
xs = -xs;
}
ys = 1.5 + (random(10) / 10);
onEnterFrame = function () {
_x = (_x + xs);
if (_x > startx) {
xs = math.max(xs - speed, -range);
} else {
xs = math.min(xs + speed, range);
}
_y = (_y + ys);
if (_y > ((-r.ynow) + 600)) {
this.removeMovieClip();
}
};
Symbol 112 MovieClip [star2] Frame 1
x = 80;
d = 12;
onEnterFrame = function () {
a._x = a._x + ((x - a._x) / 8);
_rotation = (_rotation + 5);
d--;
if (d < 5) {
_alpha = (_alpha - 20);
}
if (!d) {
this.removeMovieClip();
}
};
stop();
Symbol 115 MovieClip [star] Frame 1
x = 60;
d = 30;
onEnterFrame = function () {
a._x = a._x + ((x - a._x) / 3);
d--;
if (!d) {
this.removeMovieClip();
}
};
stop();
Symbol 116 MovieClip Frame 1
_yscale = r.skala;
_xscale = r.skala;
_visible = 0;
Symbol 121 MovieClip Frame 60
gotoAndPlay (1);
Symbol 122 MovieClip Frame 1
_yscale = r.skala;
_xscale = r.skala;
stop();
Symbol 124 MovieClip Frame 1
_yscale = r.skala;
_xscale = r.skala;
Symbol 124 MovieClip Frame 12
stop();
Symbol 125 MovieClip [bell] Frame 1
initbell();
Symbol 125 MovieClip [bell] Frame 2
total = 8;
ro = 360 / total;
var i = 0;
while (i < total) {
this.attachMovie("star", "star" + i, i + 10);
this["star" + i]._rotation = i * ro;
i++;
}
r.nil = r.nil + 10;
r.got++;
nil = r.nil;
r.ang = r.ang + r.nil;
r.ztink.start();
ys = 1;
d = 25;
onEnterFrame = function () {
_y = (_y + ys);
ys = ys + 0.1;
d--;
if (d < 10) {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
};
stop();
Symbol 131 MovieClip Frame 1
accel = 0.85;
convert = 0.15;
old = r.persen;
onenterframe = function () {
xs = xs * (accel + ((r.persen - b._xscale) * convert));
b._xscale = b._xscale + xs;
old = r.persen;
if (r.persen <= 0) {
b._xscale = 1;
}
};
Symbol 135 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 24
gotoAndPlay (1);
Symbol 236 MovieClip Frame 1
_visible = 0;
Symbol 270 MovieClip Frame 4
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 38
stop();
Symbol 272 MovieClip Frame 40
trace(1);
Symbol 272 MovieClip Frame 44
stop();
trace(2);
m2.attachMovie("popend", "popend", 100, {_x:375, _y:205});
Symbol 281 MovieClip Frame 27
gotoAndPlay (3);
Symbol 282 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
movieclip.prototype.makesnow = function (x, y) {
var _local2 = this;
_local2.attachMovie("snow", "snow" + s, s);
var _local1 = _local2["snow" + s];
_local1._x = x;
_local1._y = y;
_local1._xscale = (_local1._yscale = 60 + random(40));
_local1._alpha = 50 + random(50);
_local2.s++;
};
s = 1;
wid = 750;
hei = 400;
var i = 0;
while (i < 20) {
makesnow(random(wid), random(hei));
i++;
}
step = 6;
p = step;
onEnterFrame = function () {
p--;
if (!p) {
p = step;
if (r.vy > 30) {
var _local2 = Math.min(8, Math.floor(r.vy / 10));
var _local1 = 0;
while (_local1 < _local2) {
makesnow(random(wid), ((-r.ynow) + 400) + random(100));
_local1++;
}
} else if (r.ynow == 0) {
makesnow(random(wid), (-r.ynow) - random(100));
} else {
makesnow(random(wid), (-r.ynow) - random(100));
makesnow(random(wid), (-r.ynow) - random(100));
}
}
};
Symbol 286 MovieClip Frame 1
xs = r.pspeed;
yland = p._y;
r.act = "stand";
onMouseDown = function () {
if (!r.jump) {
if (!r.nojump) {
r.jump = 1;
r.vy = r.jumppower;
}
}
};
onEnterFrame = function () {
if (r.jump) {
if (r._xmouse < p._x) {
r.hd = 2;
} else if (r._xmouse > p._x) {
r.hd = 1;
}
nx = p._x + ((r._xmouse - p._x) / 8);
ceklimits();
p._x = nx;
r.act = "jump";
r.vy = r.vy + r.grav;
ny = p._y + r.vy;
if (ny > yland) {
ny = yland;
r.vy = 0;
r.jump = 0;
r.act = "run";
if (!r.ang) {
r.nojump = 3;
} else {
r.playm.play();
r.nojump = 99999999 /* 0x5F5E0FF */;
}
} else if ((ny < yland) && (ny > (yland - 40))) {
p.a.gotoAndPlay("downd");
}
p._y = ny;
var _local2 = 0;
while (_local2 < r.all.length) {
var _local1 = r.all[_local2];
if (_local1.z.hitTest(p.z)) {
r.vy = r.bouncepower;
p.a.gotoAndPlay(1);
_local1.hit = 1;
}
_local2++;
}
} else {
r.oldx = r.x;
r.x = Math.max(r._xmouse, r.xmin);
r.x = Math.min(r.x, r.xmax);
dx = r.x - p._x;
if (Math.abs(dx) > 1) {
if (dx > 0) {
r.hd = 1;
} else {
r.hd = 2;
}
}
if (Math.abs(dx) > Math.abs(xs)) {
runtime++;
moving = 500;
if (dx > 0) {
nx = p._x + xs;
} else {
nx = p._x - xs;
}
r.act = "run";
p._x = nx;
} else {
if (runtime > 3) {
p._x = r.x;
moving = 0;
runtime = 0;
r.act = "run";
} else if (Math.abs(dx) > 3) {
p._x = r.x;
moving = 500;
r.act = "run";
}
if (moving > 495) {
moving = 5;
} else if ((moving > 5) and (moving <= 495)) {
moving = 0;
}
}
if (moving > 0) {
moving--;
}
if (r.oldx == r.x) {
if (((!moving) or (p._x == r.xmax)) or (p._x == r.xmin)) {
r.act = "stand";
}
}
}
p.gotoAndStop(r.act);
if (r.hd == 2) {
p._xscale = 100;
} else {
p._xscale = -100;
}
};
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 25
m2.attachMovie("popend", "popend", 100, {_x:375, _y:205});