Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
Stage.scaleMode = "noScale";
duplicateMovieClip ("fr", "frame", 100010);
_global.r = this;
r._quality = "low";
r.bg3Dshift = 20;
r.ang = 0;
Frame 2
var loadAmount = _totalframes;
onEnterFrame = function () {
if (_framesloaded == loadAmount) {
delete onEnterFrame;
r.threeD = 0;
gotoAndPlay ("menu");
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
}
};
stop();
Frame 6
MovieClip.prototype.setmusic = function () {
if (r.udamusik != r.gamestage) {
if (r.udamusik) {
r.zloop.stop();
}
r.udamusik = r.gamestage;
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zmilk", "zcereal", "zsplash", "zhit2", "zkiss", "zfalling", "zbeam3", "zcounter", "zeat", "zhorselaunch", "zexplosion4", "zexplosion2", "zexplosion3", "zfall", "zcheckpoint", "zbounce", "zjump", "zexplosion", "zbeam1", "zbeam2", "zbonus", "zbonus2", "zhit", "zscore", "zwin"];
var _local1 = 0;
while (_local1 < allsfx.length) {
r[allsfx[_local1]] = new Sound(sfx);
r[allsfx[_local1]].attachSound(allsfx[_local1]);
_local1++;
}
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new Sound(sfx2);
r.zloop.attachSound("zloop" + r.gamestage);
r.zloop.setVolume(100);
r.zloop.start(0, 99999);
r.createEmptyMovieClip("sfx3", 60003);
r.zhorse = new Sound(sfx3);
r.zhorse.attachSound("zhorse");
}
};
Frame 11
call("pro");
call("pos");
_global.all = this.all;
playbutton.swapDepths(199000);
screenwid = 600;
screenhei = 400;
call("pro3D");
r._quality = "high";
fadescreen(10);
r.ang = 0;
render3D();
stop();
Frame 18
call("pro");
fadescreen();
r.output.removeMovieClip();
r.playbutton.removeMovieClip();
stop();
Frame 25
MovieClip.prototype.CNtrack = function () {
var _local1 = new Date().getTime();
loadMovieNum ("http://www.cartoonnetwork.com/games/fosters/cheesequest3d/tracker.swf?" + _local1, 98000);
};
MovieClip.prototype.cek3D = function () {
if (r.threeD) {
r.render3D();
outputshow();
} else {
outputhide();
}
};
MovieClip.prototype.outputhide = function () {
if (r.output._visible) {
r.output._visible = false;
r.output._y = 9999;
}
};
MovieClip.prototype.outputshow = function () {
if (!r.output._visible) {
r.output._visible = true;
r.output._y = 0;
}
};
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.all.energybar.gotoAndPlay(1);
};
MovieClip.prototype.getleveldata = function () {
if (r.level == 1) {
if (!r.checkpoint) {
add2pos(r.pos1);
add2pos(r.pos2);
add2pos(r.pos3);
add2pos(r.pos4);
add2pos(r.pos5);
add2pos(r.pos6);
add2pos(r.pos7);
add2pos(r.pos8);
} else if (r.checkpoint == 1) {
add2pos(r.pos3);
add2pos(r.pos4);
add2pos(r.pos5);
add2pos(r.pos6);
add2pos(r.pos7);
add2pos(r.pos8);
} else if (r.checkpoint == 2) {
add2pos(r.pos5);
add2pos(r.pos6);
add2pos(r.pos7);
add2pos(r.pos8);
}
r.levelitemcount[1] = r.pos.length;
}
};
MovieClip.prototype.add2pos = function (arr) {
var _local3 = arr.clone();
if (r.pos.length > 0) {
var _local5 = r.pos[r.pos.length - 1].x + 200;
} else {
var _local5 = 0;
}
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local1 = _local3.shift();
_local1.x = _local1.x + _local5;
r.pos.push(_local1);
_local2++;
}
};
MovieClip.prototype.initjumpingenemy = function (id) {
var t = this;
t.id = id;
if (id == 22) {
t.ys = (t.ays = 27);
t.xs = -5;
} else if (id == 24) {
t.ys = (t.ays = 10);
t.xs = -10;
}
t.grav = 3;
t.uda = 0;
t.gotskor = 0;
t.wid = t._width / 2;
t.hei = t._height;
var _local5 = 60000;
var _local3 = 0;
while (_local3 < b.length) {
var _local2 = b[_local3];
if (_local2.y1 == r.yland) {
if ((t._x > _local2.x1) and (t._x < _local2.x2)) {
t.xmin = _local2.x1;
t.xmax = _local2.x2;
}
}
_local3++;
}
t.onEnterFrame = function () {
t._x = t._x + t.xs;
t._y = t._y + t.ys;
t.ys = t.ys + t.grav;
if (t._y > r.yland) {
if ((t._x > t.xmin) and (t._x < t.xmax)) {
t._y = r.yland;
t.ys = -t.ays;
r.zbounce.start();
} else if (t._y > 450) {
t.removeMovieClip();
}
}
if (!t.uda) {
if (cekboxcoll(p._x, p._y, r.pw, r.ph, t._x, t._y, t.wid, t.hei)) {
if (r.lady == "") {
r.hit = t.id;
t.uda = 50;
} else {
r.kiss = 1;
t.xs = -2 * t.xs;
t.uda = 999999 /* 0x0F423F */;
t.a.gotoAndStop("kissed");
t.popscore2(3 * r.nil);
t.gotskor = 1;
t.swapDepths(r.od + 1000);
r.zkiss.start();
sparkle();
if (t.id == 23) {
r.ang = r.ang + 3000;
popmessage(12);
r.zbonus2.start();
}
}
}
}
if (!t.gotskor) {
if (!t.uda) {
if ((p._x - t._x) > 20) {
if ((p._x - t._x) < 100) {
t.gotskor = 1;
t.popscore2(r.nil);
r.zscore.start();
}
}
}
}
if (t.xs < 0) {
if (r.xnow > (t._x + t.wid)) {
t.removeMovieClip();
}
} else if (t._x > (r.xnow + 630)) {
t.removeMovieClip();
}
if (t.uda > 0) {
t.uda--;
}
};
};
MovieClip.prototype.popmessage = function (no) {
n.attachMovie("messages", "messages", 100, {no:no, _x:300, _y:150, _visible:false});
};
MovieClip.prototype.initenemy = function (id) {
var t = this;
t.id = id;
t.xs = -5;
t.ys = 10;
t.grav = 3;
t.uda = 0;
t.gotskor = 0;
t.wid = t._width / 2;
t.hei = t._height;
var _local4 = 60000;
var _local3 = 0;
while (_local3 < b.length) {
var _local2 = b[_local3];
if (_local2.y1 == r.yland) {
if ((t._x > _local2.x1) and (t._x < _local2.x2)) {
t.xmin = _local2.x1;
t.xmax = _local2.x2;
}
}
_local3++;
}
t.onEnterFrame = function () {
t._x = t._x + t.xs;
if (!t.uda) {
if (cekboxcoll(p._x, p._y, r.pw, r.ph, t._x, t._y, t.wid, t.hei)) {
if (r.lady == "") {
r.hit = t.id;
t.uda = 50;
} else {
r.kiss = 1;
t.xs = -3 * t.xs;
t.uda = 999999 /* 0x0F423F */;
t.a.gotoAndStop("kissed");
t.popscore2(3 * r.nil);
t.gotskor = 1;
r.zkiss.start();
sparkle();
if (t.id == 23) {
popmessage(12);
}
}
}
}
if (!t.gotskor) {
if (!t.uda) {
if ((p._x - t._x) > 20) {
if ((p._x - t._x) < 100) {
t.gotskor = 1;
t.popscore2(r.nil);
r.zscore.start();
}
}
}
}
if (t.xs < 0) {
if (r.xnow > (t._x + t.wid)) {
t.removeMovieClip();
}
} else if (t._x > (r.xnow + 630)) {
t.removeMovieClip();
}
if (t.uda > 0) {
t.uda--;
}
if ((t._x < t.xmin) or (t._x > t.xmax)) {
t.onEnterFrame = function () {
t._x = t._x + t.xs;
t._y = t._y + t.ys;
t.ys = t.ys + t.grav;
if (t._y > 450) {
t.removeMovieClip();
}
};
}
};
};
MovieClip.prototype.popscore = function (x, y, sk) {
r.ang = r.ang + sk;
m.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:x, _y:y});
r.sd++;
};
MovieClip.prototype.popscore2 = function (sk) {
r.ang = r.ang + sk;
this.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:0, _y:(-this._height) - 15});
r.sd++;
r.zscore.start();
};
MovieClip.prototype.blink = function () {
var _local2 = this;
_local2.attachMovie("blink", "blink", 101);
};
MovieClip.prototype.makeob = function (a, x, y) {
m.attachMovie("ob" + a.id, "ob" + r.od, r.od, {id:a.id, _x:x, _y:y});
if ((a.id > 10) and (a.id <= 13)) {
m["ob" + r.od].initob(a.id);
} else if ((a.id == 21) or (a.id == 23)) {
m["ob" + r.od].initenemy(a.id);
} else if ((a.id == 22) or (a.id == 24)) {
m["ob" + r.od].initjumpingenemy(a.id);
}
r.od++;
};
MovieClip.prototype.initob = function (id) {
var t = this;
t.id = id;
t.wid = t._width / 2;
t.hei = t._height;
t.onEnterFrame = function () {
if (cekboxcoll(p._x, p._y, 3 * r.pw, r.ph, t._x, t._y, t.wid, t.hei)) {
switch (t.id) {
case 11 :
var _local1 = 300;
r.zmilk.start();
break;
case 12 :
_local1 = 200;
energize(1);
break;
case 13 :
_local1 = 500;
r.lady = "b";
r.ladytime = r.ladytimelength;
popmessage(11);
r.zbonus2.start();
break;
default :
_local1 = 100;
}
popscore(t._x, (t._y - t.hei) - 15, _local1);
sparkle();
t.removeMovieClip();
}
if (r.xnow > (t._x + t.wid)) {
t.removeMovieClip();
}
};
};
MovieClip.prototype.sparkle = function () {
p.attachMovie("sparkle", "sparkle", 100);
};
MovieClip.prototype.cekboxcoll = function (ex, ey, ew, eh, sx, sy, sw, sh) {
if (Math.abs(ex - sx) < (ew + sw)) {
if ((((ey - sy) >= 0) and ((ey - sy) <= eh)) or (((sy - ey) >= 0) and ((sy - ey) <= sh))) {
return(1);
}
}
};
MovieClip.prototype.initb = function (tipe) {
var _local3 = this;
_local3.z._visible = 0;
var _local2 = (_local3.z._width * 0.01) * _local3._xscale;
var _local4 = (_local3.z._height * 0.01) * _local3._yscale;
if (tipe == 2) {
if (_local3.xs > 0) {
var _local8 = _local3._x;
var _local6 = _local3._x + Math.abs(_local3.xrange);
} else if (_local3.xs < 0) {
var _local8 = _local3._x - Math.abs(_local3.xrange);
var _local6 = _local3._x;
}
if (_local3.ys > 0) {
var _local7 = _local3._y;
var _local5 = _local3._y + Math.abs(_local3.yrange);
} else if (this.ys < 0) {
var _local7 = _local3._y - Math.abs(_local3.yrange);
var _local5 = _local3._y;
}
c.push({mc:_local3, n:_local3._name, t:tipe, w:_local2, h:_local4, x1:_local3._x, y1:_local3._y, x2:_local3._x + _local2, y2:_local3._y + _local4, xc:_local3._x + (0.5 * _local2), xs:_local3.xs, ys:_local3.ys, xmin:_local8, xmax:_local6, ymin:_local7, ymax:_local5});
} else {
b.push({mc:_local3, n:_local3._name, t:tipe, w:_local2, h:_local4, x1:_local3._x, y1:_local3._y, x2:_local3._x + _local2, y2:_local3._y + _local4, xc:_local3._x + (0.5 * _local2)});
}
};
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) {
var speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
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 () {
_alpha = _alpha - speed;
if (_alpha <= 0) {
removeMovieClip("");
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++;
}
}
};
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});
};
Color.prototype.setTint = function (col, percent, resetMode) {
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))));
if ((resetMode == undefined) || ((resetMode != true) && (resetMode != false))) {
resetMode = true;
}
var trans = this.getTransform();
if (resetMode) {
with (trans) {
ra = (ga = (ba = 100));
rb = (gb = (bb = 0));
}
}
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);
};
r.createEmptyMovieClip("output", 99000);
r.bufferL = new flash.display.BitmapData(r.screenwid, r.screenhei, false, 0);
r.bufferR = new flash.display.BitmapData(r.screenwid, r.screenhei, false, 0);
r.bufferOut = new flash.display.BitmapData(r.screenwid, r.screenhei, false, 0);
r.output.attachBitmap(r.bufferOut, 1);
MovieClip.prototype.render3D = function () {
var _local1 = all.over.layer1._x;
var _local6 = all.over.layer2._x;
var _local5 = all.map._x;
var _local4 = all.bg.layer1._x;
var _local3 = all.bg.layer2._x;
var _local2 = all.bg.layer3._x;
r.bufferL.draw(all);
offsetObjects();
r.bufferR.draw(all);
r.bufferOut.copyChannel(r.bufferL, new flash.geom.Rectangle(0, 0, r.screenwid, r.screenhei), new flash.geom.Point(0, 0), 1, 1);
r.bufferOut.copyChannel(r.bufferR, new flash.geom.Rectangle(0, 0, r.screenwid, r.screenhei), new flash.geom.Point(0, 0), 2, 2);
r.bufferOut.copyChannel(r.bufferR, new flash.geom.Rectangle(0, 0, r.screenwid, r.screenhei), new flash.geom.Point(0, 0), 4, 4);
all.over.layer1._x = _local1;
all.over.layer2._x = _local6;
all.map._x = _local5;
all.bg.layer1._x = _local4;
all.bg.layer2._x = _local3;
all.bg.layer3._x = _local2;
};
MovieClip.prototype.offsetObjects = function () {
all.over.layer1._x = all.over.layer1._x + -30;
if (r.level) {
all.over.layer2._x = all.over.layer2._x + -15;
} else {
all.over.layer2._x = all.over.layer2._x + -8;
}
all.map._x = all.map._x + -3;
all.bg.layer1._x = all.bg.layer1._x + 5;
all.bg.layer2._x = all.bg.layer2._x + 10;
all.bg.layer3._x = all.bg.layer3._x + 14;
};
Frame 26
pos1 = [{id:7, x:0, y:338}, {id:21, x:900, y:338}, {id:21, x:1036, y:338}, {id:21, x:1172, y:338}, {id:4, x:1254, y:260}, {id:11, x:1337, y:242}, {id:1, x:1472, y:338}, {id:12, x:1700, y:200}, {id:21, x:1799, y:338}, {id:12, x:1874, y:200}, {id:21, x:1911, y:338}, {id:21, x:2027, y:338}, {id:1, x:2180, y:338}, {id:21, x:2441, y:338}, {id:21, x:2560, y:338}, {id:21, x:2679, y:338}, {id:5, x:2785, y:290}, {id:4, x:3000, y:162}, {id:11, x:3083, y:140}, {id:4, x:3168, y:198}, {id:11, x:3251, y:178}, {id:4, x:3336, y:235}, {id:11, x:3419, y:214}, {id:1, x:3514, y:338}, {id:21, x:3862, y:338}, {id:21, x:3974, y:338}, {id:21, x:4090, y:338}, {id:4, x:4222, y:260}, {id:11, x:4305, y:238}];
pos2 = [{id:1, x:0, y:338}, {id:12, x:201, y:200}, {id:21, x:304, y:338}, {id:12, x:357, y:200}, {id:22, x:578, y:338}, {id:6, x:712, y:275}, {id:6, x:1004, y:275}, {id:1, x:1336, y:338}, {id:4, x:1553, y:220}, {id:21, x:1608, y:338}, {id:11, x:1636, y:202}, {id:21, x:1744, y:338}, {id:21, x:1880, y:338}, {id:2, x:2054, y:338}, {id:12, x:2216, y:200}, {id:2, x:2264, y:338}, {id:12, x:2418, y:200}, {id:2, x:2474, y:338}, {id:3, x:2688, y:338}, {id:5, x:3028, y:336}, {id:5, x:3273, y:264}, {id:5, x:3518, y:192}, {id:5, x:3763, y:120}];
pos3 = [{id:1, x:0, y:338}, {id:31, x:300, y:338}, {id:1, x:762, y:338}, {id:13, x:811, y:338}, {id:22, x:1092, y:338}, {id:22, x:1166, y:338}, {id:22, x:1240, y:338}, {id:22, x:1314, y:338}, {id:4, x:1459, y:284}, {id:11, x:1542, y:262}, {id:3, x:1712, y:338}, {id:12, x:1828, y:200}, {id:4, x:2039, y:284}, {id:11, x:2122, y:262}, {id:2, x:2274, y:338}, {id:6, x:2475, y:270}, {id:5, x:2835, y:270}, {id:6, x:3087, y:128}, {id:6, x:3367, y:204}, {id:3, x:3816, y:338}, {id:4, x:4211, y:338}, {id:11, x:4294, y:313}];
pos4 = [{id:1, x:0, y:338}, {id:12, x:201, y:200}, {id:24, x:294, y:338}, {id:12, x:357, y:200}, {id:24, x:432, y:338}, {id:24, x:570, y:338}, {id:2, x:704, y:338}, {id:2, x:904, y:338}, {id:5, x:1097, y:338}, {id:4, x:1337, y:220}, {id:11, x:1420, y:202}, {id:4, x:1477, y:104}, {id:11, x:1560, y:86}, {id:4, x:1617, y:220}, {id:11, x:1700, y:202}, {id:4, x:1757, y:104}, {id:11, x:1840, y:86}, {id:4, x:2037, y:218}, {id:13, x:2120, y:218}, {id:7, x:2208, y:338}, {id:22, x:2472, y:338}, {id:24, x:2560, y:338}, {id:22, x:2648, y:338}, {id:24, x:2736, y:338}, {id:15, x:2872, y:338}, {id:23, x:3160, y:338}, {id:1, x:3408, y:338}, {id:22, x:3776, y:338}, {id:22, x:3956, y:338}, {id:4, x:4120, y:284}, {id:6, x:4304, y:284}, {id:4, x:4674, y:212}];
pos5 = [{id:7, x:0, y:338}, {id:32, x:300, y:338}, {id:14, x:464, y:338}, {id:7, x:1200, y:338}, {id:21, x:1723, y:338}, {id:24, x:2166, y:338}, {id:7, x:2584, y:338}, {id:24, x:3070, y:338}, {id:24, x:3141, y:338}, {id:21, x:3620, y:338}, {id:21, x:3692, y:338}];
pos6 = [{id:7, x:0, y:338}, {id:24, x:506, y:338}, {id:24, x:560, y:338}, {id:21, x:1092, y:338}, {id:7, x:1436, y:338}, {id:12, x:1828, y:200}, {id:24, x:2020, y:338}, {id:12, x:2332, y:200}, {id:24, x:2546, y:338}, {id:24, x:2600, y:338}, {id:4, x:2793, y:288}, {id:11, x:2876, y:258}, {id:4, x:3109, y:236}, {id:11, x:3192, y:206}, {id:4, x:3425, y:172}, {id:11, x:3508, y:142}, {id:7, x:3736, y:338}, {id:21, x:4484, y:338}, {id:21, x:4538, y:338}, {id:21, x:4592, y:338}];
pos7 = [{id:7, x:0, y:338}, {id:24, x:376, y:338}, {id:12, x:772, y:200}, {id:24, x:968, y:338}, {id:24, x:1022, y:338}, {id:24, x:1077, y:338}, {id:4, x:1381, y:288}, {id:11, x:1464, y:258}, {id:6, x:1565, y:288}, {id:5, x:2021, y:288}, {id:4, x:2345, y:204}, {id:11, x:2428, y:174}, {id:6, x:2597, y:204}, {id:4, x:3109, y:204}, {id:11, x:3192, y:174}, {id:4, x:3441, y:204}, {id:11, x:3524, y:174}, {id:7, x:3640, y:338}, {id:21, x:4236, y:338}, {id:21, x:4296, y:338}, {id:21, x:4752, y:338}, {id:21, x:4812, y:338}];
pos8 = [{id:7, x:0, y:338}, {id:24, x:716, y:338}, {id:24, x:768, y:338}, {id:24, x:820, y:338}, {id:24, x:873, y:338}, {id:33, x:1200, y:338}, {id:7, x:1200, y:338}, {id:7, x:2400, y:338}, {id:7, x:3600, y:338}];
Frame 32
r._quality = "low";
call("sfx");
call("pro");
call("pos");
b = [];
c = [];
_global.b = b;
_global.c = c;
_global.all = this.all;
_global.m = all.map;
_global.n = all.n;
_global.o = all.over;
_global.bg = all.bg;
m.attachMovie("cheese", "player", 100002);
_global.p = m.player;
fadescreen(10);
if (!r.level) {
r.checkpoint = 0;
r.level = 1;
}
gamestage = 1;
levelitemcount = [];
pos = [];
getleveldata();
scrollspeed = (scrollspeednormal = -4);
screenwid = 600;
screenhei = 400;
energy = (energymax = 10);
horsemode = 0;
leftspace = (leftspacenormal = 50);
dance = 0;
lady = "";
ladytime = 0;
ladytimelength = 300;
kiss = 0;
p._x = 300;
p._y = 330;
xnow = 0;
hit = 0;
nil = 100;
launch = 0;
canpress = 1;
jumphi = 0;
grav = 300;
jumpforce = -300;
jump = 0;
runspeed = 10;
walkspeed = 1.5;
canjump = 1;
onfloat = 0;
floatbelow = 0;
yland = 338;
hd = 1;
inv = 0;
invhitdelay = 10;
pw = 15;
ph = 100;
sta = "stand";
wait = 10;
waiting = 1;
od = 2000;
sd = 1000;
popmessage(1);
setmusic();
call("pro3D");
onEnterFrame = function () {
m._x = m._x + scrollspeed;
xnow = xnow - scrollspeed;
xmin = xnow + leftspace;
xmax = xnow + 500;
if (p._y < 200) {
my = (200 - p._y) / 2;
} else {
my = 0;
}
m._y = my;
o._y = my * 2;
if (r.pos[0].x < ((r.xnow + r.screenwid) + 100)) {
if (r.pos.length) {
it = r.pos.shift();
makeob(it, it.x, it.y);
}
}
if (r.ladytime > 0) {
r.ladytime--;
if (r.ladytime <= 0) {
r.ladytime = 0;
r.lady = "";
}
}
if (r.inv > 0) {
r.inv--;
}
cek3D();
};
stop();
Instance of Symbol 408 MovieClip in Frame 32
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 = "]}";
}
if (r.energy > 0) {
keypressed = keypressed + keyp;
if ((substring(keypressed, keypressed.length - 4, 5)) == "JUICE") {
energize(r.energymax);
keypressed = "";
} else if ((substring(keypressed, keypressed.length - 6, 7)) == "BEEPBOP") {
r.launch = 1;
r.zbonus2.start();
keypressed = "";
}
}
}
Frame 39
delete onEnterFrame;
outputhide();
r.zhorse.stop();
r.zhit.stop();
fadescreen(10);
angtxt = r.ang;
r.ang = 0;
r.udamusik = 0;
stop();
Frame 45
gotoAndPlay ("start1");
Frame 51
d = 50;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
gotoAndPlay ("start2");
}
cek3D();
};
stop();
Frame 57
MovieClip.prototype.getleveldata2 = function () {
if (r.slevel == 1) {
if (!r.checkpoint) {
add2pos(r.pos1);
add2pos(r.pos2);
add2pos(r.pos3);
add2pos(r.pos4);
add2pos(r.pos5);
} else if (r.checkpoint == 1) {
add2pos(r.pos3);
add2pos(r.pos4);
add2pos(r.pos5);
} else if (r.checkpoint == 2) {
add2pos(r.pos5);
}
r.levelitemcount[2] = r.pos.length;
}
};
MovieClip.prototype.popmessage = function (no) {
n.attachMovie("messages", "messages", 100, {no:no, _x:300, _y:150, _visible:false});
};
MovieClip.prototype.initbeam = function () {
var t = this;
t.wid = 18;
t.hei = 7;
t.xs = -14;
t.onEnterFrame = function () {
t._x = t._x + t.xs;
if (cekboxcoll(t._x, t._y, t.wid, t.hei, p._x, p._y, r.pw, r.ph)) {
r.hit = 1;
t.removeMovieClip();
}
if (t._x < (r.xnow - 10)) {
t.removeMovieClip();
}
};
};
MovieClip.prototype.initso = function (id) {
var t = this;
t.id = id;
t.wid = t._width / 2;
t.hei = t._height;
t.xs = -3;
t.onEnterFrame = function () {
if (cekboxcoll(p._x, p._y, 3 * r.pw, r.ph, t._x, t._y, t.wid, t.hei)) {
switch (t.id) {
case 11 :
var _local1 = 200;
energize(1);
break;
default :
var _local1 = 100;
}
popscore(t._x, (t._y - t.hei) - 15, _local1);
sparkle();
t.removeMovieClip();
}
t._x = t._x + t.xs;
if (r.xnow > (t._x + t.wid)) {
t.removeMovieClip();
}
};
};
MovieClip.prototype.botcek = function () {
var _local2 = this;
if (cekboxcoll(p._x, p._y, r.pw, r.ph, _local2._x, _local2._y, _local2.wid, _local2.hei)) {
r.hit = 1;
_local2.explode(_local2._x, _local2._y - 22);
_local2.die();
}
if (_local2.hit) {
_local2.explode(_local2._x, _local2._y - 22);
_local2.popscore(_local2._x, _local2._y - 70, r.nil);
_local2.die();
}
if (((r.xnow > (_local2._x + _local2.wid)) or (_local2._y < -100)) or (_local2._y > 500)) {
_local2.die();
}
};
MovieClip.prototype.shoot = function () {
m.attachMovie("eyebeam", "eyebeam" + r.bd, r.bd, {_x:p._x + 40, _y:p._y - 28});
r.zbeam2.start();
r.bd++;
};
MovieClip.prototype.botshoot = function () {
m.attachMovie("botbeam", "botbeam" + r.bd, r.bd, {_x:this._x - 20, _y:this._y - 41});
r.zbeam1.start();
r.bd++;
};
MovieClip.prototype.cakeshoot = function () {
m.attachMovie("cakebeam", "cakebeam" + r.bd, r.bd, {_x:this._x - 20, _y:this._y - 41});
r.zbeam3.start();
r.bd++;
};
MovieClip.prototype.explode = function (x, y) {
m.attachMovie("explosion", "explosion" + r.od, r.od, {_x:x, _y:y});
r.zexplosion4.start();
r.od++;
};
MovieClip.prototype.die = function () {
r.enemy.removevalue(this);
this.removeMovieClip();
};
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.zhit2.start();
}
r.all.energybar.gotoAndPlay(1);
};
MovieClip.prototype.add2pos = function (arr) {
var _local3 = arr.clone();
if (r.pos.length > 0) {
var _local5 = r.pos[r.pos.length - 1].x + 100;
} else {
var _local5 = 600;
}
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local1 = _local3.shift();
_local1.x = _local1.x + _local5;
r.pos.push(_local1);
_local2++;
}
};
MovieClip.prototype.popscore = function (x, y, sk) {
r.ang = r.ang + sk;
m.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:x, _y:y});
r.sd++;
};
MovieClip.prototype.popscore2 = function (sk) {
r.ang = r.ang + sk;
this.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:0, _y:(-this._height) - 15});
r.sd++;
};
MovieClip.prototype.blink = function () {
var _local2 = this;
_local2.attachMovie("blink", "blink", 101);
};
MovieClip.prototype.makeso = function (a, x, y) {
m.attachMovie("so" + a.id, "so" + r.od, r.od, {id:a.id, _x:x, _y:y});
if (a.id > 10) {
m["so" + r.od].initso(a.id);
}
r.od++;
};
MovieClip.prototype.sparkle2 = function () {
p.attachMovie("sparkle2", "sparkle2", 100);
};
MovieClip.prototype.cekboxcoll = function (ex, ey, ew, eh, sx, sy, sw, sh) {
if (Math.abs(ex - sx) < (ew + sw)) {
if ((((ey - sy) >= 0) and ((ey - sy) <= eh)) or (((sy - ey) >= 0) and ((sy - ey) <= sh))) {
return(1);
}
}
};
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) {
var speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
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 () {
_alpha = _alpha - speed;
if (_alpha <= 0) {
removeMovieClip("");
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++;
}
}
};
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});
};
Color.prototype.setTint = function (col, percent, resetMode) {
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))));
if ((resetMode == undefined) || ((resetMode != true) && (resetMode != false))) {
resetMode = true;
}
var trans = this.getTransform();
if (resetMode) {
with (trans) {
ra = (ga = (ba = 100));
rb = (gb = (bb = 0));
}
}
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);
};
Frame 58
pos1 = [{id:7, x:399, y:220}, {id:7, x:477, y:280}, {id:7, x:477, y:160}, {id:7, x:539, y:220}, {id:7, x:599, y:160}, {id:7, x:599, y:280}, {id:7, x:677, y:100}, {id:7, x:677, y:340}, {id:1, x:836, y:217}, {id:1, x:885, y:217}, {id:1, x:934, y:217}, {id:1, x:984, y:217}, {id:1, x:1033, y:217}, {id:6, x:1180, y:220}, {id:5, x:1315, y:220}, {id:5, x:1383, y:220}, {id:5, x:1451, y:220}, {id:9, x:1560, y:373}, {id:9, x:1560, y:93}, {id:11, x:1612, y:282}, {id:9, x:1660, y:321}, {id:9, x:1660, y:137}, {id:7, x:1782, y:100}, {id:7, x:1782, y:340}, {id:7, x:1820, y:160}, {id:7, x:1820, y:280}, {id:7, x:1858, y:340}, {id:7, x:1858, y:100}, {id:7, x:1858, y:220}, {id:7, x:1896, y:280}, {id:7, x:1896, y:160}, {id:7, x:1934, y:340}, {id:7, x:1934, y:100}, {id:1, x:2136, y:181}, {id:1, x:2136, y:281}, {id:1, x:2185, y:141}, {id:1, x:2185, y:321}, {id:1, x:2234, y:281}, {id:1, x:2234, y:181}, {id:1, x:2284, y:101}, {id:1, x:2284, y:361}, {id:1, x:2333, y:281}, {id:1, x:2333, y:181}, {id:4, x:2535, y:267}, {id:4, x:2535, y:181}, {id:4, x:2585, y:156}, {id:4, x:2585, y:291}, {id:4, x:2635, y:132}, {id:4, x:2635, y:316}, {id:4, x:2686, y:107}, {id:4, x:2686, y:340}, {id:4, x:2736, y:83}, {id:4, x:2736, y:365}, {id:6, x:2772, y:219}, {id:6, x:2920, y:265}, {id:11, x:3012, y:114}, {id:5, x:3183, y:132}, {id:5, x:3183, y:312}, {id:6, x:3239, y:207}, {id:5, x:3251, y:132}, {id:5, x:3251, y:312}, {id:5, x:3319, y:312}, {id:5, x:3319, y:132}, {id:5, x:3387, y:312}, {id:5, x:3387, y:132}, {id:5, x:3455, y:312}, {id:5, x:3455, y:132}, {id:6, x:3488, y:213}, {id:5, x:3523, y:132}, {id:5, x:3523, y:312}];
pos2 = [{id:7, x:27, y:77}, {id:7, x:27, y:369}, {id:7, x:27, y:223}, {id:7, x:67, y:296}, {id:7, x:67, y:150}, {id:7, x:101, y:77}, {id:7, x:101, y:369}, {id:7, x:101, y:223}, {id:7, x:141, y:150}, {id:7, x:141, y:296}, {id:7, x:174, y:369}, {id:7, x:174, y:77}, {id:7, x:174, y:223}, {id:7, x:214, y:150}, {id:7, x:214, y:296}, {id:7, x:248, y:369}, {id:7, x:248, y:223}, {id:7, x:248, y:77}, {id:7, x:288, y:150}, {id:7, x:288, y:296}, {id:7, x:321, y:369}, {id:7, x:321, y:77}, {id:7, x:321, y:223}, {id:7, x:361, y:296}, {id:7, x:361, y:150}, {id:7, x:395, y:369}, {id:7, x:395, y:77}, {id:7, x:395, y:223}, {id:7, x:435, y:150}, {id:7, x:435, y:296}, {id:11, x:546, y:219}, {id:2, x:621, y:189}, {id:2, x:621, y:248}, {id:2, x:717, y:367}, {id:2, x:717, y:71}, {id:2, x:717, y:130}, {id:2, x:717, y:307}, {id:2, x:825, y:189}, {id:2, x:825, y:248}, {id:2, x:921, y:367}, {id:2, x:921, y:71}, {id:2, x:921, y:130}, {id:2, x:921, y:307}, {id:2, x:1037, y:189}, {id:2, x:1037, y:248}, {id:2, x:1133, y:367}, {id:2, x:1133, y:71}, {id:2, x:1133, y:130}, {id:2, x:1133, y:307}, {id:11, x:1288, y:195}, {id:7, x:1455, y:369}, {id:7, x:1455, y:77}, {id:7, x:1529, y:77}, {id:7, x:1529, y:369}, {id:6, x:1564, y:253}, {id:7, x:1602, y:369}, {id:7, x:1602, y:77}, {id:7, x:1676, y:369}, {id:7, x:1676, y:77}, {id:6, x:1700, y:173}, {id:7, x:1749, y:77}, {id:7, x:1749, y:369}, {id:6, x:1812, y:237}, {id:7, x:1823, y:77}, {id:7, x:1823, y:369}, {id:1, x:2025, y:149}, {id:1, x:2025, y:317}, {id:1, x:2076, y:149}, {id:1, x:2076, y:317}, {id:1, x:2127, y:317}, {id:1, x:2127, y:149}, {id:9, x:2140, y:229}, {id:1, x:2178, y:317}, {id:1, x:2178, y:149}, {id:9, x:2212, y:229}, {id:1, x:2228, y:317}, {id:1, x:2228, y:149}, {id:1, x:2279, y:149}, {id:1, x:2279, y:317}, {id:9, x:2284, y:229}, {id:1, x:2330, y:317}, {id:1, x:2330, y:149}, {id:9, x:2356, y:229}, {id:1, x:2381, y:149}, {id:1, x:2381, y:317}, {id:1, x:2432, y:149}, {id:1, x:2432, y:317}, {id:1, x:2482, y:149}, {id:1, x:2482, y:317}, {id:11, x:2610, y:221}, {id:11, x:2702, y:221}];
pos3 = [{id:31, x:21, y:270}, {id:3, x:223, y:225}, {id:3, x:295, y:186}, {id:3, x:295, y:265}, {id:3, x:371, y:304}, {id:3, x:371, y:225}, {id:3, x:371, y:146}, {id:3, x:451, y:107}, {id:3, x:451, y:344}, {id:3, x:451, y:265}, {id:3, x:451, y:186}, {id:3, x:531, y:151}, {id:3, x:531, y:75}, {id:3, x:531, y:227}, {id:3, x:531, y:304}, {id:3, x:531, y:380}, {id:11, x:708, y:287}, {id:7, x:895, y:223}, {id:7, x:935, y:296}, {id:7, x:935, y:150}, {id:7, x:969, y:77}, {id:7, x:969, y:223}, {id:7, x:969, y:369}, {id:7, x:1009, y:150}, {id:7, x:1009, y:296}, {id:6, x:1041, y:225}, {id:7, x:1043, y:369}, {id:7, x:1043, y:77}, {id:6, x:1080, y:289}, {id:6, x:1080, y:165}, {id:7, x:1116, y:77}, {id:7, x:1116, y:369}, {id:7, x:1156, y:296}, {id:7, x:1156, y:150}, {id:7, x:1190, y:369}, {id:7, x:1190, y:77}, {id:7, x:1190, y:223}, {id:7, x:1230, y:150}, {id:7, x:1230, y:296}, {id:7, x:1263, y:223}, {id:4, x:1600, y:217}, {id:4, x:1640, y:141}, {id:4, x:1640, y:297}, {id:9, x:1681, y:61}, {id:9, x:1681, y:369}, {id:4, x:1705, y:141}, {id:4, x:1705, y:297}, {id:6, x:1713, y:213}, {id:4, x:1771, y:141}, {id:4, x:1771, y:297}, {id:9, x:1775, y:369}, {id:9, x:1775, y:61}, {id:6, x:1836, y:214}, {id:4, x:1836, y:141}, {id:4, x:1836, y:297}, {id:9, x:1869, y:369}, {id:9, x:1869, y:61}, {id:4, x:1902, y:141}, {id:4, x:1902, y:297}, {id:4, x:1942, y:217}, {id:6, x:1993, y:125}, {id:6, x:1997, y:309}, {id:7, x:2316, y:89}, {id:7, x:2316, y:261}, {id:7, x:2316, y:177}, {id:7, x:2316, y:345}, {id:7, x:2390, y:261}, {id:7, x:2390, y:345}, {id:7, x:2390, y:89}, {id:7, x:2390, y:177}, {id:7, x:2463, y:345}, {id:7, x:2463, y:261}, {id:7, x:2463, y:177}, {id:7, x:2463, y:89}, {id:8, x:2735, y:263}, {id:8, x:2735, y:189}, {id:8, x:2735, y:337}, {id:8, x:2735, y:115}, {id:6, x:2989, y:113}, {id:6, x:3029, y:341}, {id:8, x:3131, y:337}, {id:8, x:3131, y:115}, {id:8, x:3131, y:263}, {id:8, x:3131, y:189}, {id:6, x:3205, y:233}, {id:11, x:3345, y:183}];
pos4 = [{id:5, x:19, y:221}, {id:3, x:61, y:365}, {id:3, x:61, y:85}, {id:5, x:108, y:221}, {id:3, x:159, y:365}, {id:3, x:159, y:85}, {id:5, x:197, y:221}, {id:3, x:257, y:365}, {id:3, x:257, y:85}, {id:5, x:286, y:221}, {id:3, x:355, y:85}, {id:3, x:355, y:365}, {id:5, x:375, y:221}, {id:3, x:453, y:365}, {id:3, x:453, y:85}, {id:5, x:464, y:221}, {id:5, x:553, y:221}, {id:5, x:642, y:221}, {id:5, x:731, y:221}, {id:6, x:829, y:223}, {id:9, x:849, y:38}, {id:9, x:849, y:361}, {id:9, x:943, y:321}, {id:9, x:943, y:78}, {id:9, x:1037, y:118}, {id:9, x:1037, y:281}, {id:11, x:1191, y:215}, {id:7, x:1343, y:70}, {id:7, x:1343, y:374}, {id:1, x:1343, y:137}, {id:1, x:1343, y:305}, {id:7, x:1343, y:218}, {id:1, x:1445, y:137}, {id:7, x:1445, y:70}, {id:7, x:1445, y:374}, {id:7, x:1445, y:218}, {id:1, x:1445, y:305}, {id:7, x:1546, y:374}, {id:7, x:1546, y:218}, {id:1, x:1546, y:305}, {id:7, x:1546, y:70}, {id:1, x:1546, y:137}, {id:7, x:1648, y:374}, {id:1, x:1648, y:137}, {id:7, x:1648, y:218}, {id:7, x:1648, y:70}, {id:1, x:1648, y:305}, {id:1, x:1750, y:137}, {id:7, x:1750, y:70}, {id:7, x:1750, y:218}, {id:1, x:1750, y:305}, {id:7, x:1750, y:374}, {id:6, x:1863, y:337}, {id:6, x:1879, y:133}, {id:6, x:1971, y:185}, {id:6, x:1979, y:285}, {id:2, x:2189, y:371}, {id:2, x:2189, y:252}, {id:2, x:2189, y:193}, {id:2, x:2189, y:75}, {id:2, x:2189, y:134}, {id:2, x:2189, y:311}, {id:2, x:2289, y:252}, {id:2, x:2289, y:75}, {id:2, x:2289, y:193}, {id:2, x:2289, y:134}, {id:2, x:2289, y:371}, {id:2, x:2289, y:311}, {id:2, x:2393, y:371}, {id:2, x:2393, y:311}, {id:2, x:2393, y:193}, {id:2, x:2393, y:252}, {id:2, x:2393, y:75}, {id:2, x:2393, y:134}, {id:11, x:2575, y:251}, {id:8, x:2781, y:297}, {id:8, x:2781, y:149}, {id:7, x:2824, y:369}, {id:7, x:2824, y:77}, {id:7, x:2824, y:223}, {id:7, x:2897, y:223}, {id:7, x:2897, y:77}, {id:7, x:2897, y:369}, {id:7, x:2971, y:223}, {id:7, x:2971, y:369}, {id:7, x:2971, y:77}, {id:7, x:3044, y:223}, {id:7, x:3044, y:77}, {id:7, x:3044, y:369}, {id:8, x:3045, y:297}, {id:8, x:3045, y:149}, {id:7, x:3118, y:223}, {id:7, x:3118, y:77}, {id:7, x:3118, y:369}, {id:7, x:3192, y:369}, {id:7, x:3192, y:77}, {id:7, x:3192, y:223}, {id:11, x:3316, y:171}, {id:9, x:3459, y:312}, {id:9, x:3459, y:132}, {id:9, x:3531, y:312}, {id:9, x:3531, y:132}, {id:9, x:3603, y:312}, {id:9, x:3603, y:132}, {id:9, x:3675, y:132}, {id:9, x:3675, y:312}, {id:9, x:3811, y:222}, {id:9, x:3883, y:222}, {id:7, x:3887, y:105}, {id:7, x:3887, y:345}, {id:9, x:3955, y:222}, {id:7, x:3987, y:345}, {id:7, x:3987, y:105}, {id:9, x:4027, y:222}, {id:7, x:4087, y:105}, {id:7, x:4087, y:345}, {id:11, x:4211, y:171}];
pos5 = [{id:32, x:20, y:270}, {id:6, x:239, y:217}, {id:6, x:371, y:301}, {id:6, x:499, y:197}, {id:5, x:585, y:133}, {id:5, x:585, y:305}, {id:5, x:674, y:305}, {id:5, x:674, y:133}, {id:6, x:715, y:217}, {id:5, x:763, y:133}, {id:5, x:763, y:305}, {id:5, x:852, y:133}, {id:5, x:852, y:305}, {id:6, x:899, y:221}, {id:5, x:941, y:133}, {id:5, x:941, y:305}, {id:6, x:1027, y:213}, {id:5, x:1030, y:305}, {id:5, x:1030, y:133}, {id:6, x:1139, y:301}, {id:11, x:1251, y:279}, {id:8, x:1547, y:155}, {id:8, x:1547, y:227}, {id:8, x:1547, y:82}, {id:8, x:1547, y:300}, {id:8, x:1547, y:372}, {id:8, x:1659, y:123}, {id:8, x:1659, y:340}, {id:8, x:1659, y:195}, {id:8, x:1659, y:268}, {id:8, x:1767, y:300}, {id:8, x:1767, y:228}, {id:8, x:1767, y:155}, {id:8, x:1871, y:268}, {id:8, x:1871, y:195}, {id:8, x:1967, y:228}, {id:11, x:2080, y:163}, {id:3, x:2288, y:373}, {id:3, x:2288, y:77}, {id:4, x:2357, y:282}, {id:4, x:2357, y:121}, {id:4, x:2422, y:165}, {id:3, x:2422, y:373}, {id:4, x:2422, y:238}, {id:3, x:2422, y:77}, {id:4, x:2488, y:282}, {id:4, x:2488, y:121}, {id:6, x:2492, y:225}, {id:4, x:2553, y:238}, {id:4, x:2553, y:165}, {id:3, x:2556, y:373}, {id:3, x:2556, y:77}, {id:4, x:2618, y:282}, {id:4, x:2618, y:121}, {id:3, x:2682, y:77}, {id:3, x:2682, y:373}, {id:11, x:2816, y:223}, {id:11, x:2890, y:223}, {id:11, x:2964, y:223}, {id:11, x:3039, y:223}, {id:11, x:3113, y:223}, {id:11, x:3188, y:223}, {id:6, x:3327, y:233}, {id:6, x:3451, y:329}, {id:6, x:3471, y:105}, {id:6, x:3627, y:177}, {id:6, x:3755, y:121}, {id:6, x:3775, y:333}, {id:6, x:3907, y:261}, {id:10, x:4511, y:212}];
Frame 64
r._quality = "low";
call("sfx");
call("pro2");
call("pos2");
_global.all = this.all;
_global.m = all.map;
_global.n = all.n;
_global.o = all.over;
_global.bg = all.bg;
m.attachMovie("spacehorsey", "player", 100002);
_global.p = m.player;
fadescreen(10);
if (!r.slevel) {
r.checkpoint = 0;
r.slevel = 1;
}
gamestage = 2;
spacewin = 0;
fightboss = 0;
rapidshootdelay = 5;
levelitemcount = [];
asteroids = [1, 2, 3, 4, 5, 6, 7];
pos = [];
getleveldata2();
xspeed = 15;
yspeed = 20;
leftspace = 20;
ymin = 96;
ymax = 390;
scrollspeed = (scrollspeednormal = -4);
screenwid = 600;
screenhei = 400;
energy = (energymax = 10);
inv = 0;
invhitdelay = 40;
xnow = 0;
hit = 0;
nil = 100;
canpress = 1;
enemy = [];
pw = 30;
ph = 100;
bd = 5000;
od = 2000;
sd = 1000;
popmessage(2);
resetrandom();
setmusic();
call("pro3D");
onEnterFrame = function () {
m._x = m._x + scrollspeed;
xnow = xnow - scrollspeed;
xmin = xnow + leftspace;
xmax = xnow + 500;
if (r.pos[0].x < ((r.xnow + r.screenwid) + 30)) {
if (r.pos.length) {
it = r.pos.shift();
makeso(it, it.x, it.y);
if (r.pos.length == 1) {
popmessage(21);
}
}
}
if (r.inv > 0) {
r.inv--;
p._visible = !p._visible;
if (!r.inv) {
p._visible = 1;
}
}
cek3D();
};
stop();
Instance of Symbol 408 MovieClip in Frame 64
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 = "]}";
}
if (r.energy > 0) {
keypressed = keypressed + keyp;
if ((substring(keypressed, keypressed.length - 4, 5)) == "JUICE") {
energize(r.energymax);
keypressed = "";
} else if ((substring(keypressed, keypressed.length - 6, 7)) == "BEEPBOP") {
r.spacewin = 1;
r.zbonus2.start();
keypressed = "";
}
}
}
Frame 71
call("pro3");
d = 55;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
gotoAndPlay ("start3");
}
cek3D();
};
stop();
Frame 77
MovieClip.prototype.tcek = function (id) {
var _local2 = this;
if (id != 2) {
if (_local2.hitTest(p.z)) {
_local2.popscore(p._x + 120, p._y - 15, 3 * r.nil);
r.eat = 8;
_local2.tdie();
}
}
if (cekboxcoll(p._x, p._y, r.pw, r.ph, _local2._x, _local2._y, _local2.wid, _local2.hei)) {
r.hit = 1;
_local2.texplode(_local2._x, _local2._y);
_local2.tdie();
}
if (!_local2.uda) {
if (_local2._x < p._x) {
_local2.uda = 1;
_local2.popscore(_local2._x, _local2._y + 10, r.nil);
r.zscore.start();
}
}
if (r.xnow > (_local2._x + _local2.wid)) {
_local2.tdie();
}
};
MovieClip.prototype.texplode = function (x, y) {
m.attachMovie("explosion", "explosion" + r.od, r.od, {_x:x, _y:y});
r.zexplosion.start();
r.od++;
};
MovieClip.prototype.tdie = function () {
r.enemy.removevalue(this);
this.removeMovieClip();
};
MovieClip.prototype.makebubble = function (x, y, speed) {
var _local2 = this;
_local2.attachMovie("bubble", "bubble" + _local2.bd, _local2.bd, {_x:x, _y:y, xs:speed});
_local2.bd++;
};
MovieClip.prototype.popmessage = function (no) {
n.attachMovie("messages", "messages", 100, {no:no, _x:300, _y:150, _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();
}
r.all.energybar.gotoAndPlay(1);
};
MovieClip.prototype.popscore = function (x, y, sk) {
r.ang = r.ang + sk;
m.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:x, _y:y});
r.sd++;
};
MovieClip.prototype.popscore2 = function (sk) {
r.ang = r.ang + sk;
this.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:0, _y:(-this._height) - 15});
r.sd++;
};
MovieClip.prototype.blink = function () {
var _local2 = this;
_local2.attachMovie("blink", "blink", 101);
};
MovieClip.prototype.makewo = function (id, x, y) {
m.attachMovie("wo" + id, "wo" + r.od, r.od, {id:id, _x:x, _y:y});
r.od++;
};
MovieClip.prototype.sparkle2 = function () {
p.attachMovie("sparkle2", "sparkle2", 100);
};
MovieClip.prototype.cekboxcoll = function (ex, ey, ew, eh, sx, sy, sw, sh) {
if (Math.abs(ex - sx) < (ew + sw)) {
if ((((ey - sy) >= 0) and ((ey - sy) <= eh)) or (((sy - ey) >= 0) and ((sy - ey) <= sh))) {
return(1);
}
}
};
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) {
var speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
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 () {
_alpha = _alpha - speed;
if (_alpha <= 0) {
removeMovieClip("");
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++;
}
}
};
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});
};
Color.prototype.setTint = function (col, percent, resetMode) {
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))));
if ((resetMode == undefined) || ((resetMode != true) && (resetMode != false))) {
resetMode = true;
}
var trans = this.getTransform();
if (resetMode) {
with (trans) {
ra = (ga = (ba = 100));
rb = (gb = (bb = 0));
}
}
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);
};
Frame 83
r._quality = "low";
call("sfx");
call("pro3");
_global.all = this.all;
_global.m = all.map;
_global.n = all.n;
_global.o = all.over;
_global.bg = all.bg;
m.attachMovie("waterhorsey", "player", 100002);
_global.p = m.player;
fadescreen(10);
if (!r.wlevel) {
r.checkpoint = 0;
r.wlevel = 1;
}
gamestage = 3;
totalt = 60;
tbigd = (tbigdelay = 5);
waterwin = 0;
xspeed = 15;
yspeed = 30;
leftspace = 20;
xmin = 70;
xmax = 500;
ymin = 140;
ymax = 322;
bubblespeed = -2;
ripple1speed = -8;
ripple2speed = -6;
bottomspeed = -10;
bubbledelay1 = 20;
bubbledelay2 = 35;
screenwid = 600;
screenhei = 400;
energy = (energymax = 10);
inv = 0;
invhitdelay = 40;
xnow = 0;
hit = 0;
nil = 100;
canpress = 1;
enemy = [];
bubbles = [];
pw = 25;
ph = 80;
od = 2000;
sd = 1000;
popmessage(3);
de = 14;
d = 100;
wwindelay = 60;
resetrandom();
setmusic();
m.attachMovie("seamonkey", "seamonkey", 90001, {_x:62, _y:150});
call("pro3D");
onEnterFrame = function () {
if (totalt > 0) {
d--;
if (!d) {
d = de;
tbigd--;
if (tbigd < 0) {
tbigd = tbigdelay + random(5);
makewo(2, 650, 110 + random(220));
} else {
makewo(1, 650, 110 + random(220));
}
totalt--;
}
} else {
wwindelay--;
if (!wwindelay) {
if (r.energy > 0) {
r.waterwin = 1;
}
}
}
if (r.inv > 0) {
r.inv--;
p._visible = !p._visible;
if (!r.inv) {
p._visible = 1;
}
}
cek3D();
};
stop();
Instance of Symbol 408 MovieClip in Frame 83
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 = "]}";
}
if (r.energy > 0) {
keypressed = keypressed + keyp;
if ((substring(keypressed, keypressed.length - 4, 5)) == "JUICE") {
energize(r.energymax);
keypressed = "";
} else if ((substring(keypressed, keypressed.length - 6, 7)) == "BEEPBOP") {
r.waterwin = 1;
r.zbonus2.start();
keypressed = "";
}
}
}
Frame 91
d = 70;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
gotoAndPlay ("start4");
}
cek3D();
};
stop();
Frame 99
MovieClip.prototype.ccek = function () {
var _local2 = this;
if (cekboxcoll(p._x, p._y, r.pw, r.ph, _local2._x, _local2._y, _local2.wid, _local2.hei)) {
r.hit = 1;
_local2.cdie();
}
if (!_local2.uda) {
if (_local2._y > p._y) {
_local2.uda = 1;
_local2.popscore(_local2._x, _local2._y - 20, r.nil);
r.zscore.start();
}
}
if (_local2._y > 300) {
if (Math.abs(_local2._x - m.cstack["c" + r.stack[0]]._x) < 30) {
m.cstack["c" + r.stack[0]].gotoAndStop(2);
r.stack.shift();
}
r.zcereal.start();
_local2.cdie();
}
};
MovieClip.prototype.cdie = function () {
this.removeMovieClip();
};
MovieClip.prototype.popmessage = function (no) {
n.attachMovie("messages", "messages", 100, {no:no, _x:300, _y:150, _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.zhit.start();
} else {
r.zbonus.start();
}
r.all.energybar.gotoAndPlay(1);
};
MovieClip.prototype.popscore = function (x, y, sk) {
r.ang = r.ang + sk;
m.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:x, _y:y});
r.sd++;
};
MovieClip.prototype.popscore2 = function (sk) {
r.ang = r.ang + sk;
this.attachMovie("popskor", "popskor" + r.sd, r.sd, {a:sk, _x:0, _y:(-this._height) - 15});
r.sd++;
};
MovieClip.prototype.blink = function () {
var _local2 = this;
_local2.attachMovie("blink", "blink", 101);
};
MovieClip.prototype.makeko = function (id, x, y, ys) {
m.place.attachMovie("ko" + id, "ko" + r.od, r.od, {id:id, _x:x, _y:y, ys:ys});
r.od++;
};
MovieClip.prototype.sparkle2 = function () {
p.attachMovie("sparkle2", "sparkle2", 100);
};
MovieClip.prototype.cekboxcoll = function (ex, ey, ew, eh, sx, sy, sw, sh) {
if (Math.abs(ex - sx) < (ew + sw)) {
if ((((ey - sy) >= 0) and ((ey - sy) <= eh)) or (((sy - ey) >= 0) and ((sy - ey) <= sh))) {
return(1);
}
}
};
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) {
var speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
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 () {
_alpha = _alpha - speed;
if (_alpha <= 0) {
removeMovieClip("");
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++;
}
}
};
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});
};
Color.prototype.setTint = function (col, percent, resetMode) {
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))));
if ((resetMode == undefined) || ((resetMode != true) && (resetMode != false))) {
resetMode = true;
}
var trans = this.getTransform();
if (resetMode) {
with (trans) {
ra = (ga = (ba = 100));
rb = (gb = (bb = 0));
}
}
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);
};
Frame 105
r._quality = "low";
call("sfx");
call("pro4");
_global.all = this.all;
_global.m = all.map;
_global.n = all.n;
_global.o = all.over;
_global.bg = all.bg;
_global.p = m.player;
fadescreen(10);
if (!r.klevel) {
r.checkpoint = 0;
r.klevel = 1;
}
gamestage = 4;
totalc = 50;
kitchenwin = 0;
xspeed = 20;
fallspeed = 14;
stack = [1, 2, 3, 4, 5, 6, 7, 8];
stack.randomize();
xmin = 170;
xmax = 430;
screenwid = 600;
screenhei = 400;
energy = (energymax = 10);
inv = 0;
invhitdelay = 20;
xnow = 0;
hit = 0;
nil = 100;
idle = -70;
canpress = 1;
oldx = p._x;
pw = 25;
ph = 35;
od = 2000;
sd = 1000;
popmessage(4);
de = 8;
d = 65;
kwindelay = 50;
resetrandom();
setmusic();
call("pro3D");
onEnterFrame = function () {
if (totalc > 0) {
if (!r.kitchenwin) {
d--;
if (!d) {
makeko(1, r.xmin + random(260), 0, r.fallspeed);
totalc--;
r.fallspeed = r.fallspeed + 0.1;
d = de + random(6);
}
if (p._x < 200) {
if (random(100) > 90) {
makeko(1, r.xmax + (2 * random(10)), 15, 1.5 * r.fallspeed);
}
} else if (p._x > 400) {
if (random(100) > 90) {
makeko(1, r.xmin - (2 * random(10)), 15, 1.5 * r.fallspeed);
}
}
if (p._x == r.oldx) {
r.idle++;
if (r.idle > 15) {
makeko(1, p._x, 0, 0.8 * r.fallspeed);
r.idle = 0;
}
} else {
r.idle = 0;
r.oldx = p._x;
}
}
} else {
kwindelay--;
if (!kwindelay) {
if (r.energy > 0) {
r.kitchenwin = 1;
}
}
}
if (r.inv > 0) {
r.inv--;
p._visible = !p._visible;
if (!r.inv) {
p._visible = 1;
}
}
cek3D();
};
stop();
Instance of Symbol 408 MovieClip in Frame 105
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 = "]}";
}
if (r.energy > 0) {
keypressed = keypressed + keyp;
if ((substring(keypressed, keypressed.length - 4, 5)) == "JUICE") {
energize(r.energymax);
keypressed = "";
} else if ((substring(keypressed, keypressed.length - 6, 7)) == "BEEPBOP") {
r.kitchenwin = 1;
r.zbonus2.start();
keypressed = "";
}
}
}
Frame 113
r.zwin.start();
vol = [80, 70, 60, 50, 40, 30, 20, 10, 0];
d = 100;
onEnterFrame = function () {
if (vol.length) {
r.zloop.setVolume(vol.shift());
}
cek3D();
d--;
if (!d) {
delete onEnterFrame;
r.gotoAndPlay("fin");
}
};
stop();
Frame 119
delete onEnterFrame;
outputhide();
fadescreen(10);
r.zhorse.stop();
r.zhit.stop();
r.level = 0;
r.slevel = 0;
r.wlevel = 0;
r.klevel = 0;
r.checkpoint = 0;
r.udamusik = 0;
angtxt = r.ang;
r.ang = 0;
stop();
Symbol 1 MovieClip [blinkenemy] Frame 1
c = new Color(_parent);
br = 100;
c.setBrightness(br);
Symbol 1 MovieClip [blinkenemy] Frame 3
c.setTint(16711680, 100);
Symbol 1 MovieClip [blinkenemy] Frame 5
c.resetcolor();
this.removeMovieClip();
Symbol 2 MovieClip [blink] Frame 1
d = 20;
c = new Color(_parent);
a = 1;
b = 1;
br = 100;
onEnterFrame = function () {
d--;
a--;
if (!a) {
a = 2;
b = !b;
if (b) {
c.setBrightness(br);
} else {
c.setTint(16711680, 80);
}
if (br > 50) {
br = br - 5;
}
} else {
c.resetcolor();
}
if (!d) {
c.resetcolor();
this.removeMovieClip();
}
};
Symbol 3 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 59 Button
on (release) {
r.gotoAndStop("ins");
}
on (keyPress "<Enter>") {
r.gotoAndStop("ins");
}
on (keyPress "<Space>") {
r.gotoAndStop("ins");
}
Symbol 69 Button
on (release) {
gotoAndStop (2);
}
on (keyPress "<Enter>") {
gotoAndStop (2);
}
on (keyPress "<Space>") {
gotoAndStop (2);
}
Symbol 76 Button
on (release) {
r.threeD = 1;
CNtrack();
r.gotoAndPlay("start1");
}
on (keyPress "<Enter>") {
r.threeD = 1;
CNtrack();
r.gotoAndPlay("start1");
}
on (keyPress "<Space>") {
r.threeD = 1;
CNtrack();
r.gotoAndPlay("start1");
}
Symbol 79 Button
on (release) {
r.threeD = 0;
CNtrack();
r.gotoAndPlay("start1");
}
Symbol 82 Button
on (keyPress "<Up>") {
gotoAndStop (2);
}
on (keyPress "<Down>") {
gotoAndStop (3);
}
Symbol 83 Button
on (release) {
r.threeD = 1;
CNtrack();
r.gotoAndPlay("start1");
}
Symbol 85 Button
on (release) {
r.threeD = 0;
CNtrack();
r.gotoAndPlay("start1");
}
on (keyPress "<Enter>") {
r.threeD = 0;
CNtrack();
r.gotoAndPlay("start1");
}
on (keyPress "<Space>") {
r.threeD = 0;
CNtrack();
r.gotoAndPlay("start1");
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 7
stop();
Symbol 120 MovieClip Frame 15
stop();
Symbol 122 MovieClip Frame 1
_visible = false;
Symbol 132 MovieClip Frame 15
stop();
Symbol 148 MovieClip Frame 12
stop();
Symbol 155 MovieClip Frame 6
stop();
Symbol 162 MovieClip Frame 6
gotoAndPlay ("l");
Symbol 163 MovieClip Frame 7
stop();
Symbol 164 MovieClip Frame 15
r.zhorse.stop();
Symbol 164 MovieClip Frame 57
stop();
Symbol 171 MovieClip Frame 31
stop();
Symbol 174 MovieClip Frame 1
if (!uda) {
uda = 1;
gotoAndPlay(r.danceframe);
}
Symbol 178 MovieClip [cheese] Frame 1
stop();
Symbol 178 MovieClip [cheese] Frame 14
stop();
Symbol 178 MovieClip [cheese] Frame 42
stop();
Symbol 178 MovieClip [cheese] Frame 49
stop();
Symbol 178 MovieClip [cheese] Frame 56
stop();
Symbol 178 MovieClip [cheese] Frame 64
stop();
Symbol 178 MovieClip [cheese] Frame 72
stop();
Symbol 183 MovieClip [ob7] Frame 1
initb();
Symbol 187 MovieClip [ob2] Frame 1
initb();
Symbol 191 MovieClip [ob3] Frame 1
initb();
Symbol 195 MovieClip [ob6] Frame 1
xs = 3;
ys = 0;
xrange = 150;
yrange = 0;
initb(2);
Symbol 196 MovieClip [ob4] Frame 1
initb(1);
stop();
Symbol 197 MovieClip [ob5] Frame 1
xs = 0;
ys = -3;
xrange = 0;
yrange = 100;
initb(2);
Symbol 227 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 5
stop();
Symbol 250 MovieClip [sparkle] Frame 15
this.removeMovieClip();
Symbol 252 MovieClip [popskor] Frame 20
this.removeMovieClip();
Symbol 259 MovieClip Frame 37
stop();
Symbol 262 MovieClip Frame 37
stop();
Symbol 264 MovieClip Frame 37
stop();
Symbol 266 MovieClip Frame 37
stop();
Symbol 278 MovieClip Frame 55
_parent.d = 60;
stop();
Symbol 284 MovieClip [like] Frame 1
_parent.d = 1000;
Symbol 284 MovieClip [like] Frame 83
stop();
Symbol 285 MovieClip [messages] Frame 1
d = 60;
onEnterFrame = function () {
_visible = true;
d--;
if (!d) {
this.removeMovieClip();
}
};
gotoAndStop(no);
Symbol 289 MovieClip [horsey] Frame 1
r.horseout = 1;
r.zhorse.start(0, 99999);
xs = 35;
onEnterFrame = function () {
_x = (_x + xs);
if (cekboxcoll(p._x, p._y, r.pw, r.ph, _x, _y, _width / 2, _height)) {
r.horsemode = 1;
r.horseout = 0;
popmessage(13);
r.zbonus2.start();
this.removeMovieClip();
} else if (_x > (r.xnow + 650)) {
r.horseout = 0;
this.removeMovieClip();
}
};
stop();
Symbol 294 MovieClip Frame 1
if (_name == "monkey") {
onEnterFrame = function () {
r.danceframe = _currentframe;
r.dancepos = _parent._x - 40;
};
}
Symbol 295 MovieClip [ob14] Frame 1
_visible = false;
onEnterFrame = function () {
if (_x < (r.xnow + 350)) {
delete onEnterFrame;
play();
}
};
stop();
Symbol 295 MovieClip [ob14] Frame 2
_visible = true;
_x = (r.xnow + 350);
onEnterFrame = function () {
_x = (_x - r.scrollspeed);
};
Symbol 295 MovieClip [ob14] Frame 63
onEnterFrame = function () {
if (((!r.jump) and (!r.hit)) and (p._y == r.yland)) {
r.dance = 1;
}
if (r.horseout) {
this.onEnterFrame = function () {
_x = (_x + r.scrollspeed);
if (_x < -300) {
this.removeMovieClip();
}
};
}
};
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 51
stop();
Symbol 313 MovieClip [ob15] Frame 1
uda = 0;
onEnterFrame = function () {
if ((p._x + 100) > _x) {
if (!uda) {
uda = 1;
r.ang = r.ang + 800;
a.play();
}
}
if (_x < (r.xnow - 100)) {
this.removeMovieClip();
}
};
stop();
Symbol 314 MovieClip [ob1] Frame 1
initb();
Symbol 324 MovieClip [ob31] Frame 1
if (r.checkpoint < 1) {
uda = 0;
onEnterFrame = function () {
if (!uda) {
if (p._x > _x) {
uda = 1;
r.checkpoint = 1;
r.zcheckpoint.start();
play();
}
}
if (_x < (r.xnow - 20)) {
this.removeMovieClip();
}
};
}
stop();
Symbol 324 MovieClip [ob31] Frame 34
stop();
Symbol 325 MovieClip [ob32] Frame 1
if (r.checkpoint < 2) {
uda = 0;
onEnterFrame = function () {
if (!uda) {
if (p._x > _x) {
uda = 1;
r.checkpoint = 2;
r.zcheckpoint.start();
play();
}
}
if (_x < (r.xnow - 20)) {
this.removeMovieClip();
}
};
}
stop();
Symbol 325 MovieClip [ob32] Frame 34
stop();
Symbol 328 MovieClip [ob33] Frame 1
_visible = false;
onEnterFrame = function () {
if (this.hitTest(p)) {
r.launch = 1;
}
};
stop();
Symbol 336 MovieClip Frame 1
onEnterFrame = function () {
if (r.lady == "b") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 338 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
speed = -1;
onEnterFrame = function () {
nx = _x + speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 352 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
speed = -2;
onEnterFrame = function () {
nx = _x + speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 366 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
speed = -3;
onEnterFrame = function () {
nx = _x + speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 377 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = 600;
pic2._x = wid;
startx = _x;
onEnterFrame = function () {
nx = _x + (1.5 * r.scrollspeed);
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 385 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = 600;
pic2._x = wid;
startx = _x;
onEnterFrame = function () {
nx = _x + (2 * r.scrollspeed);
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 393 MovieClip Frame 1
if (r.energy > 0) {
gotoAndStop((r.energymax + 2) - r.energy);
} else {
gotoAndPlay(r.energymax + 2);
}
Symbol 393 MovieClip Frame 40
r.gotoAndPlay("end");
Symbol 396 Button
on (release) {
r.threeD = 0;
gotoAndStop (2);
}
Symbol 399 Button
on (release) {
r.threeD = 1;
gotoAndStop (1);
}
Symbol 402 MovieClip Frame 1
if (!r.threeD) {
gotoAndStop (2);
} else {
stop();
}
Symbol 406 MovieClip Frame 1
function cekup() {
var _local3 = -60000;
var _local2 = 0;
while (_local2 < b.length) {
var _local1 = b[_local2];
if (!_local1.t) {
if (r.x2 > _local1.x1) {
if (r.x1 < _local1.x2) {
if (r.y2 > _local1.y2) {
if (_local1.y2 > _local3) {
_local3 = _local1.y2;
}
}
}
}
}
_local2++;
}
return(_local3);
}
function cekdown() {
var _local3 = 60000;
var _local2 = 0;
while (_local2 < b.length) {
var _local1 = b[_local2];
if (r.x2 > _local1.x1) {
if (r.x1 < _local1.x2) {
if (r.y2 < _local1.y1) {
if (_local1.y1 < _local3) {
_local3 = _local1.y1;
}
}
}
}
_local2++;
}
r.floatbelow = 0;
_local2 = 0;
while (_local2 < c.length) {
var _local1 = c[_local2];
if (p.z.hitTest(_local1.mc.z)) {
if (_local1.y1 < _local3) {
_local3 = _local1.y1;
r.floatbelow = _local1.n;
}
}
_local2++;
}
return(_local3);
}
MovieClip.prototype.cekstep = function () {
if (!r.jump) {
var _local3 = 60000;
var _local2 = 0;
while (_local2 < b.length) {
var _local1 = b[_local2];
if (r.x2 > _local1.x1) {
if (r.x1 < _local1.x2) {
if (r.y2 == _local1.y1) {
_local3 = _local1.y1;
}
}
}
_local2++;
}
_local2 = 0;
while (_local2 < c.length) {
var _local1 = c[_local2];
if (r.x2 > _local1.x1) {
if (r.x1 < _local1.x2) {
if (r.y2 == _local1.y1) {
_local3 = _local1.y1;
}
}
}
_local2++;
}
if (_local3 == 60000) {
r.onfloat = 0;
r.jump = 1;
r.vy = 100;
}
}
};
MovieClip.prototype.cekleft = function () {
var _local3 = -60000;
var _local2 = 0;
while (_local2 < b.length) {
var _local1 = b[_local2];
if (!_local1.t) {
if (r.y2 > _local1.y1) {
if (r.y1 < _local1.y2) {
if ((p._x - r.pw) > _local1.x2) {
if (_local1.x2 > _local3) {
_local3 = _local1.x2;
}
}
}
}
}
_local2++;
}
if ((r.nx - r.pw) < _local3) {
r.nx = (_local3 + r.pw) + 0.1;
r.x1 = r.nx - r.pw;
r.x2 = r.nx + r.pw;
r.xs = 0;
}
};
MovieClip.prototype.cekright = function () {
var _local3 = 60000;
var _local2 = 0;
while (_local2 < b.length) {
var _local1 = b[_local2];
if (!_local1.t) {
if (r.y2 > _local1.y1) {
if (r.y1 < _local1.y2) {
if ((p._x + r.pw) < _local1.x1) {
if (_local1.x1 < _local3) {
_local3 = _local1.x1;
}
}
}
}
}
_local2++;
}
if ((r.nx + r.pw) > _local3) {
r.nx = (_local3 - r.pw) - 0.1;
r.x1 = r.nx - r.pw;
r.x2 = r.nx + r.pw;
r.xs = 0;
}
};
MovieClip.prototype.updatefloat = function () {
var _local4 = 0;
while (_local4 < c.length) {
var _local1 = c[_local4];
if (_local1.xs != 0) {
var _local2 = _local1.x1 + _local1.xs;
if (_local2 < _local1.xmin) {
_local2 = _local1.xmin;
_local1.xs = Math.abs(_local1.xs);
}
if (_local2 > _local1.xmax) {
_local2 = _local1.xmax;
_local1.xs = -Math.abs(_local1.xs);
}
ldis = _local2 - _local1.x1;
_local1.x1 = _local2;
_local1.x2 = _local1.x1 + _local1.w;
_local1.xc = _local1.x1 + (0.5 * _local1.w);
_local1.mc._x = _local1.x1;
if (r.onfloat == _local1.n) {
r.nx = p._x + ldis;
r.x1 = p._x - r.pw;
r.x2 = p._x + r.pw;
if (ldis < 0) {
cekleft();
} else {
cekright();
}
p._x = r.nx;
}
}
if (_local1.ys != 0) {
var _local3 = _local1.y1 + _local1.ys;
if (_local3 < _local1.ymin) {
_local3 = _local1.ymin;
_local1.ys = Math.abs(_local1.ys);
}
if (_local3 > _local1.ymax) {
_local3 = _local1.ymax;
_local1.ys = -Math.abs(_local1.ys);
}
_local1.y1 = _local3;
_local1.y2 = _local1.y1 + _local1.hi;
_local1.mc._y = _local1.y1;
if (r.onfloat == _local1.n) {
r.y1 = _local1.y1 - r.ph;
r.y2 = _local1.y1;
r.x1 = p._x - r.pw;
r.x2 = p._x + r.pw;
if (_local1.ys < 0) {
up = cekup();
if ((r.y1 - _local1.ys) < up) {
r.y1 = up + 0.1;
r.y2 = up + r.ph;
r.onfloat = 0;
r.jump = 1;
}
} else {
down = cekdown();
if ((r.y2 + _local1.ys) > down) {
r.y2 = down;
r.y1 = r.y2 - r.ph;
r.onfloat = 0;
}
}
p._y = r.y2;
}
}
_local4++;
}
};
MovieClip.prototype.cekdeleteblock = function () {
if (b.length > 0) {
if (b[0].x2 < r.xnow) {
b[0].mc.removeMovieClip();
b.shift();
}
}
if (c.length > 0) {
if (c[0].x2 < r.xnow) {
c[0].mc.removeMovieClip();
c.shift();
}
}
};
Symbol 406 MovieClip Frame 2
p.gotoAndStop("jump1");
p._x = -30;
p._y = 100;
xs = 20;
ys = 10;
onEnterFrame = function () {
p._x = p._x + xs;
p._y = p._y + ys;
ys = ys + 3;
if (p._y > r.yland) {
p._y = r.yland;
delete onEnterFrame;
gotoAndPlay ("run");
}
};
stop();
Symbol 406 MovieClip Frame 8
r.vy = 0;
onEnterFrame = function () {
cekdeleteblock();
updatefloat();
r.key1 = {at:Key.isDown(38), ba:Key.isDown(40), ki:Key.isDown(37), ka:Key.isDown(39)};
r.xs = r.walkspeed;
if (r.canpress) {
if (r.key1.at) {
if ((r.canjump and (!r.jump)) and (!r.pressjump)) {
r.vy = r.jumpforce;
r.jump = 1;
r.canjump = 0;
r.pressjump = 1;
r.onfloat = 0;
r.zjump.start();
}
} else {
r.pressjump = 0;
}
if (r.key1.ki) {
r.xs = -r.runspeed;
} else if (r.key1.ka) {
r.xs = 1.5 * r.runspeed;
}
}
r.nx = p._x + r.xs;
r.nx = Math.min(r.xmax, r.nx);
r.nx = Math.max(r.xmin, r.nx);
r.ny = p._y;
r.x1 = r.nx - r.pw;
r.x2 = r.nx + r.pw;
r.y1 = r.ny - r.ph;
r.y2 = r.ny;
cekstep();
if (r.xs > 0) {
r.hd = 1;
cekright();
} else if (r.xs < 0) {
r.hd = 2;
cekleft();
}
if (r.jump) {
r.vy = r.vy + (r.grav / 10);
up = cekup();
down = cekdown();
r.ny = p._y + (r.vy / 10);
if (r.vy < 0) {
if ((r.ny - r.ph) < up) {
r.ny = (up + r.ph) + 0.1;
r.jump = 1;
r.vy = 0;
}
} else {
if (r.ny >= down) {
if (r.floatbelow != 0) {
r.onfloat = r.floatbelow;
}
r.ny = down;
r.jump = 0;
r.vy = 0;
r.canjump = 1;
r.jumphi = 0;
}
if (p._y > 500) {
r.zfall.start();
d = 25;
this.onEnterFrame = function () {
d--;
if (!d) {
r.gotoAndPlay("end");
}
};
}
}
}
p._x = r.nx;
p._y = r.ny;
if (r.horsemode) {
r.scrollspeed = 4 * r.scrollspeednormal;
r.leftspace = 2 * r.leftspacenormal;
r.sta = "horsey";
if (r.jump) {
r.zhorse.setVolume(0);
} else {
r.zhorse.setVolume(100);
}
} else {
scrollspeed = scrollspeednormal;
leftspace = leftspacenormal;
if (r.jump) {
r.sta = "jump";
} else if (r.xs != 0) {
r.sta = "run";
} else {
r.sta = "stand";
}
}
p.gotoAndStop((r.sta + r.hd) + r.lady);
if (r.hit) {
if (r.inv) {
r.hit = 0;
} else {
delete onEnterFrame;
gotoAndPlay ("hit");
}
} else if (r.dance) {
delete onEnterFrame;
gotoAndPlay ("dance");
} else if (r.kiss) {
delete onEnterFrame;
gotoAndPlay ("kiss");
} else if (r.launch) {
if (!r.jump) {
delete onEnterFrame;
gotoAndPlay ("launch");
}
}
};
stop();
Symbol 406 MovieClip Frame 14
p.blink();
energize(-2);
if (r.horsemode) {
if (r.energy) {
p.gotoAndStop("horseyhit");
d = 2;
onEnterFrame = function () {
d--;
if (!d) {
r.hit = 0;
r.inv = r.invhitdelay;
delete onEnterFrame;
gotoAndPlay ("run");
}
};
} else {
p._x = p._x - r.scrollspeed;
p.gotoAndStop("horseyfall");
}
} else {
p.gotoAndStop("hit");
d = 7;
onEnterFrame = function () {
d--;
if (!d) {
if (r.energy) {
r.hit = 0;
r.inv = r.invhitdelay;
delete onEnterFrame;
gotoAndPlay ("run");
} else {
ys = 10;
p._y = p._y + ys;
this.onEnterFrame = function () {
p._y = p._y + ys;
ys = ys + 3;
};
}
}
};
}
stop();
Symbol 406 MovieClip Frame 20
p.gotoAndStop("dance");
p._y = r.yland;
d = 30;
onEnterFrame = function () {
p._x = p._x + ((r.dancepos - p._x) / 2);
d--;
if (!d) {
r.ang = r.ang + 800;
m.attachMovie("horsey", "ob" + r.od, r.od, {_x:r.xnow - 50, _y:r.yland});
r.od++;
this.onEnterFrame = function () {
if (r.horsemode) {
r.dance = 0;
r.jump = 0;
r.canjump = 1;
delete onEnterFrame;
gotoAndPlay ("run");
}
};
}
};
stop();
Symbol 406 MovieClip Frame 27
p.gotoAndStop("kiss");
d = 2;
onEnterFrame = function () {
d--;
if (!d) {
r.kiss = 0;
delete onEnterFrame;
gotoAndPlay ("run");
}
};
stop();
Symbol 406 MovieClip Frame 33
p.gotoAndStop("liftoff");
d = 80;
onEnterFrame = function () {
if ((p._x - r.xnow) > 200) {
p._x = p._x - 8;
}
p._x = p._x - r.scrollspeed;
d--;
if (!d) {
delete r.onEnterFrame;
r.gotoAndPlay("liftoff");
}
};
stop();
Symbol 409 Button
on (release) {
CNtrack();
stopAllSounds();
r.gotoAndPlay("start" + r.gamestage);
}
on (keyPress "<Enter>") {
CNtrack();
stopAllSounds();
r.gotoAndPlay("start" + r.gamestage);
}
on (keyPress "<Space>") {
CNtrack();
stopAllSounds();
r.gotoAndPlay("start" + r.gamestage);
}
Symbol 421 MovieClip Frame 50
stop();
Symbol 425 MovieClip Frame 26
stop();
Symbol 443 MovieClip Frame 1
d = 20 + random(20);
onEnterFrame = function () {
d--;
if (!d) {
play();
}
};
stop();
Symbol 453 MovieClip Frame 59
stop();
Symbol 454 MovieClip [spacehorsey] Frame 1
stop();
Symbol 458 MovieClip [eyebeam] Frame 1
wid = 25;
hei = 11;
xs = 25;
onEnterFrame = function () {
_x = (_x + xs);
var _local3 = 0;
while (_local3 < r.enemy.length) {
var _local2 = r.enemy[_local3];
if (cekboxcoll(_x, _y, wid, hei, _local2._x, _local2._y, _local2.wid, _local2.hei)) {
_local2.hit = 1;
this.removeMovieClip();
}
_local3++;
}
if (_x > (r.xnow + 640)) {
this.removeMovieClip();
}
};
Symbol 464 MovieClip [so2] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
range = 20;
speed = 4;
startx = _x;
xs = range;
xspeed = -2;
onEnterFrame = function () {
_x = (_x + xs);
if (_x > startx) {
xs = Math.max(xs - speed, -range);
} else {
xs = Math.min(xs + speed, range);
}
startx = startx + xspeed;
botcek();
};
stop();
Symbol 470 MovieClip [so3] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -1;
fastspeed = 15;
div = 1.1;
d = 25;
onEnterFrame = function () {
d--;
if (d > 0) {
_x = (_x + xs);
}
if (!d) {
dy = p._y - _y;
dx = p._x - _x;
if (dx > 0) {
dx = -1;
}
ang = Math.atan2(dy, dx);
xs = (-r.scrollspeed) + (Math.cos(ang) * fastspeed);
ys = Math.sin(ang) * fastspeed;
}
if (d < 0) {
_x = (_x + xs);
_y = (_y + ys);
xs = xs * div;
ys = ys * div;
}
botcek();
};
stop();
Symbol 476 MovieClip [so1] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
starty = _y;
dv = 0.2;
am = 70;
a = 0;
xs = -2;
onEnterFrame = function () {
_y = (starty + (Math.sin((a = a + dv)) * am));
_x = (_x + xs);
botcek();
};
stop();
Symbol 485 MovieClip Frame 9
stop();
Symbol 486 MovieClip [explosion] Frame 9
this.removeMovieClip();
Symbol 492 MovieClip [so4] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
starty = _y;
dv = 0.2;
am = 20;
a = 0;
xs = -4;
onEnterFrame = function () {
_y = (starty + (Math.sin((a = a + dv)) * am));
_x = (_x + xs);
botcek();
};
stop();
Symbol 498 MovieClip [so5] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
var x0 = _x;
var y0 = _y;
var radius = 50;
a = 0;
xs = -1;
onEnterFrame = function () {
var _local1 = (a * Math.PI) / 180;
_x = (x0 + (radius * Math.cos(_local1)));
_y = (y0 + (radius * Math.sin(_local1)));
a = a + 8;
a = a % 360;
x0 = x0 + xs;
botcek();
};
Symbol 504 MovieClip [so6] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -2;
d = (de = 15);
range = 12;
speed = 1;
starty = _y;
ys = range;
onEnterFrame = function () {
starty = _y + ((p._y - _y) / 5);
_y = (_y + ys);
if (_y > starty) {
ys = Math.max(ys - speed, -range);
} else {
ys = Math.min(ys + speed, range);
}
d--;
if (!d) {
d = de;
botshoot();
}
botcek();
};
stop();
Symbol 510 MovieClip [so7] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -3;
onEnterFrame = function () {
_x = (_x + xs);
botcek();
};
Symbol 516 MovieClip [so8] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -15;
d = 10;
onEnterFrame = function () {
_x = (_x + xs);
if (!uda) {
d--;
if (d < 0) {
xs = xs + 4;
if (xs > 44) {
uda = 1;
xs = -20;
}
}
} else {
xs--;
}
botcek();
};
Symbol 522 MovieClip [so9] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -10;
d = 5;
onEnterFrame = function () {
_x = (_x + xs);
if (!uda) {
d--;
if (d < 0) {
xs = xs + 4;
if (xs > 15) {
uda = 1;
botshoot();
starty = _y;
dv = 0.1;
am = 40;
a = -0.1;
}
}
} else {
xs = xs * 0.8;
_y = (starty + (Math.sin((a = a + dv)) * am));
}
botcek();
};
Symbol 526 MovieClip [cakebeam] Frame 1
initbeam();
Symbol 530 MovieClip [botbeam] Frame 1
initbeam();
Symbol 535 MovieClip [sparkle2] Frame 15
this.removeMovieClip();
Symbol 541 MovieClip [so31] Frame 1
if (r.checkpoint < 1) {
uda = 0;
range = 2;
speed = 0.2;
starty = _y;
ys = range;
onEnterFrame = function () {
_y = (_y + ys);
if (_y > starty) {
ys = Math.max(ys - speed, -range);
} else {
ys = Math.min(ys + speed, range);
}
if (!uda) {
if (_x < (r.xnow + 300)) {
uda = 1;
r.checkpoint = 1;
play();
}
}
if (_x < (r.xnow - 20)) {
this.removeMovieClip();
}
};
}
stop();
Symbol 541 MovieClip [so31] Frame 34
stop();
Symbol 542 MovieClip [so32] Frame 1
if (r.checkpoint < 2) {
uda = 0;
range = 2;
speed = 0.2;
starty = _y;
ys = range;
onEnterFrame = function () {
_y = (_y + ys);
if (_y > starty) {
ys = Math.max(ys - speed, -range);
} else {
ys = Math.min(ys + speed, range);
}
if (!uda) {
if (_x < (r.xnow + 300)) {
uda = 1;
r.checkpoint = 2;
play();
}
}
if (_x < (r.xnow - 20)) {
this.removeMovieClip();
}
};
}
stop();
Symbol 542 MovieClip [so32] Frame 34
stop();
Symbol 548 MovieClip [so10] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -2;
energy = 50;
d = (de = 12);
xrange = 12;
yrange = 12;
speed = 1;
startx = _x;
starty = _y;
ys = yrange;
xs = xrange;
xn = 550;
xns = -5;
onEnterFrame = function () {
xn = xn + xns;
if (xn < 300) {
xn = 300;
xns = 5;
} else if (xn > 550) {
xn = 550;
xns = -5;
}
targetx = r.xnow + xn;
startx = _x + ((targetx - _x) / 5);
_x = (_x + xs);
if (_x > startx) {
xs = Math.max(xs - speed, -xrange);
} else {
xs = Math.min(xs + speed, xrange);
}
starty = _y + ((p._y - _y) / 5);
_y = (_y + ys);
if (_y > starty) {
ys = Math.max(ys - speed, -yrange);
} else {
ys = Math.min(ys + speed, yrange);
}
d--;
if (!d) {
d = de + random(12);
cakeshoot();
r.fightboss = 1;
}
if (cekboxcoll(p._x, p._y, r.pw, r.ph, _x, _y, wid, hei)) {
r.hit = 1;
}
if (hit) {
hit = 0;
energy--;
this.attachMovie("blinkenemy", "blinkenemy", 100);
if (energy < 0) {
r.spacewin = 1;
r.zexplosion3.start();
explode(_x, _y - 22);
popscore(_x, _y - 70, 50 * r.nil);
die();
}
}
};
stop();
Symbol 570 MovieClip [asteroid1] Frame 1
xs = -10;
onEnterFrame = function () {
_x = (_x + xs);
if (_x < (-_width)) {
this.removeMovieClip();
}
};
gotoAndStop(no);
Symbol 571 MovieClip [asteroid2] Frame 1
xs = -12;
onEnterFrame = function () {
_x = (_x + xs);
if (_x < (-_width)) {
this.removeMovieClip();
}
};
gotoAndStop(no);
Symbol 576 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
speed = -2;
onEnterFrame = function () {
nx = _x + speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 581 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
speed = -4;
onEnterFrame = function () {
nx = _x + speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 582 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
speed = -8;
onEnterFrame = function () {
nx = _x + speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 584 MovieClip Frame 1
de = 30;
d = 20;
n = 10;
flip = 0;
onEnterFrame = function () {
d--;
if (!d) {
d = de + random(40);
no = getrandom("asteroids");
flip = !flip;
if (flip) {
y = 400;
} else {
y = -30;
}
this.attachMovie("asteroid1", "asteroid" + n, n, {_x:600, _y:y, no:no});
n++;
}
};
Symbol 585 MovieClip Frame 1
de = 40;
d = 1;
n = 10;
flip = 1;
onEnterFrame = function () {
d--;
if (!d) {
d = de + random(20);
no = getrandom("asteroids");
flip = !flip;
if (flip) {
y = 400;
} else {
y = 0;
}
this.attachMovie("asteroid2", "asteroid" + n, n, {_x:600, _y:y, no:no});
n++;
}
};
Symbol 590 MovieClip Frame 1
p._x = -50;
p._y = 270;
targx = 250;
onEnterFrame = function () {
p._x = p._x + ((targx - p._x) / 8);
if (Math.abs(p._x - targx) < 10) {
delete onEnterFrame;
gotoAndPlay ("fly");
}
};
stop();
Symbol 590 MovieClip Frame 8
x = p._x;
y = p._y;
windelay = 30;
firstshot = 1;
onEnterFrame = function () {
r.key1 = {at:Key.isDown(38), ba:Key.isDown(40), ki:Key.isDown(37), ka:Key.isDown(39), sp:Key.isDown(32)};
x = x - r.scrollspeed;
if (r.canpress) {
if (r.key1.at) {
y = y - r.yspeed;
} else if (r.key1.ba) {
y = y + r.yspeed;
}
if (r.key1.ki) {
x = x - r.xspeed;
} else if (r.key1.ka) {
x = x + r.xspeed;
}
}
x = Math.max(Math.min(x, r.xmax), r.xmin);
y = Math.max(Math.min(y, r.ymax), r.ymin);
p._x = p._x + ((x - p._x) / 5);
p._y = p._y + ((y - p._y) / 5);
if (r.hit) {
if (r.inv) {
r.hit = 0;
} else {
delete onEnterFrame;
gotoAndPlay ("hit");
}
}
if (r.spacewin) {
windelay--;
if (!windelay) {
delete onEnterFrame;
gotoAndPlay ("win");
}
}
if (r.fightboss) {
p.gotoAndStop("flyboss");
} else {
p.gotoAndStop("fly");
}
if (r.key1.sp) {
if (firstshot) {
firstshot = 0;
fd = 0;
}
fd--;
if (fd < 0) {
fd = r.rapidshootdelay;
shoot();
}
} else {
firstshot = 1;
}
};
stop();
Symbol 590 MovieClip Frame 14
p.blink();
energize(-2);
if (r.energy) {
d = 2;
onEnterFrame = function () {
d--;
if (!d) {
r.hit = 0;
r.inv = r.invhitdelay;
delete onEnterFrame;
gotoAndPlay ("fly");
}
};
} else {
p.gotoAndStop("die");
r.zfall.start();
ys = 5;
grav = 2;
onEnterFrame = function () {
p._x = p._x - r.scrollspeed;
p._y = p._y + ys;
ys = ys + grav;
};
}
stop();
Symbol 590 MovieClip Frame 19
targety = 200;
d = 10;
onEnterFrame = function () {
targetx = r.xnow + 200;
p._x = p._x + ((targetx - p._x) / 3);
p._y = p._y + ((targety - p._y) / 3);
d--;
if (!d) {
p.gotoAndStop("win");
} else if (d < -60) {
delete r.onEnterFrame;
r.gotoAndPlay("dive");
}
};
stop();
Symbol 602 MovieClip Frame 1
range = 1.5 + (0.1 * random(8));
speed = 0.08 + (0.01 * random(8));
starty = _y;
ys = range;
xs = -4 - (0.1 * random(20));
onenterframe = function () {
_y = (_y + ys);
if (_y > starty) {
ys = Math.max(ys - speed, -range);
} else {
ys = Math.min(ys + speed, range);
}
_x = (_x + xs);
};
gotoAndStop(1 + random(_totalframes));
Symbol 603 MovieClip Frame 1
bd = 1;
onEnterFrame = function () {
if (bd < 10) {
bubble.duplicateMovieClip("bubble" + bd, bd, {_x:50 + random(500), _y:80 + random(200)});
bd++;
}
};
stop();
Symbol 604 MovieClip Frame 45
stop();
Symbol 605 MovieClip Frame 50
stop();
Symbol 607 MovieClip Frame 55
stop();
Symbol 612 MovieClip Frame 50
stop();
Symbol 622 MovieClip Frame 59
stop();
Symbol 624 MovieClip Frame 1
_visible = false;
Symbol 636 MovieClip Frame 12
stop();
Symbol 637 MovieClip Frame 1
d = 20 + random(20);
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
play();
}
};
stop();
Symbol 637 MovieClip Frame 33
gotoAndPlay (1);
Symbol 639 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 4
r.zeat.start();
Symbol 649 MovieClip Frame 8
stop();
Symbol 667 MovieClip Frame 13
stop();
Symbol 669 MovieClip Frame 53
stop();
Symbol 670 MovieClip [waterhorsey] Frame 1
stop();
Symbol 670 MovieClip [waterhorsey] Frame 9
stop();
Symbol 671 MovieClip [bubble] Frame 1
r.bubbles.push(this);
range = 1.5 + (0.1 * random(8));
speed = 0.08 + (0.01 * random(8));
starty = _y;
ys = range;
onEnterFrame = function () {
_y = (_y + ys);
if (_y > starty) {
ys = Math.max(ys - speed, -range);
} else {
ys = Math.min(ys + speed, range);
}
_x = (_x + xs);
if (_x < (-_width)) {
r.bubbles.removevalue(this);
this.removeMovieClip();
}
};
gotoAndStop(1 + random(_totalframes));
Symbol 672 MovieClip [wo1] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -24;
onEnterFrame = function () {
_x = (_x + xs);
tcek();
};
Symbol 676 MovieClip [seamonkey] Frame 30
onEnterFrame = function () {
_x = (_x - 12);
if (_x < -30) {
this.removeMovieClip();
}
};
stop();
Symbol 682 MovieClip [wo2] Frame 1
r.enemy.push(this);
wid = _width / 2;
hei = _height;
hit = 0;
xs = -24;
onEnterFrame = function () {
_x = (_x + xs);
tcek(2);
};
Symbol 691 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
onEnterFrame = function () {
nx = _x + r.ripple2speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 692 MovieClip Frame 1
bd = 10;
d = 1;
var i = 0;
while (i < 4) {
makebubble(50 + random(500), 70 + random(200), r.bubblespeed - (0.1 * random(20)));
i++;
}
onEnterFrame = function () {
d--;
if (!d) {
d = r.bubbledelay2;
makebubble(600, 70 + random(200), r.bubblespeed - (0.1 * random(20)));
}
};
stop();
Symbol 697 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x - r.bg3Dshift;
_x = startx;
onEnterFrame = function () {
nx = _x + r.ripple1speed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 698 MovieClip Frame 1
bd = 10;
d = 1;
var i = 0;
while (i < 4) {
makebubble(50 + random(500), 70 + random(200), r.bubblespeed - (0.1 * random(20)));
i++;
}
onEnterFrame = function () {
d--;
if (!d) {
d = r.bubbledelay1;
makebubble(600, 70 + random(200), r.bubblespeed - (0.1 * random(20)));
}
};
stop();
Symbol 700 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = 630;
pic2._x = wid;
startx = _x;
onEnterFrame = function () {
nx = _x + r.bottomspeed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
_x = nx;
};
Symbol 707 MovieClip Frame 1
p._x = -50;
p._y = 280;
targx = 200;
d = 60;
onEnterFrame = function () {
p._x = p._x + ((targx - p._x) / 8);
d--;
if (!d) {
r.bubblespeed = -10;
r.ripple1speed = -20;
r.ripple2speed = -16;
r.bottomspeed = -20;
r.bubbledelay1 = 8;
r.bubbledelay2 = 16;
var _local1 = 0;
while (_local1 < r.bubbles.length) {
r.bubbles[_local1].xs = r.bubbles[_local1].xs * 4;
_local1++;
}
delete onEnterFrame;
gotoAndPlay ("swim");
}
};
stop();
Symbol 707 MovieClip Frame 8
x = p._x;
y = p._y;
windelay = 30;
onEnterFrame = function () {
r.key1 = {at:Key.isDown(38), ba:Key.isDown(40), ki:Key.isDown(37), ka:Key.isDown(39)};
if (r.canpress) {
if (r.key1.at) {
y = y - r.yspeed;
} else if (r.key1.ba) {
y = y + r.yspeed;
}
if (r.key1.ki) {
x = x - r.xspeed;
} else if (r.key1.ka) {
x = x + r.xspeed;
}
}
x = Math.max(Math.min(x, r.xmax), r.xmin);
y = Math.max(Math.min(y, r.ymax), r.ymin);
p._x = p._x + ((x - p._x) / 3);
p._y = p._y + ((y - p._y) / 3);
if (r.eat) {
p.gotoAndStop("eat");
r.eat--;
if (!r.eat) {
p.sharkbubble.gotoAndPlay(2);
}
} else {
p.gotoAndStop("swim");
}
if (r.hit) {
if (r.inv) {
r.hit = 0;
} else {
delete onEnterFrame;
gotoAndPlay ("hit");
}
}
if (r.waterwin) {
gotoAndPlay ("win");
}
};
stop();
Symbol 707 MovieClip Frame 14
p.gotoAndStop("hit");
p.shark.blink();
energize(-2);
xs = -20;
if (r.energy) {
d = 5;
onEnterFrame = function () {
p._x = p._x + xs;
xs = xs * 0.9;
p._x = Math.max(Math.min(p._x, r.xmax), r.xmin);
d--;
if (!d) {
r.hit = 0;
r.inv = r.invhitdelay;
delete onEnterFrame;
gotoAndPlay ("swim");
}
};
} else {
onEnterFrame = function () {
p._x = p._x + xs;
};
}
stop();
Symbol 707 MovieClip Frame 19
p.gotoAndStop("win");
targetx = 300;
d = 60;
onEnterFrame = function () {
p._x = p._x + ((targetx - p._x) / 5);
d--;
if (!d) {
delete r.onEnterFrame;
r.gotoAndPlay("liftoff2");
}
};
stop();
Symbol 711 MovieClip Frame 50
stop();
Symbol 713 MovieClip Frame 50
stop();
Symbol 723 MovieClip Frame 11
stop();
Symbol 728 MovieClip Frame 70
stop();
Symbol 730 MovieClip [ko1] Frame 1
wid = 14;
hei = 25;
hit = 0;
onEnterFrame = function () {
_y = (_y + ys);
ccek();
};
Symbol 738 MovieClip Frame 4
stop();
Symbol 748 MovieClip Frame 31
stop();
Symbol 749 MovieClip Frame 60
stop();
Symbol 750 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 1
stop();
Symbol 757 MovieClip Frame 1
d = 60;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
gotoAndPlay ("run");
}
};
stop();
Symbol 757 MovieClip Frame 8
p.gotoAndStop("run");
x = p._x;
y = p._y;
windelay = 10;
onEnterFrame = function () {
r.key1 = {at:Key.isDown(38), ba:Key.isDown(40), ki:Key.isDown(37), ka:Key.isDown(39)};
if (r.canpress) {
if (r.key1.ki) {
x = x - r.xspeed;
p._xscale = -100;
} else if (r.key1.ka) {
x = x + r.xspeed;
p._xscale = 100;
}
}
x = Math.max(Math.min(x, r.xmax), r.xmin);
p._x = p._x + ((x - p._x) / 2);
if (r.hit) {
if (r.inv) {
r.hit = 0;
} else {
delete onEnterFrame;
gotoAndPlay ("hit");
}
}
if (r.kitchenwin) {
windelay--;
if (!windelay) {
gotoAndPlay ("win");
}
}
};
stop();
Symbol 757 MovieClip Frame 14
p.gotoAndStop("hit");
p.blink();
energize(-2);
y = p._y;
ys = 10;
d = 3;
onEnterFrame = function () {
p._y = p._y + ys;
ys = ys * 0.8;
d--;
if (!d) {
if (r.energy > 0) {
r.hit = 0;
r.inv = r.invhitdelay;
p._y = y;
delete onEnterFrame;
gotoAndPlay ("run");
}
}
};
stop();
Symbol 757 MovieClip Frame 19
p.gotoAndStop("win");
targetx = 300;
d = 120;
popmessage(31);
onEnterFrame = function () {
p._x = p._x + ((targetx - p._x) / 3);
d--;
if (d == 54) {
ska = 160;
all._xscale = (all._yscale = ska);
all._x = all._x - ((0.5 * ((ska - 100) / 100)) * 600);
all._y = all._y - ((0.5 * ((ska - 100) / 100)) * 400);
if (r.threeD) {
r.output._x = all._x;
r.output._y = all._y;
r.output._xscale = all._xscale;
r.output._yscale = all._yscale;
}
}
if (!d) {
all._xscale = (all._yscale = 100);
all._x = (all._y = 0);
if (r.threeD) {
r.output._x = all._x;
r.output._y = all._y;
r.output._xscale = all._xscale;
r.output._yscale = all._yscale;
}
delete r.onEnterFrame;
r.gotoAndPlay("win");
}
};
stop();
Symbol 762 MovieClip Frame 3
stop();
Symbol 763 MovieClip Frame 1
stop();
Symbol 765 Button
on (release) {
CNtrack();
stopAllSounds();
r.gotoAndPlay("start1");
}
on (keyPress "<Enter>") {
CNtrack();
stopAllSounds();
r.gotoAndPlay("start1");
}
on (keyPress "<Space>") {
CNtrack();
stopAllSounds();
r.gotoAndPlay("start1");
}