Frame 1
function location_check() {
if (_url.toLowerCase().indexOf("isskerberos") == -1) {
coveritall.gotoAndStop(2);
_root.stop();
} else {
play();
}
}
sfx = 0;
_root.gameid = 13;
_root.soundlevel = 9000;
if (!debug) {
location_check();
}
Frame 2
stop();
_root.censor = 0;
mode2.gotoAndStop(2);
_parent.titlePageShown();
function FXPlayer(name) {
if (!_root[name]) {
mytempclipname = "clip" + _root.soundlevel;
_root.createEmptyMovieClip(mytempclipname, _root.soundlevel);
_root[name] = new Sound(mytempclipname);
_root[name].attachSound(name);
}
if (_root.sfx != 1) {
_root[name].start();
}
_root.soundlevel++;
}
function FXPlayer(name) {
if (!_root[name]) {
mytempclipname = "clip" + _root.soundlevel;
_root.createEmptyMovieClip(mytempclipname, _root.soundlevel);
_root[name] = new Sound(mytempclipname);
_root[name].attachSound(name);
}
if (_root.sfx != 1) {
_root[name].start();
}
_root.soundlevel++;
}
_root.matchdone = 1;
stop();
Instance of Symbol 316 MovieClip "music" in Frame 2
/* no clip actions */
Frame 3
stop();
_parent.instructionsPageShown();
stop();
Frame 4
stop();
Frame 5
function makingtimer() {
removeacard(ball.type);
_root.createEmptyMovieClip("timer", this.getNextHighestDepth());
timer.onLoad = function () {
count = _root.disappearFrames;
i = 0;
};
timer.onEnterFrame = function () {
i++;
if (i >= count) {
_root.compressboard();
removeMovieClip(this);
}
};
}
function makedeckarray(ballsPerType) {
_root.deckarray = [];
i = 1;
while (i <= 52) {
_root.deckarray[i] = 2;
i++;
}
}
function removeacard(thistype) {
if (thistype) {
_root.deckarray[thistype]--;
}
}
function initialize() {
var i;
var j;
var ballsPerType = ((dimensionX * dimensionY) / ballTypes);
makedeckarray(ballsPerType);
var ballTypeArray = new Array();
i = 0;
while (i < ballTypes) {
j = 0;
while (j < ballsPerType) {
ballTypeArray[ballTypeArray.length] = i;
j++;
}
i++;
}
shuffleArray(ballTypeArray);
i = 0;
while (i < (dimensionX * dimensionY)) {
ballsHolder.attachMovie("ball" + _root.censor, "ball" + i, i);
balls[i] = eval ("ballsHolder.ball" + i);
balls[i]._x = (i % dimensionX) * xblockSize;
balls[i]._y = Math.floor(i / dimensionX) * yblockSize;
balls[i].x = i % dimensionX;
balls[i].y = Math.floor(i / dimensionX);
balls[i].type = ballTypeArray[i];
removeacard(balls[i].type);
i++;
}
beginTime = getTimer();
}
function boardshuffle() {
compressaspect();
shuffleArray(templist);
redogrid(templist);
}
function compressboard() {
}
function compressaspect() {
templist = [];
i = 0;
while (i <= balls.length) {
temp = eval (balls[i]).type;
if (temp != null) {
templist[i] = temp;
removeMovieClip(balls[i]);
}
i++;
}
cleanlist = [];
j = 0;
for (i in templist) {
if (templist[i] != null) {
cleanlist[j] = templist[i];
j++;
}
}
templist = cleanlist;
}
function redogrid(templist) {
i = 0;
while (i < (dimensionX * dimensionY)) {
if (templist[i] != null) {
ballsHolder.attachMovie("ball" + _root.censor, "ball" + i, i);
balls[i] = eval ("ballsHolder.ball" + i);
balls[i]._x = (i % dimensionX) * xblockSize;
balls[i]._y = Math.floor(i / dimensionX) * yblockSize;
balls[i].x = i % dimensionX;
balls[i].y = Math.floor(i / dimensionX);
balls[i].type = templist[i];
} else {
balls[i] = null;
}
i++;
}
}
function shuffleArray(array) {
var _local2;
var _local3;
var _local4;
_local2 = 0;
while (_local2 < array.length) {
_local3 = Math.floor(Math.random() * array.length);
_local4 = array[_local2];
array[_local2] = array[_local3];
array[_local3] = _local4;
_local2++;
}
}
function updateTime() {
if (!gameStarted) {
return(undefined);
}
time = getTimer() - beginTime;
if (score >= 0) {
score = baseScore - time;
}
}
function chooseBall(ball) {
var _local3;
if (!chosenBall) {
chosenBall = ball;
ball.gotoAndStop("chosen");
} else {
_local3 = getLine(chosenBall, ball);
if (_local3) {
chosenBall.gotoAndStop("disappear");
ball.gotoAndStop("disappear");
drawLine(_local3, chosenBall, ball);
chosenBall = null;
_root.FXPlayer("matchSound");
} else {
chosenBall.gotoAndStop("normal");
chosenBall = ball;
ball.gotoAndStop("chosen");
}
}
_root.FXPlayer("clickSound");
}
function unchooseBall(ball) {
ball.gotoAndStop("normal");
chosenBall = null;
_root.FXPlayer("clickSound");
}
function getLine(ball1, ball2) {
var _local3;
var _local5;
var _local4;
var _local6;
if (!ball1) {
return(null);
}
if (!ball2) {
return(null);
}
if (ball1.type != ball2.type) {
return(null);
}
if (ball1.x != ball2.x) {
if (ball1.y < ball2.y) {
_local5 = ball1.y;
_local4 = ball2.y;
} else {
_local5 = ball2.y;
_local4 = ball1.y;
}
_local3 = _local5;
while (_local3 <= _local4) {
if (!canConnect(ball1.x, ball1.y, ball1.x, _local3, ball2.x, _local3, ball2.x, ball2.y)) {
} else {
return(new Array(ball1.x, ball1.y, ball1.x, _local3, ball2.x, _local3, ball2.x, ball2.y));
}
_local3++;
}
_local6 = (((dimensionY - _local4) > (_local5 + 1)) ? (dimensionY - _local4) : (_local5 + 1));
_local3 = 1;
while (_local3 <= _local6) {
if (canConnect(ball1.x, ball1.y, ball1.x, _local5 - _local3, ball2.x, _local5 - _local3, ball2.x, ball2.y)) {
return(new Array(ball1.x, ball1.y, ball1.x, _local5 - _local3, ball2.x, _local5 - _local3, ball2.x, ball2.y));
}
if (canConnect(ball1.x, ball1.y, ball1.x, _local4 + _local3, ball2.x, _local4 + _local3, ball2.x, ball2.y)) {
return(new Array(ball1.x, ball1.y, ball1.x, _local4 + _local3, ball2.x, _local4 + _local3, ball2.x, ball2.y));
}
_local3++;
}
}
if (ball1.y != ball2.y) {
if (ball1.x < ball2.x) {
_local5 = ball1.x;
_local4 = ball2.x;
} else {
_local5 = ball2.x;
_local4 = ball1.x;
}
_local3 = _local5;
while (_local3 <= _local4) {
if (!canConnect(ball1.x, ball1.y, _local3, ball1.y, _local3, ball2.y, ball2.x, ball2.y)) {
} else {
return(new Array(ball1.x, ball1.y, _local3, ball1.y, _local3, ball2.y, ball2.x, ball2.y));
}
_local3++;
}
_local6 = (((dimensionY - _local4) > (_local5 + 1)) ? (dimensionX - _local4) : (_local5 + 1));
_local3 = 1;
while (_local3 <= _local6) {
if (canConnect(ball1.x, ball1.y, _local5 - _local3, ball1.y, _local5 - _local3, ball2.y, ball2.x, ball2.y)) {
return(new Array(ball1.x, ball1.y, _local5 - _local3, ball1.y, _local5 - _local3, ball2.y, ball2.x, ball2.y));
}
if (canConnect(ball1.x, ball1.y, _local4 + _local3, ball1.y, _local4 + _local3, ball2.y, ball2.x, ball2.y)) {
return(new Array(ball1.x, ball1.y, _local4 + _local3, ball1.y, _local4 + _local3, ball2.y, ball2.x, ball2.y));
}
_local3++;
}
}
return(null);
}
function canConnect(x1, y1, x2, y2, x3, y3, x4, y4) {
if ((x1 != x2) || (y1 != y2)) {
if ((((x2 >= 0) && (x2 < dimensionX)) && (y2 >= 0)) && (y2 < dimensionY)) {
if (balls[(y2 * dimensionX) + x2]) {
return(false);
}
}
}
if ((x3 != x4) || (y3 != y4)) {
if ((((x3 >= 0) && (x3 < dimensionX)) && (y3 >= 0)) && (y3 < dimensionY)) {
if (balls[(y3 * dimensionX) + x3]) {
return(false);
}
}
}
if (!canConnectStraight(x1, y1, x2, y2)) {
return(false);
}
if (!canConnectStraight(x2, y2, x3, y3)) {
return(false);
}
if (!canConnectStraight(x3, y3, x4, y4)) {
return(false);
}
return(true);
}
function canConnectStraight(x1, y1, x2, y2) {
var _local1;
var _local6;
var _local2;
if (x1 != x2) {
if ((y1 < 0) || (y1 >= dimensionY)) {
return(true);
}
_local6 = ((x1 < x2) ? (x1 + 1) : (x2 + 1));
_local2 = ((x1 < x2) ? (x2 - 1) : (x1 - 1));
_local1 = _local6;
while (_local1 <= _local2) {
if (balls[(y1 * dimensionX) + _local1]) {
return(false);
}
_local1++;
}
} else {
if ((x1 < 0) || (x1 >= dimensionX)) {
return(true);
}
_local6 = ((y1 < y2) ? (y1 + 1) : (y2 + 1));
_local2 = ((y1 < y2) ? (y2 - 1) : (y1 - 1));
_local1 = _local6;
while (_local1 <= _local2) {
if (balls[(_local1 * dimensionX) + x1]) {
return(false);
}
_local1++;
}
}
return(true);
}
function drawLine(line, ball1, ball2) {
var i;
var noOfLines = ((line.length / 2) - 1);
var xs = new Array();
var ys = new Array();
var theLine;
if (!line) {
return(undefined);
}
i = 0;
while (i <= noOfLines) {
xs[i] = line[i * 2];
ys[i] = line[(i * 2) + 1];
i++;
}
i = 0;
while (i < noOfLines) {
linesHolder.attachMovie("line", "line" + totalLines, totalLines);
theLine = eval ("linesHolder.line" + totalLines);
theLine._x = xs[i] * xblockSize;
theLine._y = ys[i] * yblockSize;
if (xs[i] != xs[i + 1]) {
theLine._width = Math.abs((xs[i + 1] - xs[i]) * xblockSize);
if (xs[i + 1] < xs[i]) {
theLine._xscale = -theLine._xscale;
}
} else {
theLine._width = Math.abs((ys[i + 1] - ys[i]) * yblockSize);
if (ys[i + 1] < ys[i]) {
theLine._xscale = -theLine._xscale;
}
theLine._rotation = 90;
}
if (i == 0) {
theLine.ball1 = ball1;
}
if (i == (noOfLines - 1)) {
theLine.ball2 = ball2;
}
totalLines++;
i++;
}
}
function removeBall(ball) {
if (!ball) {
return(undefined);
}
tempx = balls[(ball.y * dimensionX) + ball.x]._x;
tempy = balls[(ball.y * dimensionX) + ball.x]._y;
temp = _root.thislevelfor;
_root.thislevelfor++;
duplicateMovieClip ("cardremove" + _root.censor, "removit" + temp, temp);
setProperty("removit" + temp, _x , tempx + 30);
setProperty("removit" + temp, _y , tempy + 80);
_root["removit" + temp].gotoAndPlay(2);
trace(tempx);
balls[(ball.y * dimensionX) + ball.x] = null;
ball.removeMovieClip();
makingtimer();
checkWin();
}
function checkWin() {
var _local1;
_local1 = 0;
while (_local1 < (dimensionX * dimensionY)) {
if (balls[_local1]) {
return(undefined);
}
_local1++;
}
gameOver();
}
function gameOver() {
gameStarted = false;
score = baseScore - time;
_root.FXPlayer("winSound");
playAgainDialog.gotoAndStop(2);
_parent.showEnter(score);
}
var dimensionX = 10;
var dimensionY = 10;
var blockSize = 45;
var xblockSize = 45;
var yblockSize = 55;
_root.thislevelfor = 5000;
var ballTypes = 25;
var disappearFrames = 2;
var baseScore = 1000000;
var balls = new Array();
var chosenBall = null;
var totalLines = 0;
var gameStarted = true;
var beginTime = 0;
var time = 0;
var score = 0;
stop();
_parent.gamePageShown();
initialize();
Instance of Symbol 194 MovieClip in Frame 5
onClipEvent (enterFrame) {
_parent.updateTime();
}
Symbol 16 MovieClip Frame 10
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 26 MovieClip Frame 8
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 35 MovieClip Frame 12
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 51 MovieClip Frame 28
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 65 MovieClip Frame 29
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 75 MovieClip Frame 56
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 94 MovieClip Frame 27
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 102 MovieClip Frame 20
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 111 MovieClip Frame 31
choice = random(10);
if (choice == 9) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 3
stop();
Symbol 134 MovieClip Frame 4
stop();
Symbol 134 MovieClip Frame 5
stop();
Symbol 134 MovieClip Frame 6
stop();
Symbol 134 MovieClip Frame 7
stop();
Symbol 134 MovieClip Frame 8
stop();
Symbol 134 MovieClip Frame 9
stop();
Symbol 134 MovieClip Frame 10
stop();
Symbol 134 MovieClip Frame 11
stop();
Symbol 134 MovieClip Frame 12
stop();
Symbol 134 MovieClip Frame 13
stop();
Symbol 134 MovieClip Frame 14
stop();
Symbol 134 MovieClip Frame 15
stop();
Symbol 134 MovieClip Frame 16
stop();
Symbol 134 MovieClip Frame 17
stop();
Symbol 134 MovieClip Frame 18
stop();
Symbol 134 MovieClip Frame 19
stop();
Symbol 134 MovieClip Frame 20
stop();
Symbol 134 MovieClip Frame 21
stop();
Symbol 134 MovieClip Frame 22
stop();
Symbol 134 MovieClip Frame 23
stop();
Symbol 134 MovieClip Frame 24
stop();
Symbol 134 MovieClip Frame 25
stop();
Symbol 134 MovieClip Frame 26
stop();
Symbol 134 MovieClip Frame 27
stop();
Symbol 134 MovieClip Frame 28
stop();
Symbol 134 MovieClip Frame 29
stop();
Symbol 134 MovieClip Frame 30
stop();
Symbol 134 MovieClip Frame 31
stop();
Symbol 134 MovieClip Frame 32
stop();
Symbol 134 MovieClip Frame 33
stop();
Symbol 134 MovieClip Frame 34
stop();
Symbol 134 MovieClip Frame 35
stop();
Symbol 134 MovieClip Frame 36
stop();
Symbol 134 MovieClip Frame 37
stop();
Symbol 134 MovieClip Frame 38
stop();
Symbol 134 MovieClip Frame 39
stop();
Symbol 134 MovieClip Frame 40
stop();
Symbol 134 MovieClip Frame 41
stop();
Symbol 134 MovieClip Frame 42
stop();
Symbol 134 MovieClip Frame 43
stop();
Symbol 134 MovieClip Frame 44
stop();
Symbol 134 MovieClip Frame 45
stop();
Symbol 134 MovieClip Frame 46
stop();
Symbol 134 MovieClip Frame 47
stop();
Symbol 134 MovieClip Frame 48
stop();
Symbol 134 MovieClip Frame 49
stop();
Symbol 134 MovieClip Frame 50
stop();
Symbol 134 MovieClip Frame 51
stop();
Symbol 134 MovieClip Frame 52
stop();
Symbol 136 Button
on (press) {
_parent._parent.chooseBall(this);
}
Symbol 138 Button
on (press) {
_parent._parent.unchooseBall(this);
}
Symbol 139 MovieClip [ball1] Frame 1
var type;
var x;
var y;
stop();
Instance of Symbol 134 MovieClip "cardface" in Symbol 139 MovieClip [ball1] Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.type + 1);
}
Symbol 139 MovieClip [ball1] Frame 8
stop();
Symbol 139 MovieClip [ball1] Frame 15
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 3
stop();
Symbol 165 MovieClip Frame 4
stop();
Symbol 165 MovieClip Frame 5
stop();
Symbol 165 MovieClip Frame 6
stop();
Symbol 165 MovieClip Frame 7
stop();
Symbol 165 MovieClip Frame 8
stop();
Symbol 165 MovieClip Frame 9
stop();
Symbol 165 MovieClip Frame 10
stop();
Symbol 165 MovieClip Frame 11
stop();
Symbol 165 MovieClip Frame 12
stop();
Symbol 165 MovieClip Frame 13
stop();
Symbol 165 MovieClip Frame 14
stop();
Symbol 165 MovieClip Frame 15
stop();
Symbol 165 MovieClip Frame 16
stop();
Symbol 165 MovieClip Frame 17
stop();
Symbol 165 MovieClip Frame 18
stop();
Symbol 165 MovieClip Frame 19
stop();
Symbol 165 MovieClip Frame 20
stop();
Symbol 165 MovieClip Frame 21
stop();
Symbol 165 MovieClip Frame 22
stop();
Symbol 165 MovieClip Frame 23
stop();
Symbol 165 MovieClip Frame 24
stop();
Symbol 165 MovieClip Frame 25
stop();
Symbol 167 MovieClip [ball2] Frame 1
var type;
var x;
var y;
stop();
Instance of Symbol 165 MovieClip "cardface" in Symbol 167 MovieClip [ball2] Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.type + 1);
}
Symbol 167 MovieClip [ball2] Frame 8
stop();
Symbol 167 MovieClip [ball2] Frame 15
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 3
stop();
Symbol 192 MovieClip Frame 4
stop();
Symbol 192 MovieClip Frame 5
stop();
Symbol 192 MovieClip Frame 6
stop();
Symbol 192 MovieClip Frame 7
stop();
Symbol 192 MovieClip Frame 8
stop();
Symbol 192 MovieClip Frame 9
stop();
Symbol 192 MovieClip Frame 10
stop();
Symbol 192 MovieClip Frame 11
stop();
Symbol 192 MovieClip Frame 12
stop();
Symbol 192 MovieClip Frame 13
stop();
Symbol 192 MovieClip Frame 14
stop();
Symbol 192 MovieClip Frame 15
stop();
Symbol 192 MovieClip Frame 16
stop();
Symbol 192 MovieClip Frame 17
stop();
Symbol 192 MovieClip Frame 18
stop();
Symbol 192 MovieClip Frame 19
stop();
Symbol 192 MovieClip Frame 20
stop();
Symbol 192 MovieClip Frame 21
stop();
Symbol 192 MovieClip Frame 22
stop();
Symbol 192 MovieClip Frame 23
stop();
Symbol 192 MovieClip Frame 24
stop();
Symbol 192 MovieClip Frame 25
stop();
Symbol 192 MovieClip Frame 26
stop();
Symbol 192 MovieClip Frame 27
stop();
Symbol 192 MovieClip Frame 28
stop();
Symbol 192 MovieClip Frame 29
stop();
Symbol 192 MovieClip Frame 30
stop();
Symbol 192 MovieClip Frame 31
stop();
Symbol 192 MovieClip Frame 32
stop();
Symbol 192 MovieClip Frame 33
stop();
Symbol 192 MovieClip Frame 34
stop();
Symbol 192 MovieClip Frame 35
stop();
Symbol 192 MovieClip Frame 36
stop();
Symbol 192 MovieClip Frame 37
stop();
Symbol 192 MovieClip Frame 38
stop();
Symbol 192 MovieClip Frame 39
stop();
Symbol 192 MovieClip Frame 40
stop();
Symbol 192 MovieClip Frame 41
stop();
Symbol 192 MovieClip Frame 42
stop();
Symbol 192 MovieClip Frame 43
stop();
Symbol 192 MovieClip Frame 44
stop();
Symbol 192 MovieClip Frame 45
stop();
Symbol 192 MovieClip Frame 46
stop();
Symbol 192 MovieClip Frame 47
stop();
Symbol 192 MovieClip Frame 48
stop();
Symbol 192 MovieClip Frame 49
stop();
Symbol 192 MovieClip Frame 50
stop();
Symbol 192 MovieClip Frame 51
stop();
Symbol 192 MovieClip Frame 52
stop();
Symbol 193 MovieClip [ball0] Frame 1
var type;
var x;
var y;
stop();
Instance of Symbol 192 MovieClip "cardface" in Symbol 193 MovieClip [ball0] Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.type + 1);
}
Symbol 193 MovieClip [ball0] Frame 8
stop();
Symbol 193 MovieClip [ball0] Frame 15
stop();
Symbol 195 MovieClip [line] Frame 1
function disappear() {
count++;
if (count >= _parent._parent.disappearFrames) {
_parent._parent.removeBall(ball1);
_parent._parent.removeBall(ball2);
this.removeMovieClip();
return(undefined);
}
this._alpha = ((_parent._parent.disappearFrames - count) / _parent._parent.disappearFrames) * 100;
ball1._alpha = ((_parent._parent.disappearFrames - count) / _parent._parent.disappearFrames) * 100;
ball2._alpha = ((_parent._parent.disappearFrames - count) / _parent._parent.disappearFrames) * 100;
}
var ball1;
var ball2;
var count = -1;
Instance of Symbol 194 MovieClip in Symbol 195 MovieClip [line] Frame 1
onClipEvent (enterFrame) {
_parent.disappear();
}
Symbol 200 MovieClip [1disappear] Frame 1
stop();
Symbol 200 MovieClip [1disappear] Frame 2
play();
Symbol 200 MovieClip [1disappear] Frame 12
removeMovieClip(this);
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 25
stop();
Symbol 234 MovieClip Frame 50
stop();
Symbol 239 MovieClip Frame 1
_root.totalbytes = _root.getBytesTotal();
_root.bytesloaded = _root.getBytesLoaded();
_root.percent = int((_root.bytesloaded / _root.totalbytes) * 100);
if (_root.percent < 0) {
_root.percent = 0;
}
_root.loader.gotoAndStop(int(_root.percent / 2));
Symbol 239 MovieClip Frame 2
if (_root.securityoff == 0) {
if (_root.bytesloaded >= _root.totalbytes) {
_root.gotoAndPlay(2);
} else {
_root.gotoAndPlay(1);
}
} else {
stop();
}
Symbol 249 Button
on (release) {
if (_root.sfx != 1) {
_root.mybutton.start();
}
getURL ("http://www.isskerberos.org", "_self");
}
Symbol 250 MovieClip Frame 1
_root.securityoff = 0;
stop();
Symbol 250 MovieClip Frame 2
_root.securityoff = 1;
stop();
Symbol 274 Button
on (release) {
gotoAndPlay ("thegame");
_root.FXPlayer("ping");
}
Symbol 279 Button
on (release) {
gotoAndPlay ("rules");
_root.FXPlayer("ping");
}
Symbol 283 Button
on (release) {
gotoAndPlay ("credits");
_root.FXPlayer("ping");
}
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 2
stop();
Symbol 300 Button
on (press) {
_root.FXPlayer("buttonclick");
if (mode2._currentframe == 1) {
mode1.gotoAndStop(1);
mode2.gotoAndStop(2);
mode3.gotoAndStop(1);
_root.censor = 0;
} else {
mode3.gotoAndStop(2);
mode1.gotoAndStop(1);
mode2.gotoAndStop(1);
_root.censor = 2;
}
}
Symbol 301 Button
on (press) {
_root.FXPlayer("buttonclick");
if (mode1._currentframe == 1) {
mode1.gotoAndStop(2);
mode2.gotoAndStop(1);
mode3.gotoAndStop(1);
_root.censor = 1;
} else {
mode3.gotoAndStop(2);
mode1.gotoAndStop(1);
mode2.gotoAndStop(1);
_root.censor = 2;
}
}
Symbol 302 Button
on (press) {
_root.FXPlayer("buttonclick");
if (mode3._currentframe == 1) {
mode1.gotoAndStop(1);
mode2.gotoAndStop(1);
mode3.gotoAndStop(2);
_root.censor = 2;
} else {
mode3.gotoAndStop(1);
mode1.gotoAndStop(1);
mode2.gotoAndStop(2);
_root.censor = 1;
}
}
Symbol 312 MovieClip Frame 1
myRand = random(2);
if (myRand == 0) {
gotoAndPlay ("alive");
} else {
play();
}
Symbol 312 MovieClip Frame 5
myRand = random(2);
if (myRand == 0) {
gotoAndPlay ("alive");
} else {
play();
}
Symbol 312 MovieClip Frame 10
myRand = random(2);
if (myRand == 0) {
gotoAndPlay ("alive");
} else {
play();
}
Symbol 312 MovieClip Frame 15
play();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 321 Button
on (release) {
gotoAndPlay ("menu");
_root.FXPlayer("ping");
}
Symbol 333 Button
on (release) {
nextFrame();
}
Symbol 335 Button
on (release) {
_parent.showHighscores();
}
Symbol 340 Button
on (release) {
getURL ("http://www.isskerberos.org", "_self");
}
Symbol 356 Button
on (release) {
_root.FXPlayer("buttonclick");
achiever = 1;
loadVariablesNum ((((((("http://www.isskerberos.org/gamescore/achieved.php?gameid=" + _root.gameid) + "&replaceid=") + _root.replaceid) + "&replacescore=") + _root.score) + "&playername=") + _root.mynameis, 0);
play();
}
Symbol 364 Button
on (release) {
_root.result = 0;
_root.finished = 0;
_root.FXPlayer("buttonclick");
_root.gotoAndStop("menu");
}
Symbol 387 MovieClip Frame 1
skill1.gotoAndStop("tack");
type1.gotoAndStop("tack");
choice1.gotoAndStop("tack");
skilllevel = 0;
skilltype = 0;
skintype = 0;
stop();
Symbol 387 MovieClip Frame 2
_root.gameover = 1;
Symbol 388 MovieClip Frame 2
function topfiver(thisscore) {
trace("did top 5 ");
if ((thisscore > _root.score5[2]) && (thisscore <= _root.score4[2])) {
_root.top5namese = "YOU";
_root.top5scorese = thisscore;
_root.top5datee = "TODAY";
_root.top5namesd = _root.score4[1];
_root.top5scoresd = _root.score4[2];
_root.top5dated = _root.score4[3];
_root.top5namesc = _root.score3[1];
_root.top5scoresc = _root.score3[2];
_root.top5datec = _root.score3[3];
_root.top5namesb = _root.score2[1];
_root.top5scoresb = _root.score2[2];
_root.top5dateb = _root.score2[3];
_root.top5namesa = _root.score1[1];
_root.top5scoresa = _root.score1[2];
_root.top5datea = _root.score1[3];
_root.replaceid = _root.score5[0];
_root.replacescore = thisscore;
} else if ((thisscore > _root.score4[2]) && (thisscore <= _root.score3[2])) {
_root.top5namese = _root.score4[1];
_root.top5scorese = _root.score4[2];
_root.top5datee = _root.score4[3];
_root.top5namesd = "YOU";
_root.top5scoresd = thisscore;
_root.top5dated = "TODAY";
_root.top5namesc = _root.score3[1];
_root.top5scoresc = _root.score3[2];
_root.top5datec = _root.score3[3];
_root.top5namesb = _root.score2[1];
_root.top5scoresb = _root.score2[2];
_root.top5dateb = _root.score2[3];
_root.top5namesa = _root.score1[1];
_root.top5scoresa = _root.score1[2];
_root.top5datea = _root.score1[3];
_root.replaceid = _root.score4[0];
_root.replacescore = thisscore;
} else if ((thisscore > _root.score3[2]) && (thisscore <= _root.score2[2])) {
_root.top5namese = _root.score4[1];
_root.top5scorese = _root.score4[2];
_root.top5datee = _root.score4[3];
_root.top5namesd = _root.score3[1];
_root.top5scoresd = _root.score3[2];
_root.top5dated = _root.score3[3];
_root.top5namesc = "YOU";
_root.top5scoresc = thisscore;
_root.top5datec = "TODAY";
_root.top5namesb = _root.score2[1];
_root.top5scoresb = _root.score2[2];
_root.top5dateb = _root.score2[3];
_root.top5namesa = _root.score1[1];
_root.top5scoresa = _root.score1[2];
_root.top5datea = _root.score1[3];
_root.replaceid = _root.score3[0];
_root.replacescore = thisscore;
} else if ((thisscore > _root.score2[2]) && (thisscore <= _root.score1[2])) {
_root.top5namese = _root.score4[1];
_root.top5scorese = _root.score4[2];
_root.top5datee = _root.score4[3];
_root.top5namesd = _root.score3[1];
_root.top5scoresd = _root.score3[2];
_root.top5dated = _root.score3[3];
_root.top5namesc = _root.score2[1];
_root.top5scoresc = _root.score2[2];
_root.top5datec = _root.score2[3];
_root.top5namesb = "YOU";
_root.top5scoresb = thisscore;
_root.top5dateb = "TODAY";
_root.top5namesa = _root.score1[1];
_root.top5scoresa = _root.score1[2];
_root.top5datea = _root.score1[3];
_root.replaceid = _root.score2[0];
_root.replacescore = thisscore;
} else if (thisscore > _root.score1[2]) {
_root.top5namese = _root.score4[1];
_root.top5scorese = _root.score4[2];
_root.top5datee = _root.score4[3];
_root.top5namesd = _root.score3[1];
_root.top5scoresd = _root.score3[2];
_root.top5dated = _root.score3[3];
_root.top5namesc = _root.score2[1];
_root.top5scoresc = _root.score2[2];
_root.top5datec = _root.score2[3];
_root.top5namesb = _root.score1[1];
_root.top5scoresb = _root.score1[2];
_root.top5dateb = _root.score1[3];
_root.top5namesa = "YOU";
_root.top5scoresa = thisscore;
_root.top5datea = "TODAY";
_root.replaceid = _root.score1[0];
_root.replacescore = thisscore;
} else {
_root.top5namese = _root.score5[1];
_root.top5scorese = _root.score5[2];
_root.top5datee = _root.score5[3];
_root.top5namesd = _root.score4[1];
_root.top5scoresd = _root.score4[2];
_root.top5dated = _root.score4[3];
_root.top5namesc = _root.score3[1];
_root.top5scoresc = _root.score3[2];
_root.top5datec = _root.score3[3];
_root.top5namesb = _root.score2[1];
_root.top5scoresb = _root.score2[2];
_root.top5dateb = _root.score2[3];
_root.top5namesa = _root.score1[1];
_root.top5scoresa = _root.score1[2];
_root.top5datea = _root.score1[3];
_root.replaceid = 0;
}
}
trace("did this ");
Symbol 388 MovieClip Frame 3
_root.score = _root.score;
gameid = _root.gameid;
trace(_root.score);
trace("about to load ");
var ScoreData = new LoadVars();
ScoreData.onLoad = function () {
trace("loaded data ");
this.core1c = Math.abs(this.core1c);
this.core2c = Math.abs(this.core2c);
this.core3c = Math.abs(this.core3c);
this.core4c = Math.abs(this.core4c);
this.core5c = Math.abs(this.core5c);
_root.score1 = Array(this.core1a, this.core1b, this.core1c, this.core1d);
_root.score2 = Array(this.core2a, this.core2b, this.core2c, this.core2d);
_root.score3 = Array(this.core3a, this.core3b, this.core3c, this.core3d);
_root.score4 = Array(this.core4a, this.core4b, this.core4c, this.core4d);
_root.score5 = Array(this.core5a, this.core5b, this.core5c, this.core5d);
topfiver(_root.score);
if (_root.replaceid == 0) {
achiever = 0;
gotoAndPlay (23);
} else {
gotoAndPlay (5);
}
if (ScoreData.end != 1) {
gotoAndPlay (23);
}
};
var preventCaching = (getTimer() + random(10000));
trace("cache variable done ");
ScoreData.load((("http://www.isskerberos.org/gamescore/top5.php?gameid=" + _root.gameid) + "&preventCache=") + preventCaching);
trace("sent request to load data");
Symbol 388 MovieClip Frame 4
gotoAndPlay (3);
Symbol 388 MovieClip Frame 22
stop();
Symbol 388 MovieClip Frame 32
if (achiever == 1) {
if (_root.top5namesa == "YOU") {
_root.top5namesa = _root.mynameis;
} else if (_root.top5namesb == "YOU") {
_root.top5namesb = _root.mynameis;
} else if (_root.top5namesc == "YOU") {
_root.top5namesc = _root.mynameis;
} else if (_root.top5namesd == "YOU") {
_root.top5namesd = _root.mynameis;
} else if (_root.top5namese == "YOU") {
_root.top5namese = _root.mynameis;
}
}
if (ScoreData.end != 1) {
frufru.gotoAndStop(2);
} else {
frufru.gotoAndStop(1);
}
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 8
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
play();
Symbol 396 MovieClip Frame 12
removeMovieClip(this);
Symbol 404 Button
on (press) {
boardshuffle();
FXPlayer("buttonclick");
}
Symbol 405 Button
on (press) {
if (_root.sfx == 1) {
_root.sfx = 0;
_root.bkg.start(0, 5000);
_root.music.gotoAndStop(1);
} else {
_root.sfx = 1;
stopAllSounds();
_root.music.gotoAndStop(2);
}
if (_root.sfx != 1) {
FXPlayer("buttonclick");
}
}