Frame 1
function ST_Rotate(fld, row, shft) {
this.tic = getTimer();
this.Field = fld;
this.Layer = row;
this.Off = shft;
row._rotation = 0;
}
function ST_Fall(fld, isFirst) {
this.tic = getTimer();
this.Field = fld;
this.isFirst = isFirst;
this.NL = 1;
this.NR = 0;
isFalled = false;
}
function ST_Kill(fld) {
this.tic = getTimer();
this.Field = fld;
this.spDel = new Array();
this.isDel = false;
this.Score = 0;
this.Cost = _root.Cost;
this.StepCost = _root.StepCost;
this.ScoreMagnify = _root.ScoreMagnify;
this.StepScoreMagnify = _root.StepScoreMagnify;
this.NR = 0;
while (this.NR < 6) {
var isConsist = true;
var n = 0;
while (n < _root.NLaers) {
var c = eval (((("this.Field.L" + n) + ".B") + (this.NR * (n + 1))) + ".Ball.Skin._currentframe");
if (n == 0) {
var cc = c;
} else if (cc != c) {
isConsist = false;
break;
}
n++;
}
if (isConsist) {
var n = 0;
while (n < _root.NLaers) {
var b = eval ((("this.Field.L" + n) + ".B") + (this.NR * (n + 1)));
this.spDel.push(b);
this.Score = this.Score + this.Cost;
this.Cost = this.Cost + this.StepCost;
n++;
}
var n = eval ("this.Field.L0.B" + this.NR).Ball.Skin._currentframe;
if (0 >= (--this.Field.nCLines[n])) {
var say = new OSound("HeHey");
this.ScoreMagnify = this.ScoreMagnify + this.StepScoreMagnify;
}
this.isDel = true;
}
this.NR++;
}
}
function ST_FillRay(fld) {
this.tic = getTimer();
this.name = "FillRay";
this.Field = fld;
this.NL = 0;
this.Colors = [];
if (this.Field.msgWath == undefined) {
this.Field.attachMovie("cWatchGlass", "msgWath", _root.DeppWath);
}
var n = 0;
while (n < _root.NLaers) {
var b = eval (("this.Field.L" + n) + ".B0.Ball.Skin._currentframe");
if (_root.NBallFill >= b) {
this.Destruct();
return(undefined);
}
n++;
}
var n = 0;
while (n < 6) {
this.Colors[n] = random(_root.NBallFill) + 1;
this.Field.nCLines[this.Colors[n]]++;
this.Field.nLColors[this.Colors[n]] = false;
n++;
}
}
function ST_Fly(fld, nrow) {
this.tic = getTimer();
this.name = "Fly";
this.Field = fld;
this.NextRow = nrow;
this.NL = 1;
this.NR = 0;
isFalled = false;
}
function ST_Mix(fld, nrow) {
this.tic = getTimer();
this.name = "Mix";
this.Field = fld;
this.nLayer = nrow;
this.Layer = eval ("this.Field.L" + this.nLayer);
this.Off = 0;
if (eval ("this.Layer.B" + this.nLayer).Ball.Skin._currentframe < _root.NBallFill) {
this.Off = random((this.nLayer + 1) * 6);
} else {
this.Off = random(6) * (this.nLayer + 1);
}
}
function ST_FillRow(fld, nrow) {
this.tic = getTimer();
this.name = "FillRow";
this.Field = fld;
this.nLayer = nrow;
this.Layer = eval ("this.Field.L" + this.nLayer);
}
function ST_LFill(fld) {
this.tic = getTimer();
this.name = "LFill";
this.Field = fld;
this.Row = _root.Games[_root.curGame].NLaers - 1;
}
function ST_LRotate(fld, row, shft) {
this.tic = getTimer();
this.name = "LRotate";
this.Field = fld;
this.Layer = row;
this.Off = shft;
row._rotation = 0;
}
function ST_LFall(fld, killed) {
this.tic = getTimer();
this.name = "LFall";
this.Field = fld;
this.Killed = killed;
this.NL = 1;
this.NR = 0;
isFalled = false;
}
function ST_LKill(fld, killed) {
this.tic = getTimer();
this.name = "LKill";
this.Field = fld;
this.Killed = killed;
this.spDel = new Array();
this.isDel = false;
this.Score = 0;
this.Cost = _root.Cost;
this.StepCost = _root.StepCost;
this.ScoreMagnify = _root.ScoreMagnify;
this.StepScoreMagnify = _root.StepScoreMagnify;
if (this.Field != undefined) {
this.MarkKilled();
}
}
function ST_LAdd(fld) {
this.tic = getTimer();
this.name = "LAdd";
this.Field = fld;
if ((++this.Field.cStep) >= _root.nAddStep) {
this.Field.cStep = 0;
this.nAdd = this.Field.nAdd;
this.spFreeCell = [];
this.CreateFreeCellsList();
} else {
this.nAdd = 0;
}
_root.ShowAttempts(this.Field.cStep);
}
function ST_CheckEndGame(fld) {
this.tic = getTimer();
this.name = "CheckEndGame";
this.Field = fld;
this.spAccumCollors = [];
var n = 1;
while (_root.NBallFill >= n) {
this.Field.nLColors[n] = false;
n++;
}
var l = (_root.NLaers - 1);
while (l >= 0) {
var sp = [];
var n = 0;
while (n < ((l + 1) * 6)) {
var frm = eval ((("this.Field.L" + l) + ".B") + n).Ball.Skin._currentframe;
sp[frm]++;
n++;
}
var n = 1;
while (_root.NBallFill >= n) {
if (sp[n] == undefined) {
var isempty = false;
var ll = l;
while (ll >= 0) {
var nn = 0;
while (nn < ((ll + 1) * 6)) {
if (_root.NBallFill < eval ((("this.Field.L" + ll) + ".B") + nn).Ball.Skin._currentframe) {
isempty = true;
break;
}
nn++;
}
if (isempty) {
break;
}
ll--;
}
if (isempty && (1 < this.spAccumCollors[n])) {
this.spAccumCollors[n]--;
} else {
this.Field.nLColors[n] = true;
}
} else {
this.spAccumCollors[n] = this.spAccumCollors[n] + sp[n];
}
n++;
}
l--;
}
}
function ST_TFill(fld) {
this.tic = getTimer();
this.name = "TFill";
this.Field = fld;
this.Row = _root.Games[_root.curGame].NLaers - 1;
if (this.Field.Timer == undefined) {
this.Field.attachMovie("TIndicator", "Timer", _root.DeepTimer);
}
this.Timer = this.Field.Timer;
this.Timer._x = -(this.Field._height / 2);
this.Timer._y = -(this.Field._height / 2);
this.Timer.Spectr._rotation = 0;
trace(((((("Timer: " + this.Timer) + "(") + this.Timer._x) + ", ") + this.Timer._y) + ")");
trace(this.Timer);
}
function ST_TRotate(fld, row, shft) {
this.tic = getTimer();
this.name = "TRotate";
this.Field = fld;
this.Layer = row;
this.Off = shft;
row._rotation = 0;
}
function ST_TKill(fld, killed) {
this.tic = getTimer();
this.name = "TKill";
this.Field = fld;
this.Killed = killed;
this.spDel = new Array();
this.isDel = false;
this.Score = 0;
this.Cost = _root.Cost;
this.StepCost = _root.StepCost;
this.ScoreMagnify = _root.ScoreMagnify;
this.StepScoreMagnify = _root.StepScoreMagnify;
this.MarkKilled();
}
function ST_TFall(fld, killed) {
this.tic = getTimer();
this.name = "TFall";
this.Field = fld;
this.Killed = killed;
this.NL = 1;
this.NR = 0;
isFalled = false;
}
function ST_TAdd(fld) {
this.tic = getTimer();
this.name = "TAdd";
this.Field = fld;
if ((++this.Field.cStep) >= _root.nAddStep) {
this.Field.cStep = 0;
this.nAdd = this.Field.nAdd;
this.spFreeCell = [];
this.CreateFreeCellsList();
} else {
this.nAdd = 0;
}
_root.ShowAttempts(this.Field.cStep);
}
function Turn(fld) {
this.name = "Turn";
this.Field = fld;
this.MaxIntr = 30;
this.aTurns = [];
this.nTurn = 0;
this.Val;
this.mk = 0;
this.s = 0;
var r = new Object();
var n = 0;
while (n < this.MaxIntr) {
r.l = random(7);
r.b = random(((r.l + 1) * 6) - 2) + 1;
if (this.AddTurn(r)) {
n++;
}
}
}
function Field(fld) {
this.name = "Field";
this.Field = [];
var l = 0;
while (eval ("fld.L" + l) != undefined) {
this.Field[l] = [];
var cl = eval ("fld.L" + l);
var b = 0;
while (eval ("cl.B" + b) != undefined) {
this.Field[l][b] = eval ("cl.B" + b).Ball.Skin._currentframe;
b++;
}
l++;
}
}
function ShowAttempts(n) {
_root.tAttemts = (_root.nAddStep - n) - 1;
}
function ShowNumAdd(n) {
_root.tNAdd = n;
}
function SetScores(num) {
_root.Score = num;
}
function SetHiScores(num) {
if (_root.HiScore < num) {
_root.HiScore = num;
var s = (new _root.OSound("Yuoho"));
}
}
function isPocket(nl, nb) {
if ((nb % (nl + 1)) == 0) {
return(true);
}
return(false);
}
function GetRay(nl, nray, ncurb) {
if (ncurb == undefined) {
ncurb = 0;
}
nl++;
return((ncurb + (nray * nl)) % (nl * 6));
}
function AILines() {
_root.GameField.Game.Field.State = new Turn(_root.GameField.Game.Field);
}
function AIPuzzle() {
var nl;
var nb;
var tmp = _root.Tmp;
if (_root.NBallFill < _root.GameField.Game.Field.L0.B0.Ball.Skin._currentframe) {
var nl = 1;
while (nl < _root.NLaers) {
nb = 0;
while (nb < ((nl + 1) * 6)) {
if (_root.NBallFill >= eval ((("_root.GameField.Game.Field.L" + nl) + ".B") + nb).Ball.Skin._currentframe) {
GameField.Game.Field.State = new _root.Games[_root.curGame].OnRotate(GameField.Game.Field, eval ("GameField.Game.Field.L" + nl), ((nl + 1) * 6) - nb);
tmp.sl = 0;
return(undefined);
}
nb++;
}
nl++;
}
} else {
var ccsl = eval ("_root.GameField.Game.Field.L" + tmp.sl);
var cl = (tmp.sl + 1);
while (cl < _root.NLaers) {
nbals = (cl + 1) * 6;
var ccl = eval ("_root.GameField.Game.Field.L" + cl);
var cb = 0;
while (cb < nbals) {
var isAgree = true;
var n = 0;
while (n < 6) {
var ccb = eval ("ccl.B" + GetRay(cl, n, cb));
var cfb = eval ("_root.GameField.Game.Field.L0.B" + n);
if (ccb.Ball.Skin._currentframe != cfb.Ball.Skin._currentframe) {
isAgree = false;
}
n++;
}
if (isAgree) {
tmp.sl++;
GameField.Game.Field.State = new _root.Games[_root.curGame].OnRotate(GameField.Game.Field, eval ("GameField.Game.Field.L" + cl), ((cl + 1) * 6) - cb);
return(undefined);
}
cb++;
}
cl++;
}
}
}
function OnTimerDemo() {
if (_root.GameField.Game.Field.msgDemoBox == undefined) {
_root.Tmp = new Object();
_root.SaveDemoObject = new Object();
SaveGame(_root.SaveDemoObject);
_root.GameField.Game.Field.attachMovie("msgDemo", "msgDemoBox", _root.MsgDeep - 1);
if (_root.isModifed == true) {
_root.InitField();
_root.GameField.Game.Field.State = new _root.Games[_root.curGame].OnStart(_root.GameField.Game.Field);
}
_root.GameField.Game.Field.State.OnTimer();
} else if (GameField.Game.Field.State == undefined) {
_root.Games[_root.curGame].OnDemoAI();
} else {
GameField.Game.Field.State.OnTimer();
}
}
function SaveObject(dst, src) {
for (var name in src) {
dst[name] = src[name];
}
}
function SaveGame(save_object) {
save_object.Root = new Object();
save_object.Field = new Object();
save_object.State = new Object();
save_object.Pos = new Array();
save_object.nLColors = new Array();
save_object.nCLines = new Array();
save_object.Time = _root.GameField.Game.Field.Timer.Spectr._rotation;
_root.GameField.Game.Field.Timer.Spectr._rotation = 0;
if (_root.GameField.Game.Field.msgWath != undefined) {
_root.GameField.Game.Field.msgWath.removeMovieClip();
_root.Tmp.isWatch = true;
}
_root.SaveObject(save_object.Root, _root);
_root.SaveObject(save_object.Field, _root.GameField.Game.Field);
_root.SaveObject(save_object.State, _root.GameField.Game.Field.State);
CopyArray(save_object.nLColors, _root.GameField.Game.Field.nLColors);
CopyArray(save_object.nCLines, _root.GameField.Game.Field.nCLines);
var n = 0;
nl = 0;
var l = eval ("_root.GameField.Game.Field.L" + nl);
if (l == undefined) {
return;
}
nb = 0;
for(;;){
var b = eval ("l.B" + nb);
if (b == undefined) {
break;
}
save_object.Pos[n] = b.Ball.Skin._currentframe;
n++;
nb++;
};
nl++;
// unexpected jump
}
function CopyArray(dst, src) {
var n = 0;
while (n < src.length) {
dst[n] = src[n];
n++;
}
}
function RestoreGame(save_object) {
SaveObject(_root, save_object.Root);
SaveObject(_root.GameField.Game.Field, save_object.Field);
SaveObject(_root.GameField.Game.Field.State, save_object.State);
CopyArray(_root.GameField.Game.Field.nLColors, save_object.nLColors);
CopyArray(_root.GameField.Game.Field.nCLines, save_object.nCLines);
var n = 0;
nl = 0;
for(;;){
var l = eval ("_root.GameField.Game.Field.L" + nl);
if (l == undefined) {
break;
}
nb = 0;
for(;;){
var b = eval ("l.B" + nb);
if (b == undefined) {
break;
}
b.Ball.Skin.gotoAndStop(save_object.Pos[n]);
n++;
nb++;
};
nl++;
};
delete save_object;
}
function RestoreDemo() {
InitField();
RestoreGame(_root.SaveDemoObject);
_root.isDemo = false;
_root.GameField.Game.Field.msgDemoBox.removeMovieClip();
delete _root.GameField.Game.Field.msgDemoBox;
if (_root.Tmp.isWatch) {
_root.GameField.Game.Field.attachMovie("cWatchGlass", "msgWath", _root.DeppWath);
}
delete _root.Tmp;
if (_root.curGame == 1) {
delete _root.GameField.Game.Field.Timer;
if (_root.GameField.Game.Field.Timer == undefined) {
_root.GameField.Game.Field.attachMovie("TIndicator", "Timer", _root.DeepTimer);
}
var tm = _root.GameField.Game.Field.Timer;
tm._x = (-_root.GameField.Game.Field._width) / 2;
tm._y = (-_root.GameField.Game.Field._height) / 2;
tm.Spectr._rotation = _root.SaveDemoObject.Time;
trace((((((">Timer: " + tm) + "(") + tm._x) + ", ") + tm._y) + ")");
trace(tm);
}
}
function OnHelp() {
if (_root.GameField.Game.Field.msgBox == undefined) {
_root.GameField.Game.Field.Timer.stop();
_root.GameField.Game.Field.attachMovie("msgHelp", "msgBox", _root.MsgDeep);
_root.GameField.Game.Field.msgBox.stop();
}
}
function OnOptions() {
if (_root.GameField.Game.Field.msgBox == undefined) {
_root.GameField.Game.Field.Timer.stop();
_root.GameField.Game.Field.attachMovie("msgOptions", "msgBox", _root.MsgDeep);
var opt = _root.GameField.Game.Field.msgBox;
eval ("opt.Game" + _root.curGame).Checked = true;
eval ("opt.Level" + _root.GameLevel).Checked = true;
eval ("opt.Skin" + _root.nSkin).Checked = true;
}
var msg = _root.GameField.Game.Field.msgBox;
if (_root.isSound) {
msg.isSound.Checked = true;
} else {
msg.isSound.Checked = false;
}
if (_root.isAnimate) {
msg.isAnimation.Checked = true;
} else {
msg.isAnimation.Checked = false;
}
}
function OnOptionsCancel(msg) {
removeMovieClip(msg);
_root.GameField.Game.Field.Timer.play();
}
function OnOptionsOk(msg) {
var nopt = new Array("Game", "Level", "Skin");
var copt = [];
o = 0;
while (nopt[o] != undefined) {
var n = 0;
do {
var s = eval (("msg." + nopt[o]) + n);
if (s.Checked == true) {
copt[o] = n;
break;
}
n++;
} while (s != undefined);
o++;
}
if (msg.isSound.Checked) {
_root.isSound = true;
} else {
_root.isSound = false;
}
if (msg.isAnimation.Checked) {
_root.isAnimate = true;
} else {
_root.isAnimate = false;
}
removeMovieClip(msg);
if (_root.nSkin != copt[2]) {
_root.nSkin = copt[2];
var l = 0;
while (l < _root.NLaers) {
var n = 0;
while (n < ((l + 1) * 6)) {
var c = eval ((("_root.GameField.Game.Field.L" + l) + ".B") + n);
var cf = c.Ball.Skin._currentframe;
removeMovieClip(c.Ball.Skin);
c.Ball.attachMovie(Skins[_root.nSkin], "Skin", 0);
c.Ball.Skin.gotoAndStop(cf);
n++;
}
l++;
}
}
if ((_root.curGame != copt[0]) || (_root.GameLevel != copt[1])) {
_root.GameField.Game.Field.attachMovie("msgYouSure", "msgBox", _root.MsgDeep);
_root.GameField.Game.Field.msgBox.opt = copt;
} else {
_root.GameField.Game.Field.Timer.play();
}
}
function OnNewGame() {
if (_root.GameField.Game.Field.msgBox == undefined) {
_root.GameField.Game.Field.Timer.stop();
_root.GameField.Game.Field.attachMovie("msgYouSure", "msgBox", _root.MsgDeep);
}
}
function msgYouSureOK() {
if (_root.GameField.Game.Field.msgBox.opt != undefined) {
var opt = _root.GameField.Game.Field.msgBox.opt;
_root.curGame = opt[0];
_root.GameLevel = opt[1];
_root.nSkin = opt[2];
}
removeMovieClip(_root.GameField.Game.Field.msgBox);
if (_root.GameField.Game.Field.msgDemoBox != undefined) {
_root.isDemo = true;
}
_root.InitField();
_root.GameField.Game.Field.State = new _root.Games[_root.curGame].OnStart(_root.GameField.Game.Field);
}
function InitField() {
removeMovieClip(_root.GameField.Game.Field.Timer);
delete _root.GameField.Game.Field.Timer;
delete _root.GameField.Game.Field.State;
_root.NBallFill = _root.FillLevel[_root.GameLevel];
if (_root.curGame == 2) {
_root.NBallFill = _root.FillLevel[2 - _root.GameLevel];
}
_root.nAdd = NBallFill * 4;
_root.nSubAdd = nAdd / NBallFill;
var l = 0;
while (l < _root.NLaers) {
var n = 0;
while (n < ((l + 1) * 6)) {
var c = eval ((("_root.GameField.Game.Field.L" + l) + ".B") + n);
removeMovieClip(c.Ball.Skin);
c.Ball.attachMovie(Skins[nSkin], "Skin", 0);
c.Ball.Skin.gotoAndStop("Empty");
n++;
}
l++;
}
var fld = _root.GameField.Game.Field;
fld.Score = 0;
_root.SetScores(fld.Score);
fld.cStep = 0;
ShowAttempts(fld.cStep);
fld.nAdd = _root.nAdd;
ShowNumAdd(fld.nAdd);
var n = 1;
while (_root.NBallFill >= n) {
fld.nCLines[n] = 0;
fld.nLColors[n] = true;
n++;
}
removeMovieClip(fld.msgWath);
_root.isModifed = undefined;
}
function msgYouSureNo() {
removeMovieClip(_root.GameField.Game.Field.msgBox);
_root.GameField.Game.Field.Timer.play();
}
function TraceUtils(fld) {
var msg = "nCLines = ";
var n = 1;
while (_root.NBallFill >= n) {
msg = msg + (fld.nCLines[n] + ", ");
n++;
}
trace(msg);
var msg = "nLColors = ";
var n = 0;
while (_root.NBallFill >= n) {
msg = msg + (fld.nLColors[n] + ", ");
n++;
}
trace(msg);
}
function DeselectAll(field) {
var nl = 0;
var nb = 0;
var b = eval ((("field.L" + nl) + ".B") + nb);
while (((b = eval ((("field.L" + nl) + ".B") + nb))) != undefined) {
while (((b = eval ((("field.L" + nl) + ".B") + nb))) != undefined) {
b.isCheck = false;
nb++;
}
nl++;
nb = 0;
}
}
function BallFill(ball, n) {
ball.Ball.attachMovie(Skins[nSkin], "Skin", 0);
ball.Ball.Skin.gotoAndStop(n);
}
function OSound(name) {
if (_root.isSound) {
this.snd = new Sound();
this.snd.attachSound(name);
this.snd.start();
delete this;
}
this.Stop = function () {
this.snd.stop();
};
this.Start = function (offset, loop) {
this.snd.start(offset, loop);
};
this.SetVolume = function (level) {
this.snd.setVolume(level);
};
}
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()) + "wotr");
getURL (sd, "blank");
}
function SendResult() {
var stSend = ((((((((_root.score + "\t") + 0) + "\t") + stName) + "\t") + "wotr") + "\t") + "web");
getURL ("http://absolutist.com/cgi-bin/gameres.pl?g=wotr&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()) + "wotr");
getURL (sd, "blank");
}
function GetPrefix() {
return(_root._url.charAt(_root._url.length - 3));
}
if (init == undefined) {
init = true;
Messages = new Array("Timeout");
MsgHelp = new Array("Destroy all the figures on the board. Rotating the circles with figures, place them so that you could make a line of one type figures, inside of the trough or crossing it. You are limited in the number of attempts. After each unsuccessful turn (when you do not manage to destroy any figure), the number of attempts decreases. When attempts reaches zero, the new figures appear. Having removed all the figures of one color, you will not see them anymore. For each color removed, your score is doubled.", "The rules are almost the same as in Lines but you are limited in time. If you do not manage to clear the board in time - you lose. When the game is over - the time counter disappear.", "Here you have to destroy all the figures on the board in other way. Rotating the circles with figures, place them so that you could fill up the trough with figures of one color. In the beginning of the game the board is filled so that you could remove all the figures. You play correctly if you remove the figures in all the troughs at once.");
ST_Rotate.prototype.Destruct = function () {
_root.Trace = (("Rotate: " + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
this.Layer._rotation = 0;
this.Rotate(this.Off);
delete this;
this.Field.State = new _root.ST_Fall(this.Field, true);
return(undefined);
};
ST_Rotate.prototype.Rotate = function (off) {
var nb = ((this.Layer.num + 1) * 6);
var tmp = [];
var cb = 0;
while (cb < nb) {
tmp[cb] = eval ("this.Layer.B" + cb).Ball.Skin._currentframe;
cb++;
}
var cb = 0;
while (cb < nb) {
eval ("this.Layer.B" + ((cb + Off) % nb)).Ball.Skin.gotoAndStop(tmp[cb]);
if (_root.NBallFill < eval ("this.Layer.B" + ((cb + Off) % nb)).Ball.Skin._currentframe) {
eval ("this.Layer.B" + ((cb + Off) % nb)).Ball.Skin.gotoAndStop("Empty");
}
cb++;
}
_root.isModifed = true;
};
ST_Rotate.prototype.OnTimer = function () {
this.Destruct();
return(undefined);
};
ST_Fall.prototype.Destruct = function () {
_root.Trace = (("Fall: " + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
this.Field.State = new ST_Kill(this.Field);
if (this.isFalled == true) {
var snd = (new _root.OSound("Shelk"));
}
};
ST_Fall.prototype.OnTimer = function () {
var isfall = false;
this.NR = 0;
while (this.NR < 6) {
this.NL = 1;
while (this.NL < _root.NLaers) {
var b = eval ((("this.Field.L" + this.NL) + ".B") + (this.NR * (this.NL + 1)));
var bn = eval ((("this.Field.L" + (this.NL - 1)) + ".B") + (this.NR * this.NL));
if ((_root.NBallFill >= b.Ball.Skin._currentframe) && (_root.NBallFill < bn.Ball.Skin._currentframe)) {
var n = this.NL;
while (n < _root.NLaers) {
var b = eval ((("this.Field.L" + n) + ".B") + (this.NR * (n + 1)));
var bn = eval ((("this.Field.L" + (n - 1)) + ".B") + (this.NR * n));
var swp = bn.Ball.Skin._currentframe;
bn.Ball.Skin.gotoAndStop(b.Ball.Skin._currentframe);
b.Ball.Skin.gotoAndStop("Empty");
n++;
}
isfall = true;
break;
}
this.NL++;
}
this.NR++;
}
if (isfall == false) {
this.Destruct();
} else {
this.isFalled = true;
}
};
ST_Kill.prototype.Destruct = function (isKill) {
_root.Trace = (("Kill: " + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this.spDel;
delete this;
this.Score = this.Score * this.ScoreMagnify;
this.Field.Score = this.Field.Score + this.Score;
_root.SetScores(this.Field.Score);
this.Field.State = new ST_CheckEndGame(this.Field);
_root.Trace = "<<< --- >>>\n" + _root.Trace;
};
ST_Kill.prototype.OnTimer = function () {
if (0 < this.spDel.length) {
var db = this.spDel.pop();
if (_root.isAnimate) {
db.Ball.Skin.gotoAndPlay("Death" + db.Ball.Skin._currentframe);
} else {
db.Ball.Skin.gotoAndStop("Empty");
var snd = (new _root.OSound("Bulk"));
}
return(undefined);
}
this.Destruct();
};
ST_FillRay.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this.Colors;
this.Field.State = new _root.ST_Mix(this.Field, 0);
delete this;
};
ST_FillRay.prototype.OnTimer = function () {
do {
var n = 0;
while (n < 6) {
var b = eval (((("this.Field.L" + this.NL) + ".B") + ((this.NL + 1) * n)) + ".Ball.Skin");
b.gotoAndStop(this.Colors[n]);
n++;
}
} while ((++this.NL) < _root.NLaers);
this.Destruct();
};
ST_Fly.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
this.Field.State = new _root.ST_FillRow(this.Field, this.NextRow);
if (this.isFalled == true) {
var snd = (new _root.OSound("Shelk"));
}
};
ST_Fly.prototype.OnTimer = function () {
var isfall = false;
this.NR = 0;
while (this.NR < 6) {
this.NL = _root.NLaers - 2;
while (this.NL >= 0) {
var b = eval ((("this.Field.L" + this.NL) + ".B") + (this.NR * (this.NL + 1)));
var bn = eval ((("this.Field.L" + (this.NL + 1)) + ".B") + (this.NR * (this.NL + 2)));
if ((_root.NBallFill >= b.Ball.Skin._currentframe) && (_root.NBallFill < bn.Ball.Skin._currentframe)) {
var n = this.NL;
while (n >= 0) {
var b = eval ((("this.Field.L" + n) + ".B") + (this.NR * (n + 1)));
var bn = eval ((("this.Field.L" + (n + 1)) + ".B") + (this.NR * (n + 2)));
var swp = bn.Ball.Skin._currentframe;
bn.Ball.Skin.gotoAndStop(b.Ball.Skin._currentframe);
b.Ball.Skin.gotoAndStop(swp);
n--;
}
isfall = true;
break;
}
this.NL--;
}
this.NR++;
}
if (isfall == false) {
this.Destruct();
}
};
ST_Mix.prototype = new ST_Rotate();
ST_Mix.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
if ((++this.nLayer) < _root.NLaers) {
this.Field.State = new _root.ST_Mix(this.Field, this.nLayer);
} else {
this.Field.State = new _root.ST_FillRow(this.Field, 1);
}
};
ST_Mix.prototype.OnTimer = function () {
if ((--this.Off) >= 0) {
this.Rotate(1);
} else {
this.Destruct();
}
};
ST_FillRow.prototype = new ST_Rotate();
ST_FillRow.prototype.Destruct = function (next) {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
this.Field.State = next;
if (next == null) {
removeMovieClip(this.Field.msgWath);
_root.isModifed = undefined;
}
};
ST_FillRow.prototype.OnTimer = function () {
var rb = this.Layer.B0.Ball.Skin._currentframe;
var fb = eval ("this.Layer.B" + this.nLayer).Ball.Skin._currentframe;
if (_root.NBallFill >= rb) {
if (_root.NBallFill < fb) {
this.Rotate(1);
this.Destruct(new _root.ST_Fly(this.Field, this.nLayer));
} else {
this.Destruct(new _root.ST_FillRow(this.Field, ++this.nLayer));
}
} else if (this.nLayer >= (_root.NLaers - 1)) {
if (_root.NBallFill >= fb) {
_root.TraceUtils(this.Field);
this.Destruct(null);
} else {
this.Destruct(new _root.ST_FillRay(this.Field));
}
} else {
this.Destruct(new _root.ST_FillRow(this.Field, ++this.nLayer));
}
};
ST_LFill.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
this.Field.State = null;
};
ST_LFill.prototype.OnTimer = function () {
var n = 0;
while (n < ((this.Row + 1) * 6)) {
if ((n % (this.Row + 1)) != 0) {
var c = (random(_root.NBallFill) + 1);
eval ((("this.Field.L" + this.Row) + ".B") + n).Ball.Skin.gotoAndStop(c);
this.Field.nCLines[c]++;
this.Field.nLColors[c] = false;
}
n++;
}
if (0 >= (--this.Row)) {
this.Destruct();
}
};
ST_LRotate.prototype = new _root.ST_Rotate();
ST_LRotate.prototype.Destruct = function () {
this.Rotate(this.Off);
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
this.Field.State = new _root.ST_LFall(this.Field);
delete this;
};
ST_LFall.prototype = new _root.ST_Fall();
ST_LFall.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
this.Field.State = new ST_LKill(this.Field, this.Killed);
if (this.isFalled == true) {
var snd = (new _root.OSound("Shelk"));
}
};
ST_LKill.prototype.MarkKilled = function () {
var r = 0;
while (r < 6) {
var cd = 0;
var ccw = 0;
var cacw = 0;
var c = undefined;
var n = 0;
while (n < _root.NLaers) {
var cc = eval ((("this.Field.L" + n) + ".B") + (r * (n + 1))).Ball.Skin._currentframe;
var cb = ((n + 1) * 6);
if (_root.NBallFill >= cc) {
ccw = 1;
while (ccw < cb) {
var ncb = (((r * (n + 1)) + ccw) % cb);
var ccc = eval ((("this.Field.L" + n) + ".B") + ncb).Ball.Skin._currentframe;
if (ccc != cc) {
break;
}
ccw++;
}
if (ccw < cb) {
cacw = 1;
while (cacw < cb) {
var ncb = ((r * (n + 1)) - cacw);
if (ncb < 0) {
ncb = ncb + cb;
}
var ccc = eval ((("this.Field.L" + n) + ".B") + ncb).Ball.Skin._currentframe;
if (ccc != cc) {
break;
}
cacw++;
}
}
}
if ((_root.NBallFill < cc) || (c != cc)) {
if (cd >= _root.MinConsist) {
this.isDel = true;
do {
var nb = (((n - cd) + 1) * r);
var b = eval ((("this.Field.L" + (n - cd)) + ".B") + nb);
this.spDel.push(b);
} while (0 < (--cd));
}
if (_root.NBallFill < cc) {
break;
}
c = cc;
cd = 1;
} else {
cd++;
if ((n == (_root.NLaers - 1)) && (cd >= _root.MinConsist)) {
while ((--cd) >= 0) {
var nb = (((n - cd) + 1) * r);
var b = eval ((("this.Field.L" + (n - cd)) + ".B") + nb);
this.spDel.push(b);
}
}
}
if (_root.MinConsist < (ccw + cacw)) {
this.isDel = true;
while ((--ccw) >= 0) {
var ncb = (((r * (n + 1)) + ccw) % cb);
var b = eval ((("this.Field.L" + n) + ".B") + ncb);
if (_root.NBallFill >= b.Ball.Skin._currentframe) {
this.spDel.push(b);
}
}
while ((--cacw) >= 0) {
var ncb = ((r * (n + 1)) - cacw);
if (ncb < 0) {
ncb = ncb + cb;
}
var b = eval ((("this.Field.L" + n) + ".B") + ncb);
if (_root.NBallFill >= b.Ball.Skin._currentframe) {
this.spDel.push(b);
}
}
}
n++;
}
r++;
}
};
ST_LKill.prototype.Destruct = function (isKill) {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this.spDel;
delete this.Field.State;
if (this.isDel) {
this.Score = this.Score * this.ScoreMagnify;
this.Field.Score = this.Field.Score + this.Score;
_root.SetScores(this.Field.Score);
this.Field.State = new ST_LFall(this.Field, this.Killed);
} else if (0 < this.Killed) {
this.Field.State = null;
_root.Cost = _root.CCost;
} else {
this.Field.State = new _root.ST_LAdd(this.Field);
if (((_root.Cost = _root.Cost + _root.StepCostBad)) < 0) {
_root.Cost = 0;
}
}
};
ST_LKill.prototype.OnTimer = function () {
while (true) {
if (0 < this.spDel.length) {
this.Field.Timer.Bonus();
var n = random(this.spDel.length);
var db = this.spDel[n];
this.spDel.splice(n, 1);
if (_root.NBallFill >= db.Ball.Skin._currentframe) {
if (0 >= (--this.Field.nCLines[db.Ball.Skin._currentframe])) {
this.Field.nLColors[db.Ball.Skin._currentframe] = true;
this.Field.nAdd = this.Field.nAdd - _root.nSubAdd;
_root.ShowNumAdd(this.Field.nAdd);
var say = new OSound("HeHey");
this.ScoreMagnify = this.ScoreMagnify + this.StepScoreMagnify;
}
var scr = (this.Cost * (++this.Killed));
this.Score = this.Score + scr;
if (_root.isAnimate) {
db.Ball.Skin.gotoAndPlay("Death" + db.Ball.Skin._currentframe);
db.attachMovie("FlyScore", "Score", 10);
db.Score.Msg = scr;
} else {
db.Ball.Skin.gotoAndStop("Empty");
var snd = (new _root.OSound("Bulk"));
}
var iswin = true;
var n = 1;
while (_root.NBallFill >= n) {
if (this.Field.nLColors[n] == false) {
iswin = false;
break;
}
n++;
}
if (iswin) {
_root.GameField.Game.Field.Timer.stop();
_root.GameField.Game.Field.attachMovie("msgCongratulation", "msgBox", _root.MsgDeep);
var snd = (new _root.OSound("Yuoho"));
}
return;
}
} else {
this.Destruct();
return;
}
}
};
ST_LAdd.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this.spAdd;
delete this.Field.State;
this.Field.State = null;
delete this;
};
ST_LAdd.prototype.OnTimer = function () {
if ((--this.nAdd) >= 0) {
if (0 >= this.spFreeCell.length) {
_root.GameField.Game.Field.attachMovie("msgGameOver", "msgBox", _root.MsgDeep);
this.Destruct();
} else {
do {
var n = random(this.spFreeCell.length);
var c = 0;
do {
c = random(_root.NBallFill) + 1;
} while (this.Field.nLColors[c] != false);
var nl = this.spFreeCell[n].Ball._parent._parent.num;
var nb = this.spFreeCell[n].Ball._parent.num;
var isbreak = true;
var l = 0;
while (l < 6) {
var ncb = ((nl + 1) * l);
if (1 >= Math.abs(ncb - nb)) {
if (eval ((("this.Field.L" + nl) + ".B") + ncb).Ball.Skin._currentframe == c) {
isbreak = false;
}
}
l++;
}
} while (!isbreak);
this.spFreeCell[n].Ball.Skin.gotoAndStop(c);
this.spFreeCell.splice(n, 1);
this.Field.nCLines[c]++;
var snd = _root.OSound("NewBall");
}
} else {
this.Destruct();
}
};
ST_LAdd.prototype.CreateFreeCellsList = function () {
var l = 0;
while (l < _root.NLaers) {
var n = 0;
while (n < ((l + 1) * 6)) {
var b = eval ((("this.Field.L" + l) + ".B") + n);
if ((_root.NBallFill < b.Ball.Skin._currentframe) && ((n % (l + 1)) != 0)) {
this.spFreeCell.push(b);
}
n++;
}
l++;
}
};
ST_CheckEndGame.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
_root.TraceUtils(this.Field);
var killed = 0;
var n = 1;
while (_root.NBallFill >= n) {
killed = killed + this.Field.nCLines[n];
n++;
}
if (0 >= killed) {
_root.GameField.Game.Field.attachMovie("msgCongratulation", "msgBox", _root.MsgDeep);
} else {
var isf = true;
var n = 1;
while (_root.NBallFill >= n) {
if (this.Field.nLColors[n] == false) {
isf = false;
break;
}
n++;
}
if (isf && (_root.isSimulate != true)) {
_root.GameField.Game.Field.attachMovie("msgGameOver", "msgBox", _root.MsgDeep);
}
}
this.Field.State = null;
delete this.spAccumCollors;
delete this;
};
ST_CheckEndGame.prototype.OnTimer = function () {
this.Destruct();
};
ST_TFill.prototype = new _root.ST_LFill();
ST_TRotate.prototype = new _root.ST_LRotate();
ST_TRotate.prototype.Destruct = function () {
this.Rotate(this.Off);
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
this.Field.State = new _root.ST_TFall(this.Field);
};
ST_TKill.prototype = new _root.ST_LKill();
ST_TKill.prototype.Destruct = function (isKill) {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this.spDel;
delete this;
if (this.isDel) {
this.Score = this.Score * this.ScoreMagnify;
this.Field.Score = this.Field.Score + this.Score;
_root.SetScores(this.Field.Score);
this.Field.State = new ST_TFall(this.Field, this.Killed);
} else if (0 < this.Killed) {
this.Field.State = null;
} else {
this.Field.State = new _root.ST_TAdd(this.Field);
}
};
ST_TFall.prototype = new _root.ST_LFall();
ST_TFall.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this;
this.Field.State = new ST_TKill(this.Field, this.Killed);
if (this.isFalled == true) {
var snd = (new _root.OSound("Shelk"));
}
};
ST_TAdd.prototype = new ST_LAdd();
ST_TAdd.prototype.Destruct = function () {
_root.Trace = (((this.name + ": ") + Math.abs(getTimer() - this.tic)) + newline) + _root.Trace;
delete this.spAdd;
delete this;
this.Field.State = null;
};
Turn.prototype.AddTurn = function (t) {
var f = true;
var n = 0;
while (this.aTurns[n] != undefined) {
if (this.aTurns[n] == t) {
f = false;
break;
}
n++;
}
if (f) {
f = false;
var cl = eval ("this.Field.L" + t.l);
var n = 0;
while (n < ((t.l + 1) * 6)) {
if (eval ("cl.B" + t.b).Ball.Skin._currentframe < _root.NBallFill) {
f = true;
break;
}
n++;
}
if (f) {
var b = new Object();
b.l = t.l;
b.b = t.b;
this.aTurns.push(b);
}
}
return(f);
};
Turn.prototype.GetTurn = function (n) {
var r = new Object();
var f = new Field(this.Field);
f.Turn(this.aTurns[n]);
var tk = 0;
do {
f.Fall();
var k = f.Kill();
tk = tk + k;
} while (0 < k);
if (this.mk < tk) {
this.s = n;
this.mk = tk;
}
delete f;
return(this.aTurns[this.s]);
};
Turn.prototype.OnTimer = function () {
this.Val = this.GetTurn(this.nTurn);
var n = 0;
while (n < 3) {
if (this.aTurns[++this.nTurn] == undefined) {
this.Destruct();
}
n++;
}
};
Turn.prototype.Destruct = function () {
_root.GameField.Game.Field.State = new _root.Games[_root.curGame].OnRotate(_root.GameField.Game.Field, eval ("_root.GameField.Game.Field.L" + this.Val.l), this.Val.b);
delete this.aTurns;
delete this;
};
Field.prototype.Turn = function (v) {
var tmp = [];
var fld = this.Field[v.l];
var mb = ((v.l + 1) * 6);
var n = 0;
while (n < mb) {
tmp[n] = fld[n];
n++;
}
var n = 0;
while (n < mb) {
fld[(n + v.b) % mb] = tmp[n];
n++;
}
};
Field.prototype.Fall = function () {
var r = 0;
while (r < 6) {
l = 1;
while (l < _root.NLaers) {
var cb = this.Field[l][r * (l + 1)];
var db = this.Field[l - 1][r * l];
if ((_root.NBallFill >= cb) && (_root.NballFill < db)) {
var n = l;
while (n < _root.NballFill) {
var swp = this.Field[n][r * (n + 1)];
this.Field[n][r * (n + 1)] = this.Field[n - 1][r * n];
this.Field[n - 1][r * n] = swp;
n++;
}
}
l++;
}
r++;
}
};
Field.prototype.Kill = function () {
var aDel = new Array();
var r = 0;
while (r < 6) {
var cd = 0;
var ccw = 0;
var cacw = 0;
var c = undefined;
var n = 0;
while (n < _root.NLaers) {
var cc = this.Field[n][r * (n + 1)];
var cm = ((n + 1) * 6);
if (_root.NBallFill >= cc) {
ccw = 1;
while (ccw < cm) {
if (cc != this.Field[n][((r * (n + 1)) + ccw) % cm]) {
break;
}
ccw++;
}
if (ccw < cm) {
cacw = 1;
while (cacw < cm) {
var ncb = ((r * (n + 1)) - cacw);
if (ncb < 0) {
ncb = ncb + cm;
}
if (cc != this.Field[n][ncb]) {
break;
}
cacw++;
}
}
}
if ((_root.NBallFill < cc) || (c != cc)) {
if (cd >= _root.MinConsist) {
do {
var b = this.Field[n - cd][((n - cd) + 1) * r];
if (_root.NBallFill >= b) {
aDel.push(b);
this.Field[n - cd][((n - cd) + 1) * r] = _root.NBallFill + 1;
}
} while (0 < (--cd));
}
if (_root.NBallFill < cc) {
break;
}
c = cc;
cd = 1;
} else {
cd++;
if ((n == (_root.NLaers - 1)) && (cd >= _root.MinConsist)) {
while ((--cd) >= 0) {
var b = this.Field[n - cd][((n - cd) + 1) * r];
if (_root.NBallFill >= b) {
aDel.push(b);
this.Field[n - cd][((n - cd) + 1) * r] = _root.NBallFill + 1;
}
}
}
}
if (_root.MinConsist < (ccw + cacw)) {
while ((--ccw) >= 0) {
var b = this.Field[n][((r * (n + 1)) + ccw) % cm];
if (_root.NBallFill >= b) {
aDel.push(b);
this.Field[n][((r * (n + 1)) + ccw) % cm] = _root.NBallFill + 1;
}
}
while ((--cacw) >= 0) {
var ncb;
if (((ncb = (r * (n + 1)) - cacw)) < 0) {
ncb = ncb + cm;
}
var b = this.Field[n][ncb];
if (_root.NBallFill >= b) {
aDel.push(b);
this.Field[n][ncb] = _root.NBallFill + 1;
}
}
}
n++;
}
r++;
}
return(aDel.length);
};
Field.prototype.Destruct = function () {
delete this;
};
_root.isDemo = true;
_root.isAnimate = true;
_root.isSound = true;
NLaers = 7;
NBallFill = 3;
Quant = 3;
MinConsist = 3;
nAddStep = 3;
nAdd = NBallFill * 4;
nSubAdd = nAdd / NBallFill;
CCost = 10;
Cost = CCost;
StepCost = 10;
StepCostBad = -5;
ScoreMagnify = 1;
StepScoreMagnify = 1;
_root.HiScore = 0;
Skins = new Array("Square", "Balls", "Triangles", "Chakres", "Shapes");
nSkin = 0;
Games = new Array({Name:"Lines", OnStart:_root.ST_LFill, OnRotate:_root.ST_LRotate, OnDemoAI:_root.AILines, NLaers:_root.NLaers}, {Name:"Timed", OnStart:_root.ST_TFill, OnRotate:_root.ST_TRotate, OnDemoAI:_root.AILines, NLaers:_root.NLaers}, {Name:"Puzzle", OnStart:_root.ST_FillRay, OnRotate:_root.ST_Rotate, OnDemoAI:_root.AIPuzzle, NLaers:_root.NLaers});
curGame = 0;
GameLevel = 0;
FillLevel = new Array(3, 5, 7);
TRange = 1000;
TStep = -2;
TLStep = -5;
TRStep = 50;
DeepTimer = 10;
DeppWath = 100;
MsgDeep = 10000;
}
Instance of Symbol 191 MovieClip [cField] "GameField" in Frame 1
onClipEvent (load) {
this.attachMovie("Field", "Game", 0);
}
Frame 2
if (_root.GameField.Game.Field.msgBox == undefined) {
if (_root.isDemo) {
_root.OnTimerDemo();
} else if (_root.GameField.Game.Field.msgDemoBox != undefined) {
_root.RestoreDemo();
} else {
_root.GameField.Game.Field.State.OnTimer();
}
}
Frame 3
gotoAndPlay (2);
Symbol 7 MovieClip [Ball] Frame 1
stop();
Symbol 8 MovieClip [Ball] Frame 1
stop();
Symbol 11 MovieClip [cBall] Frame 1
stop();
Instance of Symbol 8 MovieClip [Ball] "Ball" in Symbol 11 MovieClip [cBall] Frame 1
/* no clip actions */
Instance of Symbol 18 MovieClip "Field" in Symbol 19 MovieClip [Field] Frame 1
onClipEvent (load) {
this.DBall = int((Math.min(_parent._width, _parent._height) / 2) / (_root.NLaers + 1));
this.RBall = this.DBall / 2;
this.Score = 0;
_root.SetScores(this.Score);
this.nAdd = _root.nAdd;
this.nCLines = [];
this.nLColors = [];
var n = 1;
while (_root.NBallFill >= n) {
this.nCLines[n] = 0;
this.nLColors[n] = true;
n++;
}
var n = 0;
while (n < _root.NLaers) {
this.attachMovie("Layer", "L" + n, n);
var l = eval ("this.L" + n);
l.num = n;
eval ("this.C" + n)._visible = false;
n++;
}
eval ("this.C" + n)._visible = false;
var r = 0;
while (r < _root.NLaers) {
var cx = (DBall - ((DBall * r) * 0.5));
var cy = ((DBall * r) * 0.866025403784439);
if (!r) {
dx = DBall;
} else {
dx = ((DBall * (r + 2)) * Math.cos(((Math.PI * r) / 3) / (r + 2))) - ((DBall * (r + 1)) * Math.cos(((Math.PI * r) / 3) / (r + 1)));
}
var n = r;
while (n < _root.NLaers) {
var i = 0;
while (i < 6) {
var l = eval ("this.L" + n);
var nb = (r + (i * (n + 1)));
l.attachMovie("CBall", "B" + nb, nb);
var b = eval ("l.B" + nb);
b.num = nb;
_root.BallFill(b, "Empty");
b._height = (b._width = DBall * 0.9);
b._x = ((n + 1) * DBall) * Math.cos(((Math.PI * r) / 3) / (n + 1));
b._y = ((n + 1) * DBall) * Math.sin(((Math.PI * r) / 3) / (n + 1));
b.Ball._rotation = ((60 * b.num) / (l.num + 1)) + 90;
var ca = Math.cos(((-i) * Math.PI) / 3);
var sa = Math.sin(((-i) * Math.PI) / 3);
var x = b._x;
var y = b._y;
b._x = (x * ca) + (y * sa);
b._y = (y * ca) - (x * sa);
i++;
}
n++;
}
r++;
}
_root.InitField();
this.State = new _root.Games[_root.curGame].OnStart(this);
}
onClipEvent (unload) {
delete this.nCLines;
delete this.nLColors;
delete this.State;
delete this.selLayer;
_root.SetHiScores(this.Score);
}
onClipEvent (mouseDown) {
if (((this.State == null) && (this.msgBox == undefined)) && (this.selLayer == undefined)) {
var d = Math.Sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse));
var ln = int((d - RBall) / DBall);
if ((ln < 0) || (ln >= _root.NLaers)) {
this.selLayer = undefined;
return(undefined);
}
this.selLayer = eval ("this.L" + ln);
eval ("this.C" + ln)._visible = true;
eval ("this.C" + (ln + 1))._visible = true;
this._nl = ln;
var dd = this._width;
dd = dd * dd;
var bn = undefined;
var n = 0;
while (n < ((ln + 1) * 6)) {
var b = eval ("this.selLayer.B" + n);
var dx = (b._x - _xmouse);
var dy = (b._y - _ymouse);
var ddm = ((dx * dx) + (dy * dy));
if (ddm < dd) {
bn = n;
dd = ddm;
}
n++;
}
this.selBall = eval (("this.selLayer.B" + bn) + ".Ball");
this.selStartAngle = 0;
}
}
onClipEvent (mouseMove) {
if (this.selLayer != undefined) {
var cdx = ((_xmouse * _xmouse) + (_ymouse * _ymouse));
var mdx = ((_root.NLaers * this.DBall) + this.RBall);
mdx = mdx * mdx;
if (mdx < cdx) {
this.selLayer._rotation = this.selStartAngle;
} else {
var a = this.selLayer._rotation;
var oa = a;
var d = Math.max(this._width, this._height);
d = d * d;
var p = new Object();
var rpos = 0;
var n = 0;
while (n < (6 * (this.selLayer.num + 1))) {
this.selLayer._rotation = (60 * n) / (this.selLayer.num + 1);
p.x = this.selBall._x;
p.y = this.selBall._y;
selBall.localToGlobal(p);
this.globalToLocal(p);
var dx = (p.x - _xmouse);
var dy = (p.y - _ymouse);
var cd = ((dx * dx) + (dy * dy));
if (cd < d) {
a = this.selLayer._rotation;
d = cd;
rpos = n;
}
n++;
}
this.selLayer._rotation = a;
if (oa != a) {
this.snd = new _root.OSound("Move");
this.selLayer.RPos = rpos;
}
}
}
}
onClipEvent (mouseUp) {
if (this.SelLayer != undefined) {
var cdx = ((_xmouse * _xmouse) + (_ymouse * _ymouse));
var mdx = ((_root.NLaers * this.DBall) + this.RBall);
mdx = mdx * mdx;
if ((mdx < cdx) || (this.selLayer._rotation == this.selStartAngle)) {
this.selLayer._rotation = this.selStartAngle;
} else {
delete this.State;
this.State = new _root.Games[_root.curGame].OnRotate(this, this.selLayer, this.selLayer.RPos);
}
this.selLayer = (selBall = undefined);
eval ("this.C" + this._nl)._visible = false;
eval ("this.C" + (this._nl + 1))._visible = false;
}
}
Symbol 41 MovieClip [Balls] Frame 1
stop();
Symbol 41 MovieClip [Balls] Frame 2
stop();
Symbol 41 MovieClip [Balls] Frame 3
stop();
Symbol 41 MovieClip [Balls] Frame 4
stop();
Symbol 41 MovieClip [Balls] Frame 5
stop();
Symbol 41 MovieClip [Balls] Frame 6
stop();
Symbol 41 MovieClip [Balls] Frame 7
stop();
Symbol 41 MovieClip [Balls] Frame 9
stop();
Symbol 41 MovieClip [Balls] Frame 14
stop();
Symbol 41 MovieClip [Balls] Frame 15
var snd = (new _root.OSound("Bulk"));
Symbol 41 MovieClip [Balls] Frame 24
gotoAndStop (9);
stop();
Symbol 41 MovieClip [Balls] Frame 25
var snd = (new _root.OSound("Bulk"));
Symbol 41 MovieClip [Balls] Frame 34
gotoAndStop (9);
stop();
Symbol 41 MovieClip [Balls] Frame 35
var snd = (new _root.OSound("Bulk"));
Symbol 41 MovieClip [Balls] Frame 44
gotoAndStop (9);
stop();
Symbol 41 MovieClip [Balls] Frame 45
var snd = (new _root.OSound("Bulk"));
Symbol 41 MovieClip [Balls] Frame 54
gotoAndStop (9);
stop();
Symbol 41 MovieClip [Balls] Frame 55
var snd = (new _root.OSound("Bulk"));
Symbol 41 MovieClip [Balls] Frame 64
gotoAndStop (9);
stop();
Symbol 41 MovieClip [Balls] Frame 65
var snd = (new _root.OSound("Bulk"));
Symbol 41 MovieClip [Balls] Frame 74
gotoAndStop (9);
stop();
Symbol 41 MovieClip [Balls] Frame 75
var snd = (new _root.OSound("Bulk"));
Symbol 41 MovieClip [Balls] Frame 83
gotoAndStop (9);
stop();
Symbol 64 MovieClip [Triangles] Frame 1
stop();
Symbol 64 MovieClip [Triangles] Frame 2
stop();
Symbol 64 MovieClip [Triangles] Frame 3
stop();
Symbol 64 MovieClip [Triangles] Frame 4
stop();
Symbol 64 MovieClip [Triangles] Frame 5
stop();
Symbol 64 MovieClip [Triangles] Frame 6
stop();
Symbol 64 MovieClip [Triangles] Frame 7
stop();
Symbol 64 MovieClip [Triangles] Frame 9
stop();
Symbol 64 MovieClip [Triangles] Frame 15
var snd = (new _root.OSound("Bulk"));
Symbol 64 MovieClip [Triangles] Frame 21
gotoAndStop (9);
Symbol 64 MovieClip [Triangles] Frame 25
var snd = (new _root.OSound("Bulk"));
Symbol 64 MovieClip [Triangles] Frame 31
gotoAndStop (9);
Symbol 64 MovieClip [Triangles] Frame 35
var snd = (new _root.OSound("Bulk"));
Symbol 64 MovieClip [Triangles] Frame 41
gotoAndStop (9);
Symbol 64 MovieClip [Triangles] Frame 45
var snd = (new _root.OSound("Bulk"));
Symbol 64 MovieClip [Triangles] Frame 51
gotoAndStop (9);
Symbol 64 MovieClip [Triangles] Frame 56
var snd = (new _root.OSound("Bulk"));
Symbol 64 MovieClip [Triangles] Frame 61
gotoAndStop (9);
Symbol 64 MovieClip [Triangles] Frame 65
var snd = (new _root.OSound("Bulk"));
Symbol 64 MovieClip [Triangles] Frame 71
gotoAndStop (9);
Symbol 64 MovieClip [Triangles] Frame 75
var snd = (new _root.OSound("Bulk"));
Symbol 64 MovieClip [Triangles] Frame 81
gotoAndStop (9);
Symbol 80 MovieClip [Square] Frame 1
stop();
Symbol 80 MovieClip [Square] Frame 2
stop();
Symbol 80 MovieClip [Square] Frame 3
stop();
Symbol 80 MovieClip [Square] Frame 4
stop();
Symbol 80 MovieClip [Square] Frame 5
stop();
Symbol 80 MovieClip [Square] Frame 6
stop();
Symbol 80 MovieClip [Square] Frame 7
stop();
Symbol 80 MovieClip [Square] Frame 9
stop();
Symbol 80 MovieClip [Square] Frame 15
var snd = (new _root.OSound("Bulk"));
Symbol 80 MovieClip [Square] Frame 24
gotoAndStop (9);
Symbol 80 MovieClip [Square] Frame 25
var snd = (new _root.OSound("Bulk"));
Symbol 80 MovieClip [Square] Frame 34
gotoAndStop (9);
Symbol 80 MovieClip [Square] Frame 35
var snd = (new _root.OSound("Bulk"));
Symbol 80 MovieClip [Square] Frame 44
gotoAndStop (9);
Symbol 80 MovieClip [Square] Frame 45
var snd = (new _root.OSound("Bulk"));
Symbol 80 MovieClip [Square] Frame 54
gotoAndStop (9);
Symbol 80 MovieClip [Square] Frame 55
var snd = (new _root.OSound("Bulk"));
Symbol 80 MovieClip [Square] Frame 64
gotoAndStop (9);
Symbol 80 MovieClip [Square] Frame 65
var snd = (new _root.OSound("Bulk"));
Symbol 80 MovieClip [Square] Frame 74
gotoAndStop (9);
Symbol 80 MovieClip [Square] Frame 75
var snd = (new _root.OSound("Bulk"));
Symbol 80 MovieClip [Square] Frame 84
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 1
stop();
Symbol 99 MovieClip [Chakres] Frame 2
stop();
Symbol 99 MovieClip [Chakres] Frame 3
stop();
Symbol 99 MovieClip [Chakres] Frame 4
stop();
Symbol 99 MovieClip [Chakres] Frame 5
stop();
Symbol 99 MovieClip [Chakres] Frame 6
stop();
Symbol 99 MovieClip [Chakres] Frame 7
stop();
Symbol 99 MovieClip [Chakres] Frame 9
stop();
Symbol 99 MovieClip [Chakres] Frame 15
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 24
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 25
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 34
stop();
Symbol 99 MovieClip [Chakres] Frame 35
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 44
stop();
Symbol 99 MovieClip [Chakres] Frame 45
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 54
stop();
Symbol 99 MovieClip [Chakres] Frame 55
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 64
stop();
Symbol 99 MovieClip [Chakres] Frame 65
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 74
stop();
Symbol 99 MovieClip [Chakres] Frame 75
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 99 MovieClip [Chakres] Frame 83
stop();
Symbol 103 MovieClip [TIndicator] Frame 1
function Bonus() {
this.Spectr._rotation = this.Spectr._rotation + ((this.TRStep = (90 * this.TRStep) / this.TRange));
if (0 < this.Spectr._rotation) {
this.Spectr._rotation = 0;
}
}
if (this.Init == undefined) {
this.TRange = _root.TRange;
this.TStep = _root.TStep;
this.TLStep = _root.TLStep;
this.TRStep = _root.TRStep;
}
this.Spectr._rotation = this.Spectr._rotation + ((90 * this.TStep) / this.TRange);
if (90 < Math.abs(this.Spectr._rotation)) {
this.Spectr._rotation = -90;
_root.GameField.Game.Field.attachMovie("msgGameOver", "msgBox", _root.MsgDeep);
_root.GameField.Game.Field.msgBox.Msg = _root.Messages[0];
}
Symbol 103 MovieClip [TIndicator] Frame 2
gotoAndPlay (1);
Instance of Symbol 106 MovieClip in Symbol 107 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_root.curGame != 1) {
if (Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse)) < (this._width / 2)) {
_parent._parent.StartDrag();
}
}
}
onClipEvent (mouseUp) {
if (_root.curGame != 1) {
_parent._parent.StopDrag();
}
}
Symbol 113 Button
on (release) {
_root.msgYouSureOK();
}
Symbol 118 Button
on (release) {
_root.msgYouSureNo();
}
Instance of Symbol 106 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_root.curGame != 1) {
if (Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse)) < (this._width / 2)) {
_parent._parent.StartDrag();
}
}
}
onClipEvent (mouseUp) {
if (_root.curGame != 1) {
_parent._parent.StopDrag();
}
}
Symbol 124 MovieClip [msgGameOver] Frame 1
if (_root.GameField.Game.Field.msgDemoBox != undefined) {
gotoAndPlay (5);
} else {
stop();
}
Instance of Symbol 106 MovieClip in Symbol 124 MovieClip [msgGameOver] Frame 1
onClipEvent (mouseDown) {
if (_root.curGame != 1) {
if (Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse)) < (this._width / 2)) {
_parent._parent.StartDrag();
}
}
}
onClipEvent (mouseUp) {
if (_root.curGame != 1) {
_parent._parent.StopDrag();
}
}
Symbol 124 MovieClip [msgGameOver] Frame 11
_root.msgYouSureOK();
Symbol 126 Button
on (release) {
_root.msgYouSureOK();
}
Instance of Symbol 106 MovieClip in Symbol 127 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_root.curGame != 1) {
if (Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse)) < (this._width / 2)) {
_parent._parent.StartDrag();
}
}
}
onClipEvent (mouseUp) {
if (_root.curGame != 1) {
_parent._parent.StopDrag();
}
}
Symbol 128 MovieClip [msgCongratulation] Frame 1
if (_root.GameField.Game.Field.msgDemoBox != undefined) {
gotoAndPlay (5);
} else {
stop();
}
Instance of Symbol 106 MovieClip in Symbol 128 MovieClip [msgCongratulation] Frame 1
onClipEvent (mouseDown) {
if (_root.curGame != 1) {
if (Math.sqrt((_xmouse * _xmouse) + (_ymouse * _ymouse)) < (this._width / 2)) {
_parent._parent.StartDrag();
}
}
}
onClipEvent (mouseUp) {
if (_root.curGame != 1) {
_parent._parent.StopDrag();
}
}
Symbol 128 MovieClip [msgCongratulation] Frame 10
_root.msgYouSureOK();
Instance of Symbol 134 MovieClip "Watch" in Symbol 135 MovieClip [cWatchGlass] Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 3.52941176470588;
}
Symbol 136 MovieClip [Chakres] Frame 1
stop();
Symbol 136 MovieClip [Chakres] Frame 2
stop();
Symbol 136 MovieClip [Chakres] Frame 3
stop();
Symbol 136 MovieClip [Chakres] Frame 4
stop();
Symbol 136 MovieClip [Chakres] Frame 5
stop();
Symbol 136 MovieClip [Chakres] Frame 6
stop();
Symbol 136 MovieClip [Chakres] Frame 7
stop();
Symbol 136 MovieClip [Chakres] Frame 9
stop();
Symbol 136 MovieClip [Chakres] Frame 15
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 24
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 25
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 34
stop();
Symbol 136 MovieClip [Chakres] Frame 35
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 44
stop();
Symbol 136 MovieClip [Chakres] Frame 45
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 54
stop();
Symbol 136 MovieClip [Chakres] Frame 55
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 64
stop();
Symbol 136 MovieClip [Chakres] Frame 65
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 74
stop();
Symbol 136 MovieClip [Chakres] Frame 75
var snd = (new _root.OSound("Bulk"));
gotoAndStop (9);
Symbol 136 MovieClip [Chakres] Frame 83
stop();
Symbol 137 MovieClip [Triangles] Frame 1
stop();
Symbol 137 MovieClip [Triangles] Frame 2
stop();
Symbol 137 MovieClip [Triangles] Frame 3
stop();
Symbol 137 MovieClip [Triangles] Frame 4
stop();
Symbol 137 MovieClip [Triangles] Frame 5
stop();
Symbol 137 MovieClip [Triangles] Frame 6
stop();
Symbol 137 MovieClip [Triangles] Frame 7
stop();
Symbol 137 MovieClip [Triangles] Frame 9
stop();
Symbol 137 MovieClip [Triangles] Frame 15
var snd = (new _root.OSound("Bulk"));
Symbol 137 MovieClip [Triangles] Frame 21
gotoAndStop (9);
Symbol 137 MovieClip [Triangles] Frame 25
var snd = (new _root.OSound("Bulk"));
Symbol 137 MovieClip [Triangles] Frame 31
gotoAndStop (9);
Symbol 137 MovieClip [Triangles] Frame 35
var snd = (new _root.OSound("Bulk"));
Symbol 137 MovieClip [Triangles] Frame 41
gotoAndStop (9);
Symbol 137 MovieClip [Triangles] Frame 45
var snd = (new _root.OSound("Bulk"));
Symbol 137 MovieClip [Triangles] Frame 51
gotoAndStop (9);
Symbol 137 MovieClip [Triangles] Frame 56
var snd = (new _root.OSound("Bulk"));
Symbol 137 MovieClip [Triangles] Frame 61
gotoAndStop (9);
Symbol 137 MovieClip [Triangles] Frame 65
var snd = (new _root.OSound("Bulk"));
Symbol 137 MovieClip [Triangles] Frame 71
gotoAndStop (9);
Symbol 137 MovieClip [Triangles] Frame 75
var snd = (new _root.OSound("Bulk"));
Symbol 137 MovieClip [Triangles] Frame 81
gotoAndStop (9);
Symbol 138 MovieClip [Balls] Frame 1
stop();
Symbol 138 MovieClip [Balls] Frame 2
stop();
Symbol 138 MovieClip [Balls] Frame 3
stop();
Symbol 138 MovieClip [Balls] Frame 4
stop();
Symbol 138 MovieClip [Balls] Frame 5
stop();
Symbol 138 MovieClip [Balls] Frame 6
stop();
Symbol 138 MovieClip [Balls] Frame 7
stop();
Symbol 138 MovieClip [Balls] Frame 9
stop();
Symbol 138 MovieClip [Balls] Frame 14
stop();
Symbol 138 MovieClip [Balls] Frame 15
var snd = (new _root.OSound("Bulk"));
Symbol 138 MovieClip [Balls] Frame 24
gotoAndStop (9);
stop();
Symbol 138 MovieClip [Balls] Frame 25
var snd = (new _root.OSound("Bulk"));
Symbol 138 MovieClip [Balls] Frame 34
gotoAndStop (9);
stop();
Symbol 138 MovieClip [Balls] Frame 35
var snd = (new _root.OSound("Bulk"));
Symbol 138 MovieClip [Balls] Frame 44
gotoAndStop (9);
stop();
Symbol 138 MovieClip [Balls] Frame 45
var snd = (new _root.OSound("Bulk"));
Symbol 138 MovieClip [Balls] Frame 54
gotoAndStop (9);
stop();
Symbol 138 MovieClip [Balls] Frame 55
var snd = (new _root.OSound("Bulk"));
Symbol 138 MovieClip [Balls] Frame 64
gotoAndStop (9);
stop();
Symbol 138 MovieClip [Balls] Frame 65
var snd = (new _root.OSound("Bulk"));
Symbol 138 MovieClip [Balls] Frame 74
gotoAndStop (9);
stop();
Symbol 138 MovieClip [Balls] Frame 75
var snd = (new _root.OSound("Bulk"));
Symbol 138 MovieClip [Balls] Frame 83
gotoAndStop (9);
stop();
Symbol 139 MovieClip [Square] Frame 1
stop();
Symbol 139 MovieClip [Square] Frame 2
stop();
Symbol 139 MovieClip [Square] Frame 3
stop();
Symbol 139 MovieClip [Square] Frame 4
stop();
Symbol 139 MovieClip [Square] Frame 5
stop();
Symbol 139 MovieClip [Square] Frame 6
stop();
Symbol 139 MovieClip [Square] Frame 7
stop();
Symbol 139 MovieClip [Square] Frame 9
stop();
Symbol 139 MovieClip [Square] Frame 15
var snd = (new _root.OSound("Bulk"));
Symbol 139 MovieClip [Square] Frame 24
gotoAndStop (9);
Symbol 139 MovieClip [Square] Frame 25
var snd = (new _root.OSound("Bulk"));
Symbol 139 MovieClip [Square] Frame 34
gotoAndStop (9);
Symbol 139 MovieClip [Square] Frame 35
var snd = (new _root.OSound("Bulk"));
Symbol 139 MovieClip [Square] Frame 44
gotoAndStop (9);
Symbol 139 MovieClip [Square] Frame 45
var snd = (new _root.OSound("Bulk"));
Symbol 139 MovieClip [Square] Frame 54
gotoAndStop (9);
Symbol 139 MovieClip [Square] Frame 55
var snd = (new _root.OSound("Bulk"));
Symbol 139 MovieClip [Square] Frame 64
gotoAndStop (9);
Symbol 139 MovieClip [Square] Frame 65
var snd = (new _root.OSound("Bulk"));
Symbol 139 MovieClip [Square] Frame 74
gotoAndStop (9);
Symbol 139 MovieClip [Square] Frame 75
var snd = (new _root.OSound("Bulk"));
Symbol 139 MovieClip [Square] Frame 84
gotoAndStop (9);
Symbol 144 Button
on (release) {
if (this.enabled) {
Change();
}
}
Symbol 147 MovieClip Frame 1
function Init() {
if (this.Checked == undefined) {
this.Checked = false;
}
if (this.enabled == undefined) {
this.enabled = true;
}
}
function SetStatus() {
this.Indicator._visible = this.Checked;
}
function Change() {
var name = this._name.substr(0, this._name.length - 1);
var n = 0;
do {
var b = eval (("_parent." + name) + n);
b.Checked = false;
n++;
} while (b != undefined);
if (this.Checked) {
this.Checked = false;
} else {
this.Checked = true;
}
SetStatus();
}
Init();
Symbol 147 MovieClip Frame 2
SetStatus();
Symbol 147 MovieClip Frame 3
gotoAndPlay (2);
Symbol 160 Button
on (release) {
_root.OnOptionsOk(this);
}
Symbol 162 Button
on (release) {
_root.OnOptionsCancel(this);
}
Symbol 169 MovieClip [FlyScore] Frame 1
if (this.init == undefined) {
this.init = true;
this.c = 12;
} else {
this._y--;
if (0 >= (--this.c)) {
removeMovieClip(this);
stop();
}
}
Symbol 169 MovieClip [FlyScore] Frame 2
gotoAndPlay (1);
Symbol 173 MovieClip [msgDemo] Frame 1
stop();
Instance of Symbol 172 MovieClip in Symbol 173 MovieClip [msgDemo] Frame 1
onClipEvent (mouseUp) {
_root.isDemo = false;
}
Symbol 173 MovieClip [msgDemo] Frame 2
removeMovieClip(this);
Symbol 177 Button
on (release) {
removeMovieClip(this);
_root.GameField.Game.Field.Timer.play();
}
Symbol 183 Button
on (release) {
this.Msg = _root.MsgHelp[0];
this.Glass1._alpha = 0;
this.Glass2._alpha = 80;
this.Glass3._alpha = 80;
}
Symbol 184 Button
on (release) {
this.Msg = _root.MsgHelp[1];
this.Glass1._alpha = 80;
this.Glass2._alpha = 0;
this.Glass3._alpha = 80;
}
Symbol 185 Button
on (release) {
this.Msg = _root.MsgHelp[2];
this.Glass1._alpha = 80;
this.Glass2._alpha = 80;
this.Glass3._alpha = 0;
}
Instance of Symbol 175 MovieClip in Symbol 190 MovieClip [msgHelp] Frame 1
onClipEvent (load) {
_parent.Msg = _root.MsgHelp[_root.curGame];
_parent.Glass1._alpha = 80;
_parent.Glass2._alpha = 80;
_parent.Glass3._alpha = 80;
eval ("_parent.Glass" + (_root.curGame + 1))._alpha = 0;
}
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 5
stop();
Symbol 205 MovieClip Frame 8
gotoAndStop (1);
Symbol 205 MovieClip Frame 12
gotoAndStop (1);
Symbol 207 Button
on (rollOver) {
this.knop1.gotoAndPlay(2);
ShowTip(_root.Message24);
}
on (rollOut) {
this.knop1.gotoAndPlay(6);
HideTip();
}
on (release) {
_root.OnNewGame();
}
on (keyPress "n") {
_root.OnNewGame();
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 5
stop();
Symbol 214 Button
on (rollOver) {
this.knop2.gotoAndPlay(2);
_root.SBar.msg0 = _root.Message27;
}
on (rollOut) {
this.knop2.gotoAndPlay(6);
_root.SBar.msg0 = "";
}
on (release) {
_root.AbsLink();
}
Symbol 215 Button
on (release) {
_root.OnHelp();
}
on (rollOver) {
ShowTip(_root.Message26);
}
on (rollOut) {
HideTip();
}
Symbol 218 Button
on (release) {
_root.OnOptions();
}
on (rollOver) {
ShowTip(_root.Message25);
}
on (rollOut) {
HideTip();
}
Symbol 219 Button
on (release) {
if (_root.isDemo != true) {
_root.isDemo = true;
} else {
_root.isDemo = false;
}
OnStock();
trace(_root.isDemo);
}
on (rollOver) {
ShowTip(_root.Message23);
}
on (rollOut) {
HideTip();
}
Symbol 220 MovieClip Frame 1
function Init() {
if (this.enabled == undefined) {
this.enabled = true;
}
CheckGr();
}
function CheckGr() {
if (this.enabled) {
this.gr1._visible = false;
this.gr2._visible = false;
this.gr3._visible = false;
this.gr4._visible = false;
} else {
this.gr1._visible = true;
this.gr2._visible = true;
this.gr3._visible = true;
this.gr4._visible = true;
}
}
function OnStock() {
if (this.enabled) {
_root.ShowStock();
}
}
function OnNewGame() {
if (this.enabled) {
_root.StartNewGame();
}
}
function OnOptions() {
if (this.enabled) {
_root.ShowOptions();
}
}
function OnHelp() {
if (this.enabled) {
_root.ShowHelp();
}
}
function ShowTip(m) {
if (this.enabled) {
_root.SBar.msg0 = m;
}
}
function HideTip() {
_root.SBar.msg0 = "";
}
Symbol 220 MovieClip Frame 2
CheckGr();
Symbol 220 MovieClip Frame 3
gotoAndPlay (2);
Symbol 235 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=star";
getURL (sd, "blank");
}