Frame 1
function ShowMessage(msg) {
if ((Xpos == undefined) || (Xpos == 0)) {
Xpos = 0;
Ypos = 150;
}
if (Xpos >= 700) {
Xpos = 0;
Ypos = 150;
return(true);
}
attachMovie(msg, msg + Xpos, DeepMessageShow + xpos);
var tmp = eval (msg + Xpos);
tmp._x = Xpos;
Ypos = Ypos + (random(4) - 2);
tmp._y = Ypos;
Xpos = Xpos + 15;
return(false);
}
function SetScores(num, xpos, ypos, startdeep) {
var scoreOffX = 460;
var scoreOffY = 25;
var scoreDeep = DeepScores;
if (((xpos != undefined) && (ypos != undefined)) && (startdeep != undefined)) {
ScoreOffX = xpos;
ScoreOffY = ypos;
scoreDeep = startdeep;
}
var scoreStepX = 6;
var scoreMagnify = 2;
var str = new String(num);
var n = 0;
while (n < str.length) {
var char = str.charAt(n);
var clipID = ("N" + char);
var clipName = (("Scores" + scoreOffY) + n);
var m = 0;
while (m < 10) {
var oldClipName = eval (clipName + m);
if ((oldClipName != undefined) && (oldClipName != eval (clipName + char))) {
oldClipName.gotoAndPlay("Delete");
}
m++;
}
clipName = clipName + char;
if (eval (clipName) == undefined) {
this.attachMovie(clipID, clipName, (scoreDeep + (n * 10)) + char);
clipName = eval (clipName);
clipName._x = scoreOffX + ((n * scoreStepX) * scoreMagnify);
clipName._y = scoreOffY;
clipName._width = clipName._width * scoreMagnify;
clipName._height = clipName._height * scoreMagnify;
clipName.gotoAndPlay("Create");
}
n++;
}
}
function ClearIslands() {
var row = new Object();
row.row = RowMin;
row.num = -1;
var sp = new Array();
ClearCheckAtribute();
var n = 0;
while (n < (6 * RowMin)) {
if (Balls[RowMin][n].isLive && (!Balls[RowMin][n].isChecked)) {
row.num = n;
row.row = RowMin;
Balls[RowMin][n].isChecked = true;
sp.push(RowToX(row.row, row.num));
sp.push(RowToY(row.row, row.num));
do {
var y = sp.pop();
var x = sp.pop();
var m = 0;
while (m < 6) {
LogToNum(x + OffX[m], y + OffY[m], row);
if ((Balls[row.row][row.num].isChecked == false) && (Balls[row.row][row.num].isLive)) {
sp.push(x + OffX[m]);
sp.push(y + OffY[m]);
}
Balls[row.row][row.num].isChecked = true;
m++;
}
} while (0 < sp.length);
}
n++;
}
var ret = 0;
row.row = RowMin;
while (row.row < RowMax) {
row.num = 0;
while (row.num < (6 * row.row)) {
if ((Balls[row.row][row.num].isLive == true) && (Balls[row.row][row.num].isChecked == false)) {
RemoveBall(Balls[row.row][row.num], "DeathIslands");
ret++;
}
row.num++;
}
row.row++;
}
return(ret);
}
function RemoveBall(ball, FrameName) {
ball.isChecked = true;
ball.isLive = false;
NumBalls--;
BallCollorIncuse[ball.collor]--;
ball.gotoAndPlay(FrameName);
if ((State == ST_CH_COLOR) || (State == ST_CH_ISLANDS)) {
if (BallCollorIncuse[ball.collor] == 0) {
PlaySound("Incuse");
var collor = ball.collor;
BallCollorIncuse[collor] = -1;
isIncuse = true;
}
}
}
function ClearCheckAtribute() {
var row = RowMin;
while (row < RowMax) {
var num = 0;
while (num < (row * 6)) {
Balls[row][num].isChecked = false;
Balls[row][num]._alpha = 100;
num++;
}
row++;
}
}
function CheckColorConsist(lx, ly) {
var ret = State;
var nconsist = 1;
var comp_col = HitBall.collor;
var sp = new Array();
var fordel = new Array();
ClearCheckAtribute();
sp.Push(lx);
sp.Push(ly);
do {
var y = sp.pop();
var x = sp.pop();
var n = 0;
while (n < 6) {
var row = new Object();
LogToNum(x + OffX[n], y + OffY[n], row);
if (((Balls[row.row][row.num].isChecked == false) && (Balls[row.row][row.num].collor == comp_col)) && (Balls[row.row][row.num].isLive)) {
sp.push(x + OffX[n]);
sp.push(y + OffY[n]);
Balls[row.row][row.num]._alpha = 70;
fordel.push(row.row);
fordel.push(row.num);
nconsist++;
}
Balls[row.row][row.num].isChecked = true;
n++;
}
} while (0 < sp.length);
if (MinBallsForDell < nconsist) {
while (0 < fordel.length) {
var n = fordel.pop();
var r = fordel.pop();
RemoveBall(Balls[r][n], "DeathEquals");
ret = ST_CH_ISLANDS;
curScores = curScores + 10;
}
if (isBallCollision) {
PlaySound("Well");
}
isBallCollision = false;
} else {
if ((--CurentAttempt) < 0) {
var n_incuse = 0;
var n = 0;
while (n < BallCollorNum) {
if (BallCollorIncuse[n] == -1) {
n_incuse++;
}
n++;
}
CurentAttempt = incusAttempt[n_incuse];
numShift = incusShift[n_incuse];
ret = ST_SHIFT;
} else {
ret = ST_SET_COLLOR;
}
SetScores(CurentAttempt, 490, 75, DeepAttemp);
if (isBallCollision && (nconsist < 3)) {
PlaySound("boo");
isBallCollision = false;
}
}
isBallCollision = false;
return(ret);
}
function GameInit() {
isBallCollision = false;
Center._x = NetOffX;
Center._y = NetOffY;
Center._visible = false;
var n = 0;
while (n != BallCollorNum) {
BallCollorIncuse[n] = 0;
n++;
}
isIncuse = false;
if (hiScores < curScores) {
HiScores = curScores;
}
curScores = 0;
SetScores(curScores);
SetScores(hiScores, 460, 55, DeepHIScores);
WaitCounter = 0;
BallDeep = 0;
CurentAttempt = 0;
SetScores(CurentAttempt, 490, 75, DeepAttemp);
var collor = int(random(BallCollorNum));
if (isDemo) {
collor = DemoHitBallCollor[DemoHitBallCollor.pos];
DemoHitBallCollor.pos++;
} else if (isDemoRecord) {
DemoHitBallCollor.push(collor);
}
CreateHitBalls(collor);
var n = RowMin;
while (RowMax >= n) {
Balls[n] = [];
var m = 0;
while ((n * 6) >= m) {
Balls[n][m] = "";
m++;
}
Balls[n][m].isLive = false;
n++;
}
NumBalls = 0;
var n = 0;
if (isDemo == true) {
var end = RowMax;
} else {
var end = RowStart;
}
var row = RowMin;
while (row < end) {
var off = 0;
while (off < (row * 6)) {
var collor = int(random(BallCollorNum));
if (isDemo) {
collor = DemoStartBallCollor[DemoStartBallCollor.pos];
DemoStartBallCollor.pos++;
} else if (isDemoRecord) {
DemoStartBallCollor.push(collor);
}
CreateBall(row, off, collor);
off++;
}
row++;
}
Hexagon = "Hexagon0";
Hexagon = attachMovie("Hexagon", Hexagon, DeepHexagon);
Hexagon = Hexagon0;
Hexagon._width = ((NetStepX * 2) + NetStepX) * 2;
Hexagon._height = (NetStepY * 2) + NetStepY;
Hexagon.Magnify = 2;
Hexagon._x = NetOffX;
Hexagon._y = NetOffY;
SetNextCollor();
}
function GameDestroy() {
var n1 = 0;
while (n1 < 10) {
var n2 = 0;
while (n2 < 10) {
var point = (("Scores55" + n1) + n2);
point = eval (point);
if (point != undefined) {
point.removeMovieClip();
}
var point = (("Scores115" + n1) + n2);
point = eval (point);
if (point != undefined) {
point.removeMovieClip();
}
var point = (("Scores175" + n1) + n2);
point = eval (point);
if (point != undefined) {
point.removeMovieClip();
}
n2++;
}
n1++;
}
var n = RowMin;
while (RowMax >= n) {
var m = 0;
while ((n * 6) >= m) {
if (Balls[n][m] != "") {
Balls[n][m].removeMovieClip();
}
m++;
}
n++;
}
}
function GetAngle(hx, hy, tx, ty) {
var dx = (tx - hx);
var dy = (ty - hy);
ret = Math.asin(dy / Math.sqrt((dx * dx) + (dy * dy)));
if (dx < 0) {
ret = -3.14159265358979 - ret;
}
if (ret < -3.14159265358979) {
ret = ret + (Math.PI*2);
}
return(ret);
}
function TestHit(x, y, lx, ly) {
var row = new Object();
LogToNum(lx, ly, row);
if (Balls[row.row][row.num].isLive || (row.row < RowMin)) {
if (HitRadius >= GetDistance(x, y, lx * NetStepX, ly * NetStepY)) {
return(false);
}
return(true);
}
return(true);
}
function TestCollisionBall(x, y, lx, ly) {
if ((((((TestHit(x, y, lx + 2, ly) && (TestHit(x, y, lx + 1, ly - 1))) && (TestHit(x, y, lx - 1, ly - 1))) && (TestHit(x, y, lx - 2, ly))) && (TestHit(x, y, lx - 1, ly + 1))) && (TestHit(x, y, lx + 1, ly + 1))) && (TestHit(x, y, lx, ly))) {
return(false);
}
return(true);
}
function TestCollisionWalls() {
var a = new Array(0, (-PI) / 3, ((-PI) * 2) / 3, PI, (PI * 2) / 3, PI / 3);
var ret = false;
var n = 0;
while (n < 6) {
var tx = (HitStartX + ((BallSpeed * HitPhase) * HitDX));
var ty = (HitStartY + ((BallSpeed * HitPhase) * HitDY));
var distance = Math.sqrt((tx * tx) + (ty * ty));
var azimuth = GetAngle(0, 0, tx, ty);
var a1 = (a[n] - azimuth);
var a2 = (((PI * 2) / 3) - a1);
if (((n != HitEdge) && (a1 >= 0)) && ((PI / 3) >= a1)) {
var maxdistance = (((((RowMax * NetStepX) * 2) - (NetStepX * 2)) * Math.sin(PI / 3)) / Math.sin(a2));
var towall = int(maxdistance - distance);
if (0 >= towall) {
HitStartX = maxdistance * Math.cos(azimuth);
HitStartY = maxdistance * Math.sin(azimuth);
da = new Array((PI * 2) / 3, 0, ((-PI) * 2) / 3, (PI * 2) / 3, 0, ((-PI) * 2) / 3);
HitAngle = da[n] - HitAngle;
HitAngle = HitAngle % (PI * 2);
HitDX = BallSpeed * Math.cos(HitAngle);
HitDY = BallSpeed * Math.sin(HitAngle);
HitEdge = n;
HitPhase = 0;
PlaySound("Click");
isBallCollision = true;
if (n == HitStartEdge) {
ret = true;
}
}
}
n++;
}
return(ret);
}
function HitBallMove() {
var ret = State;
var tx = (HitStartX + ((BallSpeed * HitPhase) * HitDX));
var ty = (HitStartY + ((BallSpeed * HitPhase) * HitDY));
var lpos = new Object();
PhisToLog(tx, ty, lpos);
var row = new Object();
LogToNum(lpos.x, lpos.y, row);
if (row.row >= (RowMax - 1)) {
}
if (TestCollisionWalls(tx, ty, lpos.x, lpos.y)) {
ret = ST_SHIFT;
numSHift = 1;
PlaySound("boo");
HitBall._visible = false;
return(ret);
}
if (!TestCollisionBall(tx, ty, lpos.x, lpos.y)) {
tx = HitStartX + ((BallSpeed * HitPhase) * HitDX);
ty = HitStartY + ((BallSpeed * HitPhase) * HitDY);
HitBall._x = tx + NetOffX;
HitBall._y = ty + NetOffY;
HitPhase++;
} else {
if (Balls[row.row][row.num].isLive || (row.row < RowMin)) {
do {
HitPhase = HitPhase - BackStep;
tx = HitStartX + ((BallSpeed * HitPhase) * HitDX);
ty = HitStartY + ((BallSpeed * HitPhase) * HitDY);
PhisToLog(tx, ty, lpos);
LogToNum(lpos.x, lpos.y, row);
} while ((row.row < RowMin) || (Balls[row.row][row.num].isLive == true));
}
HitBall._visible = false;
if (row.row < RowMax) {
CreateBall(row.row, row.num, HitBall.collor);
PlaySound("Click");
HitStartX = lpos.x;
HitStartY = lpos.y;
ret = ST_CH_COLOR;
} else {
ret = ST_GAMEOVER;
}
}
return(ret);
}
function RowToX(row, num) {
if ((row * 6) < num) {
trace("Error in RowToX");
}
var ret;
var off = int(num % row);
var nang = int(num / row);
if (nang == 0) {
ret = (row * 2) - off;
} else if (nang == 1) {
ret = row - (off * 2);
} else if (nang == 2) {
ret = -(row + off);
}
if (nang == 3) {
ret = -((row * 2) - off);
}
if (nang == 4) {
ret = -(row - (off * 2));
}
if (nang == 5) {
ret = row + off;
}
return(ret);
}
function RowToY(row, num) {
if ((row * 6) < num) {
trace("Error in RowToY");
}
var ret;
var off = int(num % row);
var nang = int(num / row);
if ((nang == 0) || (nang == 3)) {
ret = off;
} else if ((nang == 1) || (nang == 4)) {
ret = row;
} else if ((nang == 2) || (nang == 5)) {
ret = row - off;
}
if (((nang == 0) || (nang == 1)) || (nang == 2)) {
ret = -ret;
}
return(ret);
}
function LogToRow(x, y) {
if ((Math.abs(y) - 2) >= Math.abs(x)) {
return(Math.abs(y));
}
return((Math.abs(x) + Math.abs(y)) / 2);
}
function LogToNum(x, y, retvalue) {
var row = LogToRow(x, y);
var ret = ((row * 2) - Math.abs(x));
if (Math.abs(x) < row) {
ret = ret - ((row - Math.abs(x)) / 2);
}
if ((0 >= x) && (0 >= y)) {
ret = (row * 3) - ret;
} else if ((0 >= x) && (y >= 0)) {
ret = ret + (row * 3);
} else if ((0 < x) && (0 < y)) {
ret = (row * 6) - ret;
}
retvalue.num = ret;
retvalue.row = row;
return(ret);
}
function GetDepth(row, num) {
return(((row * (row - 1)) * 3) + num);
}
function CreateBall(row, num, collor) {
if (collor == undefined) {
return(undefined);
}
var x = RowToX(row, num);
var y = RowToY(row, num);
Balls[row][num] = "Circle" + GetDepth(row, num);
attachMovie("Ball", Balls[row][num], GetDepth(row, num));
Balls[row][num] = eval (Balls[row][num]);
Balls[row][num]._x = (Balls[row][num].newx = (x * NetStepX) + NetOffX);
Balls[row][num]._y = (Balls[row][num].newy = (y * NetStepY) + NetOffY);
Balls[row][num]._width = (Balls[row][num]._height = BallRadius * 2);
Balls[row][num].Sight._visible = false;
Balls[row][num].isLive = true;
Balls[row][num].row = row;
Balls[row][num].num = num;
NumBalls++;
BallCollorIncuse[collor]++;
BallFillColor(Balls[row][num], collor);
}
function BallFillColor(ball, collor) {
ball.collor = collor;
var ball_collor = new Color(ball);
var ball_color_transform = new Object();
ball_color_transform.ra = _root.BallCollorRed[collor];
ball_color_transform.rb = 50;
ball_color_transform.ga = _root.BallCollorGreen[collor];
ball_color_transform.gb = 50;
ball_color_transform.ba = _root.BallCollorBlue[collor];
ball_color_transform.bb = 50;
ball_color_transform.aa = 100;
ball_color_transform.ab = 0;
ball_collor.setTransform(ball_color_transform);
}
function CreateHitBalls(collor) {
var row = RowMax;
var n = 0;
while (n < 6) {
Borders[n] = "Border" + n;
attachMovie("Border", Borders[n], DeepBorder + n);
Borders[n] = eval (Borders[n]);
Borders[n]._x = (RowToX(row, n * row) * NetStepX) + NetOffX;
Borders[n]._y = (RowToY(row, n * row) * NetStepY) + NetOffY;
Borders[n]._width = NetStepY;
Borders[n]._height = Math.sqrt((NetStepX * NetStepX) + (NetStepY * NetStepY)) * RowMax;
Borders[n]._rotation = -30 - (n * 60);
var num = (int(row / 2) + (n * row));
var x = RowToX(row, num);
var y = RowToY(row, num);
HitBalls[n] = "Ball" + GetDepth(row, num);
attachMovie("Ball", HitBalls[n], GetDepth(row, num));
HitBalls[n] = eval (HitBalls[n]);
HitBalls[n]._x = (x * NetStepX) + NetOffX;
HitBalls[n]._y = (y * NetStepY) + NetOffY;
HitBalls[n]._width = (HitBalls[n]._height = BallRadius * 2);
HitBalls[n].Sight._visible = false;
BallFillColor(HitBalls[n], collor);
n++;
}
HitBall = "HitBall0";
attachMovie("Ball", HitBall, DeepHitBall);
HitBall = eval (HitBall);
HitBall._x = NetOffX;
HitBall._y = NetOffY;
HitBall._width = (HitBall._height = BallRadius * 2);
HitBall.Sight._visible = false;
HitBall._visible = false;
}
function ShiftBalls() {
var ret = ST_SHIFT;
var row = RowMax;
while (row >= RowMin) {
var num = 0;
while (num < (row * 6)) {
if (Balls[row][num].isLive) {
if ((Balls[row][num]._x != Balls[row][num].newx) || (Balls[row][num]._y != Balls[row][num].newy)) {
if (Balls[row][num]._x != Balls[row][num].newx) {
Balls[row][num]._x = (Balls[row][num]._x + Balls[row][num].newx) / 2;
}
if (Balls[row][num]._y != Balls[row][num].newy) {
Balls[row][num]._y = (Balls[row][num]._y + Balls[row][num].newy) / 2;
}
if ((Math.abs(Balls[row][num]._x - Balls[row][num].newx) < 1) && (Math.abs(Balls[row][num]._y - Balls[row][num].newy) < 1)) {
ret = ST_SET_COLLOR;
}
} else {
newnum = int(num / row) + num;
if ((row % 2) != 0) {
newnum++;
}
CreateBall(row + 1, newnum, Balls[row][num].collor);
Balls[row + 1][newnum].newx = Balls[row + 1][newnum]._x;
Balls[row + 1][newnum].newy = Balls[row + 1][newnum]._y;
Balls[row + 1][newnum]._x = Balls[row][num]._x;
Balls[row + 1][newnum]._y = Balls[row][num]._y;
BallCollorIncuse[Balls[row][num].collor]--;
Balls[row][num].removeMovieClip();
Balls[row][num] = "";
Balls[row][num].isLive = false;
NumBalls--;
}
}
num++;
}
row--;
}
if (ret == ST_SET_COLLOR) {
var num = 0;
while (num < (RowMin * 6)) {
var collor = int(random(BallCollorNum));
while (BallCollorIncuse[collor] == -1) {
collor = int(random(BallCollorNum));
}
if (isDemo) {
collor = DemoStartBallCollor[DemoStartBallCollor.pos];
DemoStartBallCollor.pos++;
} else if (isDemoRecord == true) {
DemoStartBallCollor.push(collor);
}
CreateBall(RowMin, num, collor);
num++;
}
var row = RowMax;
while (row >= RowMin) {
var num = 0;
while (num < (row * 6)) {
if (Balls[row][num].isLive) {
if (Balls[row][num].isLive) {
if (row == RowMax) {
PlaySound("Oy");
ret = ST_GAMEOVER;
return(ret);
}
Balls[row][num]._x = Balls[row][num].newx;
Balls[row][num]._y = Balls[row][num].newy;
}
}
num++;
}
row--;
}
}
return(ret);
}
function GetDistance(x, y, x1, y1) {
return(((x - x1) * (x - x1)) + ((y - y1) * (y - y1)));
}
function Add(n, m) {
var s = false;
if (n < 0) {
s = true;
}
n = Math.abs(n) + m;
if (s) {
n = -n;
}
return(n);
}
function PhisToLog(x, y, retvalue) {
x = x + NetOffX;
y = y + NetOffY;
var y0;
var y1;
var x0;
var x1;
var x2;
y1 = int(y / NetStepY);
y0 = y1 + 1;
x0 = int(x / NetStepX);
if ((((y0 % 2) == 0) && ((x0 % 2) == 0)) || (((y0 % 2) != 0) && ((x0 % 2) != 0))) {
x1 = x0 - 1;
x2 = x0 + 1;
} else {
x1 = x0;
x0 = Add(x0, 1);
x2 = Add(x0, 1);
}
var ret = 0;
var n1 = GetDistance(x, y, x0 * NetStepX, y0 * NetStepY);
var n2 = GetDistance(x, y, x1 * NetStepX, y1 * NetStepY);
if (n2 < n1) {
n1 = n2;
ret = 1;
}
n2 = GetDistance(x, y, x2 * NetStepX, y1 * NetStepY);
if (n2 < n1) {
ret = 2;
}
var offx = (NetOffX / NetStepX);
var offy = (NetOffY / NetStepY);
if (ret == 0) {
retvalue.x = x0 - offx;
retvalue.y = y0 - offy;
}
if (ret == 1) {
retvalue.x = x1 - offx;
retvalue.y = y1 - offy;
}
if (ret == 2) {
retvalue.x = x2 - offx;
retvalue.y = y1 - offy;
}
}
function SetNextCollor(new_collor) {
var str = "Hexagon.NextCollorBall";
if (isDemo) {
collor = DemoHitBallCollor[DemoHitBallCollor.pos];
DemoHitBallCollor.pos++;
} else {
var collor = new_collor;
if (new_collor == undefined) {
collor = int(random(BallCollorNum));
while (BallCollorIncuse[collor] == -1) {
collor = int(random(BallCollorNum));
}
}
}
if (isDemoRecord && (isDemo != true)) {
DemoHitBallCollor.push(collor);
}
var n = 0;
while (n < 6) {
var b = eval (str + n);
BallFillColor(b, collor);
n++;
}
}
function PlaySound(name) {
if (isSound) {
var snd = new Sound();
snd.attachSound(name);
snd.start();
}
}
function OnSelectHitBall(edge) {
_root.HitEdge = edge;
var lpos = new Object();
_root.PhisToLog(_root.HitBalls[edge]._x - NetOffX, _root.HitBalls[edge]._y - NetOffY, lpos);
_root.HitStartEdge = _root.HitEdge;
_root.HitBalls[_root.HitEdge]._rotation = 0;
_root.HitBalls[_root.HitEdge].Sight._visible = true;
_root.HitBalls[_root.HitEdge]._alpha = 80;
_root.HitBalls[_root.HitEdge].Sight._alpha = 100;
_root.State = _root.ST_HIT;
_root.HitStartX = lpos.x * _root.NetStepX;
_root.HitStartY = lpos.y * _root.NetStepY;
_root.PlaySound("shutter");
}
function OnHitBall(hit_angle, hit_edge) {
_root.HitAngle = hit_angle;
_root.HitEdge = hit_edge;
_root.HitPhase = 0;
_root.State = _root.ST_MOVE;
_root.HitDX = _root.BallSpeed * Math.cos(hit_angle);
_root.HitDY = _root.BallSpeed * Math.sin(hit_angle);
_root.HitBalls[hit_edge].Sight._visible = false;
if (_root.isDemoRecord && (_root.isDemo != true)) {
_root.DemoSelectedBall.push(hit_edge);
_root.DemoHitAngle.push(hit_angle);
}
_root.HitBalls[hit_edge]._visible = false;
_root.HitBall._x = _root.HitStartX + _root.NetOffX;
_root.HitBall._y = _root.HitStartY + _root.NetOffY;
_root.BallFillColor(_root.HitBall, _root.HitBalls[0].collor);
_root.HitBall._visible = true;
_root.PlaySound("Shot");
}
function TraceDemo() {
trace("/*----------- START -----------*/");
trace("DemoStartBallCollor = new Array(");
var n = 0;
var str = "";
var tmpstr;
while (((tmpstr = DemoStartBallCollor[n])) != undefined) {
str = (str + tmpstr) + ", ";
n++;
}
trace(str);
trace(");");
var str_collor = "";
var str_edge = "";
var str_angle = "";
var val;
trace("DemoHitBallCollor = new Array(");
n = 0;
while (((val = DemoHitBallCollor[n])) != undefined) {
str_collor = (str_collor + val) + ", ";
n++;
}
trace(str_collor);
trace(");");
n = 0;
while (((val = DemoSelectedBall[n])) != undefined) {
str_edge = (str_edge + DemoSelectedBall[n]) + ",";
str_angle = (str_angle + DemoHitAngle[n]) + ",";
n++;
}
trace("DemoSelectedBall = new Array(");
trace(str_edge);
trace(");");
trace("DemoHitAngle = new Array(");
trace(str_angle);
trace(");");
trace(("DemocurScores = " + DemocurScores) + ";");
trace(("DemohiScores = " + DemohiScores) + ";");
trace(("DemoAttempt = " + DemoAttempt) + ";");
trace("/*------------ END ------------*/");
}
function StartDemo(isSaveOldGame) {
if (isReplayGame != true) {
delete DemoStartBallCollor;
delete DemoHitBallCollor;
delete DemoSelectedBall;
delete DemoHitAngle;
DemocurScores = 0;
DemohiScores = 0;
DemoAttempt = 5;
DemoStartBallCollor = new Array(4, 2, 0, 1, 5, 1, 3, 1, 3, 0, 1, 5, 5, 3, undefined, 1, 1, undefined, 1, 5, undefined, 2, 2, undefined, 5, 0, undefined, 2, 1, undefined, undefined, 0, 1, 0, undefined, 4, 4, 1, undefined, 2, 0, 5, undefined, 3, 2, 1, undefined, 5, 1, 1, undefined, 1, 4, 0, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, 3, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, 1, 4, 0, 2, 4, 4, 3, 1, 4, 0, 0, 4, 4, 1, 2, 2, 0, 1, 4, 0, 2, 2, 4, 5, 4, 0, 0, 0, 0, 4, 1, 2, 4, 2, 2, 0, 1, 0, 4, 4, 1, 0, 2, 1, 4, 2, 4, 2, 1, 2, 4, 5, 5, 1, 5, 5, 1, 2, 5, 0, 5, 5, 2, 1, 5, 1, 4, 2, 4, 1, 4, 5, 4, 2, 1, 1, 1, 5, 1, 5, 4, 1, 2, 1, 5, 5, 5, 1, 5, 5, 4, 1, 4, 1, 5, 4, 1, 2, 1, 2, 5, 4, 4, 1, 4, 2, 4, 5, 2, 1, 1, 1, 1, 2, 5, 1, 2, 5, 2, 1, 2, 5, 1, 2, 1, 2, 2, 5, 2, 2, 1, 2, 2, 1, 2, 2, 5, 5, 2, 2, 5, 1, 1, 1, 5, 1, 5, 1, 1, 1, 5, 1, 5, 1, 5, 5, 5, 5, 1, 5, 5, 5, 1, 1, 1, 5, 5, 5, 1, 1, 1, 5, 1, 1, 5, 1, 1, 5, 1, 5);
DemoHitBallCollor = new Array(0, 2, 0, 4, 4, 1, 0, 5, 5, 4, 3, 3, 0, 1, 5, 2, 1, 5, 3, 3, 4, 2, 0, 2, 4, 0, 2, 0, 4, 5, 2, 4, 1, 4, 5, 0, 0, 5, 0, 0, 1, 1, 0, 2, 2, 1, 4, 2, 1, 2, 2, 4, 5, 1, 2, 1, 1, 2, 5, 5, 4, 4, 2, 2, 5, 2, 5, 5, 5, 1, 5, 5, 5, 1, 1);
DemoSelectedBall = new Array(0, 3, 2, 1, 0, 5, 4, 1, 4, 5, 4, 4, 2, 4, 5, 2, 1, 1, 2, 5, 5, 5, 1, 5, 3, 2, 3, 4, 5, 5, 4, 4, 2, 4, 0, 0, 0, 1, 0, 2, 5, 3, 2, 5, 1, 0, 4, 4, 4, 4, 1, 2, 4, 2, 1, 1, 0, 0, 1, 0, 3, 5, 0, 4, 3, 2, 5, 4, 5, 5, 0, 3, 3, 2);
DemoHitAngle = new Array(1.07057217183295, -0.507038877655779, 0.394674901442396, 1.41522630378878, 1.13500947221633, 3.06969606556178, -1.55106529126698, 1.66030014514651, -1.86368041735975, -2.58911183563374, -1.58794228335797, -1.68556489612816, 0.33689351015449, -1.52710121281379, -2.57623905060548, -0.0333795130529713, 1.86350126326949, 1.80293518194086, 0.90630092770014, -2.09308504014552, -2.52289561701403, -2.28958091315588, 0.962280067270214, -2.30907605547364, -1.9311697738418, 0.289789860494586, -0.175388294512145, -1.37102864389246, -2.55985641744945, -2.67934953804751, -1.92713558613057, -1.80871142559216, 1.06600329382219, -1.96654584060871, 1.88283844835743, 1.22842226443055, 2.43516659793374, 1.67837933718786, 2.41091405167957, 0.285806667648677, -2.30907605547364, -0.285806667648677, 0.376099270283049, 2.28459036153593, 0.0679801933372338, 2.78590966391435, -1.0117847890807, -1.17170141066264, -1.52710121281379, -1.52962873451363, 1.42382974383736, 0.988723344559361, -0.97509198403781, 1.13113497726973, 0.0996686524911621, 1.54787770430513, 1.21561275680501, 2.80164584844325, 1.73545377617886, 2.5035361370948, -0.462843265719613, -2.82603256820507, 1.19416418312141, -3.00388148677775, -0.669774976542439, 0.328944674886934, 2.20389824834746, -2.14305928127906, -2.35865667304656, -2.63914849878621, 2.8199594287714, -1.9731833297519, -0.782761965637819, 0.704900219732317);
}
DemoStartBallCollor.pos = (DemoHitBallCollor.pos = (DemoSelectedBall.pos = (DemoHitAngle.pos = 0)));
attachMovie("DemoMessage", "DemoMessage", DeepDemoMessage);
var inst = DemoMessage;
inst._x = NetOffX;
inst._y = NetOffY;
inst._alpha = 50;
if (isSaveOldGame != false) {
SaveBeforeDemo();
}
GameDestroy();
isDemo = true;
GameInit();
curScores = DemoCurScores;
hiScores = DemoHiScores;
CurentAttempt = DemoAttempt;
SetScores(curScores);
SetScores(hiScores, 460, 55, DeepHIScores);
SetScores(CurentAttempt, 490, 75, DeepAttemp);
State = ST_SELECT;
}
function SaveBeforeDemo() {
DemoOldBallCollor = new Array();
var row = RowMin;
while (row < RowMax) {
var num = 0;
while (num < (row * 6)) {
DemoOldBallCollor.push(Balls[row][num].collor);
num++;
}
row++;
}
DemoOldHitBallCollor = HitBalls[0].collor;
DemoOldNextCollor = Hexagon.NextCollorBall0.collor;
DemoOldCurScores = curScores;
DemoOldHiScores = hiScores;
DemoOldAttempt = CurentAttempt;
var n = 0;
while (n != BallCollorNum) {
OldBallCollorIncuse[n] = BallCollorIncuse[n];
n++;
}
}
function LoadAfterDemo() {
removeMovieClip("DemoMessage");
isDemo = (isReplayGame = false);
GameDestroy();
var n = 0;
while (n != BallCollorNum) {
BallCollorIncuse[n] = OldBallCollorIncuse[n];
n++;
}
isIncuse = false;
curScores = DemoOldCurScores;
hiScores = DemoOldHiScores;
CurentAttempt = DemoOldAttempt;
SetScores(curScores);
SetScores(hiScores, 460, 55, DeepHIScores);
SetScores(CurentAttempt, 490, 75, DeepAttemp);
var row = RowMin;
while (row < RowMax) {
var num = 0;
while (num < (row * 6)) {
var old_collor = DemoOldBallCollor.shift();
if (old_collor != undefined) {
CreateBall(row, num, old_collor);
}
num++;
}
row++;
}
SetNextCollor(DemoOldNextCollor);
var n = 0;
while (n != 6) {
HitBalls[n].collor = DemoOldHitBallCollor;
BallFillColor(HitBalls[n], DemoOldHitBallCollor);
HitBalls[n]._visible = true;
HitBalls[n].Sight._visible = false;
HitBalls[n]._alpha = 100;
n++;
}
HitBall._visible = false;
State = ST_SELECT;
}
if (initialize == undefined) {
_root.chek1._visible = false;
_root.chek2._visible = false;
_root.chek3._visible = true;
_root.chek4._visible = false;
HelpMessage = "To win the game you should remove all the spheres that are situated iside the pentagon. To blow off these spheres shoot at them with one of the spheres from its sides. You should first choose the sphere you want to shot with(a click on it will activate the sphere) and then click in the part of the board you want it to go. Don't be surprised if the sphere doesn't get where youwanted it to - a sphere can slip only between two spheres of the next row.If a player manages to eliminate all the spheres of a certain colorhis score will be doubled and two more rows of spheres will be added to the board. The color you have removed won't come to the board again.A certain number of attempts is given to allow a player to blow up as many spheres as possible. As soon as all the attempts are over one more row of spheres will be added to the board. Sometimes after a shot or a new row being added to the boardsome spheres can fall apart from the stock. They will disappear.You will get a bonus of 100 points for each sphere destroyed in such a way.Watching the Demo will help you to understand the rules of the game.";
StartAttempt = 5;
incusShift = new Array(1, 2, 2, 3, 3, 3, 100);
incusAttempt = new Array(StartAttempt, 4, 3, 2, 2, 1, 0);
BallRadius = 12;
BallSpeed = 4;
BackStep = 0.25;
MinBallsForDell = 3;
var b = 100;
BallCollorRed = new Array(b, 0, b, 0, b, 0);
BallCollorGreen = new Array(0, b, b, 0, 0, b);
BallCollorBlue = new Array(0, 0, 0, b, b, b);
BallCollorNum = 6;
RowMin = 2;
RowMax = RowMin + 6;
RowStart = RowMin + 2;
NetStepX = BallRadius;
NetStepY = int(NetStepX * 1.73205080756888);
NetOffX = ((NetStepX * RowMax) * 2) + NetStepX;
NetOffY = (NetStepY * RowMax) + NetStepY;
isSound = true;
BallCollorIncuse = [];
isIncuse = false;
curScores = 0;
hiScores = 0;
OffX = new Array(2, 1, -1, -2, -1, 1, 0);
OffY = new Array(0, -1, -1, 0, 1, 1, 0);
DeepHitBall = GetDepth(RowMax, (RowMax * 6) - 1);
DeepBorder = 0;
DeepHexagon = DeepHitBall + 1;
DeepScores = DeepHexagon + 6;
DeepHIScores = DeepScores + 1000;
DeepAttemp = DeepHIScores + 1000;
DeepMsg = DeepMsg + (DeepAttemp + 100000);
DeepMessageShow = DeepMsg + 1;
DeepDemoMessage = DeepDemoMessage + 600;
Deep = Deep + 1;
Balls = [];
HitK = 5;
HitRadius = ((BallRadius * 2) - HitK) * ((BallRadius * 2) - HitK);
HitBalls = [];
Borders = [];
ST_START = 0;
ST_SELECT = 1;
ST_HIT = 2;
ST_MOVE = 3;
ST_SHIFT = 4;
ST_GAMEOVER = 5;
ST_NEXTLEVEL = 6;
ST_CH_COLOR = 7;
ST_CH_ISLANDS = 8;
ST_WAIT = 9;
ST_SET_COLLOR = 10;
State = ST_START;
PI = Math.PI;
DemoOldBallCollor = [];
}
if (initialize == undefined) {
initialize = true;
var trns = new Object();
trns.rr = 100;
trns.ll = 100;
trns.lr = 0;
trns.rl = 0;
var snd = new Sound();
snd.setTransform(trns);
snd.setVolume(100);
fscommand ("showmenu", false);
} else {
gotoAndPlay (2);
}
Instance of Symbol 140 MovieClip [Ball] "Center" in Frame 1
onClipEvent (mouseUp) {
if (_root.isDemo) {
_root.LoadAfterDemo();
} else {
var PI = _root.PI;
if (((_root.State == _root.ST_HIT) || (_root.State == _root.ST_SELECT)) && ((_root.msgBox == undefined) && (_xmouse < _root.NetOffX))) {
var lpos = new Object();
_root.PhisToLog(_xmouse, _ymouse, lpos);
var row = _root.LogToRow(lpos.x, lpos.y);
var num = _root.LogToNum(lpos.x, lpos.y);
if (_root.RowMax < row) {
return(undefined);
}
if (((row == _root.RowMax) && (((num - (row / 2)) % row) == 0)) && ((_root.State == _root.ST_HIT) || (_root.State == _root.ST_SELECT))) {
if (_root.State == _root.ST_HIT) {
var n = 0;
while (n < 6) {
_root.HitBalls[n].Sight._visible = false;
_root.HitBalls[n]._alpha = 100;
n++;
}
}
_root.HitEdge = (num - (row / 2)) / row;
_root.OnSelectHitBall(_root.HitEdge);
} else if (_root.State == _root.ST_HIT) {
_root.HitAngle = _root.GetAngle(_root.HitStartX, _root.HitStartY, _xmouse, _ymouse);
var minp = new Array(PI / 3, 0, 0, 0, PI, (PI * 2) / 3);
var maxp = new Array(PI, PI, (PI * 2) / 3, PI / 3, 0, PI);
var minn = new Array(-PI, 0, (-PI) / 3, ((-PI) * 2) / 3, -PI, -PI);
var maxn = new Array(((-PI) * 2) / 3, -PI, 0, 0, 0, (-PI) / 3);
if ((((0 < _root.HitAngle) && (minp[_root.HitEdge] < _root.HitAngle)) && (_root.HitAngle < maxp[_root.HitEdge])) || (((_root.HitAngle < 0) && (minn[_root.HitEdge] < _root.HitAngle)) && (_root.HitAngle < maxn[_root.HitEdge]))) {
_root.OnHitBall(_root.HitAngle, _root.HitEdge);
}
}
}
}
}
Frame 2
if ((State == undefined) || (State == ST_START)) {
GameInit();
State = ST_SELECT;
if (isDemo == undefined) {
StartDemo(true);
}
} else if (State == ST_NEXTLEVEL) {
isDemoRecord = false;
RecordState = "OFF";
TraceDemo();
if (ShowMessage("NextLevel")) {
GameDestroy();
GameInit();
State = ST_SELECT;
}
} else if (State == ST_GAMEOVER) {
isDemoRecord = false;
RecordState = "OFF";
TraceDemo();
if (ShowMessage("GameOver")) {
GameDestroy();
GameInit();
State = ST_SELECT;
}
} else if (State == ST_MOVE) {
State = HitBallMove();
} else if (State == ST_CH_COLOR) {
WaitState = CheckColorConsist(HitStartX, HitStartY);
StartTime = getTimer();
WaitCounter = 500;
State = ST_WAIT;
} else if (State == ST_SHIFT) {
State = ShiftBalls();
if (State == ST_SET_COLLOR) {
if (0 < (--numShift)) {
State = ST_SHIFT;
} else {
ClearIslands();
PlaySound("Oy");
}
}
} else if (State == ST_CH_ISLANDS) {
var newscore = ClearIslands();
if (isIncuse) {
curScores = curScores * 2;
}
if (LastIncuseCollor != -1) {
curScores = curScores + (newscore * 100);
SetScores(curScores);
}
if (0 >= NumBalls) {
State = ST_NEXTLEVEL;
} else {
State = ST_SET_COLLOR;
}
if (isIncuse) {
numShift = 0;
var n = 0;
while (n < BallCollorNum) {
if (BallCollorIncuse[n] == -1) {
numShift++;
}
n++;
}
numShift = incusShift[numShift];
isIncuse = false;
State = ST_NEXTLEVEL;
var n = 0;
while (n < BallCollorNum) {
if (BallCollorIncuse[n] != -1) {
State = ST_SHIFT;
break;
}
n++;
}
}
} else if (State == ST_WAIT) {
if (WaitCounter < Math.abs(getTimer() - StartTime)) {
State = WaitState;
}
} else if (State == ST_SET_COLLOR) {
var collor = Hexagon.NextCollorBall0.collor;
if (BallCollorIncuse[collor] == -1) {
SetNextCollor();
collor = Hexagon.NextCollorBall0.collor;
}
var n = 0;
while (n != 6) {
HitBalls[n].collor = collor;
BallFillColor(HitBalls[n], collor);
n++;
}
SetNextCollor();
HitBalls[HitStartEdge]._visible = true;
HitBalls[HitStartEdge]._alpha = 100;
State = ST_SELECT;
}
if ((State == ST_SELECT) || (State == ST_HIT)) {
if (isDemo) {
if (DemoSelectedBall[DemoSelectedBall.pos] == undefined) {
StartDemo(false);
}
if (State == ST_SELECT) {
var n = 0;
while (n < 6) {
_root.HitBalls[n].Sight._visible = false;
_root.HitBalls[n]._alpha = 100;
n++;
}
OnSelectHitBall(DemoSelectedBall[DemoSelectedBall.pos]);
WaitState = ST_HIT;
StartTime = getTimer();
WaitCounter = 2000;
State = ST_WAIT;
} else {
WaitState = ST_CH_COLOR;
StartTime = getTimer();
WaitCounter = 3000;
State = ST_WAIT;
OnHitBall(DemoHitAngle[DemoHitAngle.pos], DemoSelectedBall[DemoSelectedBall.pos]);
DemoHitAngle.pos++;
DemoSelectedBall.pos++;
}
} else {
var n = 0;
while (n < 6) {
if (HitBalls[n].Sight._visible == false) {
if ((BallRadius * BallRadius) >= GetDistance(_xmouse, _ymouse, HitBalls[n]._x, HitBalls[n]._y)) {
HitBalls[n].gotoAndStop("Hit");
HitBalls[n].Sight._visible = false;
} else {
HitBalls[n].gotoAndStop("Work");
HitBalls[n]._rotation = (GetAngle(HitBalls[n]._x, HitBalls[n]._y, _xmouse, _ymouse) * 180) / PI;
}
}
n++;
}
}
}
Frame 3
gotoAndPlay (2);
Symbol 25 MovieClip [Ball] Frame 1
stop();
Symbol 25 MovieClip [Ball] Frame 10
_root.Balls[this.row][this.num] = "";
_root.PlaySound("Blast");
play();
Symbol 25 MovieClip [Ball] Frame 20
removeMovieClip(this);
Symbol 25 MovieClip [Ball] Frame 25
_root.PlaySound("Splash");
play();
Symbol 25 MovieClip [Ball] Frame 35
removeMovieClip(this);
Symbol 29 MovieClip [Ball] Frame 1
stop();
Symbol 29 MovieClip [Ball] Frame 10
_root.Balls[this.row][this.num] = "";
_root.PlaySound("Blast");
play();
Symbol 29 MovieClip [Ball] Frame 20
removeMovieClip(this);
Symbol 29 MovieClip [Ball] Frame 25
_root.PlaySound("Splash");
play();
Symbol 29 MovieClip [Ball] Frame 35
removeMovieClip(this);
Symbol 31 MovieClip [Hexagon] Frame 1
var str = "NextCollorBall";
var n = 0;
while (n < 6) {
var b = eval (str + n);
b.Sight._visible = false;
n++;
}
Symbol 38 MovieClip [N0] Frame 1
play();
Symbol 38 MovieClip [N0] Frame 21
stop();
Symbol 38 MovieClip [N0] Frame 25
play();
Symbol 38 MovieClip [N0] Frame 43
this.removeMovieClip();
Symbol 45 MovieClip [N1] Frame 1
play();
Symbol 45 MovieClip [N1] Frame 20
stop();
Symbol 45 MovieClip [N1] Frame 30
play();
Symbol 45 MovieClip [N1] Frame 50
this.removeMovieClip();
Symbol 51 MovieClip [N2] Frame 1
play();
Symbol 51 MovieClip [N2] Frame 20
stop();
Symbol 51 MovieClip [N2] Frame 30
play();
Symbol 51 MovieClip [N2] Frame 50
this.removeMovieClip();
Symbol 57 MovieClip [N3] Frame 1
play();
Symbol 57 MovieClip [N3] Frame 20
stop();
Symbol 57 MovieClip [N3] Frame 30
play();
Symbol 57 MovieClip [N3] Frame 50
this.removeMovieClip();
Symbol 63 MovieClip [N4] Frame 1
play();
Symbol 63 MovieClip [N4] Frame 20
stop();
Symbol 63 MovieClip [N4] Frame 30
play();
Symbol 63 MovieClip [N4] Frame 50
this.removeMovieClip();
Symbol 69 MovieClip [N5] Frame 1
play();
Symbol 69 MovieClip [N5] Frame 20
stop();
Symbol 69 MovieClip [N5] Frame 30
play();
Symbol 69 MovieClip [N5] Frame 50
this.removeMovieClip();
Symbol 75 MovieClip [N6] Frame 1
paly();
Symbol 75 MovieClip [N6] Frame 20
stop();
Symbol 75 MovieClip [N6] Frame 30
play();
Symbol 75 MovieClip [N6] Frame 50
this.removeMovieClip();
Symbol 81 MovieClip [N7] Frame 1
play();
Symbol 81 MovieClip [N7] Frame 20
stop();
Symbol 81 MovieClip [N7] Frame 30
play();
Symbol 81 MovieClip [N7] Frame 50
this.removeMovieClip();
Symbol 87 MovieClip [N8] Frame 1
play();
Symbol 87 MovieClip [N8] Frame 20
stop();
Symbol 87 MovieClip [N8] Frame 30
play();
Symbol 87 MovieClip [N8] Frame 50
this.removeMovieClip();
Symbol 93 MovieClip [N9] Frame 1
play();
Symbol 93 MovieClip [N9] Frame 20
stop();
Symbol 93 MovieClip [N9] Frame 30
play();
Symbol 93 MovieClip [N9] Frame 50
this.removeMovieClip();
Symbol 103 Button
on (release, keyPress "<Enter>") {
_root.State = _root.ST_GAMEOVER;
removeMovieClip(this);
}
Symbol 104 Button
on (release, keyPress "<Backspace>") {
removeMovieClip(this);
}
Symbol 109 Button
on (release, keyPress "<Enter>") {
removeMovieClip(this);
}
Instance of Symbol 112 MovieClip in Symbol 115 MovieClip [msgHelp] Frame 1
onClipEvent (load) {
top = this._y;
bottom = (top + 240) - this._height;
isScroll = false;
}
onClipEvent (enterFrame) {
this.stop();
}
onClipEvent (mouseDown) {
startDrag (this, false, this._x, top, this._x, bottom);
isScroll = true;
}
onClipEvent (mouseUp) {
stopDrag();
isScroll = false;
}
onClipEvent (mouseMove) {
if (isScroll) {
var scroll_pos = ((this._y - top) / (bottom - top));
_level0.msgBox.Message.scroll = 100 * scroll_pos;
}
}
Symbol 124 MovieClip [NextLevel] Frame 1
if (this._alpha >= 20) {
this._alpha = this._alpha - 20;
} else {
removeMovieClip(this);
}
Symbol 124 MovieClip [NextLevel] Frame 2
gotoAndPlay (1);
Symbol 126 MovieClip [GameOver] Frame 1
if (this._alpha >= 20) {
this._alpha = this._alpha - 20;
} else {
removeMovieClip(this);
}
Symbol 126 MovieClip [GameOver] Frame 2
gotoAndPlay (1);
Symbol 130 MovieClip Frame 1
if (!_root.isSound) {
gotoAndStop (10);
}
stop();
Symbol 130 MovieClip Frame 10
stop();
Symbol 139 MovieClip [DemoMessage] Frame 1
this._alpha = 50 + random(10);
Symbol 139 MovieClip [DemoMessage] Frame 5
gotoAndPlay (1);
Symbol 140 MovieClip [Ball] Frame 1
stop();
Symbol 140 MovieClip [Ball] Frame 10
_root.Balls[this.row][this.num] = "";
_root.PlaySound("Blast");
play();
Symbol 140 MovieClip [Ball] Frame 20
removeMovieClip(this);
Symbol 140 MovieClip [Ball] Frame 25
_root.PlaySound("Splash");
play();
Symbol 140 MovieClip [Ball] Frame 35
removeMovieClip(this);
Symbol 144 Button
on (release) {
_root.chek1._visible = true;
_root.chek2._visible = false;
_root.chek3._visible = false;
_root.chek4._visible = false;
_quality = "LOW";
_root.strQuality = "LOW";
}
Symbol 145 Button
on (release) {
_root.chek2._visible = true;
_root.chek1._visible = false;
_root.chek3._visible = false;
_root.chek4._visible = false;
_quality = "MEDIUM";
_root.strQuality = "MEDIUM";
}
Symbol 146 Button
on (release) {
_root.chek3._visible = true;
_root.chek2._visible = false;
_root.chek1._visible = false;
_root.chek4._visible = false;
_quality = "HIGH";
_root.strQuality = "HIGH";
}
Symbol 147 Button
on (release) {
_root.chek4._visible = true;
_root.chek3._visible = false;
_root.chek2._visible = false;
_root.chek1._visible = false;
_quality = "BEST";
_root.strQuality = "BEST";
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 5
stop();
Symbol 163 MovieClip Frame 8
gotoAndStop (1);
Symbol 163 MovieClip Frame 12
gotoAndStop (1);
Symbol 165 Button
on (rollOver) {
_root.knop1.gotoAndPlay(2);
}
on (rollOut) {
_root.knop1.gotoAndPlay(6);
}
on (release, keyPress "n") {
if (_root.curScores == 0) {
GameDestroy();
GameInit();
State = ST_SELECT;
} else if (msgBox == undefined) {
attachMovie("msgRestart", "msgBox", _root.DeepMsg);
var msg = msgBox;
msg._x = 275;
msg._y = 187.5;
}
}
Symbol 166 Button
on (release, keyPress "h") {
if (msgBox == undefined) {
attachMovie("msgHelp", "msgBox", _root.DeepMsg);
var msg = msgBox;
msg.Title = "Palantir. v 0.9";
msg.Message = _root.HelpMessage;
msg._x = 275;
msg._y = 187.5;
}
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 5
stop();
Symbol 175 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=splnt";
getURL (sd, "blank");
}
Symbol 182 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=splnt";
getURL (sd, "blank");
}
Symbol 184 Button
on (release, keyPress "d") {
if (_root.isDemo != true) {
_root.StartDemo(true);
} else {
_root.StartDemo(false);
}
}
Symbol 185 Button
on (press, keyPress "s") {
if (_root.isSound) {
_root.isSound = false;
_root.Dinamic.gotoAndStop("SoundOFF");
} else {
_root.isSound = true;
_root.Dinamic.gotoAndStop("SoundON");
}
}