Frame 1
start = false;
lang = "eng";
prev_x = _xmouse;
go = false;
gameover = true;
q.road._width = 400;
qwidth = q._width;
q.obj._visible = false;
sounds = true;
fscommand ("showmenu", false);
fscommand ("trapallkeys", true);
lang_rus = Array("\u0421\u043B\u043E\u0436\u043D\u043E\u0441\u0442\u044C: 1", "\u0421\u043B\u043E\u0436\u043D\u043E\u0441\u0442\u044C: 2", "\u0421\u043B\u043E\u0436\u043D\u043E\u0441\u0442\u044C: 3", "\u0412\u043E \u0432\u0440\u0435\u043C\u044F \u0438\u0433\u0440\u044B \u0437\u0434\u0435\u0441\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044F \u043E\u0442\u0441\u0447\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438", "\u0412\u042B \u0412\u042B\u0418\u0413\u0420\u0410\u041B\u0418!!!\r\r\u0412\u0421\u0415\u0413\u041E \u0425\u041E\u0420\u041E\u0428\u0415\u0413\u041E!", "\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u044F\u0442\u044C \u0431\u0430\u043B\u0430\u043D\u0441 \u0434\u043E\u0441\u043A\u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u044B\u0448\u043A\u043E\u0439. \u0414\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u0434\u0432\u0438\u0433\u0430\u0439\u0442\u0435 \u0435\u0439 \u043B\u0438\u0431\u043E \u0432\u043F\u0440\u0430\u0432\u043E, \u043B\u0438\u0431\u043E \u0432\u043B\u0435\u0432\u043E.", "\u0427\u0442\u043E\u0431\u044B \u0432\u044B\u0438\u0433\u0440\u0430\u0442\u044C, \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0440\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u043A\u043E\u0442\u0430, \u0442\u0430\u0447\u043A\u0443 \u0438 \u043C\u044F\u0447\u0438\u043A \u043D\u0430 \u0434\u043E\u0441\u043A\u0435.", "\u041D\u0430 \u044D\u0442\u0438\u0445 \u0447\u0430\u0441\u0430\u0445 \u0431\u0443\u0434\u0435\u0442 \u043F\u043E\u043A\u0430\u0437\u0430\u043D\u043E \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0442\u043E\u0442 \u0438\u043B\u0438 \u0438\u043D\u043E\u0439 \u043E\u0431\u044A\u0435\u043A\u0442.", "\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435! \u0412\u0441\u0435 \u0412\u0430\u0448\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u043E\u043D\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u044B", "\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E", "\u0417\u0432\u0443\u043A", "\u042D\u043A\u0440\u0430\u043D");
lang_eng = Array("Level: 1", "Level: 2", "Level: 3", "During the game readout of time displays here", "YOU HAVE WON THE GAME!\r\rGOOD LUCK!", "You may change a balance of a board by your mouse. Move it to right or to left.", "To win, you should keep a cat, a car and a ball on a board.", "There will be shown how many time is necessary to keep the object.", "Warning! All your achievements will be clear", "Quality", "Sound", "Screen");
_root.onEnterFrame = function () {
if (!start) {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
loader.loader._xscale = Math.round(((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) / 5) * 5;
loader.last.text = 10 - Math.round(((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) / 10);
} else {
start = true;
gotoAndStop (2);
}
}
};
Frame 2
muz1 = new Sound();
muz1.attachSound("muz1");
ura = new Sound();
ura.attachSound("ura");
muz2 = new Sound();
muz2.attachSound("muz2");
boom = new Sound();
boom.attachSound("boom");
if (lang == "rus") {
name1.gotoAndStop(2);
name2.gotoAndStop(2);
name3.gotoAndStop(2);
name4.gotoAndStop(2);
}
if (lang == "eng") {
name1.gotoAndStop(1);
name2.gotoAndStop(1);
name3.gotoAndStop(1);
name4.gotoAndStop(1);
}
Frame 3
q.obj._visible = false;
qtext.text = eval ("_root.lang_" + lang)[5];
objtext.text = eval ("_root.lang_" + lang)[6];
cltext.text = eval ("_root.lang_" + lang)[7];
if (lang == "eng") {
name5.gotoAndStop(1);
}
if (lang == "rus") {
name5.gotoAndStop(2);
}
Instance of Symbol 67 MovieClip "clock" in Frame 3
on (rollOver) {
if (_root.gameover) {
_root.what.text = eval ("_root.lang_" + _root.lang)[3];
}
}
on (rollOut) {
if (_root.gameover) {
_root.what.text = "";
}
}
Frame 4
function vars() {
if (q.obj._currentframe == 1) {
ksp = 10;
}
if (q.obj._currentframe == 2) {
ksp = 6;
}
if (q.obj._currentframe == 3) {
ksp = 4;
}
}
function allnew() {
gameover = false;
go = true;
q._rotation = 0;
q.obj._x = 0;
a = 0;
prev_x = _xmouse;
x = 0;
vars();
}
function restart() {
go = false;
q.obj._visible = false;
q.obj.kot.gotoAndStop(1);
q.obj._x = 0;
q.obj.kot._xscale = 100;
q._rotation = 0;
kot._visible = true;
car._visible = true;
ball._visible = true;
}
stopAllSounds();
if (sounds) {
muz1.start(0, 1000);
}
q.road._width = 400;
qwidth = q._width;
q.obj._visible = false;
if (lang == "eng") {
name6.gotoAndStop(1);
}
if (lang == "rus") {
name6.gotoAndStop(2);
}
_root.onEnterFrame = function () {
if (!fuck) {
if (go) {
a++;
timer = 10 - Math.round(a / 90);
clock.time.text = timer;
q.obj._x = q.obj._x + (q._rotation / ksp);
if (q._rotation == 0) {
q.obj._x = Math.sin(random(6)) / random(100);
}
if (q.obj._currentframe == 1) {
if ((Math.abs(q.obj._x) > (qwidth / 4)) || (Math.abs(q._rotation) > 40)) {
q.obj.kot.gotoAndStop(2);
if (q.obj._x > 0) {
q.obj.kot._xscale = -100;
}
if (q.obj._x < 0) {
q.obj.kot._xscale = 100;
}
} else {
q.obj.kot.gotoAndStop(1);
}
}
if (q.obj._currentframe == 2) {
q.obj.car.koleso._rotation = q.obj.car.koleso._rotation + ((q._rotation / ksp) * 2);
q.obj.car.koleso1._rotation = q.obj.car.koleso1._rotation + ((q._rotation / ksp) * 2);
}
if (q.obj._currentframe == 3) {
q.obj.ball.ball._rotation = q.obj.ball.ball._rotation + ((q._rotation / ksp) * 2);
}
}
if ((Math.abs(q.obj._x) > (qwidth / 2)) || (Math.abs(q._rotation) > 90)) {
go = false;
interer.play();
}
if (!go) {
q.obj._visible = false;
times = new Date();
clock.time.text = (times.getHours() + ":") + times.getMinutes();
}
if (gameover) {
restart();
}
if (!gameover) {
delta_x = _xmouse - prev_x;
x = x + delta_x;
prev_x = _xmouse;
q._rotation = q._rotation + ((q.obj._x / (timer + 5)) + (x / (timer + 5)));
}
if (timer == 0) {
gameover = true;
if ((q.obj._currentframe == 1) && (!kot_win)) {
restart();
kot.gotoAndStop(3);
kot_win = true;
if (sounds) {
ura.start();
}
}
if ((q.obj._currentframe == 2) && (!car_win)) {
restart();
car.gotoAndStop(2);
car_win = true;
if (sounds) {
ura.start();
}
}
if ((q.obj._currentframe == 3) && (!ball_win)) {
restart();
ball.gotoAndStop(2);
ball_win = true;
if (sounds) {
ura.start();
}
}
}
}
if (((ball_win && (car_win)) && (kot_win)) && (!all)) {
trace("kol");
ind++;
if (ind == 60) {
fuck = true;
ender.play();
all = true;
stopAllSounds();
if (sounds) {
muz2.start();
}
}
}
};
kot.onPress = function () {
if (gameover && (!fuck)) {
q.obj._visible = true;
q.obj.gotoAndStop(1);
kot._visible = false;
allnew();
}
};
car.onPress = function () {
if (gameover && (!fuck)) {
q.obj._visible = true;
q.obj.gotoAndStop(2);
car._visible = false;
allnew();
}
};
ball.onPress = function () {
if (gameover && (!fuck)) {
q.obj._visible = true;
q.obj.gotoAndStop(3);
ball._visible = false;
allnew();
}
};
Instance of Symbol 80 MovieClip "kot" in Frame 4
on (rollOver) {
if (_root.gameover) {
_root.what.text = eval ("_root.lang_" + _root.lang)[0];
}
}
on (press, rollOut) {
if (_root.gameover) {
_root.what.text = "";
}
}
Instance of Symbol 86 MovieClip "car" in Frame 4
on (rollOver) {
if (_root.gameover) {
_root.what.text = eval ("_root.lang_" + _root.lang)[1];
}
}
on (press, rollOut) {
if (_root.gameover) {
_root.what.text = "";
}
}
Instance of Symbol 94 MovieClip "ball" in Frame 4
on (rollOver) {
if (_root.gameover) {
_root.what.text = eval ("_root.lang_" + _root.lang)[2];
}
}
on (press, rollOut) {
if (_root.gameover) {
_root.what.text = "";
}
}
Frame 5
if (lang == "eng") {
name5.gotoAndStop(1);
}
if (lang == "rus") {
name5.gotoAndStop(2);
}
qual.text = eval ("_root.lang_" + lang)[9];
sual.text = eval ("_root.lang_" + lang)[10];
fual.text = eval ("_root.lang_" + lang)[11];
Symbol 21 Button
on (press) {
getURL ("http://alexnod.nm.ru");
}
Symbol 23 Button
on (press) {
getURL ("http://fundux.ru");
}
Symbol 27 Button
on (press) {
gotoAndStop (4);
}
Symbol 28 Button
on (press) {
gotoAndStop (3);
}
Symbol 29 Button
on (press) {
gotoAndStop (5);
}
Symbol 30 Button
on (press) {
fscommand ("quit", true);
}
Symbol 34 Button
on (press) {
name1.gotoAndStop(2);
name2.gotoAndStop(2);
name3.gotoAndStop(2);
name4.gotoAndStop(2);
lang = "rus";
}
Symbol 37 Button
on (press) {
name1.gotoAndStop(1);
name2.gotoAndStop(1);
name3.gotoAndStop(1);
name4.gotoAndStop(1);
lang = "eng";
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 58 Button
on (press) {
getURL ("http://fundux.ru");
}
Symbol 79 MovieClip Frame 69
gotoAndPlay (3);
Symbol 80 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 15
if (_root.sounds) {
_root.boom.start();
}
Symbol 89 MovieClip Frame 40
_root.gameover = true;
Symbol 94 MovieClip Frame 1
stop();
Symbol 95 Button
on (press) {
gotoAndStop (2);
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Instance of Symbol 94 MovieClip "ball" in Symbol 101 MovieClip Frame 3
on (rollOver) {
_root.what.text = eval ("_root.lang_" + _root.lang)[2];
}
on (rollOut) {
_root.what.text = "";
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 70
stop();
end.text = eval ("_root.lang_" + _root.lang)[4];
Symbol 113 Button
on (press) {
muz1.stop();
restart();
kot_win = false;
car_win = false;
ball_win = false;
kot.gotoAndStop(1);
car.gotoAndStop(1);
ball.gotoAndStop(1);
all = false;
fuck = false;
go = false;
gameover = true;
timer = 10;
gotoAndStop (2);
}
on (rollOver) {
what.text = eval ("_root.lang_" + lang)[8];
}
on (rollOut, press) {
what.text = "";
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 122 Button
on (press) {
_quality = "low";
}
Symbol 123 Button
on (press) {
_quality = "medium";
}
Symbol 124 Button
on (press) {
_quality = "high";
}
Symbol 125 Button
on (press) {
sounds = false;
}
Symbol 126 Button
on (press) {
sounds = true;
}
Symbol 128 Button
on (press) {
fscommand ("fullscreen", false);
}
Symbol 129 Button
on (press) {
fscommand ("fullscreen", true);
}