Frame 1
if (controlSWF == undefined) {
controlSWF = "cn_files/cn_controller.swf";
XMLpath = "cn_files/config.xml";
}
loadMovieNum (controlSWF, 1000);
stop();
Frame 2
nextFrame();
Frame 3
myGameObject.displayBillboard();
stop();
Frame 4
play();
Frame 5
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
stage.showMenu = false;
duplicateMovieClip ("fr", "frame", 10010);
duplicateMovieClip ("fr2", "frame2", 10011);
Frame 6
gotoAndPlay (18);
Frame 7
prevFrame();
play();
Frame 13
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
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});
};
Frame 18
call("fadescreen");
_root.createEmptyMovieClip("sfx2", 90002);
_root.titleloop = new sound(sfx2);
_root.titleloop.attachsound("titleloop");
_root.titleloop.setvolume(0);
_root.titleloop.start(0, 1000);
_root.createEmptyMovieClip("fadein", 8000);
_root.fadein.onenterframe = function () {
this.a = this.a + 2;
if (this.a > 100) {
this.removeMovieClip();
} else {
_root.titleloop.setVolume(this.a);
}
};
stop();
Frame 25
call("fadescreen");
_root.fadein.removeMovieClip();
_root.createEmptyMovieClip("fadeout", 8001);
_root.fadeout.onenterframe = function () {
_root.titleloop.setVolume(_root.titleloop.getVolume() - 2);
if (_root.titleloop.getVolume() < 0) {
_root.titleloop.stop();
this.removeMovieClip();
}
};
stop();
Frame 30
level = 1;
Frame 36
call("pro");
_root._ymouse = 1;
y = 1;
leveltime = [0, 1230, 1830, 2730, 3630];
begintime = leveltime[/:level];
time = begintime;
onesec = 30;
fintime = "00:00";
canpress = 0;
siderange = 2;
midx = 300;
midy = 200;
hei = 400;
got = 0;
lev = [0, 3, 4, 5, 6];
leveltotal = lev.length - 1;
totalf = lev[level];
clic1 = 0;
clic2 = 0;
alld = [];
allc = [];
allsound = [];
totalc = (totalf * 6) / 2;
var i = 1;
while (i <= totalc) {
allc.push(i);
allc.push(i);
i++;
}
allc.randomize();
allc.randomize();
var i = 1;
while (i <= totalf) {
allsound.push(1);
allsound.push(2);
allsound.push(3);
allsound.push(4);
allsound.push(5);
allsound.push(6);
i++;
}
allc.randomize();
spacing = 125;
scrollmin = 40;
scrollmax = 240;
ymin = [];
ymax = [];
var i = 1;
while (i <= totalf) {
ymin[i] = scrollmin + ((i - 1) * spacing);
i++;
}
var i = 1;
while (i <= totalf) {
ymax[i] = scrollmax - ((totalf - i) * spacing);
i++;
}
if (level == 1) {
f1._y = f1._y - 25;
}
ypos = [];
ypos[1] = f1._y;
var i = totalf;
while (i >= 2) {
duplicateMovieClip ("f1", "f" + i, totalf - i);
_root["f" + i]._y = f1._y + ((i - 1) * spacing);
ypos[i] = _root["f" + i]._y;
i--;
}
if (level == 1) {
var i = 1;
while (i <= totalf) {
_root["f" + i]._y = _root["f" + i]._y - 8;
i++;
}
}
_root.createEmptyMovieClip("sfx", 90001);
allsfx = ["ztic", "zloop", "ztink", "zopen1", "zclose1", "zopen2", "zclose2", "zopen3", "zclose3", "zopen4", "zclose4", "zopen5", "zclose5", "zopen6", "zclose6"];
var i = 0;
while (i < allsfx.length) {
_root[allsfx[i]] = new sound(sfx);
_root[allsfx[i]].attachsound(allsfx[i]);
i++;
}
_root.attachMovie("levelinfo", "levelinfo", 8999);
_root.levelinfo._x = 300;
_root.levelinfo._y = 180;
Frame 38
if (level == 1) {
d = 25;
onenterframe = function () {
d--;
if (!d) {
delete onenterframe;
_root.levelinfo.play();
gotoAndPlay (41);
}
};
} else {
var i = 1;
while (i <= totalf) {
ypos[i] = ymin[i];
i++;
}
scrollspeed = [-2, -4, -6, -9];
ys = 0;
onenterframe = function () {
if (ys > scrollspeed[/:level - 1]) {
ys = ys - 0.5;
}
var i = 1;
while (i <= totalf) {
ypos[i] = ypos[i] + ys;
if (ypos[i] < ymax[i]) {
ypos[i] = ymax[i];
}
i++;
}
var i = 1;
while (i <= totalf) {
_root["f" + i]._y = ypos[i];
i++;
}
if (ypos[totalf] <= ymax[totalf]) {
delete onenterframe;
play();
}
};
}
stop();
Frame 40
_root.levelinfo.play();
Frame 41
_root.titleloop.stop();
_root.zloop.start(0, 10000);
_root.zloop.setVolume(0);
_root.createEmptyMovieClip("fadein", 8000);
_root.fadein.onenterframe = function () {
this.a = this.a + 5;
if (this.a > 100) {
this.removeMovieClip();
} else {
_root.zloop.setVolume(this.a);
}
};
_root.attachMovie("timer", "timer", 150);
_root.timer._x = 555;
_root.timer._y = 15;
x = _root._xmouse;
y = _root._ymouse;
onenterframe = function () {
if ((_root._xmouse != x) or (_root._ymouse != y)) {
play();
}
};
stop();
Frame 42
canpress = 1;
range = 100;
if (level < 4) {
yspeed = level * 5;
} else {
yspeed = 15;
}
onenterframe = function () {
if ((/:clos1 + /:clos2) == 2) {
if (/:clic1 == /:clic2) {
_root.ztink.start();
/:got++;
if (/:got == /:totalc) {
var ftime = (/:begintime - /:time);
var sec = math.floor(ftime / /:onesec);
var min = math.floor(sec / 60);
sec = sec - (min * 60);
if (min < 10) {
var tmin = ("0" + min);
} else {
var tmin = min;
}
if (sec < 10) {
var tsec = ("0" + sec);
} else {
var tsec = sec;
}
Set("/:fintime", (tmin + ":") + tsec);
delete _root.timer.onenterframe;
gotoAndPlay (47);
}
}
Set("/:clos1", 0);
Set("/:clos2", 0);
Set("/:clic1", 0);
Set("/:clic2", 0);
}
if (/:level > 1) {
y = _root._ymouse;
if (y < range) {
ys = ((range - y) / range) * yspeed;
if ((ypos[1] + ys) < scrollmin) {
var i = 1;
while (i <= totalf) {
ypos[i] = ypos[i] + ys;
i++;
}
} else {
var i = 1;
while (i <= totalf) {
ypos[i] = ymin[i];
i++;
}
}
} else if (y > (hei - range)) {
ys = (-(((hei - range) - y) / range)) * yspeed;
if ((/:ypos[totalf] - ys) > /:scrollmax) {
var i = 1;
while (i <= totalf) {
ypos[i] = ypos[i] - ys;
i++;
}
} else {
var i = 1;
while (i <= totalf) {
ypos[i] = ymax[i];
i++;
}
}
}
var i = 1;
while (i <= totalf) {
if (_root["f" + i]._y > /:ypos[i]) {
newy = math.floor(_root["f" + i]._y - ys);
if (newy < /:ypos[i]) {
newy = /:ypos[i];
}
_root["f" + i]._y = newy;
} else if (_root["f" + i]._y < /:ypos[i]) {
newy = math.floor(_root["f" + i]._y + ys);
if (newy > /:ypos[i]) {
newy = /:ypos[i];
}
_root["f" + i]._y = newy;
}
i++;
}
}
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
};
stop();
Frame 47
delete onenterframe;
if (/:level == 1) {
gotoAndPlay (79);
}
Frame 54
scrollspeed = [-2, -4, -6, -9];
ys = -scrollspeed[/:level - 1];
onenterframe = function () {
var i = 1;
while (i <= totalf) {
/:ypos[i] = /:ypos[i] + ys;
i++;
}
if (/:ypos[1] > ymin[1]) {
var i = 1;
while (i <= totalf) {
ypos[i] = ymin[i];
i++;
}
play();
}
var i = 1;
while (i <= totalf) {
_root["f" + i]._y = math.floor(/:ypos[i] + ((_root["f" + i]._y - /:ypos[i]) / 1.2));
i++;
}
};
stop();
Frame 65
delete onenterframe;
scrollspeed = [-2, -4, -6, -9];
ys = 0;
onenterframe = function () {
if (ys > scrollspeed[/:level - 1]) {
ys = ys - 0.5;
}
var i = 1;
while (i <= totalf) {
ypos[i] = ypos[i] + ys;
if (ypos[i] < ymax[i]) {
ypos[i] = ymax[i];
}
i++;
}
if (ypos[totalf] <= ymax[totalf]) {
play();
}
var i = 1;
while (i <= totalf) {
_root["f" + i]._y = math.floor(/:ypos[i] + ((_root["f" + i]._y - /:ypos[i]) / 1.2));
i++;
}
};
stop();
Frame 78
gotoAndPlay (98);
Frame 85
gotoAndPlay (98);
Frame 91
delete onenterframe;
call("fadescreen");
stopAllSounds();
_root.fadein.removeMovieClip();
_root.timer.removeMovieClip();
var i = 1;
while (i <= totalf) {
removeMovieClip("f" + i);
i++;
}
stop();
Frame 98
call("lose");
stop();
Frame 106
createemptymovieclip("coverscr", 99999);
var d = this.coverscr;
with (d) {
lineStyle(1, 16777215, 100);
beginfill(16777215, 100);
moveto(-5000, -5000);
lineto(5000, -5000);
lineto(5000, 5000);
lineto(-5000, 5000);
endfill();
d.onEnterFrame = function () {
_alpha = _alpha - 3;
if (_alpha <= 0) {
removeMovieClip("");
stop();
}
};
}
Symbol 9 MovieClip Frame 1
onenterframe = function () {
persen = math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
r = (persen / 100) * 180;
j1._rotation = r;
j2._rotation = -r;
};
Symbol 31 MovieClip Frame 1
next = 1;
xs = 1;
onenterframe = function () {
var i = 1;
while (i <= 11) {
var c = this["c" + i];
if (c._xscale > 100) {
c._xscale = 100 + ((c._xscale - 100) / 1.5);
c._yscale = 100 + ((c._xscale - 100) / 1.5);
}
c._alpha = 75 + (2 * (c._xscale - 100));
i++;
}
};
Symbol 31 MovieClip Frame 2
next = next + xs;
if ((next > 11) or (next < 1)) {
xs = -xs;
}
var c = this["c" + next];
ska = 150;
c._xscale = ska;
c._yscale = ska;
Symbol 31 MovieClip Frame 4
gotoAndPlay (2);
Symbol 32 MovieClip Frame 26
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 66 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 68 MovieClip [levelinfo] Frame 5
stop();
Symbol 68 MovieClip [levelinfo] Frame 10
this.removeMovieClip();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
_root.ztic.start();
Symbol 76 MovieClip [timer] Frame 1
secpop = 8;
onenterframe = function () {
/:time--;
if (/:time <= 0) {
_root.gotoAndPlay("lose");
} else {
sec1 = math.floor(/:time / /:onesec);
min = math.floor(sec1 / 60);
sec = sec1 - (min * 60);
if (min < 10) {
tmin = "0" + min;
} else {
tmin = min;
}
if (sec < 10) {
tsec = "0" + sec;
} else {
tsec = sec;
}
t.s.time = (tmin + ":") + tsec;
}
if (sec1 == secpop) {
secpop--;
t.play();
}
};
stop();
Symbol 82 Button
on (release) {
myTracker.track();
tracker = myTracker;
gotoAndPlay (25);
}
Symbol 88 Button
on (release) {
gotoAndPlay (30);
}
Symbol 96 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 102 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 103 Button
on (release) {
if (/:canpress) {
if (!/:clic1) {
Set("/:clic1", ch);
Set("/:clic2", 0);
me = 1;
gotoAndPlay (3);
} else if ((/:clic1 > 0) and (!/:clic2)) {
Set("/:clic2", ch);
me = 2;
gotoAndPlay (3);
}
}
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
p.gotoAndStop(../:ch);
bg.gotoAndStop(../:ch);
onenterframe = function () {
bg._y = -math.floor(((../../../../:c - 180) / 100) * 20);
};
stop();
Symbol 154 MovieClip Frame 1
/:alld.push(_name);
ch = /:allc.pop();
soundno = /:allsound.pop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 3
_root["zopen" + soundno].start();
Symbol 154 MovieClip Frame 6
if (/:clic2 > 0) {
if ((/:clic1 == /:clic2) and (/:clic2 == ch)) {
gotoAndPlay (8);
} else if (me == 2) {
gotoAndPlay (16);
} else {
gotoAndPlay (18);
}
}
Symbol 154 MovieClip Frame 7
prevFrame();
play();
Symbol 154 MovieClip Frame 8
delete onenterframe;
c = new color(_parent.df);
br = 0;
onenterframe = function () {
br++;
if (int(0.5 * br) != (0.5 * br)) {
c.setBrightness(100);
} else {
c.resetcolor();
}
if (br > 30) {
c.resetcolor();
delete onenterframe;
}
};
Symbol 154 MovieClip Frame 15
if (me == 1) {
Set("/:clos1", 1);
} else {
Set("/:clos2", 1);
}
stop();
Symbol 154 MovieClip Frame 16
delete onenterframe;
Symbol 154 MovieClip Frame 18
delete onenterframe;
Symbol 154 MovieClip Frame 30
_root["zclose" + soundno].start();
Symbol 154 MovieClip Frame 34
if (me == 1) {
Set("/:clos1", 1);
} else {
Set("/:clos2", 1);
}
gotoAndPlay (2);
Symbol 159 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 167 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 172 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 173 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 183 MovieClip Frame 1
fhei = 360;
startx = _x;
n.num = (1 + /:totalf) - Number(substring(_name, 2, 1));
onenterframe = function () {
y = _y + 100;
if (y < 0) {
y = 0;
}
if (y > fhei) {
y = fhei;
}
c = math.floor(((fhei - (fhei - y)) / fhei) * 200);
if (c < 1) {
c = 1;
}
f.gotoAndStop(c);
};
stop();
Symbol 184 MovieClip Frame 1
onenterframe = function () {
if (Key.isDown(39)) {
if (Key.isDown(84)) {
delete _root.timer.onenterframe;
delete onenterframe;
stop();
}
}
};
stop();
Symbol 185 MovieClip Frame 1
_parent.stop();
d = _name;
Symbol 185 MovieClip Frame 2
d = d - 1;
Symbol 185 MovieClip Frame 3
if (d) {
prevFrame();
play();
} else {
_parent.play();
stop();
}
Symbol 191 Button
on (release) {
myTracker.track();
tracker = myTracker;
gotoAndPlay (36);
}
Symbol 204 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 205 Button
on (release) {
/:level++;
_root.gotoAndPlay("start");
}
Symbol 212 MovieClip Frame 1
gotoAndStop(/:level);
Symbol 213 Button
on (release) {
myTracker.track();
tracker = myTracker;
_root.gotoAndPlay("lev1");
}
Symbol 216 MovieClip Frame 1
if (/:level < /:leveltotal) {
stop();
} else {
gotoAndStop (2);
}