Frame 1
function initalization() {
fillgraphics();
fillbuttons();
_root.poly.demo = 1;
_root.poly.processing = 1;
demo_caption = "Stop Demo";
}
function MoreGames() {
_root.AbsLink();
}
function Absolutist() {
_root.AbsLink();
}
function fillgraphics() {
var i;
var j;
var number;
_root.poly.playsound = 1;
_root.poly.playerscore = 0;
rotate_snd = new Sound(this);
rotate_snd.attachSound("fly_rotate");
alpha = new Sound(this);
alpha.attachSound("alpha");
falling = new Sound(this);
falling.attachSound("falling");
_root.poly.colorscount = colorscount;
_root.attachMovie("field", "Field", 500);
setProperty("field", _height , (polyh * str) + 40);
setProperty("field", _width , (polyw * col) + 23);
setProperty("field", _y , y0 - 25);
setProperty("field", _x , x0 - 10);
setProperty("field", _visible , true);
_root.attachMovie("500_375", "500_375", 501);
setProperty("500_375", _y , 0);
setProperty("500_375", _x , 0);
setProperty("500_375", _visible , true);
_root.attachMovie("bg", "bg", 499);
setProperty("bg", _y , 0);
setProperty("bg", _x , 0);
setProperty("bg", _visible , true);
_root.perf1._visible = true;
setProperty("poly", _visible , false);
setProperty("press1", _visible , false);
setProperty("obvodka", _visible , false);
_root.poly.demo = 0;
_root.poly.fade = true;
_root.poly.processing = false;
_root.score.score = 0;
i = 0;
while (i < str) {
j = 0;
while (j < col) {
if (Math.floor(j / 2) == (j / 2)) {
y0 = y0 - 15;
}
if (Math.floor(j / 2) != (j / 2)) {
y0 = y0 + 15;
}
counter++;
_root.attachMovie("poly", (("poly" + i) + "_") + j, counter);
setProperty((("poly" + i) + "_") + j, _height , polyh);
setProperty((("poly" + i) + "_") + j, _width , polyw);
setProperty((("poly" + i) + "_") + j, _y , y0 + (polyh * i));
setProperty((("poly" + i) + "_") + j, _x , x0 + (polyw * j));
setProperty((("poly" + i) + "_") + j, _visible , true);
j++;
}
i++;
}
i = 0;
while (i < str) {
j = 0;
while (j < col) {
if (Math.floor(j / 2) == (j / 2)) {
y0 = y0 - 15;
}
if (Math.floor(j / 2) != (j / 2)) {
y0 = y0 + 15;
}
counter++;
_root.attachmovie("obvodka", (("obvodka" + i) + "_") + j, counter);
_root[(("obvodka" + i) + "_") + j]._height = polyh + 1;
_root[(("obvodka" + i) + "_") + j]._width = polyw + 1;
_root[(("obvodka" + i) + "_") + j]._visible = false;
_root[(("obvodka" + i) + "_") + j].stop();
setProperty((("obvodka" + i) + "_") + j, _y , y0 + (polyh * i));
setProperty((("obvodka" + i) + "_") + j, _x , x0 + (polyw * j));
j++;
}
i++;
}
i = 0;
while (i < col) {
number = random(_root.poly.colorscount) + 1;
eval ("poly0_" + i).gotoAndStop(number);
eval ("poly0_" + i).number = number;
_root["poly0_" + i].shown = 1;
i = i + 2;
}
i = 1;
while (i < col) {
number = random(_root.poly.colorscount) + 1;
i1 = i - 1;
xnumber = eval ("poly0_" + i1).number;
if (xnumber == number) {
if (number == _root.poly.colorscount) {
number = number - 1;
} else {
number = number + 1;
}
}
eval ("poly0_" + i).gotoAndStop(number);
eval ("poly0_" + i).number = number;
_root["poly0_" + i].shown = 1;
i = i + 2;
}
i = 1;
while (i < str) {
j = 0;
while (j < col) {
if ((j / 2) == Math.floor(j / 2)) {
i1 = i - 1;
j1 = j + 1;
xnumber = eval ((("poly" + i1) + "_") + j1).number;
xnumber1 = eval ((("poly" + i1) + "_") + j).number;
b = false;
while (b == false) {
number = random(_root.poly.colorscount) + 1;
if ((number != xnumber) and (number != xnumber1)) {
b = true;
}
}
eval ((("poly" + i) + "_") + j).gotoAndStop(number);
eval ((("poly" + i) + "_") + j).number = number;
_root[(("poly" + i) + "_") + j].shown = 1;
} else {
i1 = i - 1;
j1 = j - 1;
xnumber = eval ((("poly" + i) + "_") + j1).number;
xnumber1 = _root[(("poly" + i1) + "_") + j].number;
b = false;
while (b == false) {
number = random(_root.poly.colorscount) + 1;
if ((number != xnumber) and (number != xnumber1)) {
b = true;
}
}
eval ((("poly" + i) + "_") + j).gotoAndStop(number);
eval ((("poly" + i) + "_") + j).number = number;
_root[(("poly" + i) + "_") + j].shown = 1;
}
j++;
}
i++;
}
_root.attachMovie("perform", "perf", 4000);
setProperty("perf", _y , 140);
setProperty("perf", _x , 80);
setProperty("perf", _visible , false);
_root.attachMovie("optionBox", "options", 1000);
setProperty("options", _y , 30);
setProperty("options", _x , 50);
setProperty("options", _visible , false);
_root.attachMovie("helpfrm", "help", 2000);
setProperty("help", _y , 60);
setProperty("help", _x , 30);
setProperty("help", _visible , false);
_root.attachMovie("GO", "gameover", 3000);
setProperty("gameover", _y , 110);
setProperty("gameover", _x , 40);
setProperty("gameover", _visible , false);
}
function professionalLevel() {
_root.poly.colorscount = 8;
_root.poly.demo = 0;
_root.demo_caption = "Start Demo";
_root.Demo_mode._visible = false;
_root.poly.demoAccepted = 0;
_root.perf._visible = false;
_root.colorgraphics();
_root.gotoAndPlay(2);
}
function noviseLevel() {
_root.poly.colorscount = 6;
_root.poly.demo = 0;
_root.demo_caption = "Start Demo";
_root.Demo_mode._visible = false;
_root.poly.demoAccepted = 0;
_root.perf._visible = false;
_root.colorgraphics();
_root.gotoAndPlay(2);
}
function expertLevel() {
_root.poly.colorscount = 10;
_root.poly.demo = 0;
_root.demo_caption = "Start Demo";
_root.Demo_mode._visible = false;
_root.poly.demoAccepted = 0;
_root.perf._visible = false;
_root.colorgraphics();
_root.gotoAndPlay(2);
}
function savegame() {
temprefresh();
l = 0;
while (l < str) {
p = 0;
while (p < col) {
temp1[l][p] = temp[l][p];
p++;
}
l++;
}
}
function loadgame() {
var i;
var j;
var number;
_root.score.score = _root.poly.playerscore;
_root.poly.curscore = 0;
_root.poly.fade = true;
_root.poly.processing = false;
i = 0;
while (i < str) {
j = 0;
while (j < col) {
if (Math.floor(j / 2) == (j / 2)) {
y0 = y0 - 15;
}
if (Math.floor(j / 2) != (j / 2)) {
y0 = y0 + 15;
}
setProperty((("poly" + i) + "_") + j, _y , y0 + (polyh * i));
setProperty((("poly" + i) + "_") + j, _x , x0 + (polyw * j));
setProperty((("poly" + i) + "_") + j, _visible , true);
setProperty((("poly" + i) + "_") + j, _alpha , 100);
j++;
}
i++;
}
i = 0;
while (i < str) {
j = 0;
while (j < col) {
number = temp1[i][j];
eval ((("poly" + i) + "_") + j).gotoAndStop(number);
eval ((("poly" + i) + "_") + j).number = number;
_root[(("poly" + i) + "_") + j].shown = 1;
j++;
}
i++;
}
}
function colorgraphics() {
var i;
var j;
var number;
_root.bg._visible = true;
_root.poly.fade = true;
_root.poly.processing = false;
_root.score.score = 0;
i = 0;
while (i < str) {
j = 0;
while (j < col) {
if (Math.floor(j / 2) == (j / 2)) {
y0 = y0 - 15;
}
if (Math.floor(j / 2) != (j / 2)) {
y0 = y0 + 15;
}
setProperty((("poly" + i) + "_") + j, _y , y0 + (polyh * i));
setProperty((("poly" + i) + "_") + j, _x , x0 + (polyw * j));
setProperty((("poly" + i) + "_") + j, _visible , true);
setProperty((("poly" + i) + "_") + j, _alpha , 100);
j++;
}
i++;
}
i = 0;
while (i < col) {
number = random(_root.poly.colorscount) + 1;
eval ("poly0_" + i).gotoAndStop(number);
eval ("poly0_" + i).number = number;
_root["poly0_" + i].shown = 1;
i = i + 2;
}
i = 1;
while (i < col) {
number = random(_root.poly.colorscount) + 1;
i1 = i - 1;
xnumber = eval ("poly0_" + i1).number;
if (xnumber == number) {
if (number == _root.poly.colorscount) {
number = number - 1;
} else {
number = number + 1;
}
}
eval ("poly0_" + i).gotoAndStop(number);
eval ("poly0_" + i).number = number;
_root["poly0_" + i].shown = 1;
i = i + 2;
}
i = 1;
while (i < str) {
j = 0;
while (j < col) {
if ((j / 2) == Math.floor(j / 2)) {
i1 = i - 1;
j1 = j + 1;
xnumber = eval ((("poly" + i1) + "_") + j1).number;
xnumber1 = eval ((("poly" + i1) + "_") + j).number;
b = false;
while (b == false) {
number = random(_root.poly.colorscount) + 1;
if ((number != xnumber) and (number != xnumber1)) {
b = true;
}
}
eval ((("poly" + i) + "_") + j).gotoAndStop(number);
eval ((("poly" + i) + "_") + j).number = number;
_root[(("poly" + i) + "_") + j].shown = 1;
} else {
i1 = i - 1;
j1 = j - 1;
xnumber = eval ((("poly" + i) + "_") + j1).number;
xnumber1 = _root[(("poly" + i1) + "_") + j].number;
b = false;
while (b == false) {
number = random(_root.poly.colorscount) + 1;
if ((number != xnumber) and (number != xnumber1)) {
b = true;
}
}
eval ((("poly" + i) + "_") + j).gotoAndStop(number);
eval ((("poly" + i) + "_") + j).number = number;
_root[(("poly" + i) + "_") + j].shown = 1;
}
j++;
}
i++;
}
_root.bg._visible = false;
}
function fillbuttons() {
var i;
var j;
i = 0;
while (i < Math.floor(col / 2)) {
j = 0;
while (j < (str - 1)) {
counter++;
_root.attachMovie("pressing", (("press" + i) + "_") + j, counter);
setProperty((("press" + i) + "_") + j, _y , (x01 + (polyh * j)) + 10);
setProperty((("press" + i) + "_") + j, _x , (y0 + ((polyw * i) * 2)) + 18);
setProperty((("press" + i) + "_") + j, _visible , true);
_root[(("press" + i) + "_") + j]._alpha = 0;
eval ((("press" + i) + "_") + j).pic1_x = i * 2;
eval ((("press" + i) + "_") + j).pic1_y = j;
eval ((("press" + i) + "_") + j).pic2_x = i * 2;
eval ((("press" + i) + "_") + j).pic2_y = j + 1;
eval ((("press" + i) + "_") + j).pic3_x = (i * 2) + 1;
eval ((("press" + i) + "_") + j).pic3_y = j;
j++;
}
i++;
}
i = 0;
while (i < Math.floor(col / 2)) {
j = 0;
while (j < (str - 1)) {
counter++;
_root.attachMovie("pressing", (("press1" + i) + "_") + j, counter);
setProperty((("press1" + i) + "_") + j, _y , ((x01 + (polyh * j)) + polyh) - 5);
setProperty((("press1" + i) + "_") + j, _x , ((y0 + ((polyw * i) * 2)) + polyw) - 15);
setProperty((("press1" + i) + "_") + j, _visible , true);
_root[(("press1" + i) + "_") + j]._alpha = 0;
eval ((("press1" + i) + "_") + j).pic1_x = i * 2;
eval ((("press1" + i) + "_") + j).pic1_y = j + 1;
eval ((("press1" + i) + "_") + j).pic2_x = (i * 2) + 1;
eval ((("press1" + i) + "_") + j).pic2_y = j + 1;
eval ((("press1" + i) + "_") + j).pic3_x = (i * 2) + 1;
eval ((("press1" + i) + "_") + j).pic3_y = j;
j++;
}
i++;
}
i = 0;
while (i < Math.floor((col - 1) / 2)) {
j = 0;
while (j < (str - 1)) {
counter++;
_root.attachMovie("pressing", (("press2" + i) + "_") + j, counter);
setProperty((("press2" + i) + "_") + j, _y , (x01 + (polyh * j)) + 10);
setProperty((("press2" + i) + "_") + j, _x , ((y0 + ((polyw * i) * 2)) + (polyw * 2)) - 15);
setProperty((("press2" + i) + "_") + j, _visible , true);
_root[(("press2" + i) + "_") + j]._alpha = 0;
eval ((("press2" + i) + "_") + j).pic1_x = (i * 2) + 1;
eval ((("press2" + i) + "_") + j).pic1_y = j;
eval ((("press2" + i) + "_") + j).pic2_x = (i * 2) + 2;
eval ((("press2" + i) + "_") + j).pic2_y = j + 1;
eval ((("press2" + i) + "_") + j).pic3_x = (i * 2) + 2;
eval ((("press2" + i) + "_") + j).pic3_y = j;
j++;
}
i++;
}
i = 0;
while (i < Math.floor((col - 1) / 2)) {
j = 0;
while (j < (str - 1)) {
counter++;
_root.attachMovie("pressing", (("press3" + i) + "_") + j, counter);
setProperty((("press3" + i) + "_") + j, _y , ((x01 + (polyh * j)) + polyh) - 5);
setProperty((("press3" + i) + "_") + j, _x , ((y0 + ((polyw * i) * 2)) + (polyw * 2)) - 20);
setProperty((("press3" + i) + "_") + j, _visible , true);
_root[(("press3" + i) + "_") + j]._alpha = 0;
eval ((("press3" + i) + "_") + j).pic1_x = (i * 2) + 1;
eval ((("press3" + i) + "_") + j).pic1_y = j + 1;
eval ((("press3" + i) + "_") + j).pic2_x = (i * 2) + 2;
eval ((("press3" + i) + "_") + j).pic2_y = j + 1;
eval ((("press3" + i) + "_") + j).pic3_x = (i * 2) + 1;
eval ((("press3" + i) + "_") + j).pic3_y = j;
j++;
}
i++;
}
}
function temprefresh() {
var i;
var j;
i = 0;
while (i < str) {
j = 0;
while (j < col) {
temp[i][j] = _root[(("poly" + i) + "_") + j].number;
j++;
}
i++;
}
}
function check1_1array() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var t;
var counter;
var cur_color;
var new_color;
t = 0;
i = 0;
while (i < col) {
counter = 1;
cur_color = temp[0][i];
i1 = i;
j = 0.5;
while (j < str) {
j1 = Math.floor(j);
i1 = i1 + 1;
if (i1 >= col) {
break;
}
new_color = temp[j1][i1];
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
return(1);
}
j = j + 0.5;
}
i = i + 2;
}
return(0);
}
function check1_2array() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var t;
var counter;
var cur_color;
var new_color;
j = 1;
while (j < str) {
counter = 1;
cur_color = temp[j][0];
j1 = j;
i = 1;
while (i < col) {
j1 = j1 + 0.5;
if (j1 >= str) {
break;
}
jt = Math.floor(j1);
new_color = temp[jt][i];
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
return(1);
}
i++;
}
j++;
}
return(0);
}
function check2_1array() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var t;
var counter;
var cur_color;
var new_color;
i = 0;
while (i < col) {
counter = 1;
cur_color = temp[0][i];
i1 = i;
j = 0.5;
while (j < str) {
j1 = Math.floor(j);
i1 = i1 - 1;
if (i1 < 0) {
break;
}
new_color = temp[j1][i1];
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
return(1);
}
j = j + 0.5;
}
i = i + 2;
}
return(0);
}
function check2_2array() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var counter;
var cur_color;
var new_color;
j = 0;
while (j < str) {
counter = 1;
i1 = col - 1;
cur_color = temp[j][i1];
j1 = j + 0.5;
if ((col / 2) != Math.floor(col / 2)) {
j1 = j1 + 0.5;
}
i = col - 2;
while (i >= 0) {
j1 = j1 + 0.5;
if (j1 >= str) {
break;
}
jt = Math.floor(j1);
new_color = temp[jt][i];
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
return(1);
}
i--;
}
j++;
}
return(0);
}
function check3array() {
var i;
var j;
var jt;
var t;
var counter;
var cur_color;
var new_color;
i = 0;
while (i < col) {
counter = 1;
cur_color = temp[0][i];
j = 1;
while (j < str) {
new_color = temp[j][i];
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
return(1);
}
j++;
}
i++;
}
return(0);
}
function ispossibly(x1, y1, c1, x2, y2, c2, x3, y3, c3) {
var i;
var j;
temprefresh();
temp[y1][x1] = c1;
temp[y2][x2] = c2;
temp[y3][x3] = c3;
if (check1_1array() == 1) {
return(1);
}
if (check1_2array() == 1) {
return(1);
}
if (check2_1array() == 1) {
return(1);
}
if (check2_2array() == 1) {
return(1);
}
if (check3array() == 1) {
return(1);
}
return(0);
}
function fallfill() {
var i;
var j;
var i1;
var b;
var n;
i = str - 1;
while (0 < i) {
j = col - 1;
while (j >= 0) {
if (_root[(("poly" + i) + "_") + j]._visible == false) {
i1 = i - 1;
b = 0;
i1 = i - 1;
while (i1 >= 0) {
if (eval ((("_root.poly" + i1) + "_") + j)._visible == true) {
b = 1;
eval ((("_root.poly" + i) + "_") + j)._visible = true;
_root[(("poly" + i) + "_") + j].shown = 1;
n = eval ((("_root.poly" + i1) + "_") + j).number;
eval ((("_root.poly" + i) + "_") + j).number = n;
eval ((("_root.poly" + i) + "_") + j).gotoAndStop(n);
eval ((("_root.poly" + i1) + "_") + j)._visible = false;
_root[(("poly" + i1) + "_") + j].shown = 0;
break;
}
i1--;
}
if (b == 0) {
i1 = i;
while (i1 >= 0) {
eval ((("_root.poly" + i1) + "_") + j)._visible = true;
_root[(("poly" + i1) + "_") + j].shown = 1;
n = random(_root.poly.colorscount) + 1;
eval ((("_root.poly" + i1) + "_") + j).number = n;
eval ((("_root.poly" + i1) + "_") + j).gotoAndStop(n);
i1--;
}
}
}
j--;
}
i--;
}
j = 0;
while (j < col) {
if (eval ("_root.poly0_" + j)._visible == false) {
setProperty("_root.poly0_" + j, _visible , true);
_root["poly0_" + j].shown = 1;
n = random(_root.poly.colorscount) + 1;
eval ("_root.poly0_" + j).number = n;
eval ("_root.poly0_" + j).gotoAndStop(n);
}
j++;
}
}
function check1_1() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var counter;
var cur_color;
var new_color;
i = 0;
while (i < col) {
counter = 1;
cur_color = eval ("poly0_" + i).number;
i1 = i;
j = 0.5;
while (j < str) {
j1 = Math.floor(j);
i1 = i1 + 1;
if (i1 >= col) {
break;
}
new_color = eval ((("poly" + j1) + "_") + i1).number;
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
_root.press1.again = true;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + j1) + "_") + i1].shown = 0;
it = i1 - 1;
jt = Math.floor(j - 0.5);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
it = it - 1;
jt = Math.floor(j - 1);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
}
if (mindel < counter) {
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + j1) + "_") + i1].shown = 0;
}
j = j + 0.5;
}
i = i + 2;
}
}
function check1_2() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var counter;
var cur_color;
var new_color;
j = 1;
while (j < str) {
counter = 1;
cur_color = eval (("poly" + j) + "_0").number;
j1 = j;
i = 1;
while (i < col) {
j1 = j1 + 0.5;
if (j1 >= str) {
break;
}
jt = Math.floor(j1);
new_color = eval ((("poly" + jt) + "_") + i).number;
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
_root.press1.again = true;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + i].shown = 0;
it = i - 1;
jt = Math.floor(j1 - 0.5);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
it = it - 1;
jt = Math.floor(j1 - 1);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
}
if (mindel < counter) {
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + i].shown = 0;
}
i++;
}
j++;
}
}
function check2_1() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var counter;
var cur_color;
var new_color;
i = 0;
while (i < col) {
counter = 1;
cur_color = eval ("poly0_" + i).number;
i1 = i;
j = 0.5;
while (j < str) {
j1 = Math.floor(j);
i1 = i1 - 1;
if (i1 < 0) {
break;
}
new_color = eval ((("poly" + j1) + "_") + i1).number;
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
_root.press1.again = true;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + j1) + "_") + i1].shown = 0;
it = i1 + 1;
jt = Math.floor(j - 0.5);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
it = it + 1;
jt = Math.floor(j - 1);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
}
if (mindel < counter) {
_root[(("poly" + j1) + "_") + i1].shown = 0;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
}
j = j + 0.5;
}
i = i + 2;
}
}
function check2_2() {
var i;
var j;
var i1;
var j1;
var it;
var jt;
var counter;
var cur_color;
var new_color;
j = 0;
while (j < str) {
counter = 1;
i1 = col - 1;
cur_color = eval ((("poly" + j) + "_") + i1).number;
j1 = j + 0.5;
if ((col / 2) != Math.floor(col / 2)) {
j1 = j1 + 0.5;
}
i = col - 2;
while (i >= 0) {
j1 = j1 + 0.5;
if (j1 >= str) {
break;
}
jt = Math.floor(j1);
new_color = eval ((("poly" + jt) + "_") + i).number;
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
_root.press1.again = true;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + i].shown = 0;
it = i + 1;
jt = Math.floor(j1 - 0.5);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
it = it + 1;
jt = Math.floor(j1 - 1);
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + it].shown = 0;
}
if (mindel < counter) {
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + i].shown = 0;
}
i--;
}
j++;
}
}
function check3() {
var i;
var j;
var jt;
var counter;
var cur_color;
var new_color;
i = 0;
while (i < col) {
counter = 1;
cur_color = eval ("poly0_" + i).number;
j = 1;
while (j < str) {
new_color = eval ((("poly" + j) + "_") + i).number;
if (new_color == cur_color) {
counter++;
}
if (new_color != cur_color) {
counter = 1;
cur_color = new_color;
}
if (counter == mindel) {
_root.press1.again = true;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + j) + "_") + i].shown = 0;
jt = j - 1;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + i].shown = 0;
jt = jt - 1;
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + jt) + "_") + i].shown = 0;
}
if (mindel < counter) {
_root.poly.curscore = _root.poly.curscore + _root.poly.scoreinc;
_root.score.score = _root.score.score + _root.poly.curscore;
_root[(("poly" + j) + "_") + i].shown = 0;
}
j++;
}
i++;
}
}
function checkall() {
_root.poly.curscore = 0;
_root.press1.again = false;
check1_1();
check1_2();
check2_1();
check2_2();
check3();
if (_root.press1.again == true) {
_root.poly.fade = true;
} else if (_root.poly.demo != 1) {
_root.poly.playerscore = _root.score.score;
_root.savegame();
}
}
function fade() {
var i;
var j;
var n;
var b;
b = 1;
i = 0;
while (i < str) {
j = 0;
while (j < col) {
if (_root[(("poly" + i) + "_") + j].shown == 0) {
n = _root[(("poly" + i) + "_") + j]._alpha;
if (((n == 100) and (b == 1)) and (_root.poly.playsound == 1)) {
alpha.start();
b = 0;
}
n = n - 20;
_root[(("poly" + i) + "_") + j]._alpha = n;
if (10 < n) {
_root.poly.fade = true;
} else {
_root.poly.fade = false;
}
}
j++;
}
i++;
}
}
function invisible() {
var i;
var j;
i = 0;
while (i < str) {
j = 0;
while (j < col) {
if (_root[(("poly" + i) + "_") + j].shown == 0) {
_root[(("poly" + i) + "_") + j]._alpha = 100;
_root[(("poly" + i) + "_") + j]._visible = false;
}
j++;
}
i++;
}
}
function gameover() {
temprefresh();
i = 0;
while (i < Math.floor(col / 2)) {
j = 0;
while (j < (str - 1)) {
pic1_x = eval ((("press" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press" + i) + "_") + j).pic3_y;
c2 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c3 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c1 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 0;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x2 - x1) / 10;
_root.poly.dx2 = (x3 - x2) / 10;
_root.poly.dx3 = (x1 - x3) / 10;
_root.poly.dy1 = (y2 - y1) / 10;
_root.poly.dy2 = (y3 - y2) / 10;
_root.poly.dy3 = (y1 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
pic1_x = eval ((("press" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press" + i) + "_") + j).pic3_y;
c3 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c1 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c2 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 0;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x3 - x1) / 10;
_root.poly.dx2 = (x1 - x2) / 10;
_root.poly.dx3 = (x2 - x3) / 10;
_root.poly.dy1 = (y3 - y1) / 10;
_root.poly.dy2 = (y1 - y2) / 10;
_root.poly.dy3 = (y2 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
j++;
}
i++;
}
i = 0;
while (i < Math.floor(col / 2)) {
j = 0;
while (j < (str - 1)) {
pic1_x = eval ((("press1" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press1" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press1" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press1" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press1" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press1" + i) + "_") + j).pic3_y;
c2 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c3 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c1 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 1;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x2 - x1) / 10;
_root.poly.dx2 = (x3 - x2) / 10;
_root.poly.dx3 = (x1 - x3) / 10;
_root.poly.dy1 = (y2 - y1) / 10;
_root.poly.dy2 = (y3 - y2) / 10;
_root.poly.dy3 = (y1 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
pic1_x = eval ((("press1" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press1" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press1" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press1" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press1" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press1" + i) + "_") + j).pic3_y;
c3 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c1 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c2 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 1;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x3 - x1) / 10;
_root.poly.dx2 = (x1 - x2) / 10;
_root.poly.dx3 = (x2 - x3) / 10;
_root.poly.dy1 = (y3 - y1) / 10;
_root.poly.dy2 = (y1 - y2) / 10;
_root.poly.dy3 = (y2 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
j++;
}
i++;
}
i = 0;
while (i < Math.floor((col - 1) / 2)) {
j = 0;
while (j < (str - 1)) {
pic1_x = eval ((("press2" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press2" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press2" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press2" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press2" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press2" + i) + "_") + j).pic3_y;
c2 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c3 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c1 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 2;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x2 - x1) / 10;
_root.poly.dx2 = (x3 - x2) / 10;
_root.poly.dx3 = (x1 - x3) / 10;
_root.poly.dy1 = (y2 - y1) / 10;
_root.poly.dy2 = (y3 - y2) / 10;
_root.poly.dy3 = (y1 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
pic1_x = eval ((("press2" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press2" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press2" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press2" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press2" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press2" + i) + "_") + j).pic3_y;
c3 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c1 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c2 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 2;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x3 - x1) / 10;
_root.poly.dx2 = (x1 - x2) / 10;
_root.poly.dx3 = (x2 - x3) / 10;
_root.poly.dy1 = (y3 - y1) / 10;
_root.poly.dy2 = (y1 - y2) / 10;
_root.poly.dy3 = (y2 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
j++;
}
i++;
}
i = 0;
while (i < Math.floor((col - 1) / 2)) {
j = 0;
while (j < (str - 1)) {
pic1_x = eval ((("press3" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press3" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press3" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press3" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press3" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press3" + i) + "_") + j).pic3_y;
c2 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c3 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c1 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 3;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x2 - x1) / 10;
_root.poly.dx2 = (x3 - x2) / 10;
_root.poly.dx3 = (x1 - x3) / 10;
_root.poly.dy1 = (y2 - y1) / 10;
_root.poly.dy2 = (y3 - y2) / 10;
_root.poly.dy3 = (y1 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
pic1_x = eval ((("press3" + i) + "_") + j).pic1_x;
pic1_y = eval ((("press3" + i) + "_") + j).pic1_y;
pic2_x = eval ((("press3" + i) + "_") + j).pic2_x;
pic2_y = eval ((("press3" + i) + "_") + j).pic2_y;
pic3_x = eval ((("press3" + i) + "_") + j).pic3_x;
pic3_y = eval ((("press3" + i) + "_") + j).pic3_y;
c3 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
c1 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
c2 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
if (_root.ispossibly(pic1_x, pic1_y, c1, pic2_x, pic2_y, c2, pic3_x, pic3_y, c3) == 1) {
_root.poly.cheeti = i;
_root.poly.cheetj = j;
_root.poly.cheetn = 3;
_root.poly.cheetpic1x = pic1_x;
_root.poly.cheetpic2x = pic2_x;
_root.poly.cheetpic3x = pic3_x;
_root.poly.cheetpic1y = pic1_y;
_root.poly.cheetpic2y = pic2_y;
_root.poly.cheetpic3y = pic3_y;
_root.poly.color1 = c1;
_root.poly.color2 = c2;
_root.poly.color3 = c3;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x3 - x1) / 10;
_root.poly.dx2 = (x1 - x2) / 10;
_root.poly.dx3 = (x2 - x3) / 10;
_root.poly.dy1 = (y3 - y1) / 10;
_root.poly.dy2 = (y1 - y2) / 10;
_root.poly.dy3 = (y2 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
return(0);
}
j++;
}
i++;
}
return(1);
}
function AbsLink() {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + (("/?r=" + GetPrefix()) + "rlf");
getURL (sd, "blank");
}
function SendResult() {
var stSend = ((((((((_root.score + "\t") + 0) + "\t") + stName) + "\t") + "rlf") + "\t") + "web");
getURL ("http://absolutist.com/cgi-bin/gameres.pl?g=rlf&e=" + _root.Crypto(stSend), "blank");
_root.gotoAndPlay(4);
}
function LinkPC() {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + (("/boa/?r=" + GetPrefix()) + "rlf");
getURL (sd, "blank");
}
function GetPrefix() {
return(_root._url.charAt(_root._url.length - 3));
}
col = 8;
str = 10;
x0 = 30;
x01 = 35;
y0 = 40;
polyh = 30;
polyw = 38;
counter = 0;
colorscount = 6;
mindel = 3;
m = 0;
i0 = 0;
j0 = 0;
fallf = 5;
_root.poly.scoreinc = 2;
_root.poly.startscore = 0;
_root.poly.curscore = 0;
temp = new Array();
l = 0;
while (l < str) {
temp[l] = new Array();
p = 0;
while (p < col) {
temp[l][p] = -1;
p++;
}
l++;
}
temp1 = new Array();
l = 0;
while (l < str) {
temp1[l] = new Array();
p = 0;
while (p < col) {
temp1[l][p] = -1;
p++;
}
l++;
}
initalization();
Frame 2
Frame 3
_root.poly.processing = 0;
k = _root.gameover();
if (k == 1) {
if (_root.poly.demo == 1) {
_root.poly.demo = 0;
_root.Demo_mode._visible = false;
_root.poly.unvisible500 = 1;
if (_root.poly.demoplayed != 1) {
_root.stop();
gotoAndPlay (2);
_root.poly.processing = 0;
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.colorgraphics();
_root.savegame();
_root["500_375"]._visible = false;
} else {
_root.stop();
gotoAndPlay (2);
_root.poly.processing = 0;
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.loadgame();
_root["500_375"]._visible = false;
}
} else {
setProperty("gameover", _visible , true);
}
}
_root.poly.demoAccepted = 1;
if ((_root.poly.demo == 1) and (gameover() != 1)) {
_root["500_375"]._visible = true;
_root.poly.pic1_x = _root.poly.cheetpic1x;
_root.poly.pic1_y = _root.poly.cheetpic1y;
_root.poly.pic2_x = _root.poly.cheetpic2x;
_root.poly.pic2_y = _root.poly.cheetpic2y;
_root.poly.pic3_x = _root.poly.cheetpic3x;
_root.poly.pic3_y = _root.poly.cheetpic3y;
_root.poly.n = 0;
gotoAndPlay (4);
} else {
_root.poly.pic1_x = _root.poly.cheetpic1x;
_root.poly.pic1_y = _root.poly.cheetpic1y;
_root.poly.pic2_x = _root.poly.cheetpic2x;
_root.poly.pic2_y = _root.poly.cheetpic2y;
_root.poly.pic3_x = _root.poly.cheetpic3x;
_root.poly.pic3_y = _root.poly.cheetpic3y;
stop();
}
Frame 4
pic1_x = _root.poly.pic1_x;
pic1_y = _root.poly.pic1_y;
pic2_x = _root.poly.pic2_x;
pic2_y = _root.poly.pic2_y;
pic3_x = _root.poly.pic3_x;
pic3_y = _root.poly.pic3_y;
if ((_root.poly.n == 0) and (_root.poly.playsound == 1)) {
rotate_snd.start();
}
if (_root.poly.n < 10) {
eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x + _root.poly.dx1;
eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y + _root.poly.dy1;
eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x + _root.poly.dx2;
eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y + _root.poly.dy2;
eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x + _root.poly.dx3;
eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y + _root.poly.dy3;
_root.poly.n++;
} else {
color1 = _root.poly.color1;
color2 = _root.poly.color2;
color3 = _root.poly.color3;
eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x = _root.poly.x1t;
eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y = _root.poly.y1t;
eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x = _root.poly.x2t;
eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y = _root.poly.y2t;
eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x = _root.poly.x3t;
eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y = _root.poly.y3t;
eval ((("_root.poly" + pic1_y) + "_") + pic1_x).gotoAndStop(color1);
eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number = color1;
eval ((("_root.poly" + pic2_y) + "_") + pic2_x).gotoAndStop(color2);
eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number = color2;
eval ((("_root.poly" + pic3_y) + "_") + pic3_x).gotoAndStop(color3);
eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number = color3;
_root.gotoAndPlay("fall");
}
Frame 5
_root.gotoAndPlay("rotation");
Frame 6
checkall();
Frame 7
if (_root.poly.fade == true) {
fade();
}
if (_root.poly.fade == false) {
invisible();
_root.gotoAndPlay(9);
}
Frame 8
_root.gotoAndPlay(7);
Frame 9
f = -1;
i = 0;
while (i < col) {
j = 0;
while (j < str) {
if (_root[(("poly" + j) + "_") + i]._visible == false) {
if (j == 0) {
n = random(colorscount) + 1;
_root[(("poly" + j) + "_") + i].number = n;
_root[(("poly" + j) + "_") + i].gotoAndStop(n);
_root[(("poly" + j) + "_") + i].shown = 1;
_root[(("poly" + j) + "_") + i]._visible = true;
} else {
i0 = i;
j0 = j;
f = 0;
m = 0;
gotoAndPlay (10);
}
}
j++;
}
i++;
}
if (f == -1) {
if (_root.press1.again == true) {
_root.gotoAndPlay("fall");
} else {
_root.poly.fade = true;
_root.gotoAndPlay(3);
}
}
Frame 10
d = polyh / fallf;
if ((m == 0) and (_root.poly.playsound == 1)) {
falling.start(1, 1);
}
if (m < fallf) {
m++;
j = j0 + 1;
while (j < str) {
t = _root[(("poly" + j) + "_") + i0]._y;
_root[(("poly" + j) + "_") + i0]._y = t - d;
j++;
}
}
if (m == fallf) {
_root[(("poly" + j0) + "_") + i0].shown = 1;
_root[(("poly" + j0) + "_") + i0]._visible = true;
jt = j0 + 1;
n = _root[(("poly" + jt) + "_") + i0].number;
_root[(("poly" + j0) + "_") + i0].number = n;
_root[(("poly" + j0) + "_") + i0].gotoAndStop(n);
j = j0 + 1;
while (j < str) {
jt = j + 1;
n = _root[(("poly" + jt) + "_") + i0].number;
_root[(("poly" + j) + "_") + i0].number = n;
_root[(("poly" + j) + "_") + i0].gotoAndStop(n);
t = _root[(("poly" + j) + "_") + i0]._y;
_root[(("poly" + j) + "_") + i0]._y = t + (fallf * d);
j++;
}
s = str - 1;
n = random(colorscount) + 1;
_root[(("poly" + s) + "_") + i0].number = n;
_root[(("poly" + s) + "_") + i0].gotoAndStop(n);
_root[(("poly" + s) + "_") + i0].shown = 1;
_root[(("poly" + s) + "_") + i0]._visible = true;
m = 0;
_root.gotoAndPlay(9);
}
Frame 11
_root.gotoAndPlay("fill");
Symbol 5 Button
on (release) {
var curx;
var cury;
var x1;
var x2;
var x3;
var y1;
var y2;
var y3;
var xf1;
var xf2;
var xf3;
var yf1;
var yf2;
var yf3;
var cf1;
var cf2;
var cf3;
if ((_root.poly.processing == 0) and (_root.poly.demo == 0)) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
if (Key.isDown(Key.SHIFT)) {
_root.poly.color2 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
_root.poly.color3 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
_root.poly.color1 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
b = _root.ispossibly(pic1_x, pic1_y, _root.poly.color1, pic2_x, pic2_y, _root.poly.color2, pic3_x, pic3_y, _root.poly.color3);
if (b == 1) {
_root.savegame();
if (_root.poly.cheetn != 0) {
it = _root.poly.cheeti;
jt = _root.poly.cheetj;
nt = _root.poly.cheetn;
eval (((("_root.press" + nt) + it) + "_") + jt)._alpha = 0;
} else {
it = _root.poly.cheeti;
jt = _root.poly.cheetj;
eval ((("_root.press" + it) + "_") + jt)._alpha = 0;
}
_root.poly.processing = 1;
_root.poly.pic1_x = pic1_x;
_root.poly.pic1_y = pic1_y;
x1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._x;
y1 = _root[(("poly" + pic1_y) + "_") + pic1_x]._y;
_root.poly.pic2_x = pic2_x;
_root.poly.pic2_y = pic2_y;
x2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._x;
y2 = _root[(("poly" + pic2_y) + "_") + pic2_x]._y;
_root.poly.pic3_x = pic3_x;
_root.poly.pic3_y = pic3_y;
x3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._x;
y3 = _root[(("poly" + pic3_y) + "_") + pic3_x]._y;
_root.poly.dx1 = (x2 - x1) / 10;
_root.poly.dx2 = (x3 - x2) / 10;
_root.poly.dx3 = (x1 - x3) / 10;
_root.poly.dy1 = (y2 - y1) / 10;
_root.poly.dy2 = (y3 - y2) / 10;
_root.poly.dy3 = (y1 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
_root.gotoAndPlay("rotation");
}
} else {
_root.poly.color3 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x).number;
_root.poly.color1 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x).number;
_root.poly.color2 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x).number;
b = _root.ispossibly(pic1_x, pic1_y, _root.poly.color1, pic2_x, pic2_y, _root.poly.color2, pic3_x, pic3_y, _root.poly.color3);
if (b == 1) {
_root.savegame();
if (_root.poly.cheetn != 0) {
it = _root.poly.cheeti;
jt = _root.poly.cheetj;
nt = _root.poly.cheetn;
eval (((("_root.press" + nt) + it) + "_") + jt)._alpha = 0;
} else {
it = _root.poly.cheeti;
jt = _root.poly.cheetj;
eval ((("_root.press" + it) + "_") + jt)._alpha = 0;
}
_root.poly.processing = 1;
_root.poly.pic1_x = pic1_x;
_root.poly.pic1_y = pic1_y;
x1 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
y1 = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.pic2_x = pic2_x;
_root.poly.pic2_y = pic2_y;
x2 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
y2 = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.pic3_x = pic3_x;
_root.poly.pic3_y = pic3_y;
x3 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
y3 = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.dx1 = (x3 - x1) / 10;
_root.poly.dx2 = (x1 - x2) / 10;
_root.poly.dx3 = (x2 - x3) / 10;
_root.poly.dy1 = (y3 - y1) / 10;
_root.poly.dy2 = (y1 - y2) / 10;
_root.poly.dy3 = (y2 - y3) / 10;
_root.poly.x1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._x;
_root.poly.x2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._x;
_root.poly.x3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._x;
_root.poly.y1t = eval ((("_root.poly" + pic1_y) + "_") + pic1_x)._y;
_root.poly.y2t = eval ((("_root.poly" + pic2_y) + "_") + pic2_x)._y;
_root.poly.y3t = eval ((("_root.poly" + pic3_y) + "_") + pic3_x)._y;
_root.poly.n = 0;
_root.gotoAndPlay("rotation");
}
}
}
}
}
Symbol 26 MovieClip [obvodka] Frame 10
this._visible = false;
Symbol 34 Button
on (release) {
_root.bg._visible = true;
_root.poly.demo = 0;
_root.Demo_mode._visible = false;
_root.poly.demoAccepted = 0;
_root.perf._visible = false;
_root.colorgraphics();
_root.poly.processing = 0;
_root.poly.playerscore = 0;
_root["500_375"]._visible = false;
_root.gotoAndPlay(2);
}
Symbol 38 Button
on (release) {
_root.poly.processing = 0;
_root.perf._visible = false;
_root["500_375"]._visible = false;
_root.poly.unvisible500 = 1;
}
Symbol 43 Button
on (release) {
if ((getProperty(selected, _y) == 62) and (_root.poly.changed_option == 1)) {
_root.bg._visible = true;
_root.noviseLevel();
_root.options._visible = false;
}
if ((getProperty(selected, _y) == 112) and (_root.poly.changed_option == 1)) {
_root.bg._visible = true;
_root.professionalLevel();
_root.options._visible = false;
}
if ((getProperty(selected, _y) == 162) and (_root.poly.changed_option == 1)) {
_root.bg._visible = true;
_root.expertLevel();
_root.options._visible = false;
}
if (getProperty(selected1, _x) == 33) {
_root.poly.playsound = 1;
}
if (getProperty(selected1, _x) == 142) {
_root.poly.playsound = 0;
}
_root.options._visible = false;
_root.poly.processing = 0;
_root.poly.playerscore = 0;
_root["500_375"]._visible = false;
_root.poly.unvisible500 = 1;
}
Symbol 45 Button
on (release) {
_root.options._visible = false;
_root.poly.processing = 0;
_root["500_375"]._visible = false;
_root.poly.unvisible500 = 1;
}
Symbol 48 Button
on (release) {
_root.poly.changed_option = 1;
setProperty(selected, _y , 62);
}
Symbol 49 Button
on (release) {
_root.poly.changed_option = 1;
setProperty(selected, _y , 112);
}
Symbol 50 Button
on (release) {
_root.poly.changed_option = 1;
setProperty(selected, _y , 162);
}
Symbol 59 Button
on (release) {
setProperty(selected1, _x , 33);
}
Symbol 60 Button
on (release) {
setProperty(selected1, _x , 142);
}
Symbol 67 Button
on (release) {
_root.help._visible = false;
_root.poly.processing = 0;
_root["500_375"]._visible = false;
}
Symbol 71 Button
on (release) {
_root.bg._visible = true;
_root.poly.demo = 0;
_root.demo_caption = "Start Demo";
_root.Demo_mode._visible = false;
_root.poly.demoAccepted = 0;
_visible = false;
_root.colorgraphics();
_root.poly.processing = 0;
_root.gotoAndPlay(2);
_root["500_375"]._visible = false;
}
Symbol 72 Button
on (release) {
_root.poly.processing = 0;
_visible = false;
_root["500_375"]._visible = false;
}
Symbol 75 Button
on (release) {
if ((((_root.perf._visible != true) and (getProperty("gameover", _visible) != true)) and (_root.options._visible != true)) and (_root.help._visible != true)) {
_root.poly.demo = 0;
_root.Demo_mode._visible = false;
_root.poly.unvisible500 = 1;
if (_root.poly.demoplayed != 1) {
_root.stop();
gotoAndPlay (2);
_root.poly.processing = 0;
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.colorgraphics();
_root.savegame();
_root["500_375"]._visible = false;
} else {
_root.stop();
gotoAndPlay (2);
_root.poly.processing = 0;
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.loadgame();
_root["500_375"]._visible = false;
}
}
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 5
stop();
Symbol 98 MovieClip Frame 8
gotoAndStop (1);
Symbol 98 MovieClip Frame 12
gotoAndStop (1);
Symbol 100 Button
on (rollOver) {
knop1.gotoAndPlay(2);
}
on (rollOut) {
knop1.gotoAndPlay(6);
}
on (release) {
if ((((_root.perf._visible == false) and (getProperty("gameover", _visible) == false)) and (_root.options._visible == false)) and (_root.help._visible == false)) {
_root.poly.processing = 1;
if (_root.poly.demo != 0) {
_root["500_375"]._visible = true;
_root.poly.demo = 0;
_root.Demo_mode._visible = false;
if (_root.poly.demoplayed != 1) {
_root.stop();
gotoAndPlay (2);
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.colorgraphics();
_root.savegame();
} else {
_root.stop();
gotoAndPlay (2);
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.loadgame();
}
}
_root.perf._visible = true;
}
}
Symbol 107 Button
on (release) {
Absolutist();
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 5
stop();
Symbol 114 Button
on (rollOver) {
knop2.gotoAndPlay(2);
}
on (rollOut) {
knop2.gotoAndPlay(6);
}
on (release) {
MoreGames();
}
Symbol 117 Button
on (release) {
if ((((_root.perf._visible == false) and (getProperty("gameover", _visible) == false)) and (_root.options._visible == false)) and (_root.help._visible == false)) {
_root.poly.processing = 1;
if (_root.poly.demo != 0) {
_root["500_375"]._visible = true;
_root.poly.demo = 0;
_root.Demo_mode._visible = false;
if (_root.poly.demoplayed != 1) {
_root.stop();
gotoAndPlay (2);
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.colorgraphics();
_root.savegame();
} else {
_root.stop();
gotoAndPlay (2);
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.loadgame();
}
}
_root.poly.changed_option = 0;
_root.help._visible = true;
}
}
Symbol 120 Button
on (release) {
if ((((_root.perf._visible == false) and (getProperty("gameover", _visible) == false)) and (_root.options._visible == false)) and (_root.help._visible == false)) {
_root.poly.processing = 1;
if (_root.poly.demo != 0) {
_root["500_375"]._visible = true;
_root.poly.demo = 0;
_root.Demo_mode._visible = false;
if (_root.poly.demoplayed != 1) {
_root.stop();
gotoAndPlay (2);
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.colorgraphics();
_root.savegame();
} else {
_root.stop();
gotoAndPlay (2);
_root.poly.demo = 0;
if (_root.poly.demo == 1) {
_root.poly.demoAccepted = 0;
_root.poly.demo = 0;
}
_root.loadgame();
}
}
_root.poly.changed_option = 0;
_root.options._visible = true;
}
}
Symbol 122 Button
on (release) {
if (((((_root.poly.demo == 0) and (_root.perf._visible == false)) and (getProperty("gameover", _visible) == false)) and (_root.options._visible == false)) and (_root.help._visible == false)) {
if (_root.poly.cheetn != 10) {
pic1_x = _root.poly.cheetpic1x;
pic2_x = _root.poly.cheetpic2x;
pic3_x = _root.poly.cheetpic3x;
pic1_y = _root.poly.cheetpic1y;
pic2_y = _root.poly.cheetpic2y;
pic3_y = _root.poly.cheetpic3y;
_root[(("obvodka" + pic1_y) + "_") + pic1_x]._visible = true;
_root[(("obvodka" + pic1_y) + "_") + pic1_x].gotoAndPlay(2);
_root[(("obvodka" + pic2_y) + "_") + pic2_x]._visible = true;
_root[(("obvodka" + pic2_y) + "_") + pic2_x].gotoAndPlay(2);
_root[(("obvodka" + pic3_y) + "_") + pic3_x]._visible = true;
_root[(("obvodka" + pic3_y) + "_") + pic3_x].gotoAndPlay(2);
} else {
it = _root.poly.cheeti;
jt = _root.poly.cheetj;
eval ((("_root.press" + it) + "_") + jt)._alpha = 100;
}
}
}
Symbol 127 Button
on (release) {
if (((((_root.poly.demo == 0) and (_root.perf._visible == false)) and (getProperty("gameover", _visible) == false)) and (_root.options._visible == false)) and (_root.help._visible == false)) {
_root.poly.playerscore = _root.score.score;
_root.score.score = 0;
_root.poly.curscore = 0;
_root.colorgraphics();
_root.poly.demoplayed = 1;
_root.poly.processing = 1;
_root["500_375"]._visible = true;
_root.poly.demo = 1;
_root.poly.pic1_x = _root.poly.cheetpic1x;
_root.poly.pic1_y = _root.poly.cheetpic1y;
_root.poly.pic2_x = _root.poly.cheetpic2x;
_root.poly.pic2_y = _root.poly.cheetpic2y;
_root.poly.pic3_x = _root.poly.cheetpic3x;
_root.poly.pic3_y = _root.poly.cheetpic3y;
_root.Demo_mode._visible = true;
_root.gotoAndPlay(2);
}
}