Frame 1
Version = "Classic451";
Location = substring(_url, "1", "9");
if (Location eq "file:///E") {
trace("Running locally");
RunMode = "L";
URL_Base = "file:///E:\\WWW\\sseriga\\html\\x_";
} else if (Location eq "http://lo") {
RunMode = "T";
URL_Base = "http://localhost/sseriga/";
} else {
RunMode = "O";
URL_Base = "";
}
loading = "0";
Frame 3
ifFrameLoaded (135) {
gotoAndPlay (7);
}
Frame 4
tellTarget ("/Loading") {
play();
}
Frame 5
ifFrameLoaded (135) {
gotoAndPlay (7);
}
Frame 6
gotoAndPlay (5);
Frame 7
Set("/:music", "on");
Set("/:gridX", "13");
Set("/:gridY", "11");
Set("/:xSize", "7");
Set("/:ySize", "7");
Set("/:border", "normal");
EnergyValue = "0";
fscommand ("showmenu", "false");
fscommand ("fullscreen", "true");
Frame 8
play();
Frame 9
if (loading) {
prevFrame();
}
Frame 10
setProperty("scores", _visible , "0");
Game = "0";
Ready = "0";
DemoKT = "131220301131422040331230201143";
DemoW = "110101010010000000000010000000";
DemoP = "100011111101001";
tellTarget ("Demo8/Block") {
gotoAndStop (2);
};
i = "1";
while (i < "16") {
tellTarget (("Demo" add i) add "/Wires") {
gotoAndStop("L" add (substring(/:DemoKT, (/:i * "2") - "1", "2")));
};
if ((substring(DemoW, (i * "2") - "1", "1")) eq "1") {
tellTarget (("Demo" add i) add "/Wall0") {
gotoAndStop (2);
};
if (((i == "1") or (i == "6")) or (i == "11")) {
tellTarget (("Demo" add (i + "4")) add "/Wall2") {
gotoAndStop (2);
};
}
}
if ((substring(DemoW, i * "2", "1")) eq "1") {
tellTarget (("Demo" add i) add "/Wall1") {
gotoAndStop (2);
};
if (i < "6") {
tellTarget (("Demo" add (i + "10")) add "/Wall3") {
gotoAndStop (2);
};
}
}
setProperty(("Demo" add i) add "/Wires/Power", _visible , (substring(DemoP, i, "1")) eq "1");
i = i + "1";
}
tellTarget ("/xSize") {
gotoAndStop((/:xSize - "1") / "2");
};
tellTarget ("/ySize") {
gotoAndStop((/:ySize - "1") / "2");
};
if (border eq "normal") {
tellTarget ("/border") {
gotoAndStop (1);
};
} else {
tellTarget ("/border") {
gotoAndStop (2);
};
}
name = NetName;
Frame 11
stop();
Frame 12
tellTarget ("/scores") {
gotoAndStop (1);
}
Frame 16
TotalCells = xSize * ySize;
Set("/:Lock", "0");
Set("/:offsetX", (/:gridX - /:xSize) / "2");
Set("/:offsetY", (/:gridY - /:ySize) / "2");
x_ = "0";
y_ = "0";
Index = "1";
while ((gridX * gridY) >= Index) {
ActiveClip = "/Cell" add (substring("1000" + Index, "2", "-1"));
if (!(((((x_ - offsetX) >= "0") and ((x_ - offsetX) < xSize)) and ((y_ - offsetY) >= "0")) and ((y_ - offsetY) < ySize))) {
tellTarget (ActiveClip) {
gotoAndStop (3);
};
} else {
Set(ActiveClip add ":x_", x_ - offsetX);
Set(ActiveClip add ":y_", y_ - offsetY);
Set(ActiveClip add ":self_", (x_ - offsetX) + (xSize * (y_ - offsetY)));
}
x_ = x_ + "1";
Index = Index + "1";
if (x_ == gridX) {
y_ = y_ + "1";
x_ = "0";
}
}
GameLevel = "";
play();
Frame 17
setProperty("/HiscoreBox", _visible , "0");
Set("/:hubX", (xSize - "1") / "2");
Set("/:hubY", (ySize - "1") / "2");
Set("/:Last", "0");
NumTurns = "0";
EnergyValue = EnergyValue + "2";
Set("/MessageBox:message", ((("PLEASE WAIT" add "\r") add "WHILE GENERATING") add "\r") add "NEW NETWORK");
setProperty("/MessageBox/Button0", _visible , "0");
setProperty("/MessageBox/Button1", _visible , "0");
setProperty("/MessageBox/Button2", _visible , "0");
tellTarget ("/MessageBox/Animations") {
gotoAndStop ("Hourglass");
};
if (Music eq "on") {
tellTarget ("Speaker") {
gotoAndStop (1);
};
} else {
tellTarget ("Speaker") {
gotoAndStop (2);
};
}
call("ArraySetup");
OpenPaths = "";
Frame 18
i = "1";
while ("10" >= i) {
Set("/:HIname" add i, "");
Set("/:HIscore" add i, "");
Set("/:HItype" add i, "");
i = i + "1";
}
Frame 19
Index = "0";
while (Index < ("2" * TotalCells)) {
Set("Walls_" add ("1000" + Index), (((random("30") == "0") * ("3" < xSize)) * ("3" < ySize)) * "1");
Index = Index + "1";
}
if (border eq "normal") {
Index = "0";
while (Index < xSize) {
Set("Walls_1" add (substring(WallCode, ("12" * Index) + "4", "3")), "1");
Index = Index + "1";
}
Index = "0";
while (Index < TotalCells) {
Set("Walls_1" add (substring(WallCode, ("12" * Index) + "1", "3")), "1");
Index = Index + xSize;
}
}
WallCount = "0";
Index = "0";
while (Index < ("2" * TotalCells)) {
WallCount = WallCount + (eval ("Walls_" add ("1000" + Index)) == "1");
Index = Index + "1";
}
WallCount = TotalCells - WallCount;
if ("20" >= WallCount) {
GameLevel = "Kid";
} else if ("45" >= WallCount) {
GameLevel = "Junior";
} else if ("80" >= WallCount) {
GameLevel = "Graduate";
} else if ("115" >= WallCount) {
GameLevel = "Master";
} else {
GameLevel = "Doctor";
}
Frame 20
Digger = substring(("1000" + hubX) + (xSize * hubY), "2", "-1");
WireMap = random("14") + "1";
OpenPaths = "";
d = "0";
while (d < "4") {
Set("Walls_1" add (substring(WallCode, (("12" * Digger) + (d * "3")) + "1", "3")), "0");
if (("2" * int(WireMap / "2")) < WireMap) {
call("PutWire");
}
WireMap = int(WireMap / "2");
d = d + "1";
}
call("Generate");
Frame 21
call("Formulate");
Frame 22
MinTurns = "0";
call("Shuffle");
Num = MinTurns;
Digit100 = int(MinTurns / "100");
Digit10 = int((MinTurns - ("100" * Digit100)) / "10");
Digit1 = (MinTurns - ("100" * Digit100)) - ("10" * Digit10);
tellTarget ("/Min/Ones") {
gotoAndStop(/:Digit1 + "3");
};
if (("0" < Digit10) or ((Digit10 == "0") and ("0" < Digit100))) {
tellTarget ("/Min/Tens") {
gotoAndStop(/:Digit10 + "3");
};
}
if ("0" < Digit100) {
tellTarget ("/Min/Hundreds") {
gotoAndStop(/:Digit100 + "3");
};
}
call("Display");
call("Energize");
call("SetMeter");
tellTarget ("/Timer") {
play();
};
Ready = "1";
Game = "1";
Frame 23
tellTarget ("/MessageBox/Animations") {
gotoAndStop (1);
};
setProperty("/MessageBox", _visible , "0");
stop();
Frame 24
setProperty("/MessageBox", _visible , "1");
tellTarget ("/MessageBox/Sound") {
gotoAndPlay (2);
};
Set("/MessageBox:message", ("Do you really want" add "\r") add "to leave this game?");
setProperty("/MessageBox/Button0", _visible , "0");
setProperty("/MessageBox/Button1", _visible , "1");
Set("/MessageBox/Button1/Text:text", "Yes");
Set("/MessageBox/Button1:action", "Menu");
setProperty("/MessageBox/Button2", _visible , "1");
Set("/MessageBox/Button2/Text:text", "No");
Set("/MessageBox/Button2:action", "Continue");
stop();
Frame 25
TimeBonus = /Timer:seconds / MinTurns;
if (TimeBonus < "1") {
TimeBonus = "1";
}
TimeBonus = "500000" / TimeBonus;
TurnBonus = NumTurns - MinTurns;
if (TurnBonus < "0") {
TurnBonus = "0";
}
TurnBonus = "500000" / (TurnBonus + "1");
TotalBonus = int(((TurnBonus + TimeBonus) * TotalCells) / "100");
loading = "0";
if (RunMode ne "L") {
setProperty("/MessageBox", _visible , "1");
Set("/MessageBox:message", "Loading Hiscores...");
setProperty("/MessageBox/Button0", _visible , "0");
setProperty("/MessageBox/Button1", _visible , "0");
setProperty("/MessageBox/Button2", _visible , "0");
tellTarget ("/MessageBox/Animations") {
gotoAndStop ("Hourglass");
};
} else {
loading = "0";
}
Frame 26
play();
Frame 27
if (loading) {
prevFrame();
}
Frame 28
setProperty("/MessageBox", _visible , "1");
setProperty("/MessageBox/Button0", _visible , "1");
Set("/MessageBox/Button0/Text:text", "Ok");
Set("/MessageBox/Button0:action", "Continue");
setProperty("/MessageBox/Button1", _visible , "0");
setProperty("/MessageBox/Button2", _visible , "0");
tellTarget ("/MessageBox/Animations") {
gotoAndStop (1);
};
error = "none";
if (error eq "none") {
Set("/MessageBox:message", (((("Your score:" add TotalBonus) add "\r") add "Now try harder level") add "\r") add "or improve your score!");
setProperty("/MessageBox/Button0", _visible , "1");
Set("/MessageBox/Button0/Text:text", "Ok");
Set("/MessageBox/Button0:action", "Continue");
setProperty("/MessageBox/Button1", _visible , "0");
setProperty("/MessageBox/Button2", _visible , "0");
} else {
Set("/MessageBox:message", "*** Error ***" add error);
setProperty("/MessageBox/Button0", _visible , "1");
Set("/MessageBox/Button0/Text:text", "Ok");
Set("/MessageBox/Button0:action", "Continue");
setProperty("/MessageBox/Button1", _visible , "0");
setProperty("/MessageBox/Button2", _visible , "0");
}
stop();
Frame 29
setProperty("/HiscoreBox", _visible , "1");
tellTarget ("/HiscoreBox") {
play();
};
stop();
Frame 30
stop();
Frame 31
WallCode = "";
NearCode = "";
CellCode = "";
y_ = "0";
while (y_ < ySize) {
x_ = "0";
while (x_ < xSize) {
WallCode = WallCode add (substring("1000" + ("2" * (x_ + (xSize * y_))), "2", "-1"));
WallCode = WallCode add (substring(("1000" + ("2" * (x_ + (xSize * y_)))) + "1", "2", "-1"));
WallCode = WallCode add (substring("1000" + ("2" * (((x_ + "1") - (xSize * ((x_ + "1") == xSize))) + (xSize * y_))), "2", "-1"));
WallCode = WallCode add (substring(("1000" + ("2" * (x_ + (xSize * ((y_ + "1") - (ySize * ((y_ + "1") == ySize))))))) + "1", "2", "-1"));
NearCode = NearCode add (substring(((("1000" + x_) - "1") + (xSize * (x_ == "0"))) + (y_ * xSize), "2", "-1"));
NearCode = NearCode add (substring(("1000" + x_) + (((y_ - "1") + (ySize * (y_ == "0"))) * xSize), "2", "-1"));
NearCode = NearCode add (substring(((("1000" + x_) + "1") - (xSize * (x_ == (xSize - "1")))) + (y_ * xSize), "2", "-1"));
NearCode = NearCode add (substring(("1000" + x_) + (((y_ + "1") - (ySize * (y_ == (ySize - "1")))) * xSize), "2", "-1"));
CellCode = CellCode add (substring((("1000" + (x_ + offsetX)) + (gridX * (y_ + offsetY))) + "1", "2", "-1"));
Set("WireCount_" add (("1000" + x_) + (y_ * xSize)), "0");
x_ = x_ + "1";
}
y_ = y_ + "1";
}
Frame 40
TField = "";
CField = "";
Index = "0";
while (Index < TotalCells) {
Wires = "0";
WireMap = "";
d = "10";
while ("0" < d) {
GetWall = eval ("Walls_1" add (substring(WallCode, (Index * "12") + d, "3")));
Wires = ("2" * Wires) + (GetWall == "10");
WireMap = (GetWall == "10") add WireMap;
d = d - "3";
}
TField = TField add (substring("0113123413243445", Wires + "1", "1"));
CField = CField add (substring("0010201033132210", Wires + "1", "1"));
Set("WireMap_" add ("1000" + Index), WireMap);
Index = Index + "1";
}
Frame 48
NewTurns = "";
Index = "0";
TotalBlocks = "0";
while (Index < TotalCells) {
Turn = random("4");
Type = substring(TField, Index + "1", "1");
if (Type ne "0") {
TotalBlocks = TotalBlocks + "1";
if (!(((Turn == "0") or (Type == "5")) or ((Type == "2") and (Turn == "2")))) {
MinTurns = MinTurns + "1";
}
}
WireMap = eval ("WireMap_" add ("1000" + Index));
Set("WireMap_" add ("1000" + Index), substring(WireMap add WireMap, "5" - Turn, "4"));
Correct = int(substring(CField, Index + "1", "1"));
NewTurns = NewTurns add ((Correct + Turn) - ("4" * ("3" < (Correct + Turn))));
Index = Index + "1";
}
CField = NewTurns;
Index = "0";
while (Index < TotalCells) {
call("SetWires01");
Index = Index + "1";
}
Frame 55
Index = "0";
y = "0";
while (y < ySize) {
x = "0";
while (x < xSize) {
ActiveClip = "/Cell" add (substring(CellCode, (Index * "3") + "1", "3"));
if ((x == hubX) and (y == hubY)) {
tellTarget (ActiveClip add "/Block") {
gotoAndStop (2);
};
}
Set("/:Kind", int(substring(TField, Index + "1", "1")));
Set("/:Turn", int(substring(CField, Index + "1", "1")));
tellTarget (ActiveClip add "/Wires") {
gotoAndStop(("L" add /:Kind) add /:Turn);
};
if (Kind == "1") {
Shape = random("2");
tellTarget (ActiveClip add "/Wires/Obj") {
gotoAndStop(/:Shape + "1");
};
tellTarget (ActiveClip add "/Wires/Power") {
gotoAndStop(/:Shape + "1");
};
}
setProperty(ActiveClip add "/Wires/Power", _visible , "0");
if (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "1", "3"))) == "1") {
tellTarget (ActiveClip add "/Wall0") {
gotoAndStop (2);
};
}
if (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "4", "3"))) == "1") {
tellTarget (ActiveClip add "/Wall1") {
gotoAndStop (2);
};
}
Index = Index + "1";
x = x + "1";
}
y = y + "1";
}
Index = xSize * (ySize - "1");
while (Index < TotalCells) {
ActiveClip = "/Cell" add (substring(CellCode, (Index * "3") + "1", "3"));
if (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "10", "3"))) == "1") {
tellTarget (ActiveClip add "/Wall3") {
gotoAndStop (2);
};
}
Index = Index + "1";
}
Index = xSize - "1";
while (Index < TotalCells) {
ActiveClip = "/Cell" add (substring(CellCode, (Index * "3") + "1", "3"));
if (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "7", "3"))) == "1") {
tellTarget (ActiveClip add "/Wall2") {
gotoAndStop (2);
};
}
Index = Index + xSize;
}
Frame 62
while (OpenPaths ne "") {
Index = random(length(OpenPaths) / "4");
Digger = substring(OpenPaths, ("4" * Index) + "1", "3");
d = substring(OpenPaths, ("4" * Index) + "4", "1");
OpenPaths = (substring(OpenPaths, "1", "4" * Index)) add (substring(OpenPaths, ("4" * Index) + "5", "-1"));
if (eval ("WireCount_1" add Digger) < "3") {
call("PutWire");
}
}
Frame 70
WallCount = "0";
WallCount = WallCount + (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "1", "3"))) == kind_);
WallCount = WallCount + (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "4", "3"))) == kind_);
WallCount = WallCount + (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "7", "3"))) == kind_);
WallCount = WallCount + (eval ("Walls_1" add (substring(WallCode, (Index * "12") + "10", "3"))) == kind_);
Frame 79
if (eval ("Walls_1" add (substring(WallCode, (("12" * Digger) + ("3" * d)) + "1", "3"))) == "0") {
Nearby = substring(NearCode, (("12" * Digger) + ("3" * d)) + "1", "3");
if (eval ("WireCount_1" add Nearby) == "0") {
Set("WireCount_1" add Digger, eval ("WireCount_1" add Digger) + "1");
Set("WireCount_1" add Nearby, eval ("WireCount_1" add Nearby) + "1");
Set("Walls_1" add (substring(WallCode, (("12" * Digger) + ("3" * d)) + "1", "3")), "10");
w = "0";
while (w < "4") {
OpenPaths = (OpenPaths add Nearby) add w;
w = w + "1";
}
}
}
Frame 86
if (OpenPaths eq "") {
EnergyValue = EnergyValue + "1";
numConnected = "1";
OpenPaths = substring(("1000" + hubX) + (xSize * hubY), "2", "-1");
FullRefresh = "1";
} else {
numConnected = numConnected + "1";
FullRefresh = "0";
}
Set("Powered_1" add OpenPaths, EnergyValue);
setProperty(("/Cell" add (substring(CellCode, (OpenPaths * "3") + "1", "3"))) add "/Wires/Power", _visible , "1");
while (OpenPaths ne "") {
Index = substring(OpenPaths, "1", "3");
OpenPaths = substring(OpenPaths, "4", "-1");
d = "1";
while (d < "11") {
if (eval ("Walls_1" add (substring(WallCode, (Index * "12") + d, "3"))) == "10") {
NextBlock = substring(NearCode, (Index * "12") + d, "3");
if (eval ("Powered_1" add NextBlock) < EnergyValue) {
if ((eval ("Powered_1" add NextBlock) < (EnergyValue - "1")) or (!FullRefresh)) {
setProperty(("/Cell" add (substring(CellCode, (NextBlock * "3") + "1", "3"))) add "/Wires/Power", _visible , "1");
}
Set("Powered_1" add NextBlock, EnergyValue);
numConnected = numConnected + "1";
if ("1" < (substring(TField, NextBlock + "1", "1"))) {
OpenPaths = OpenPaths add NextBlock;
}
}
}
d = d + "3";
}
}
if (FullRefresh) {
Index = "0";
while (Index < TotalCells) {
if ((substring(TField, Index + "1", "1")) ne "0") {
if (eval ("Powered_" add ("1000" + Index)) == (EnergyValue - "1")) {
setProperty(("/Cell" add (substring(CellCode, (Index * "3") + "1", "3"))) add "/Wires/Power", _visible , "0");
}
}
Index = Index + "1";
}
}
Frame 94
wires_ = eval ("WireMap_" add ("1000" + Index));
WallCount = "0";
DoRefresh = "0";
dir_ = "0";
while (dir_ < "4") {
if (eval ("Walls_1" add (substring(WallCode, ((Index * "12") + (dir_ * "3")) + "1", "3"))) <> "1") {
if ((substring(wires_, dir_ + "1", "1")) eq "1") {
wires_x = eval ("WireMap_1" add (substring(NearCode, ((Index * "12") + (dir_ * "3")) + "1", "3")));
if ((substring(wires_x add wires_x, dir_ + "3", "1")) eq "1") {
if (eval ("Powered_1" add (substring(NearCode, ((Index * "12") + (dir_ * "3")) + "1", "3"))) == EnergyValue) {
DoRefresh = "1";
}
WallCount = WallCount + "1";
Set("Walls_1" add (substring(WallCode, ((Index * "12") + (dir_ * "3")) + "1", "3")), "10");
} else {
Set("Walls_1" add (substring(WallCode, ((Index * "12") + (dir_ * "3")) + "1", "3")), "0");
}
} else {
Set("Walls_1" add (substring(WallCode, ((Index * "12") + (dir_ * "3")) + "1", "3")), "0");
}
}
dir_ = dir_ + "1";
}
OpenPaths = "";
if (OneConn and (WallCount < "2")) {
numConnected = (numConnected + DoRefresh) - (eval ("Powered_" add ("1000" + Index)) == EnergyValue);
Set("Powered_" add ("1000" + Index), EnergyValue * DoRefresh);
DoRefresh = "0";
} else if (DoRefresh and (eval ("Powered_" add ("1000" + Index)) <> EnergyValue)) {
Set("Powered_" add ("1000" + Index), "0");
OpenPaths = substring("1000" + Index, "2", "-1");
} else if (eval ("Powered_" add ("1000" + Index)) == EnergyValue) {
DoRefresh = "1";
}
if (Index == (hubX + (xSize * hubY))) {
DoRefresh = "1";
}
Frame 102
wires_ = eval ("WireMap_" add ("1000" + Index));
dir_ = "0";
while (dir_ < "2") {
if (eval ("Walls_1" add (substring(WallCode, ((Index * "12") + (dir_ * "3")) + "1", "3"))) <> "1") {
if ((substring(wires_, dir_ + "1", "1")) eq "1") {
wires_x = eval ("WireMap_1" add (substring(NearCode, ((Index * "12") + (dir_ * "3")) + "1", "3")));
Set("Walls_1" add (substring(WallCode, ((Index * "12") + (dir_ * "3")) + "1", "3")), "10" * ((substring(wires_x add wires_x, dir_ + "3", "1")) eq "1"));
} else {
Set("Walls_1" add (substring(WallCode, ((Index * "12") + (dir_ * "3")) + "1", "3")), "0");
}
}
dir_ = dir_ + "1";
}
Frame 111
if (Ready == "1") {
Index = Block;
ActiveClip = "/Cell" add (substring(CellCode, (Index * "3") + "1", "3"));
CurBlock = ActiveClip;
CurIndex = Index;
Ready = "0";
if ((Last <> Block) and (Game <> "10")) {
NumTurns = NumTurns + "1";
tellTarget ("/Turns/Ones") {
play();
};
}
setProperty(ActiveClip add "/Wires/Power", _visible , "0");
kind_ = "10";
call("WallCount");
OneConn = WallCount < "2";
Last = Block;
C = int(substring(CField, Index + "1", "1"));
wires_ = eval ("Wiremap_" add ("1000" + Index));
if (Direction eq "Forth") {
tellTarget (ActiveClip add "/Wires/Player") {
gotoAndStop ("Forth");
};
C = (C + "1") - ((C == "3") * "4");
Set("Wiremap_" add ("1000" + Index), substring(wires_ add wires_, "4", "4"));
} else {
tellTarget (ActiveClip add "/Wires/Player") {
gotoAndStop ("Back");
};
C = (C - "1") + ((C == "0") * "4");
Set("Wiremap_" add ("1000" + Index), substring(wires_ add wires_, "2", "4"));
}
CField = ((substring(CField, "1", Index)) add C) add (substring(CField, Index + "2", "-1"));
call("SetWires");
}
Frame 119
if (Game) {
if (DoRefresh) {
call("Energize");
}
call("SetMeter");
Ready = "1";
setProperty(CurBlock add "/Wires/Power", _visible , eval ("Powered_" add ("1000" + CurIndex)) == EnergyValue);
if ((numConnected == TotalBlocks) and (Game <> "10")) {
Game = "10";
tellTarget ("Timer") {
gotoAndStop (1);
};
gotoAndPlay (25);
}
}
Frame 127
tellTarget ("/PMeter") {
gotoAndStop(int(("100" * /:numConnected) / /:TotalBlocks) + "1");
}
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 5
stop();
Symbol 14 MovieClip Frame 9
gotoAndStop (1);
Symbol 15 MovieClip Frame 2
tellTarget ("L_") {
play();
}
Symbol 15 MovieClip Frame 4
tellTarget ("O_") {
play();
}
Symbol 15 MovieClip Frame 6
tellTarget ("A_") {
play();
}
Symbol 15 MovieClip Frame 8
tellTarget ("D_") {
play();
}
Symbol 15 MovieClip Frame 10
tellTarget ("I_") {
play();
}
Symbol 15 MovieClip Frame 12
tellTarget ("N_") {
play();
}
Symbol 15 MovieClip Frame 14
tellTarget ("G_") {
play();
}
Symbol 15 MovieClip Frame 19
gotoAndPlay (1);
Symbol 38 MovieClip Frame 1
stop();
Symbol 43 Button
on (release) {
tellTarget ("/xSize") {
gotoAndStop (2);
};
Set("/:xSize", "5");
}
Symbol 44 Button
on (release) {
tellTarget ("/xSize") {
gotoAndStop (3);
};
Set("/:xSize", "7");
}
Symbol 45 Button
on (release) {
tellTarget ("/xSize") {
gotoAndStop (4);
};
Set("/:xSize", "9");
}
Symbol 46 Button
on (release) {
tellTarget ("/xSize") {
gotoAndStop (5);
};
Set("/:xSize", "11");
}
Symbol 47 Button
on (release) {
tellTarget ("/xSize") {
gotoAndStop (6);
};
Set("/:xSize", "13");
}
Symbol 48 Button
on (release) {
tellTarget ("/ySize") {
gotoAndStop (2);
};
Set("/:ySize", "5");
}
Symbol 49 Button
on (release) {
tellTarget ("/ySize") {
gotoAndStop (3);
};
Set("/:ySize", "7");
}
Symbol 50 Button
on (release) {
tellTarget ("/ySize") {
gotoAndStop (4);
};
Set("/:ySize", "9");
}
Symbol 51 Button
on (release) {
tellTarget ("/ySize") {
gotoAndStop (5);
};
Set("/:ySize", "11");
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
Steps = "5";
Loc = ../:Loc;
play();
Symbol 54 MovieClip Frame 3
if ("0" < Steps) {
tellTarget ("../") {
nextFrame();
};
Steps = Steps - "1";
play();
} else {
if (Loc == "3") {
tellTarget ("../") {
gotoAndStop(_currentframe - "20");
};
}
call("/:TurnEnd");
gotoAndStop (1);
}
Symbol 54 MovieClip Frame 4
prevFrame();
Symbol 54 MovieClip Frame 5
Steps = "5";
Loc = ../:Loc;
play();
Symbol 54 MovieClip Frame 6
if ((Steps == "5") and (Loc == "0")) {
tellTarget ("../") {
gotoAndStop(_currentframe + "20");
};
}
if ("0" < Steps) {
tellTarget ("../") {
prevFrame();
};
Steps = Steps - "1";
play();
} else {
call("/:TurnEnd");
gotoAndStop (1);
}
Symbol 54 MovieClip Frame 7
prevFrame();
Symbol 57 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 6
stop();
Symbol 77 MovieClip Frame 11
stop();
Symbol 77 MovieClip Frame 16
stop();
Symbol 77 MovieClip Frame 21
gotoAndStop (1);
Symbol 77 MovieClip Frame 23
Loc = "0";
Symbol 77 MovieClip Frame 28
Loc = "1";
Symbol 77 MovieClip Frame 33
Loc = "2";
Symbol 77 MovieClip Frame 38
Loc = "3";
Symbol 77 MovieClip Frame 45
Loc = "0";
Symbol 77 MovieClip Frame 50
Loc = "1";
Symbol 77 MovieClip Frame 55
Loc = "2";
Symbol 77 MovieClip Frame 60
Loc = "3";
Symbol 77 MovieClip Frame 67
Loc = "0";
Symbol 77 MovieClip Frame 72
Loc = "1";
Symbol 77 MovieClip Frame 77
Loc = "2";
Symbol 77 MovieClip Frame 82
Loc = "3";
Symbol 77 MovieClip Frame 89
Loc = "0";
Symbol 77 MovieClip Frame 94
Loc = "1";
Symbol 77 MovieClip Frame 99
Loc = "2";
Symbol 77 MovieClip Frame 104
Loc = "3";
Symbol 77 MovieClip Frame 111
Loc = "0";
Symbol 77 MovieClip Frame 116
Loc = "1";
Symbol 77 MovieClip Frame 121
Loc = "2";
Symbol 77 MovieClip Frame 126
Loc = "3";
Symbol 80 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
play();
Symbol 85 MovieClip Frame 10
gotoAndPlay (1);
Symbol 86 MovieClip Frame 1
play();
if (/:Lock) {
setProperty("../../LockTrigger", _visible , "1");
}
Symbol 86 MovieClip Frame 2
prevFrame();
Symbol 89 Button
on (release) {
Set("/:Direction", "Back");
Set("/:Block", self_);
call("/:TurnBlock");
}
on (rollOver) {
if (/:Lock) {
setProperty("LockTrigger", _visible , "1");
}
}
Symbol 90 Button
on (release) {
Set("/:Direction", "Forth");
Set("/:Block", self_);
call("/:TurnBlock");
}
on (rollOver) {
if (/:Lock) {
setProperty("LockTrigger", _visible , "1");
}
}
Symbol 93 Button
on (release) {
if (/:Lock) {
tellTarget ("../") {
gotoAndStop((!(_currentframe - "1")) + "1");
};
}
}
Symbol 94 MovieClip Frame 1
play();
if (!(/:Lock or (getProperty("../", _currentframe) - "1"))) {
_visible = "0";
}
Symbol 94 MovieClip Frame 2
prevFrame();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 3
tellTarget ("Block") {
gotoAndStop (3);
}
Symbol 98 Button
on (release) {
gotoAndStop (2);
Set("/:Border", "wrap");
}
Symbol 101 Button
on (release) {
gotoAndStop (1);
Set("/:border", "normal");
}
Symbol 102 MovieClip Frame 1
call("SetCells");
tellTarget ("Border1/Wall0") {
gotoAndStop (2);
};
tellTarget ("Border4/Wall2") {
gotoAndStop (2);
};
setProperty("Border1/Wires/Power", _visible , "0");
stop();
Symbol 102 MovieClip Frame 2
call("SetCells");
tellTarget ("Border1/Wall0") {
gotoAndStop (1);
};
tellTarget ("Border4/Wall2") {
gotoAndStop (1);
};
setProperty("Border1/Wires/Power", _visible , "1");
Symbol 102 MovieClip Frame 3
tellTarget ("Border3/Block") {
gotoAndStop (2);
};
tellTarget ("Border1/Wires") {
gotoAndStop ("L10");
};
tellTarget ("Border3/Wires") {
gotoAndStop ("LX2");
};
tellTarget ("Border4/Wires") {
gotoAndStop ("L20");
}
Symbol 108 Button
on (release) {
NetName = name;
gotoAndStop (16);
}
Symbol 114 Button
on (release) {
tellTarget ("/xSize") {
gotoAndStop (1);
};
Set("/:xSize", "3");
}
Symbol 115 Button
on (release) {
tellTarget ("/ySize") {
gotoAndStop (1);
};
Set("/:ySize", "3");
}
Symbol 124 Button
on (release) {
getURL ("mailto:pavils@mailbox.riga.lv");
}
Symbol 129 Button
on (release) {
getURL ("http://www.jurjans.lv/stuff/net/vote.htm", "_self");
}
Symbol 139 MovieClip Frame 6
gotoAndPlay (1);
Symbol 143 Button
on (release) {
getURL ("http://www.jurjans.lv/stuff/net", "_self");
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 150 Button
on (rollOver) {
tellTarget ("Actionclip") {
gotoAndPlay ("Fwd");
}
}
on (rollOut) {
tellTarget ("Actionclip") {
gotoAndPlay ("Bck");
}
}
on (release) {
Set("/:LastAction", action);
setProperty("..", _visible , "0");
tellTarget ("/") {
gotoAndStop(/:LastAction);
}
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
tellTarget ("../") {
nextFrame();
}
Symbol 151 MovieClip Frame 3
gotoAndPlay (2);
Symbol 151 MovieClip Frame 4
tellTarget ("../") {
prevFrame();
}
Symbol 151 MovieClip Frame 5
gotoAndPlay (4);
Symbol 152 MovieClip Frame 1
tellTarget ("Actionclip") {
stop();
};
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
gotoAndStop (1);
Symbol 156 MovieClip Frame 1
stop();
Symbol 157 Button
on (rollOver) {
tellTarget ("Actionclip") {
gotoAndPlay ("Fwd");
}
}
on (rollOut) {
tellTarget ("Actionclip") {
gotoAndPlay ("Bck");
}
}
on (release) {
Set("/:LastAction", action);
tellTarget ("../") {
gotoAndStop(/:LastAction);
}
}
Symbol 158 MovieClip Frame 1
tellTarget ("Actionclip") {
stop();
};
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
play();
Symbol 205 MovieClip Frame 21
gotoAndPlay (1);
Symbol 205 MovieClip Frame 41
gotoAndPlay (22);
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
play();
Symbol 215 MovieClip Frame 11
gotoAndPlay (2);
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
Set("Button/Text:text", "Ok");
Set("Button:action", "EndScores");
Set("Button0/Text:text", "Kid");
Set("Button0:action", "Kid");
Set("Button1/Text:text", "Junior");
Set("Button1:action", "Junior");
Set("Button2/Text:text", "Graduate");
Set("Button2:action", "Graduate");
Set("Button3/Text:text", "Master");
Set("Button3:action", "Master");
Set("Button4/Text:text", "Doctor");
Set("Button4:action", "Doctor");
tellTarget ("Sound") {
gotoAndPlay (2);
};
gotoAndPlay (12);
Symbol 216 MovieClip Frame 3
stop();
Symbol 216 MovieClip Frame 4
i = "1";
while ("10" >= i) {
Set("name" add i, eval ("/:HIname" add i));
Set("score" add i, eval ("/:HIscore" add i));
Set("type" add i, eval ("/:HItype" add i));
if (eval ("/:HIname" add i) eq "") {
setProperty("Spin" add i, _visible , "0");
} else {
setProperty("Spin" add i, _visible , "1");
if (i == "1") {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (1);
};
} else if (i == "2") {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (2);
};
} else if (i == "3") {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (3);
};
} else {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (4);
};
}
tellTarget ("Spin" add i) {
gotoAndPlay(random("40") + "1");
};
}
i = i + "1";
}
gotoAndStop (3);
Symbol 216 MovieClip Frame 12
difficulty = "Kid";
gotoAndPlay (43);
Symbol 216 MovieClip Frame 17
difficulty = "Junior";
gotoAndPlay (43);
Symbol 216 MovieClip Frame 23
difficulty = "Graduate";
gotoAndPlay (43);
Symbol 216 MovieClip Frame 30
difficulty = "Master";
gotoAndPlay (43);
Symbol 216 MovieClip Frame 36
difficulty = "Doctor";
gotoAndPlay (43);
Symbol 216 MovieClip Frame 43
title = ("Best scores for " add difficulty) add " level:";
Set("/:loading", "1");
i = "1";
while ("10" >= i) {
Set("/:HIname" add i, "");
Set("/:HIscore" add i, "");
Set("/:HItype" add i, "");
i = i + "1";
}
tellTarget ("ani") {
gotoAndPlay ("Hourglass");
};
loadVariablesNum ("getscores.asp?lev=" add difficulty, "0");
Symbol 216 MovieClip Frame 44
play();
Symbol 216 MovieClip Frame 45
if (/:loading) {
prevFrame();
} else {
tellTarget ("ani") {
gotoAndStop (1);
};
gotoAndPlay (4);
}
Symbol 217 Button
on (keyPress "q") {
fscommand ("quit");
}
on (keyPress "Q") {
fscommand ("quit");
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 226 Button
on (release, keyPress "l") {
Set("/:Lock", "1");
gotoAndStop (2);
}
on (keyPress "L") {
Set("/:Lock", "1");
gotoAndStop (2);
}
Symbol 228 Button
on (release, keyPress "l") {
Set("/:Lock", "0");
gotoAndStop (1);
}
on (keyPress "L") {
Set("/:Lock", "0");
gotoAndStop (1);
}
Symbol 229 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 3
gotoAndStop (1);
Symbol 232 Button
on (release) {
Set("/:music", "off");
stopAllSounds();
gotoAndStop (2);
}
Symbol 234 Button
on (release) {
Set("/:music", "on");
tellTarget ("Music") {
play();
};
gotoAndStop (1);
}
Symbol 235 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
gotoAndStop (4);
Symbol 250 MovieClip Frame 3
stop();
Symbol 250 MovieClip Frame 4
stop();
Symbol 250 MovieClip Frame 5
stop();
Symbol 250 MovieClip Frame 6
stop();
Symbol 250 MovieClip Frame 7
stop();
Symbol 250 MovieClip Frame 8
stop();
Symbol 250 MovieClip Frame 9
stop();
Symbol 250 MovieClip Frame 10
stop();
Symbol 250 MovieClip Frame 11
stop();
Symbol 250 MovieClip Frame 12
stop();
Symbol 250 MovieClip Frame 13
gotoAndStop (3);
tellTarget ("../Tens") {
nextFrame();
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
gotoAndStop (4);
Symbol 251 MovieClip Frame 13
gotoAndStop (3);
tellTarget ("../Hundreds") {
nextFrame();
}
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
gotoAndStop (4);
Symbol 252 MovieClip Frame 13
gotoAndStop (4);
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
stop();
Symbol 254 MovieClip Frame 3
stop();
Symbol 254 MovieClip Frame 4
stop();
Symbol 254 MovieClip Frame 5
stop();
Symbol 254 MovieClip Frame 6
stop();
Symbol 254 MovieClip Frame 7
stop();
Symbol 254 MovieClip Frame 8
stop();
Symbol 254 MovieClip Frame 9
stop();
Symbol 254 MovieClip Frame 10
stop();
Symbol 254 MovieClip Frame 11
gotoAndStop (1);
tellTarget ("../Sec10") {
nextFrame();
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
stop();
Symbol 255 MovieClip Frame 4
stop();
Symbol 255 MovieClip Frame 5
stop();
Symbol 255 MovieClip Frame 6
stop();
Symbol 255 MovieClip Frame 7
gotoAndStop (1);
tellTarget ("../Min1") {
nextFrame();
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
stop();
Symbol 257 MovieClip Frame 3
stop();
Symbol 257 MovieClip Frame 4
stop();
Symbol 257 MovieClip Frame 5
stop();
Symbol 257 MovieClip Frame 6
stop();
Symbol 257 MovieClip Frame 7
stop();
Symbol 257 MovieClip Frame 8
stop();
Symbol 257 MovieClip Frame 9
stop();
Symbol 257 MovieClip Frame 10
stop();
Symbol 257 MovieClip Frame 11
gotoAndStop (1);
tellTarget ("../Min10") {
nextFrame();
}
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 3
stop();
Symbol 258 MovieClip Frame 4
stop();
Symbol 258 MovieClip Frame 5
stop();
Symbol 258 MovieClip Frame 6
stop();
Symbol 258 MovieClip Frame 7
gotoAndStop (1);
tellTarget ("../Hr") {
nextFrame();
}
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 3
stop();
Symbol 259 MovieClip Frame 4
stop();
Symbol 259 MovieClip Frame 5
stop();
Symbol 259 MovieClip Frame 6
stop();
Symbol 259 MovieClip Frame 7
stop();
Symbol 259 MovieClip Frame 8
stop();
Symbol 259 MovieClip Frame 9
stop();
Symbol 259 MovieClip Frame 10
stop();
Symbol 259 MovieClip Frame 11
gotoAndStop (1);
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
accrued = getTimer();
seconds = "0";
Symbol 260 MovieClip Frame 3
while ((accrued + "1000") < getTimer()) {
seconds = seconds + "1";
tellTarget ("Sec1") {
play();
};
accrued = accrued + "1000";
}
Symbol 260 MovieClip Frame 4
gotoAndPlay (3);
Symbol 264 Button
on (release) {
if (Ready) {
if (Game == "1") {
gotoAndPlay (24);
} else {
gotoAndStop (10);
}
}
}
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 2
Set("Button0/Text:text", "Ok");
Set("Button0:action", "Continue");
title = ("Hiscores for " add /:GameLevel) add " level";
i = "1";
while ("10" >= i) {
Set("name" add i, eval ("/:HIname" add i));
Set("score" add i, eval ("/:HIscore" add i));
Set("type" add i, eval ("/:HItype" add i));
if (eval ("/:HIname" add i) eq "") {
setProperty("Spin" add i, _visible , "0");
} else {
setProperty("Spin" add i, _visible , "1");
if (i == "1") {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (1);
};
} else if (i == "2") {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (2);
};
} else if (i == "3") {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (3);
};
} else {
tellTarget (("Spin" add i) add "/Terminal") {
gotoAndStop (4);
};
}
tellTarget ("Spin" add i) {
gotoAndPlay(random("40") + "1");
};
}
i = i + "1";
}
stop();