Frame 1
Set("/:ActPerc", "0");
Frame 3
if (_framesloaded < _totalframes) {
Perc = int((_framesloaded / _totalframes) * "100");
trace(/:ActPerc);
if (/:ActPerc < Perc) {
Set("/:ActPerc", /:ActPerc + "1");
}
tellTarget ("/Loader") {
gotoAndStop("1" + int(/:ActPerc / "20"));
};
gotoAndPlay (2);
} else {
tellTarget ("/Loader") {
gotoAndStop (6);
};
}
Frame 6
stop();
Frame 8
call("InitTable");
Frame 9
startDrag ("/Cursor", true);
ActDar = "1";
setProperty("/Sipka", _x , eval (("/:Dar" add /:ActDar) add "_sx"));
setProperty("/Sipka", _y , eval (("/:Dar" add /:ActDar) add "_sy"));
stop();
Frame 78
gotoAndPlay (96);
Frame 85
Dar1_x1 = "352";
Dar1_y1 = "247";
Dar1_x2 = "398";
Dar1_y2 = "297";
Dar1_sx = "347";
Dar1_sy = "251";
Dar2_x1 = "334";
Dar2_y1 = "200";
Dar2_x2 = "375";
Dar2_y2 = "260";
Dar2_sx = "323";
Dar2_sy = "203";
Dar3_x1 = "396";
Dar3_y1 = "271";
Dar3_x2 = "472";
Dar3_y2 = "298";
Dar3_sx = "395";
Dar3_sy = "260";
Dar4_x1 = "268";
Dar4_y1 = "201";
Dar4_x2 = "321";
Dar4_y2 = "264";
Dar4_sx = "251";
Dar4_sy = "195";
Dar5_x1 = "277";
Dar5_y1 = "252";
Dar5_x2 = "361";
Dar5_y2 = "279";
Dar5_sx = "275";
Dar5_sy = "243";
Frame 97
stop();
Symbol 16 Button
on (release) {
getURL ("http://www.magicsystems.sk", "_blank");
}
Symbol 25 Button
on (release) {
play();
}
Symbol 44 Button
on (press) {
if (/:ActDar == "4") {
x1 = eval (("/:Dar" add /:ActDar) add "_x1");
y1 = eval (("/:Dar" add /:ActDar) add "_y1");
x2 = eval (("/:Dar" add /:ActDar) add "_x2");
y2 = eval (("/:Dar" add /:ActDar) add "_y2");
nx = getProperty("/Cursor", _x) + getProperty("/Cursor/Noznice", _x);
ny = getProperty("/Cursor", _y) + getProperty("/Cursor/Noznice", _y);
if (((x1 < nx) and (nx < x2)) and ((y1 < ny) and (ny < y2))) {
play();
tellTarget ("/Cursor") {
gotoAndPlay ("Zasah");
};
}
}
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 32
tellTarget ("/Svetlo") {
play();
}
Symbol 49 MovieClip Frame 33
stop();
Symbol 51 Button
on (press) {
if (/:ActDar == "2") {
x1 = eval (("/:Dar" add /:ActDar) add "_x1");
y1 = eval (("/:Dar" add /:ActDar) add "_y1");
x2 = eval (("/:Dar" add /:ActDar) add "_x2");
y2 = eval (("/:Dar" add /:ActDar) add "_y2");
nx = getProperty("/Cursor", _x) + getProperty("/Cursor/Noznice", _x);
ny = getProperty("/Cursor", _y) + getProperty("/Cursor/Noznice", _y);
if (((x1 < nx) and (nx < x2)) and ((y1 < ny) and (ny < y2))) {
play();
tellTarget ("/Cursor") {
gotoAndPlay ("Zasah");
};
}
}
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 27
tellTarget ("/Svetlo") {
play();
}
Symbol 54 MovieClip Frame 28
stop();
Symbol 56 Button
on (press) {
if (/:ActDar == "3") {
x1 = eval (("/:Dar" add /:ActDar) add "_x1");
y1 = eval (("/:Dar" add /:ActDar) add "_y1");
x2 = eval (("/:Dar" add /:ActDar) add "_x2");
y2 = eval (("/:Dar" add /:ActDar) add "_y2");
nx = getProperty("/Cursor", _x) + getProperty("/Cursor/Noznice", _x);
ny = getProperty("/Cursor", _y) + getProperty("/Cursor/Noznice", _y);
if (((x1 < nx) and (nx < x2)) and ((y1 < ny) and (ny < y2))) {
play();
tellTarget ("/Cursor") {
gotoAndPlay ("Zasah");
};
}
}
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 29
tellTarget ("/Svetlo") {
play();
}
Symbol 59 MovieClip Frame 30
stop();
Symbol 61 Button
on (press) {
if (/:ActDar == "5") {
x1 = eval (("/:Dar" add /:ActDar) add "_x1");
y1 = eval (("/:Dar" add /:ActDar) add "_y1");
x2 = eval (("/:Dar" add /:ActDar) add "_x2");
y2 = eval (("/:Dar" add /:ActDar) add "_y2");
nx = getProperty("/Cursor", _x) + getProperty("/Cursor/Noznice", _x);
ny = getProperty("/Cursor", _y) + getProperty("/Cursor/Noznice", _y);
if (((x1 < nx) and (nx < x2)) and ((y1 < ny) and (ny < y2))) {
play();
tellTarget ("/Cursor") {
gotoAndPlay ("Zasah");
};
}
}
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 33
tellTarget ("/Svetlo") {
gotoAndPlay ("koniec");
}
Symbol 66 MovieClip Frame 34
stop();
Symbol 68 Button
on (press) {
if (/:ActDar == "1") {
x1 = eval (("/:Dar" add /:ActDar) add "_x1");
y1 = eval (("/:Dar" add /:ActDar) add "_y1");
x2 = eval (("/:Dar" add /:ActDar) add "_x2");
y2 = eval (("/:Dar" add /:ActDar) add "_y2");
nx = getProperty("/Cursor", _x) + getProperty("/Cursor/Noznice", _x);
ny = getProperty("/Cursor", _y) + getProperty("/Cursor/Noznice", _y);
if (((x1 < nx) and (nx < x2)) and ((y1 < ny) and (ny < y2))) {
play();
tellTarget ("/Cursor") {
gotoAndPlay ("Zasah");
};
}
}
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 32
tellTarget ("/Svetlo") {
play();
}
Symbol 71 MovieClip Frame 33
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 3
stop();
Symbol 89 MovieClip Frame 4
stop();
Symbol 89 MovieClip Frame 5
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 4
setProperty("Noznice", _x , (-"30") + random("60"));
setProperty("Noznice", _y , (-"30") + random("60"));
gotoAndPlay (2);
Symbol 93 MovieClip Frame 7
setProperty("/Sipka", _x , -"100");
setProperty("/Sipka", _y , -"100");
Symbol 93 MovieClip Frame 8
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
setProperty("/Dar1", _visible , "0");
setProperty("/Dar2", _visible , "0");
setProperty("/Dar3", _visible , "0");
setProperty("/Dar4", _visible , "0");
setProperty("/Dar5", _visible , "0");
Symbol 98 MovieClip Frame 20
setProperty("/Dar1", _visible , "1");
setProperty("/Dar2", _visible , "1");
setProperty("/Dar3", _visible , "1");
setProperty("/Dar4", _visible , "1");
setProperty("/Dar5", _visible , "1");
if (/:ActDar < "5") {
tellTarget ("/Slecna") {
nextFrame();
};
Set("/:ActDar", /:ActDar + "1");
tellTarget ("/Cursor") {
gotoAndPlay ("Loop");
};
setProperty("/Sipka", _x , eval (("/:Dar" add /:ActDar) add "_sx"));
setProperty("/Sipka", _y , eval (("/:Dar" add /:ActDar) add "_sy"));
gotoAndStop (1);
} else {
tellTarget ("/") {
play();
};
stop();
}
Symbol 104 Button
on (release) {
getURL ("http://www.magicsystems.sk", "_blank");
}
Symbol 114 Button
on (release) {
gotoAndPlay (6);
}