Frame 1
laetud = int(("100" / _totalframes) * _framesloaded);
setProperty("/laadur/pulk", _x , (-"200") + (laetud * "2"));
laetud_protsent = laetud add " % ";
ifFrameLoaded (_totalframes) {
gotoAndPlay (3);
}
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 2
gotoAndPlay (1);
Frame 5
movie_width = "300";
movie_height = "320";
ruut_height = "30";
ruut_width = "30";
skoor = "0";
stop();
Frame 10
setProperty("/taust/ruut", _visible , "0");
n = "1";
while (n < "9") {
m = "1";
while (m < "9") {
duplicateMovieClip ("/taust/ruut", ("ruut" add m) add n, ("100" * m) + n);
setProperty(("/taust/ruut" add m) add n, _x , ((m * ruut_width) - (movie_width / "2")) + "15");
setProperty(("/taust/ruut" add m) add n, _y , ((n * ruut_height) - (movie_height / "2")) + "15");
m = m + "1";
}
n = n + "1";
}
n = random("7") + "1";
m = random("7") + "1";
tellTarget (("/taust/ruut" add n) add m) {
gotoAndStop (2);
};
tellTarget ("/taust") {
vana_x = ../:n;
vana_y = ../:m;
};
startDrag ("/valik", true, "45", "35", "255", "245");
stop();
Frame 32
game_title = "ratsuk";
score_keeper = "http://tonypa.virtualave.net/skoor/score_keeper1.pl";
my_score = skoor;
Frame 35
if (sk_done ne "") {
sk_done = "";
gotoAndStop(_currentframe + "2");
} else if (error ne "") {
view_scores = error;
stop();
} else {
view_scores = "Loen edetabelit...";
play();
}
Frame 36
prevFrame();
Frame 37
view_scores = "";
num = "1";
while ("10" >= num) {
spacer1 = substring("___", "0", length("___") - length(num));
spacer2 = substring("_____________", "0", length("_____________") - length(eval ("name_" add num)));
spacer3 = substring("____________", "0", length("____________") - length(eval ("score_" add num)));
view_scores = (((((view_scores add num) add spacer1) add eval ("name_" add num)) add spacer2) add spacer3) add eval ("score_" add num);
if (num <> "10") {
view_scores = view_scores add "\r";
}
num = num + "1";
}
stop();
Symbol 10 Button
on (keyPress "<Left>") {
niisama = "1";
}
on (keyPress "<Right>") {
niisama = "1";
}
on (keyPress "<Enter>") {
niisama = "1";
}
Symbol 11 Button
on (release) {
gotoAndStop (10);
}
Symbol 29 Button
on (release) {
Set("/taust:check", "1");
}
Symbol 30 MovieClip Frame 1
sisu = -"1";
stop();
Symbol 30 MovieClip Frame 2
sisu = "0";
stop();
Symbol 30 MovieClip Frame 3
sisu = "2";
stop();
Symbol 30 MovieClip Frame 4
sisu = "3";
stop();
Symbol 35 MovieClip Frame 1
setProperty("punn", _x , getProperty("_level0/valik", _x) - "150");
Symbol 37 MovieClip Frame 1
tellTarget ("ruut11") {
gotoAndStop (1);
}
Symbol 37 MovieClip Frame 2
valik_x = int((getProperty("../valik", _x) - "30") / "30") + "1";
valik_y = int((getProperty("../valik", _y) - "20") / "30") + "1";
if (((((((((valik_x == (vana_x + "1")) and (valik_y == (vana_y + "2"))) or ((valik_x == (vana_x + "1")) and (valik_y == (vana_y - "2")))) or ((valik_x == (vana_x - "1")) and (valik_y == (vana_y + "2")))) or ((valik_x == (vana_x - "1")) and (valik_y == (vana_y - "2")))) or ((valik_x == (vana_x + "2")) and (valik_y == (vana_y + "1")))) or ((valik_x == (vana_x + "2")) and (valik_y == (vana_y - "1")))) or ((valik_x == (vana_x - "2")) and (valik_y == (vana_y + "1")))) or ((valik_x == (vana_x - "2")) and (valik_y == (vana_y - "1")))) {
tellTarget (("ruut" add valik_x) add valik_y) {
if (sisu == (-"1")) {
gotoAndPlay("5");
}
};
}
tellTarget (("ruut" add vana_x) add vana_y) {
gotoAndStop("3");
}
Symbol 37 MovieClip Frame 3
if (check == "1") {
gotoAndPlay (20);
} else {
gotoAndPlay (2);
}
Symbol 37 MovieClip Frame 20
check = "0";
tellTarget (("ruut" add vana_x) add vana_y) {
gotoAndStop("2");
};
vana_x = valik_x;
vana_y = valik_y;
Set("../:skoor", ../:skoor + "1");
tellTarget (("ruut" add valik_x) add valik_y) {
gotoAndStop("3");
}
Symbol 37 MovieClip Frame 29
number = "8";
counter = "1";
while (number >= counter) {
Set("var" add counter, counter);
counter = counter + "1";
}
counter = number;
while ("1" < counter) {
random_number = random(counter) + "1";
Set("random" add counter, eval ("var" add random_number));
Set("var" add random_number, eval ("var" add counter));
counter = counter - "1";
}
random1 = var1;
Symbol 37 MovieClip Frame 30
leitud = "0";
tellTarget (("ruut" add vana_x) add vana_y) {
gotoAndStop("2");
};
Set("../:skoor", ../:skoor + "1");
call("uus" add random1);
if (leitud == "0") {
call("uus" add random2);
}
if (leitud == "0") {
call("uus" add random3);
}
if (leitud == "0") {
call("uus" add random4);
}
if (leitud == "0") {
call("uus" add random5);
}
if (leitud == "0") {
call("uus" add random6);
}
if (leitud == "0") {
call("uus" add random7);
}
if (leitud == "0") {
call("uus" add random8);
}
Symbol 37 MovieClip Frame 35
if (leitud == "0") {
tellTarget ("../") {
gotoAndStop ("end");
};
}
if ((((((((eval ((("ruut" add (vana_x - "2")) add (vana_y - "1")) add ":sisu") == "0") and (eval ((("ruut" add (vana_x - "2")) add (vana_y + "1")) add ":sisu") == "0")) and (eval ((("ruut" add (vana_x + "2")) add (vana_y - "1")) add ":sisu") == "0")) and (eval ((("ruut" add (vana_x + "2")) add (vana_y + "1")) add ":sisu") == "0")) and (eval ((("ruut" add (vana_x - "1")) add (vana_y - "2")) add ":sisu") == "0")) and (eval ((("ruut" add (vana_x - "1")) add (vana_y + "2")) add ":sisu") == "0")) and (eval ((("ruut" add (vana_x + "1")) add (vana_y - "2")) add ":sisu") == "0")) and (eval ((("ruut" add (vana_x + "1")) add (vana_y + "2")) add ":sisu") == "0")) {
tellTarget ("../") {
gotoAndStop ("end1");
};
}
gotoAndPlay (2);
Symbol 37 MovieClip Frame 40
if ((eval ((("ruut" add (vana_x + "1")) add (vana_y + "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "1")) add (vana_y + "2")) {
gotoAndStop("3");
};
vana_x = vana_x + "1";
vana_y = vana_y + "2";
leitud = "1";
}
Symbol 37 MovieClip Frame 41
if ((eval ((("ruut" add (vana_x + "1")) add (vana_y - "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "1")) add (vana_y - "2")) {
gotoAndStop("3");
};
vana_x = vana_x + "1";
vana_y = vana_y - "2";
leitud = "1";
}
Symbol 37 MovieClip Frame 42
if ((eval ((("ruut" add (vana_x - "1")) add (vana_y + "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "1")) add (vana_y + "2")) {
gotoAndStop("3");
};
vana_x = vana_x - "1";
vana_y = vana_y + "2";
leitud = "1";
}
Symbol 37 MovieClip Frame 43
if ((eval ((("ruut" add (vana_x - "1")) add (vana_y - "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "1")) add (vana_y - "2")) {
gotoAndStop("3");
};
vana_x = vana_x - "1";
vana_y = vana_y - "2";
leitud = "1";
}
Symbol 37 MovieClip Frame 44
if ((eval ((("ruut" add (vana_x + "2")) add (vana_y + "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "2")) add (vana_y + "1")) {
gotoAndStop("3");
};
vana_x = vana_x + "2";
vana_y = vana_y + "1";
leitud = "1";
}
Symbol 37 MovieClip Frame 45
if ((eval ((("ruut" add (vana_x + "2")) add (vana_y - "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "2")) add (vana_y - "1")) {
gotoAndStop("3");
};
vana_x = vana_x + "2";
vana_y = vana_y - "1";
leitud = "1";
}
Symbol 37 MovieClip Frame 46
if ((eval ((("ruut" add (vana_x - "2")) add (vana_y + "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "2")) add (vana_y + "1")) {
gotoAndStop("3");
};
vana_x = vana_x - "2";
vana_y = vana_y + "1";
leitud = "1";
}
Symbol 37 MovieClip Frame 47
if ((eval ((("ruut" add (vana_x - "2")) add (vana_y - "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "2")) add (vana_y - "1")) {
gotoAndStop("3");
};
vana_x = vana_x - "2";
vana_y = vana_y - "1";
leitud = "1";
}
Symbol 37 MovieClip Frame 55
leitud = "0";
tellTarget (("ruut" add vana_x) add vana_y) {
gotoAndStop("2");
};
Set("../:skoor", ../:skoor + "1");
if ((eval ((("ruut" add (vana_x + "1")) add (vana_y + "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "1")) add (vana_y + "2")) {
gotoAndStop("3");
};
vana_x = vana_x + "1";
vana_y = vana_y + "2";
leitud = "1";
}
if ((eval ((("ruut" add (vana_x + "1")) add (vana_y - "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "1")) add (vana_y - "2")) {
gotoAndStop("3");
};
vana_x = vana_x + "1";
vana_y = vana_y - "2";
leitud = "1";
}
if ((eval ((("ruut" add (vana_x - "1")) add (vana_y + "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "1")) add (vana_y + "2")) {
gotoAndStop("3");
};
vana_x = vana_x - "1";
vana_y = vana_y + "2";
leitud = "1";
}
if ((eval ((("ruut" add (vana_x - "1")) add (vana_y - "2")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "1")) add (vana_y - "2")) {
gotoAndStop("3");
};
vana_x = vana_x - "1";
vana_y = vana_y - "2";
leitud = "1";
}
if ((eval ((("ruut" add (vana_x + "2")) add (vana_y + "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "2")) add (vana_y + "1")) {
gotoAndStop("3");
};
vana_x = vana_x + "2";
vana_y = vana_y + "1";
leitud = "1";
}
if ((eval ((("ruut" add (vana_x + "2")) add (vana_y - "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x + "2")) add (vana_y - "1")) {
gotoAndStop("3");
};
vana_x = vana_x + "2";
vana_y = vana_y - "1";
leitud = "1";
}
if ((eval ((("ruut" add (vana_x - "2")) add (vana_y + "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "2")) add (vana_y + "1")) {
gotoAndStop("3");
};
vana_x = vana_x - "2";
vana_y = vana_y + "1";
leitud = "1";
}
if ((eval ((("ruut" add (vana_x - "2")) add (vana_y - "1")) add ":sisu") == (-"1")) and (leitud == "0")) {
tellTarget (("ruut" add (vana_x - "2")) add (vana_y - "1")) {
gotoAndStop("3");
};
vana_x = vana_x - "2";
vana_y = vana_y - "1";
leitud = "1";
}
Symbol 40 Button
on (release) {
loadVariablesNum (score_keeper, "0", "POST");
gotoAndPlay (35);
}
Symbol 42 Button
on (release) {
gotoAndPlay (1);
}