Frame 1
function TIndicator(digitcount, pos_x, pos_y, Depth) {
this.DigitCount = digitcount;
var x;
var y;
x = pos_x - ((digitcount * DIGITSIZE) / 2);
y = pos_y + (DIGITSIZE / 2);
this.Digits = new Array(digitcount);
var i = 0;
while (i < digitcount) {
attachMovie("Digit", ("Dgt" + Depth) + i, Depth + i);
this.Digits[i] = eval (("Dgt" + Depth) + i);
this.Digits[i]._width = (this.Digits[i]._height = DIGITSIZE);
this.Digits[i]._x = x;
this.Digits[i]._y = y;
this.Digits[i].stop();
x = x + DIGITSIZE;
i++;
}
this.SetValue(0);
}
function init() {
_root.chek1._visible = true;
_root.chek2._visible = false;
_root.chek3._visible = false;
scrViewOffset = 20;
scrViewSize = 350;
GameDepth = 100;
DemoPause = 8;
G = new TGame();
G.NewGame();
G.StartDemo();
}
function TGame() {
this.DemoAr = new Array(new Array("user", new Array(5, 6), new Array(5, 5)), new Array("comp", new Array(6, 6), new Array(5, 5)), new Array("user", new Array(4, 6)), new Array("comp", new Array(6, 4), new Array(5, 4)), new Array("user", new Array(6, 5), new Array(5, 5)), new Array("comp", new Array(7, 6), new Array(6, 5)), new Array("user", new Array(7, 7), new Array(6, 6)), new Array("comp", new Array(7, 8), new Array(7, 7)), new Array("user", new Array(8, 6), new Array(7, 6)), new Array("comp", new Array(7, 5), new Array(7, 6)), new Array("user", new Array(6, 8), new Array(7, 7)), new Array("comp", new Array(5, 8), new Array(6, 8)), new Array("user", new Array(8, 4), new Array(7, 5)), new Array("comp", new Array(7, 4), new Array(7, 5)), new Array("user", new Array(8, 5)), new Array("comp", new Array(6, 7), new Array(6, 6)), new Array("user", new Array(5, 7), new Array(6, 7)), new Array("comp", new Array(8, 8), new Array(7, 7)), new Array("user", new Array(8, 7), new Array(7, 7)), new Array("comp", new Array(4, 8), new Array(5, 7)), new Array("user", new Array(4, 7), new Array(5, 7)), new Array("comp", new Array(3, 6), new Array(4, 5), new Array(4, 7)), new Array("user", new Array(3, 7), new Array(4, 7)), new Array("comp", new Array(2, 6), new Array(3, 7)), new Array("user", new Array(3, 5), new Array(4, 5)), new Array("comp", new Array(2, 7)), new Array("user", new Array(2, 5), new Array(3, 6)), new Array("comp", new Array(2, 4), new Array(2, 5)), new Array("user", new Array(1, 3), new Array(2, 4)), new Array("comp", new Array(2, 3), new Array(2, 4)), new Array("user", new Array(2, 8), new Array(3, 7)), new Array("comp", new Array(0, 3), new Array(1, 3)), new Array("user", new Array(1, 7), new Array(2, 6), new Array(2, 7)), new Array("comp", new Array(6, 3)), new Array("user", new Array(1, 4), new Array(2, 5)), new Array("comp", new Array(0, 5), new Array(1, 4)), new Array("user", new Array(3, 3), new Array(4, 4)), new Array("comp", new Array(4, 2), new Array(3, 3)), new Array("user", new Array(2, 2), new Array(3, 3)), new Array("comp", new Array(2, 1), new Array(2, 2)), new Array("user", new Array(1, 1), new Array(2, 2)), new Array("comp", new Array(3, 1), new Array(2, 2)), new Array("user", new Array(5, 1), new Array(4, 2)), new Array("comp", new Array(5, 3), new Array(4, 2)), new Array("user", new Array(6, 2), new Array(5, 3)), new Array("comp", new Array(4, 3), new Array(3, 3), new Array(5, 3)), new Array("user", new Array(3, 4)), new Array("comp", new Array(0, 1), new Array(1, 1)), new Array("user", new Array(5, 2), new Array(4, 3)), new Array("comp", new Array(3, 2), new Array(4, 3)), new Array("user", new Array(6, 1)), new Array("comp", new Array(4, 1), new Array(5, 2)), new Array("user", new Array(7, 2)), new Array("comp", new Array(8, 1), new Array(7, 2)), new Array("user", new Array(8, 3), new Array(7, 2)), new Array("comp", new Array(5, 0), new Array(5, 1)), new Array("user", new Array(7, 1)), new Array("comp", new Array(7, 3), new Array(6, 2)), new Array("user", new Array(8, 2)), new Array("comp", new Array(8, 0), new Array(7, 1)), new Array("user", new Array(6, 0), new Array(7, 1)), new Array("comp", new Array(7, 0), new Array(6, 0), new Array(6, 1)), new Array("user", new Array(0, 0)), new Array("comp", new Array(1, 2)), new Array("user", new Array(0, 2), new Array(0, 1)), new Array("comp", new Array(2, 0)), new Array("user", new Array(0, 4), new Array(0, 3)), new Array("comp", new Array(0, 6)), new Array("user", new Array(1, 0)), new Array("comp", new Array(3, 0)), new Array("user", new Array(0, 8)), new Array("comp", new Array(1, 8)), new Array("user", new Array(3, 8)), new Array("comp", new Array(1, 6), new Array(1, 7)), new Array("user", new Array(0, 7), new Array(1, 6), new Array(1, 7)), new Array("comp", new Array(4, 0)), new Array("user", new Array(1, 5)));
this.UserLastLead = new Array();
this.CompLastLead = new Array();
this.IUser = new TIndicator(4, 480, 16, 30);
this.IComp = new TIndicator(4, 480, 45, 40);
this.IIQ = new TIndicator(2, 458, 77, 50);
this.Skill = "beginner";
}
DIGITSIZE = 22;
TIndicator.prototype.SetValue = function (Value) {
this.Value = Value;
var i = (this.DigitCount - 1);
while (i >= 0) {
this.Digits[i].gotoAndStop((((Value % 10) == 0) ? 10 : (value % 10)));
Value = Value / 10;
value = int(value);
i--;
}
};
movieClip.prototype.SetCheck = function (v) {
this.Checked = v;
if (v) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
if (v) {
var i = 0;
while (i < _parent.RadioGroup.length) {
if (this._target != _parent.RadioGroup[i]) {
eval (_parent.RadioGroup[i]).SetCheck(false);
}
i++;
}
}
};
TGame.prototype.NewGame = function () {
if (msg != undefined) {
removeMovieClip(msg);
}
this.UserLeadCount = 0;
this.CompLeadCount = 0;
if (this.FieldAr != undefined) {
delete this.FieldAr;
}
if (this.FieldSize != undefined) {
var i = 0;
while (i < this.FieldSize) {
var j = 0;
while (j < this.FieldSize) {
removeMovieClip(eval ((("c" + i) + "_") + j));
j++;
}
i++;
}
}
if (this.Skill == "beginner") {
this.FieldSize = 9;
} else if (this.Skill == "advanced") {
this.FieldSize = 15;
} else {
this.FieldSize = 19;
}
this.FieldAr = new Array();
var i = 0;
while (i < this.FieldSize) {
this.FieldAr[i] = new Array();
i++;
}
var cent = Math.round(this.FieldSize / 2);
this.UserLastLead.push(new Array(cent - 1, cent));
this.CompLastLead.push(new Array(cent - 1, cent - 1));
this.AddLead(cent - 1, cent - 1, "comp");
this.AddLead(cent, cent, "comp");
this.AddLead(cent - 1, cent, "user");
this.AddLead(cent, cent - 1, "user");
this.CellSize = scrViewSize / this.FieldSize;
var d = GameDepth;
var i = 0;
while (i < this.FieldSize) {
var j = 0;
while (j < this.FieldSize) {
var name = ((("c" + i) + "_") + j);
attachMovie("Cell", name, d);
var c = eval (name);
c._x = scrViewOffset + (j * this.CellSize);
c._y = scrViewOffset + (i * this.CellSize);
c._width = (c._height = this.CellSize);
c.row = i;
c.col = j;
d++;
c.gotoAndStop("Empty");
j++;
}
i++;
}
this.FreeDepth = d + 1;
this.UpdateView();
this.pbState = "update";
this.Working = false;
};
TGame.prototype.OnNextFrame = function () {
if (this.IsDemo && (this.pbState == "idle")) {
if (0 >= this.DemoPause) {
this.DemoPause = DemoPause;
this.NextDemoFrame();
} else {
this.DemoPause--;
}
}
if (((this.pbState == "idle") || (this.pbState == "afteruserlead")) || (this.pbState == "paused")) {
return(undefined);
}
if (this.pbState == "update") {
this.UpdateView();
this.UpdateIndicators();
this.pbState = "idle";
} else if (this.pbState == "userlead") {
this.pbState = "afteruserlead";
this.showLastLead("user");
this.UpdateIndicators();
this.CheckGameOver();
} else if (this.pbState == "complead") {
if (this.IsDemo) {
this.NextDemoFrame();
this.showLastLead("comp");
this.UpdateIndicators();
this.pbState = "aftercomplead";
} else {
this.CompLead();
this.pbState = "idle";
this.showLastLead("comp");
this.UpdateIndicators();
this.CheckGameOver();
}
} else if (this.pbState == "newgame") {
attachMovie("msgNewGame", "ngmsg", this.FreeDepth + 200);
ngmsg._x = (ngmsg._y = scrViewOffset + (scrViewSize / 2));
this.pbState = "paused";
} else if (this.pbState == "stopdemo") {
this.StopDemo();
}
};
TGame.prototype.showLastLead = function (player) {
if (player == "user") {
this.UpdateView();
var cell;
var starti = 0;
if (this.pbState == "afteruserlead") {
cell = eval ((("c" + this.UserLastLead[0][0]) + "_") + this.UserLastLead[0][1]);
cell.gotoAndPlay("toBlue");
starti = 1;
}
var i = starti;
while (i < this.UserLastLead.length) {
cell = eval ((("c" + this.UserLastLead[i][0]) + "_") + this.UserLastLead[i][1]);
if (cell._currentframe == 3) {
cell.gotoAndPlay("BlueToRed");
} else {
cell.gotoAndPlay("RedToBlue");
}
i++;
}
cell.last = true;
} else {
if (this.pbState != "complead") {
this.UpdateView();
}
var cell;
cell = eval ((("c" + this.CompLastLead[0][0]) + "_") + this.CompLastLead[0][1]).gotoAndPlay("toRed");
var i = 1;
while (i < this.CompLastLead.length) {
var cell = eval ((("c" + this.CompLastLead[i][0]) + "_") + this.CompLastLead[i][1]);
cell.gotoAndPlay("BlueToRed");
i++;
}
}
};
TGame.prototype.UpdateView = function () {
var r = 0;
while (r < this.FieldSize) {
var c = 0;
while (c < this.FieldSize) {
var cell = eval ((("c" + r) + "_") + c);
if (this.FieldAr[r][c] == "comp") {
cell.gotoAndStop("Red");
} else if (this.FieldAr[r][c] == "user") {
cell.gotoAndStop("Blue");
} else {
cell.gotoAndStop("Empty");
}
c++;
}
r++;
}
};
TGame.prototype.AddLead = function (r, c, player) {
if (this.FieldAr[r][c] != undefined) {
if (this.FieldAr[r][c] != player) {
if (this.FieldAr[r][c] == "comp") {
this.UserLeadCount++;
this.CompLeadCount--;
} else {
this.UserLeadCount--;
this.CompLeadCount++;
}
}
} else if (player == "comp") {
this.CompLeadCount++;
} else {
this.UserLeadCount++;
}
this.FieldAr[r][c] = player;
};
TGame.prototype.UserLead = function (r, c) {
this.Working = true;
this.AddLead(r, c, "user");
var Leads = new Array();
var i = -1;
while (1 >= i) {
var j = -1;
while (1 >= j) {
if (this.FieldAr[r + i][c + j] == "comp") {
if (this.FieldAr[r + (2 * i)][c + (2 * j)] == "user") {
Leads.push(new Array(r + i, c + j));
this.AddLead(r + i, c + j, "user");
}
}
j++;
}
i++;
}
this.UserLastLead = Leads;
this.UserLastLead.splice(0, 0, new Array(r, c));
this.Working = false;
};
TGame.prototype.CompLead = function () {
this.Working = true;
delete this.CompLastLead;
this.CompLastLead = new Array();
var tmpField = new Array();
var r = 0;
while (r < this.FieldSize) {
var c = 0;
while (c < this.FieldSize) {
if (this.FieldAr[r][c] == undefined) {
if (tmpField[r] == undefined) {
tmpField[r] = new Array();
}
tmpField[r][c] = new Array(1);
tmpField[r][c][0] = 0;
var s = "";
var i = -1;
while (1 >= i) {
var j = -1;
while (1 >= j) {
if (!((i == 0) && (j == 0))) {
if (this.FieldAr[r + i][c + j] == "user") {
if (this.FieldAr[r + (2 * i)][c + (2 * j)] == "comp") {
tmpField[r][c][0] = tmpField[r][c][0] + 5;
tmpField[r][c].push(new Array(r + i, c + j));
s = s + "+5a";
}
if (((this.FieldAr[r + (2 * i)][c + (2 * j)] != "comp") && (this.InBounds(r - i, c - j))) && (this.FieldAr[r - i][c - j] == undefined)) {
tmpField[r][c][0] = tmpField[r][c][0] - 1;
s = s + "-1t";
}
} else if (this.FieldAr[r + i][c + j] == "comp") {
if (this.FieldAr[r + (2 * i)][c + (2 * j)] == "user") {
tmpField[r][c][0] = tmpField[r][c][0] + 2;
s = s + "+2d";
}
}
}
j++;
}
i++;
}
}
c++;
}
r++;
}
var maxestimate = -100;
var rmax;
var cmax;
var maxloc;
var r = 0;
while (r < this.FieldSize) {
var c = 0;
while (c < this.FieldSize) {
if (tmpField[r][c] != undefined) {
if (tmpField[r][c][0] == maxestimate) {
var rr = (r - (this.FieldSize / 2));
var cc = (c - (thisFieldSize / 2));
var loc = Math.sqrt((rr * rr) + (cc * cc));
if (maxloc < loc) {
rmax = r;
cmax = c;
maxloc = loc;
}
} else if (maxestimate < tmpField[r][c][0]) {
rmax = r;
cmax = c;
maxloc = loc;
maxestimate = tmpField[r][c][0];
}
}
c++;
}
r++;
}
if (maxestimate == -100) {
delete tmpField;
tmpField = new Array();
var r = 0;
while (r < this.FieldSize) {
var c = 0;
while (c < this.FieldSize) {
if (this.FieldAr[r][c] == undefined) {
if (tmpField[r] == undefined) {
tmpField[r] = new Array();
}
var i = -1;
while (1 >= i) {
var j = -1;
while (1 >= j) {
if ((!((i == 0) && (j == 0))) && (this.InBounds(r + i, c + j))) {
if (this.FieldAr[r][c] == "comp") {
tmpField[r][c]++;
} else if (this.FieldAr[r][c] == "user") {
tmpField[r][c]--;
}
}
j++;
}
i++;
}
}
c++;
}
r++;
}
var max = -100;
var cmax;
var rmax;
var maxloc = 0;
var r = 0;
while (r < this.FieldSize) {
var c = 0;
while (c < this.FieldSize) {
if (tmpField[r][c] == max) {
var rr = (r - (this.FieldSize / 2));
var cc = (c - (thisFieldSize / 2));
var loc = Math.sqrt((rr * rr) + (cc * cc));
if (maxloc < loc) {
rmax = r;
cmax = c;
maxloc = loc;
}
} else if (max < tmpField[r][c]) {
max = tmpField[r][c];
rmax = r;
cmax = c;
}
c++;
}
r++;
}
this.CompLastLead.push(new Array(rmax, cmax));
this.AddLead(rmax, cmax, "comp");
} else {
var Leads = tmpField[rmax][cmax];
this.AddLead(rmax, cmax, "comp");
this.CompLastLead.push(new Array(rmax, cmax));
var k = 1;
while (k < Leads.length) {
this.CompLastLead.push(Leads[k]);
this.AddLead(Leads[k][0], Leads[k][1], "comp");
k++;
}
}
this.Working = false;
};
TGame.prototype.UpdateIndicators = function () {
this.IComp.SetValue(this.CompLeadCount);
this.IUser.SetValue(this.UserLeadCount);
this.IIQ.SetValue(Math.round((this.UserLeadCount / (this.UserLeadCount + this.CompLeadCount)) * 100));
};
TGame.prototype.CheckGameOver = function () {
if (!this.IsDemo) {
if ((this.CompLeadCount + this.UserLeadCount) >= (this.FieldSize * this.FieldSize)) {
this.pbState = "idle";
attachMovie("message", "msg", this.FreeDepth + 100);
msg._x = (msg._y = 195);
var score = (this.UserLeadCount / (this.UserLeadCount + this.CompLeadCount));
if (0.5 < score) {
msg.Caption = "You win";
} else if (score == 0.5) {
msg.Caption = "50 % 50";
} else {
msg.Caption = "You lose";
}
}
}
};
TGame.prototype.InBounds = function (r, c) {
if ((((r < this.FieldSize) && (c < this.FieldSize)) && (r >= 0)) && (c >= 0)) {
return(true);
}
return(false);
};
TGame.prototype.StartDemo = function () {
attachMovie("msgDemo", "demo", this.FreeDepth + 200);
this.DemoPause = DemoPause;
this.SaveGameData();
var i = 0;
while (i < this.FieldSize) {
var j = 0;
while (j < this.FieldSize) {
removeMovieClip(eval ((("c" + i) + "_") + j));
j++;
}
i++;
}
this.FieldSize = 9;
this.CellSize = scrViewSize / this.FieldSize;
var d = GameDepth;
var i = 0;
while (i < this.FieldSize) {
var j = 0;
while (j < this.FieldSize) {
var name = ((("c" + i) + "_") + j);
attachMovie("Cell", name, d);
var c = eval (name);
c._x = scrViewOffset + (j * this.CellSize);
c._y = scrViewOffset + (i * this.CellSize);
c._width = (c._height = this.CellSize);
c.row = i;
c.col = j;
d++;
c.gotoAndStop("Empty");
j++;
}
i++;
}
this.FreeDepth = d + 1;
delete StartDemo;
this.FieldAr = new Array();
var i = 0;
while (i < this.FieldSize) {
this.FieldAr[i] = new Array();
i++;
}
this.Working = true;
this.CurDemoFrame = 0;
this.UserLeadCount = 0;
this.CompLeadCount = 0;
var cent = Math.round(this.FieldSize / 2);
this.AddLead(cent - 1, cent - 1, "comp");
this.AddLead(cent, cent, "comp");
this.AddLead(cent - 1, cent, "user");
this.AddLead(cent, cent - 1, "user");
this.UpdateView();
this.IsDemo = true;
this.pbState = "idle";
};
TGame.prototype.StopDemo = function () {
this.LoadGameData();
this.Working = false;
this.IsDemo = false;
this.pbState = "idle";
removeMovieClip("demo");
};
TGame.prototype.SaveGameData = function () {
if (this.svFieldAr != undefined) {
delete this.svFieldAr;
}
this.svFieldAr = new Array();
var i = 0;
while (i < this.FieldSize) {
this.svFieldAr[i] = new Array();
var j = 0;
while (j < this.FieldAr[i].length) {
this.svFieldAr[i][j] = this.FieldAr[i][j];
j++;
}
i++;
}
this.svSkill = this.Skill;
this.svUserLeadCount = this.UserLeadCount;
this.svCompLeadCount = this.CompLeadCount;
};
TGame.prototype.LoadGameData = function () {
this.Skill = this.svSkill;
this.NewGame();
if (this.FieldAr != undefined) {
delete this.FieldAr;
}
this.FieldAr = new Array();
var i = 0;
while (i < this.FieldSize) {
this.FieldAr[i] = new Array();
var j = 0;
while (j < this.FieldSize) {
this.FieldAr[i][j] = this.svFieldAr[i][j];
j++;
}
i++;
}
delete this.svFieldAr;
this.UserLeadCount = this.svUserLeadCount;
this.CompLeadCount = this.svCompLeadCount;
this.UpdateView();
this.UpdateIndicators();
};
TGame.prototype.NextDemoFrame = function () {
if (this.CurDemoFrame < (this.DemoAr.length - 1)) {
if (this.DemoAr[this.CurDemoFrame][0] == "comp") {
this.CompLastLead = this.DemoAr[this.CurDemoFrame].slice(1);
var i;
i = 0;
while (i < this.CompLastLead.length) {
this.AddLead(this.CompLastLead[i][0], this.CompLastLead[i][1], "comp");
i++;
}
i--;
var cell = eval ((("c" + this.CompLastLead[i][0]) + "_") + this.CompLastLead[i][1]);
cell.last = true;
this.pbState = "complead";
} else {
this.UserLastLead = this.DemoAr[this.CurDemoFrame].slice(1);
var i = 0;
while (i < this.UserLastLead.length) {
this.AddLead(this.UserLastLead[i][0], this.UserLastLead[i][1], "user");
i++;
}
this.pbState = "userlead";
}
this.CurDemoFrame++;
} else {
delete NextDemoFrame;
this.FieldAr = new Array();
var i = 0;
while (i < this.FieldSize) {
this.FieldAr[i] = new Array();
i++;
}
this.UpdateView();
this.UserLeadCount = 0;
this.CompLeadCount = 0;
var cent = Math.round(this.FieldSize / 2);
this.AddLead(cent - 1, cent - 1, "comp");
this.AddLead(cent, cent, "comp");
this.AddLead(cent - 1, cent, "user");
this.AddLead(cent, cent - 1, "user");
this.CurDemoFrame = 0;
this.pbState = "idle";
}
};
if (inited == undefined) {
inited = true;
init();
}
Frame 2
G.OnNextFrame();
gotoAndPlay (1);
Symbol 2 Button
on (release) {
if ((!_parent.G.Working) && (_parent.G.pbState != "paused")) {
_parent.G.UserLead(this.row, this.col);
_parent.G.pbState = "userlead";
}
}
Symbol 6 MovieClip [Cell] Frame 12
if (_parent.G.pbState == "afteruserlead") {
if (this.last) {
_parent.G.pbState = "complead";
this.last = false;
}
}
if ((_parent.G.IsDemo && (_parent.G.pbState == "aftercomplead")) && (this.last)) {
this.last = false;
_parent.G.pbState = "idle";
}
gotoAndStop (3);
Symbol 6 MovieClip [Cell] Frame 19
if (_parent.G.pbState == "afteruserlead") {
if (this.last == true) {
_parent.G.pbState = "complead";
this.last = false;
}
}
if ((_parent.G.IsDemo && (_parent.G.pbState == "aftercomplead")) && (this.last)) {
this.last = false;
_parent.G.pbState = "idle";
}
gotoAndStop (2);
Symbol 6 MovieClip [Cell] Frame 26
if (_parent.G.pbState == "afteruserlead") {
if (this.last) {
_parent.G.pbState = "complead";
this.last = false;
}
}
if ((_parent.G.IsDemo && (_parent.G.pbState == "aftercomplead")) && (this.last)) {
this.last = false;
_parent.G.pbState = "idle";
}
gotoAndStop (3);
Symbol 6 MovieClip [Cell] Frame 33
if (_parent.G.pbState == "afteruserlead") {
if (this.last) {
_parent.G.pbState = "complead";
this.last = false;
}
}
if ((_parent.G.IsDemo && (_parent.G.pbState == "aftercomplead")) && (this.last)) {
this.last = false;
_parent.G.pbState = "idle";
}
gotoAndStop (2);
Symbol 26 Button
on (release) {
_parent.G.pbState = "stopdemo";
}
Symbol 40 Button
on (release) {
removeMovieClip(this);
G.pbState = "idle";
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 5
stop();
Symbol 61 MovieClip Frame 8
gotoAndStop (1);
Symbol 61 MovieClip Frame 12
gotoAndStop (1);
Symbol 63 Button
on (rollOver) {
_root.knop1.gotoAndPlay(2);
}
on (rollOut) {
_root.knop1.gotoAndPlay(6);
}
on (release) {
if (G.pbState != "paused") {
G.ToglePause(true);
if (_root.chek1._visible) {
G.Skill = "beginner";
}
if (_root.chek2._visible) {
G.Skill = "advanced";
}
if (_root.chek3._visible) {
G.Skill = "expert";
}
G.NewGame();
}
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 5
stop();
Symbol 70 Button
on (rollOver) {
_root.knop2.gotoAndPlay(2);
}
on (rollOut) {
_root.knop2.gotoAndPlay(6);
}
on (release) {
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=cqst";
getURL (sd, "blank");
}
Symbol 71 Button
on (release) {
attachMovie("msgHelp", "hlpmsg", G.FreeDepth + 800);
G.pbState = "paused";
}
Symbol 76 Button
on (release) {
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=cqst";
getURL (sd, "blank");
}
Symbol 79 Button
on (release) {
_root.chek1._visible = true;
_root.chek2._visible = false;
_root.chek3._visible = false;
G.Skill = "beginner";
G.NewGame();
}
Symbol 80 Button
on (release) {
_root.chek2._visible = true;
_root.chek1._visible = false;
_root.chek3._visible = false;
G.Skill = "advanced";
G.NewGame();
}
Symbol 81 Button
on (release) {
_root.chek3._visible = true;
_root.chek2._visible = false;
_root.chek1._visible = false;
G.Skill = "expert";
G.NewGame();
}
Symbol 83 Button
on (release) {
G.StartDemo();
}