Frame 1
stop();
this.createEmptyMovieClip("soundContainerButton", 7);
var sound_button = new Sound(this.soundContainerButton);
sound_button = new Sound();
sound_button.attachSound("sound_button");
sound_button.setVolume(50);
Instance of Symbol 12 MovieClip "mc_load_info" in Frame 1
//component parameters
onClipEvent (initialize) {
STREAM = false;
PLAY_TYPE = "bytes";
PLAY_BYTES = 10000;
PLAY_FRAMES = 0;
PLAY_PERCENTAGE = 0;
}
Instance of Symbol 17 MovieClip in Frame 1
onClipEvent (load) {
var myStartWidth = this._width;
this._width = 0;
}
onClipEvent (enterFrame) {
this._width = myStartWidth * _root.mc_load_info.fractionLoaded;
}
Frame 2
stop();
Frame 4
play();
Frame 36
stop();
Frame 39
stop();
name_txt.restrict = "a-z 0-9.:\\-@";
Selection.setFocus(name_txt);
Selection.setSelection(name_txt.length, name_txt.length);
ok_btn.onRelease = function () {
form.loadVariables("email.php", "POST");
nextFrame();
};
ok_btn.onKeyDown = function () {
if (Key.getCode() == 13) {
Key.removeListener(ok_btn);
this.onRelease();
}
};
Key.addListener(ok_btn);
Instance of Symbol 298 MovieClip "form" in Frame 39
onClipEvent (data) {
_root.nextFrame();
}
Frame 40
stop();
ok_btn.onKeyDown = function () {
if (Key.getCode() == 13) {
Key.removeListener(ok_btn);
gotoAndStop (11);
}
};
Key.addListener(ok_btn);
Frame 41
gotoAndStop (11);
Frame 42
function restartTimer() {
timewarning = false;
hours = "00";
minutes = "00";
seconds = "00";
milli = "00";
buttonPressTime = (getTimer() / 1000) - pauseLength;
pause();
}
function pause() {
pauseTime = getTimer() / 1000;
timing = false;
}
function unpause() {
unpauseTime = getTimer() / 1000;
pauseLength = (unpauseTime - pauseTime) + pauseLength;
timing = true;
}
function debugShowBoard() {
trace(blocks);
x = 0;
j = 0;
while (j < 10) {
trace((((((((((((((((((blocks[x] + "|") + blocks[x + 1]) + "|") + blocks[x + 2]) + "|") + blocks[x + 3]) + "|") + blocks[x + 4]) + "|") + blocks[x + 5]) + "|") + blocks[x + 6]) + "|") + blocks[x + 7]) + "|") + blocks[x + 8]) + "|") + blocks[x + 9]);
x = x + 10;
j++;
}
j = 0;
while (j < 100) {
trace((j + " | ") + blocks[j]);
j++;
}
}
function myRandom(minval, maxval) {
return(minval + Math.floor(Math.random() * ((maxval + 1) - minval)));
}
function getAnchors(pattern) {
if (pattern == 1) {
blocks[22] = ANCHOR;
blocks[44] = ANCHOR;
blocks[66] = ANCHOR;
} else if (pattern == 2) {
blocks[32] = ANCHOR;
blocks[44] = ANCHOR;
blocks[63] = ANCHOR;
} else if (pattern == 3) {
blocks[25] = ANCHOR;
blocks[32] = ANCHOR;
blocks[44] = ANCHOR;
blocks[63] = ANCHOR;
} else if (pattern == 4) {
blocks[22] = ANCHOR;
blocks[35] = ANCHOR;
blocks[53] = ANCHOR;
blocks[66] = ANCHOR;
} else if (pattern == 5) {
blocks[22] = ANCHOR;
blocks[34] = ANCHOR;
blocks[56] = ANCHOR;
blocks[63] = ANCHOR;
} else if (pattern == 6) {
blocks[22] = ANCHOR;
blocks[26] = ANCHOR;
blocks[62] = ANCHOR;
blocks[66] = ANCHOR;
} else if (pattern == 7) {
blocks[22] = ANCHOR;
blocks[34] = ANCHOR;
blocks[53] = ANCHOR;
blocks[55] = ANCHOR;
} else if (pattern == 8) {
blocks[33] = ANCHOR;
blocks[45] = ANCHOR;
blocks[62] = ANCHOR;
blocks[66] = ANCHOR;
} else if (pattern == 9) {
blocks[44] = ANCHOR;
} else if (pattern == 10) {
blocks[33] = ANCHOR;
blocks[55] = ANCHOR;
}
trace("anchors " + pattern);
}
function checkAnchors() {
levelOver = true;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
if (blocks[numb] == ANCHOR) {
levelOver = false;
}
j++;
}
i++;
}
if (levelOver == true) {
gotoAndStop (44);
if (!muted) {
sound_endlevel.start();
}
}
}
function checkGameOver() {
gameOver = true;
i = 11;
while (i < 18) {
if ((blocks[i] == 0) || (blocks[i] == 1)) {
gameOver = false;
}
i++;
}
i = 71;
while (i < 78) {
if ((blocks[i] == 0) || (blocks[i] == 1)) {
gameOver = false;
}
i++;
}
i = 1;
while (i < 8) {
j = (i * 10) + 1;
if ((blocks[j] == 0) || (blocks[j] == 1)) {
gameOver = false;
}
i++;
}
i = 1;
while (i < 8) {
j = (i * 10) + 7;
if ((blocks[j] == 0) || (blocks[j] == 1)) {
gameOver = false;
}
i++;
}
if (gameOver == true) {
gotoAndStop (45);
if (!muted) {
sound_endgame.start();
}
}
}
level = 0;
points = 0;
bonus = 0;
timebonus = 0;
bonusCount = 0;
targetOut = false;
basePos = 4;
ANCHOR = 2;
RED = 5;
GREEN = 4;
BLUE = 3;
rotated = false;
timerColor = new Color(timer);
timewarning = false;
endgame = false;
gamePaused = false;
timesecs = 0;
timemins = 0;
firing = false;
destroyAnchors = new Array();
anchorcheck = false;
anchorchecked = false;
anchorDestroy = false;
changePcolour = false;
blockColour = 0;
tempColour = 0;
fadeColour = 0;
patternColour = BLUE;
destroyMore = false;
patternType = 2;
target = 0;
blockTarget = 0;
rotated = 0;
targetOn = false;
rotating = false;
firing = false;
blocks = new Array(100);
destroy = new Array();
destroy2 = new Array();
this.createEmptyMovieClip("soundContainerFire", 1);
var sound_fire = new Sound(this.soundContainerFire);
sound_fire.attachSound("sound_fire");
sound_fire.setVolume(90);
this.createEmptyMovieClip("soundContainerPattern", 2);
var sound_pattern = new Sound(this.soundContainerPattern);
sound_pattern = new Sound();
sound_pattern.attachSound("sound_pattern");
sound_pattern.setVolume(55);
this.createEmptyMovieClip("soundContainerPattern2", 3);
var sound_pattern2 = new Sound(this.soundContainerPattern2);
sound_pattern2 = new Sound();
sound_pattern2.attachSound("sound_pattern");
sound_pattern2.setVolume(30);
this.createEmptyMovieClip("soundContainerAnchor", 4);
var sound_anchor = new Sound(this.soundContainerAnchor);
sound_anchor = new Sound();
sound_anchor.attachSound("sound_anchor");
sound_anchor.setVolume(50);
this.createEmptyMovieClip("soundContainerEndlevel", 5);
var sound_endlevel = new Sound(this.soundContainerEndlevel);
sound_endlevel = new Sound();
sound_endlevel.attachSound("sound_endlevel");
sound_endlevel.setVolume(50);
this.createEmptyMovieClip("soundContainerEndgame", 6);
var sound_endgame = new Sound(this.soundContainerEndgame);
sound_endgame = new Sound();
sound_endgame.attachSound("sound_endgame");
sound_endgame.setVolume(50);
_root.onEnterFrame = function () {
totalTime = (getTimer() / 1000) - pauseLength;
goTime = totalTime - buttonPressTime;
if (timing) {
hours = Math.floor(goTime / 3600);
minutes = Math.floor(((goTime / 3600) - hours) * 60);
seconds = Math.floor(((((goTime / 3600) - hours) * 60) - minutes) * 60);
milli = Math.floor((gotime - ((seconds + (minutes * 60)) + (hours * 3600))) * 100);
}
if (level < 7) {
timesecs = (70 - seconds) - (level * 10);
timemins = 4 - minutes;
} else if (level < 13) {
timesecs = (70 - seconds) - ((level - 6) * 10);
timemins = 3 - minutes;
} else if (level < 19) {
timesecs = (70 - seconds) - ((level - 12) * 10);
timemins = 2 - minutes;
} else if (level < 25) {
timesecs = (70 - seconds) - ((level - 18) * 10);
timemins = 1 - minutes;
} else if (level < 133) {
timesecs = (70 - seconds) - ((level - 24) * 10);
timemins = 0;
}
if (timesecs == 60) {
timesecs = 0;
timemins++;
}
if (((timesecs == 0) && (timemins == 0)) && (!endgame)) {
gotoAndStop (46);
if (!muted) {
sound_endgame.start();
endgame = true;
}
}
if (timemins < 10) {
timemins = "0" + timemins;
}
if (timesecs < 10) {
timesecs = "0" + timesecs;
}
if (((timemins < 1) && (timesecs < 31)) && (!timewarning)) {
timerColor.setRGB(16711680);
timewarning = true;
if (!muted) {
sound_button.start();
}
}
};
Instance of Symbol 328 MovieClip in Frame 42
on (keyPress "<Right>") {
if ((_root.basePos < 7) && (!_root.gamePaused)) {
_root.base._x = _root.base._x + 35;
_root.basePos++;
}
}
on (keyPress "<Left>") {
if ((_root.basePos > 1) && (!_root.gamePaused)) {
_root.base._x = _root.base._x - 35;
_root.basePos--;
}
}
on (keyPress "<Up>") {
if ((!_root.rotating) && (!_root.gamePaused)) {
_root.rotating = true;
if (_root.rotated == 0) {
_root.rotated = 3;
} else {
_root.rotated--;
}
_root.rotate_ccw.play();
trace(_root.rotated);
}
}
on (keyPress "<Down>") {
if ((!_root.rotating) && (!_root.gamePaused)) {
_root.rotating = true;
if (_root.rotated == 3) {
_root.rotated = 0;
} else {
_root.rotated++;
}
_root.rotate_cw.play();
trace(_root.rotated);
}
}
on (keyPress "<Space>") {
trace(_root.blockColour);
trace(_root.patternColour);
if ((!_root.firing) && (!_root.gamePaused)) {
_root.firing = true;
_root.rotatedB = _root.rotated;
_root.fireBlock();
}
}
onClipEvent (enterFrame) {
if (_root.targetOn) {
if (_root.firing) {
if (!_root.rotatedB) {
_root.board.newBlock._y = _root.board.newBlock._y - 35;
_root.blockTarget = _root.blockTarget - 35;
if (_root.blockTarget <= 35) {
_root.board.newBlock.gotoAndStop(1);
_root.blocks[_root.target] = _root.blockColour;
_root.checkPattern(_root.target, _root.blockColour);
_root.updateBlocks();
_root.getNewBlock();
_root.firing = false;
}
} else if (_root.rotatedB == 2) {
_root.board.newBlock._y = _root.board.newBlock._y + 35;
_root.blockTarget = _root.blockTarget - 35;
if (_root.blockTarget <= 35) {
_root.board.newBlock.gotoAndStop(1);
_root.blocks[_root.target] = _root.blockColour;
_root.checkPattern(_root.target, _root.blockColour);
_root.updateBlocks();
_root.getNewBlock();
_root.firing = false;
}
} else if (_root.rotatedB == 3) {
trace(_root.blockTarget);
_root.board.newBlock._x = _root.board.newBlock._x + 35;
_root.blockTarget = _root.blockTarget - 35;
if (_root.blockTarget <= 0) {
_root.board.newBlock.gotoAndStop(1);
_root.blocks[_root.target] = _root.blockColour;
_root.checkPattern(_root.target, _root.blockColour);
_root.updateBlocks();
_root.getNewBlock();
_root.firing = false;
}
} else if (_root.rotatedB == 1) {
trace(_root.blockTarget);
_root.board.newBlock._x = _root.board.newBlock._x - 35;
_root.blockTarget = _root.blockTarget - 35;
if (_root.blockTarget <= 0) {
_root.board.newBlock.gotoAndStop(1);
_root.blocks[_root.target] = _root.blockColour;
_root.checkPattern(_root.target, _root.blockColour);
_root.updateBlocks();
_root.getNewBlock();
_root.firing = false;
}
}
}
} else {
_root.board.newBlock.gotoAndStop(1);
_root.firing = false;
_root.base.newBlock._x = 0;
_root.base.newBlock._y = 0;
}
}
Frame 43
function checkPattern(x, col) {
trace("checking anchor points");
trace((("pcolour | " + patternColour) + "| bcolour | ") + blockColour);
if (patternColour == blockColour) {
trace((("colour " + col) + " ") + blocks[x + 1]);
trace((("thisx " + x) + " ") + blocks[x]);
fadeColour = col;
destroy.length = 0;
if (patternType == 1) {
if (blocks[x + 1] == col) {
destroy.push(x + 1);
}
if (blocks[x - 1] == col) {
destroy.push(x - 1);
}
if (blocks[x + 10] == col) {
destroy.push(x + 10);
}
if (blocks[x - 10] == col) {
destroy.push(x - 10);
}
} else if (patternType == 2) {
if (blocks[x + 9] == col) {
destroy.push(x + 9);
}
if (blocks[x - 9] == col) {
destroy.push(x - 9);
}
if (blocks[x + 11] == col) {
destroy.push(x + 11);
}
if (blocks[x - 11] == col) {
destroy.push(x - 11);
}
} else if (patternType == 3) {
if (blocks[x + 1] == col) {
if (blocks[x + 2] == col) {
destroy.push(x + 1);
destroy.push(x + 2);
} else if (blocks[x - 1] == col) {
destroy.push(x + 1);
destroy.push(x - 1);
}
}
if (blocks[x - 1] == col) {
if (blocks[x - 2] == col) {
destroy.push(x - 1);
destroy.push(x - 2);
}
}
if (blocks[x + 10] == col) {
if (blocks[x + 20] == col) {
destroy.push(x + 10);
destroy.push(x + 20);
} else if (blocks[x - 10] == col) {
destroy.push(x + 10);
destroy.push(x - 10);
}
}
if (blocks[x - 10] == col) {
if (blocks[x - 20] == col) {
destroy.push(x - 10);
destroy.push(x - 20);
}
}
} else if (patternType == 4) {
if (blocks[x + 9] == col) {
if (blocks[x + 18] == col) {
destroy.push(x + 9);
destroy.push(x + 18);
} else if (blocks[x - 9] == col) {
destroy.push(x + 9);
destroy.push(x - 9);
}
}
if (blocks[x - 9] == col) {
if (blocks[x - 18] == col) {
destroy.push(x - 9);
destroy.push(x - 18);
}
}
if (blocks[x + 11] == col) {
if (blocks[x + 22] == col) {
destroy.push(x + 11);
destroy.push(x + 22);
} else if (blocks[x - 11] == col) {
destroy.push(x + 11);
destroy.push(x - 11);
}
}
if (blocks[x - 11] == col) {
if (blocks[x - 22] == col) {
destroy.push(x - 11);
destroy.push(x - 22);
}
}
} else if (patternType == 5) {
if (((blocks[x + 1] == col) && (blocks[x + 11] == col)) && (blocks[x + 10] == col)) {
destroy.push(x + 1);
destroy.push(x + 11);
destroy.push(x + 10);
} else if (((blocks[x - 1] == col) && (blocks[x + 9] == col)) && (blocks[x + 10] == col)) {
destroy.push(x - 1);
destroy.push(x + 9);
destroy.push(x + 10);
} else if (((blocks[x - 1] == col) && (blocks[x - 11] == col)) && (blocks[x - 10] == col)) {
destroy.push(x - 1);
destroy.push(x - 11);
destroy.push(x - 10);
} else if (((blocks[x + 1] == col) && (blocks[x - 9] == col)) && (blocks[x - 10] == col)) {
destroy.push(x + 1);
destroy.push(x - 9);
destroy.push(x - 10);
}
} else if (patternType == 6) {
if (((blocks[x + 1] == col) && (blocks[x + 2] == col)) && (blocks[x + 3] == col)) {
destroy.push(x + 1);
destroy.push(x + 2);
destroy.push(x + 3);
} else if (((blocks[x + 1] == col) && (blocks[x + 2] == col)) && (blocks[x - 1] == col)) {
destroy.push(x + 1);
destroy.push(x + 2);
destroy.push(x - 1);
} else if (((blocks[x + 1] == col) && (blocks[x - 1] == col)) && (blocks[x - 2] == col)) {
destroy.push(x + 1);
destroy.push(x - 1);
destroy.push(x - 2);
} else if (((blocks[x - 1] == col) && (blocks[x - 2] == col)) && (blocks[x - 3] == col)) {
destroy.push(x - 1);
destroy.push(x - 2);
destroy.push(x - 3);
} else if (((blocks[x + 10] == col) && (blocks[x + 20] == col)) && (blocks[x + 30] == col)) {
destroy.push(x + 10);
destroy.push(x + 20);
destroy.push(x + 30);
} else if (((blocks[x + 10] == col) && (blocks[x + 20] == col)) && (blocks[x - 10] == col)) {
destroy.push(x + 10);
destroy.push(x + 20);
destroy.push(x - 10);
} else if (((blocks[x + 10] == col) && (blocks[x - 10] == col)) && (blocks[x - 20] == col)) {
destroy.push(x + 10);
destroy.push(x - 10);
destroy.push(x - 20);
} else if (((blocks[x - 10] == col) && (blocks[x - 20] == col)) && (blocks[x - 30] == col)) {
destroy.push(x - 10);
destroy.push(x - 20);
destroy.push(x - 30);
}
} else if (patternType == 7) {
if (((blocks[x + 11] == col) && (blocks[x + 22] == col)) && (blocks[x + 33] == col)) {
destroy.push(x + 11);
destroy.push(x + 22);
destroy.push(x + 33);
} else if (((blocks[x + 11] == col) && (blocks[x + 22] == col)) && (blocks[x - 11] == col)) {
destroy.push(x + 11);
destroy.push(x + 22);
destroy.push(x - 11);
} else if (((blocks[x + 11] == col) && (blocks[x - 11] == col)) && (blocks[x - 22] == col)) {
destroy.push(x + 11);
destroy.push(x - 11);
destroy.push(x - 22);
} else if (((blocks[x - 11] == col) && (blocks[x - 22] == col)) && (blocks[x - 33] == col)) {
destroy.push(x - 11);
destroy.push(x - 22);
destroy.push(x - 33);
} else if (((blocks[x + 9] == col) && (blocks[x + 18] == col)) && (blocks[x + 27] == col)) {
destroy.push(x + 9);
destroy.push(x + 18);
destroy.push(x + 28);
} else if (((blocks[x + 9] == col) && (blocks[x + 18] == col)) && (blocks[x - 9] == col)) {
destroy.push(x + 9);
destroy.push(x + 18);
destroy.push(x - 9);
} else if (((blocks[x + 9] == col) && (blocks[x - 9] == col)) && (blocks[x - 18] == col)) {
destroy.push(x + 9);
destroy.push(x - 9);
destroy.push(x - 18);
} else if (((blocks[x - 9] == col) && (blocks[x - 18] == col)) && (blocks[x - 27] == col)) {
destroy.push(x - 9);
destroy.push(x - 18);
destroy.push(x - 27);
}
} else if (patternType == 8) {
if ((((blocks[x + 1] == col) && (blocks[x + 2] == col)) && (blocks[x - 8] == col)) && (blocks[x - 18] == col)) {
destroy.push(x + 1);
destroy.push(x + 2);
destroy.push(x - 8);
destroy.push(x - 18);
} else if ((((blocks[x + 1] == col) && (blocks[x - 1] == col)) && (blocks[x - 9] == col)) && (blocks[x - 19] == col)) {
destroy.push(x + 1);
destroy.push(x - 1);
destroy.push(x - 9);
destroy.push(x - 19);
} else if ((((blocks[x - 1] == col) && (blocks[x - 2] == col)) && (blocks[x - 10] == col)) && (blocks[x - 20] == col)) {
destroy.push(x - 1);
destroy.push(x - 2);
destroy.push(x - 10);
destroy.push(x - 20);
} else if ((((blocks[x + 8] == col) && (blocks[x + 9] == col)) && (blocks[x + 10] == col)) && (blocks[x - 10] == col)) {
destroy.push(x + 8);
destroy.push(x + 9);
destroy.push(x + 10);
destroy.push(x - 10);
} else if ((((blocks[x + 18] == col) && (blocks[x + 19] == col)) && (blocks[x + 20] == col)) && (blocks[x + 10] == col)) {
destroy.push(x + 18);
destroy.push(x + 19);
destroy.push(x + 20);
destroy.push(x + 10);
} else if ((((blocks[x + 10] == col) && (blocks[x + 20] == col)) && (blocks[x + 21] == col)) && (blocks[x + 22] == col)) {
destroy.push(x + 10);
destroy.push(x + 20);
destroy.push(x + 21);
destroy.push(x + 22);
} else if ((((blocks[x - 10] == col) && (blocks[x + 10] == col)) && (blocks[x + 11] == col)) && (blocks[x + 12] == col)) {
destroy.push(x - 10);
destroy.push(x + 10);
destroy.push(x + 11);
destroy.push(x + 12);
} else if ((((blocks[x - 20] == col) && (blocks[x - 10] == col)) && (blocks[x + 1] == col)) && (blocks[x + 2] == col)) {
destroy.push(x - 20);
destroy.push(x - 10);
destroy.push(x + 1);
destroy.push(x + 2);
} else if ((((blocks[x + 1] == col) && (blocks[x - 21] == col)) && (blocks[x - 11] == col)) && (blocks[x - 1] == col)) {
destroy.push(x - 21);
destroy.push(x - 11);
destroy.push(x - 1);
destroy.push(x + 1);
} else if ((((blocks[x - 22] == col) && (blocks[x - 12] == col)) && (blocks[x - 1] == col)) && (blocks[x - 2] == col)) {
destroy.push(x - 22);
destroy.push(x - 12);
destroy.push(x - 2);
destroy.push(x - 1);
} else if ((((blocks[x - 20] == col) && (blocks[x - 19] == col)) && (blocks[x - 18] == col)) && (blocks[x - 10] == col)) {
destroy.push(x - 20);
destroy.push(x - 19);
destroy.push(x - 18);
destroy.push(x - 10);
} else if ((((blocks[x - 10] == col) && (blocks[x - 9] == col)) && (blocks[x - 8] == col)) && (blocks[x + 10] == col)) {
destroy.push(x - 10);
destroy.push(x - 9);
destroy.push(x - 8);
destroy.push(x + 10);
} else if ((((blocks[x + 1] == col) && (blocks[x + 2] == col)) && (blocks[x + 10] == col)) && (blocks[x + 20] == col)) {
destroy.push(x + 1);
destroy.push(x + 2);
destroy.push(x + 10);
destroy.push(x + 20);
} else if ((((blocks[x + 1] == col) && (blocks[x - 1] == col)) && (blocks[x + 9] == col)) && (blocks[x + 19] == col)) {
destroy.push(x - 1);
destroy.push(x + 9);
destroy.push(x + 19);
destroy.push(x + 1);
} else if ((((blocks[x - 1] == col) && (blocks[x - 2] == col)) && (blocks[x + 8] == col)) && (blocks[x + 18] == col)) {
destroy.push(x - 1);
destroy.push(x - 2);
destroy.push(x + 8);
destroy.push(x + 18);
} else if ((((blocks[x - 10] == col) && (blocks[x - 20] == col)) && (blocks[x - 21] == col)) && (blocks[x - 22] == col)) {
destroy.push(x - 10);
destroy.push(x - 20);
destroy.push(x - 21);
destroy.push(x - 22);
} else if ((((blocks[x + 10] == col) && (blocks[x - 10] == col)) && (blocks[x - 11] == col)) && (blocks[x - 12] == col)) {
destroy.push(x + 10);
destroy.push(x - 10);
destroy.push(x - 11);
destroy.push(x - 12);
} else if ((((blocks[x + 20] == col) && (blocks[x + 10] == col)) && (blocks[x - 1] == col)) && (blocks[x - 2] == col)) {
destroy.push(x + 20);
destroy.push(x + 10);
destroy.push(x - 1);
destroy.push(x - 2);
} else if ((((blocks[x - 1] == col) && (blocks[x + 21] == col)) && (blocks[x + 11] == col)) && (blocks[x + 1] == col)) {
destroy.push(x + 21);
destroy.push(x + 11);
destroy.push(x + 1);
destroy.push(x - 1);
} else if ((((blocks[x + 22] == col) && (blocks[x + 12] == col)) && (blocks[x + 1] == col)) && (blocks[x + 2] == col)) {
destroy.push(x + 22);
destroy.push(x + 12);
destroy.push(x + 2);
destroy.push(x + 1);
}
} else if (patternType == 9) {
if ((((blocks[x - 9] == col) && (blocks[x - 10] == col)) && (blocks[x - 11] == col)) && (blocks[x - 20] == col)) {
destroy.push(x - 9);
destroy.push(x - 10);
destroy.push(x - 11);
destroy.push(x - 20);
} else if ((((blocks[x - 1] == col) && (blocks[x - 10] == col)) && (blocks[x + 1] == col)) && (blocks[x + 10] == col)) {
destroy.push(x - 1);
destroy.push(x - 10);
destroy.push(x + 1);
destroy.push(x + 10);
} else if ((((blocks[x + 9] == col) && (blocks[x + 10] == col)) && (blocks[x + 11] == col)) && (blocks[x + 20] == col)) {
destroy.push(x + 9);
destroy.push(x + 10);
destroy.push(x + 11);
destroy.push(x + 20);
} else if ((((blocks[x - 1] == col) && (blocks[x - 2] == col)) && (blocks[x - 11] == col)) && (blocks[x + 9] == col)) {
destroy.push(x - 1);
destroy.push(x - 2);
destroy.push(x - 11);
destroy.push(x + 9);
} else if ((((blocks[x + 1] == col) && (blocks[x + 2] == col)) && (blocks[x + 11] == col)) && (blocks[x - 9] == col)) {
destroy.push(x + 1);
destroy.push(x + 2);
destroy.push(x + 11);
destroy.push(x - 9);
}
} else if (patternType == 10) {
if ((((blocks[x - 9] == col) && (blocks[x - 11] == col)) && (blocks[x + 9] == col)) && (blocks[x + 11] == col)) {
destroy.push(x - 9);
destroy.push(x - 11);
destroy.push(x + 9);
destroy.push(x + 11);
} else if ((((blocks[x - 22] == col) && (blocks[x - 20] == col)) && (blocks[x - 11] == col)) && (blocks[x - 2] == col)) {
destroy.push(x - 22);
destroy.push(x - 20);
destroy.push(x - 11);
destroy.push(x - 2);
} else if ((((blocks[x - 2] == col) && (blocks[x + 9] == col)) && (blocks[x + 18] == col)) && (blocks[x + 20] == col)) {
destroy.push(x - 2);
destroy.push(x + 9);
destroy.push(x + 18);
destroy.push(x + 20);
} else if ((((blocks[x - 20] == col) && (blocks[x - 18] == col)) && (blocks[x - 9] == col)) && (blocks[x + 2] == col)) {
destroy.push(x - 20);
destroy.push(x - 18);
destroy.push(x - 9);
destroy.push(x + 2);
} else if ((((blocks[x + 2] == col) && (blocks[x + 11] == col)) && (blocks[x + 20] == col)) && (blocks[x + 22] == col)) {
destroy.push(x + 2);
destroy.push(x + 11);
destroy.push(x + 20);
destroy.push(x + 22);
}
}
}
destroyAnchors.length = 0;
if (blocks[x + 1] == 2) {
destroyAnchors.push(x + 1);
}
if (blocks[x + 9] == 2) {
destroyAnchors.push(x + 9);
}
if (blocks[x + 10] == 2) {
destroyAnchors.push(x + 10);
}
if (blocks[x + 11] == 2) {
destroyAnchors.push(x + 11);
}
if (blocks[x - 1] == 2) {
destroyAnchors.push(x - 1);
}
if (blocks[x - 9] == 2) {
destroyAnchors.push(x - 9);
}
if (blocks[x - 10] == 2) {
destroyAnchors.push(x - 10);
}
if (blocks[x - 11] == 2) {
destroyAnchors.push(x - 11);
}
trace("anchor " + destroyAnchors);
if ((destroy.length == 0) && (destroyAnchors.length == 0)) {
checkGameOver();
}
if (destroyAnchors.length > 0) {
trace("checking destroys");
i = 0;
do {
anchorcheck = destroyAnchors[i];
if ((((((((blocks[anchorcheck + 1] == col) && (blocks[anchorcheck + 9] == col)) && (blocks[anchorcheck + 10] == col)) && (blocks[anchorcheck + 11] == col)) && (blocks[anchorcheck - 1] == col)) && (blocks[anchorcheck - 9] == col)) && (blocks[anchorcheck - 10] == col)) && (blocks[anchorcheck - 11] == col)) {
tempColour = patternColour;
patternColour = col;
changePcolour = true;
trace("destroying blocks");
points = points + 500;
destroy.push(anchorcheck);
destroy.push(anchorcheck + 1);
destroy.push(anchorcheck + 9);
destroy.push(anchorcheck + 10);
destroy.push(anchorcheck + 11);
destroy.push(anchorcheck - 1);
destroy.push(anchorcheck - 9);
destroy.push(anchorcheck - 10);
destroy.push(anchorcheck - 11);
anchorDestroy = true;
anchorchecked = true;
if (!muted) {
sound_anchor.start();
}
}
i++;
} while (i <= destroyAnchors.length);
}
if (destroy.length > 0) {
if (!muted) {
sound_pattern.start();
}
points = points + (patternType * 50);
destroy.push(x);
trace("test" + destroy);
i = 0;
while (i <= destroy.length) {
removeBlock = destroy[i];
if (patternColour == BLUE) {
blocks[removeBlock] = 10;
} else if (patternColour == GREEN) {
blocks[removeBlock] = 20;
} else if (patternColour == RED) {
blocks[removeBlock] = 30;
}
i++;
}
if ((anchorcheck != false) && (changePcolour)) {
patternColour = tempColour;
changePcolour = false;
}
destroyBlocks.gotoAndPlay(2);
updateBlocks();
if (!anchorchecked) {
getNewPattern();
} else {
anchorchecked = false;
}
}
}
function fadeMore() {
trace("fademore");
destroy2.length = 0;
if (!anchorDestroy) {
i = 0;
while (i < destroy.length) {
destroy2[i] = destroy[i];
anchorDestroy = false;
i++;
}
} else {
anchorDestroy = false;
}
destroy.length = 0;
trace(destroy);
trace("bonus points" + destroy2.length);
x = 0;
while (x < destroy2.length) {
if (!muted) {
sound_pattern2.start();
}
y = destroy2[x];
if (blocks[y + 1] == fadeColour) {
destroy.push(y + 1);
points = points + 10;
}
if (blocks[y - 1] == fadeColour) {
destroy.push(y - 1);
points = points + 10;
}
if (blocks[y + 10] == fadeColour) {
destroy.push(y + 10);
points = points + 10;
}
if (blocks[y - 10] == fadeColour) {
destroy.push(y - 10);
points = points + 10;
}
x++;
}
if (destroy.length > 0) {
destroyMore = true;
i = 0;
while (i <= destroy.length) {
removeBlock = destroy[i];
points = points + 10;
if (fadeColour == BLUE) {
blocks[removeBlock] = 10;
} else if (fadeColour == GREEN) {
blocks[removeBlock] = 20;
} else if (fadeColour == RED) {
blocks[removeBlock] = 30;
}
bonusCount++;
i++;
}
updateBlocks();
} else {
destroyMore = false;
}
bonus = bonus + (bonusCount * 10);
bonusCount = 0;
}
function getNewPattern() {
trace("getNewPattern");
oldnum = numb;
do {
if (level < 2) {
numb = myRandom(1, 12);
} else if (level < 3) {
numb = myRandom(1, 21);
} else {
numb = myRandom(1, 30);
}
} while (numb == oldnumb);
pattern1.gotoAndStop(numb);
pattern2.gotoAndStop(numb);
pattern3.gotoAndStop(numb);
pattern4.gotoAndStop(numb);
if (numb < 4) {
patternType = 1;
} else if (numb < 7) {
patternType = 2;
} else if (numb < 10) {
patternType = 3;
} else if (numb < 13) {
patternType = 4;
} else if (numb < 16) {
patternType = 5;
} else if (numb < 19) {
patternType = 6;
} else if (numb < 22) {
patternType = 7;
} else if (numb < 25) {
patternType = 8;
} else if (numb < 28) {
patternType = 9;
} else if (numb < 31) {
patternType = 10;
}
patternScore = patternType * 50;
if ((((((((((numb == 1) || (numb == 4)) || (numb == 7)) || (numb == 10)) || (numb == 13)) || (numb == 16)) || (numb == 19)) || (numb == 22)) || (numb == 25)) || (numb == 28)) {
patternColour = BLUE;
} else if ((((((((((numb == 2) || (numb == 5)) || (numb == 8)) || (numb == 11)) || (numb == 14)) || (numb == 17)) || (numb == 20)) || (numb == 23)) || (numb == 26)) || (numb == 29)) {
patternColour = GREEN;
} else if ((((((((((numb == 3) || (numb == 6)) || (numb == 9)) || (numb == 12)) || (numb == 15)) || (numb == 18)) || (numb == 21)) || (numb == 24)) || (numb == 27)) || (numb == 30)) {
patternColour = RED;
}
}
function initLevel() {
if (level == 1) {
i = 0;
while (i < 100) {
blocks[i] = 0;
i++;
}
}
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "board.block" + numb;
eval (name).name = numb;
j++;
}
i++;
}
if (level < 2) {
numb = myRandom(9, 10);
getAnchors(numb);
} else if (level < 3) {
numb = myRandom(1, 2);
getAnchors(numb);
} else {
numb = myRandom(1, 8);
getAnchors(numb);
}
updateBlocks();
getNewBlock();
}
function updateBlocks() {
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "board.block" + numb;
eval (name).gotoAndStop(blocks[numb]);
j++;
}
i++;
}
}
function fireBlock() {
targetOn = false;
target = findTarget();
if (!muted) {
sound_fire.start();
}
if (!rotated) {
base.newBlock._x = 500;
board.newBlock._x = -140 + (35 * basePos);
board.newBlock._y = 175;
board.newBlock._rotation = 0;
board.newBlock.gotoAndStop(blockColour);
if (target != 0) {
blockTarget = 275 - (Math.floor(target / 10) * 35);
} else {
blockTarget = 380;
}
target = target + 10;
if (target < 78) {
targetOn = true;
}
firing = true;
} else if (rotated == 2) {
base.newBlock._x = 500;
board.newBlock._x = -140 + (35 * (8 - basePos));
board.newBlock._y = -175;
board.newBlock._rotation = 180;
board.newBlock.gotoAndStop(blockColour);
if (target != 0) {
blockTarget = 275 - (Math.floor(8 - (target / 10)) * 35);
} else {
blockTarget = 380;
}
target = target - 10;
trace(target);
if ((target > 10) || (target < 0)) {
targetOn = true;
}
firing = true;
} else if (rotated == 3) {
trace(target);
base.newBlock._x = 500;
trace("fired");
board.newBlock._x = -175;
board.newBlock._y = -140 + (35 * basePos);
board.newBlock._rotation = 90;
board.newBlock.gotoAndStop(blockColour);
if (target != 0) {
blockTarget = 275 - ((8 - (target % 10)) * 35);
} else {
blockTarget = 345;
}
target = target - 1;
if ((target % 10) != 0) {
targetOn = true;
}
firing = true;
} else if (rotated == 1) {
base.newBlock._x = 500;
board.newBlock._x = 175;
board.newBlock._y = -140 + (35 * (8 - basePos));
board.newBlock._rotation = -90;
board.newBlock.gotoAndStop(blockColour);
if (target != 0) {
blockTarget = 275 - ((target % 10) * 35);
} else {
blockTarget = 345;
}
target = target + 1;
if ((target % 10) != 8) {
targetOn = true;
}
firing = true;
}
}
function getNewBlock() {
checkAnchors();
if (!targetOut) {
blockColour = myRandom(3, 5);
} else {
targetOut = false;
}
base.newBlock.gotoAndStop(blockColour);
base.newBlock._x = 0;
base.newBlock._y = 0;
}
function findTarget() {
target = 0;
if (!rotated) {
i = 7;
do {
numb = basePos + (i * 10);
if (blocks[numb] > 1) {
target = numb;
}
i--;
} while ((i > 0) && (target == 0));
if (i == 0) {
targetOut = true;
}
return(target);
}
if (rotated == 2) {
i = 1;
do {
numb = (8 - basePos) + (i * 10);
if (blocks[numb] > 1) {
target = numb;
}
i++;
} while ((i < 8) && (target == 0));
if (i == 8) {
targetOut = true;
}
return(target);
}
if (rotated == 3) {
i = 1;
do {
numb = (basePos * 10) + i;
if (blocks[numb] > 1) {
target = numb;
}
i++;
} while ((i < 8) && (target == 0));
if (i == 8) {
targetOut = true;
}
return(target);
}
if (rotated == 1) {
i = 7;
do {
numb = ((8 - basePos) * 10) + i;
if (blocks[numb] > 1) {
target = numb;
}
i--;
} while ((i > 0) && (target == 0));
if (i == 0) {
targetOut = true;
}
return(target);
}
}
stop();
basePos = 4;
points = (points + bonus) + timebonus;
bonus = 0;
level++;
restartTimer();
unpause();
initLevel();
getNewPattern();
Frame 44
pause();
timebonus = (timesecs * 10) + (timemins * 600);
totalpoints = (points + bonus) + timebonus;
stop();
nxt_btn.onRelease = function () {
gotoAndPlay (43);
};
nxt_btn.onKeyDown = function () {
if (Key.getCode() == 32) {
Key.removeListener(nxt_btn);
gotoAndPlay (43);
}
};
Key.addListener(nxt_btn);
Frame 45
pause();
totalpoints = points + bonus;
stop();
nxt_btn.onRelease = function () {
gotoAndPlay (47);
};
nxt_btn.onKeyDown = function () {
if (Key.getCode() == 32) {
Key.removeListener(nxt_btn);
gotoAndPlay (47);
}
};
Key.addListener(nxt_btn);
Frame 46
pause();
totalpoints = points + bonus;
stop();
nxt_btn.onRelease = function () {
gotoAndPlay (47);
};
nxt_btn.onKeyDown = function () {
if (Key.getCode() == 32) {
Key.removeListener(nxt_btn);
gotoAndPlay (47);
}
};
Key.addListener(nxt_btn);
Frame 47
stop();
Symbol 12 MovieClip Frame 1
function formatBytes(bytes) {
var kb = 1024;
var mb = (kb * 1024);
var tempNum = 0;
if (bytes >= mb) {
tempNum = String(Math.floor((bytes / mb) * 100) / 100);
if (tempNum.substring(tempNum.indexOf("."), tempNum.length).length == 2) {
tempNum = tempNum + "0";
}
tempNum = tempNum + " MB";
} else if (bytes >= kb) {
tempNum = String(Math.floor((bytes / kb) * 100) / 100);
if (tempNum.substring(tempNum.indexOf("."), tempNum.length).length == 2) {
tempNum = tempNum + "0";
}
tempNum = tempNum + " KB";
} else {
tempNum = bytes + " B";
}
return(tempNum);
}
this._visible = false;
var isLoaded = false;
var totalBytes = _parent.getBytesTotal();
var loadedBytes = _parent.getBytesLoaded();
var totalFrames = _parent._totalFrames();
var loadedFrames = _parent._framesLoaded();
var fractionLoaded = 0;
var percentLoaded = "0%";
var bytesPerSecond = 0;
var sizePerSecond = formatBytes(bytesPerSecond);
var elapsedTime = "0:00";
var estimatedTime = "0:00";
var estimatedTimeLeft = "0:00";
var gStartTime = getTimer();
var gCurrentTime = getTimer();
var gSampleTimer = (gCurrentTime - gStartTime);
var gSizeSample = loadedBytes;
var framesPerSecond = 0;
var frameCounter = 0;
var totalSize = formatBytes(totalBytes);
var loadedSize = formatBytes(loadedBytes);
var loadedBytes = 0;
var gLoading = true;
var gPlaying = false;
_parent.stop();
Symbol 12 MovieClip Frame 2
if (gLoading) {
loadedBytes = _parent.getBytesLoaded();
loadedSize = formatBytes(loadedBytes);
loadedFrames = _parent._framesLoaded;
gCurrentTime = getTimer();
var elapsedMinutes = Math.floor(((gCurrentTime - gStartTime) / 1000) / 60);
var elapsedSeconds = Math.floor(((gCurrentTime - gStartTime) / 1000) % 60);
if (String(elapsedSeconds).length == 1) {
elapsedSeconds = "0" + elapsedSeconds;
}
elapsedTime = (elapsedMinutes + ":") + elapsedSeconds;
frameCounter++;
if ((gCurrentTime - gStartTime) >= (gSampleTimer + 1000)) {
framesPerSecond = frameCounter;
frameCounter = 0;
bytesPerSecond = loadedBytes - gSizeSample;
sizePerSecond = formatBytes(bytesPerSecond);
if (STREAM && (PLAY_TYPE == "auto")) {
if ((loadedFrames / framesPerSecond) > ((totalBytes - loadedBytes) / bytesPerSecond)) {
_parent.play();
}
}
var estimatedMinutes = Math.floor((totalBytes / bytesPerSecond) / 60);
var estimatedSeconds = Math.floor((totalBytes / bytesPerSecond) % 60);
if (String(estimatedSeconds).length == 1) {
estimatedSeconds = "0" + estimatedSeconds;
}
estimatedTime = (estimatedMinutes + ":") + estimatedSeconds;
var estimatedMinutesLeft = Math.floor(((totalBytes - loadedBytes) / bytesPerSecond) / 60);
var estimatedSecondsLeft = Math.floor(((totalBytes - loadedBytes) / bytesPerSecond) % 60);
if (String(estimatedSecondsLeft).length == 1) {
estimatedSecondsLeft = "0" + estimatedSecondsLeft;
}
estimatedTimeLeft = (estimatedMinutesLeft + ":") + estimatedSecondsLeft;
gSizeSample = loadedBytes;
gSampleTimer = gCurrentTime - gStartTime;
}
fractionLoaded = loadedBytes / totalBytes;
percentLoaded = Math.floor(fractionLoaded * 100) + "%";
if (STREAM) {
switch (PLAY_TYPE) {
case "bytes" :
if (loadedBytes >= PLAY_BYTES) {
if (!gPlaying) {
_parent.play();
gPlaying = true;
}
}
break;
case "frames" :
if (loadedFrames >= PLAY_FRAMES) {
if (!gPlaying) {
_parent.play();
gPlaying = true;
}
}
break;
case "percent" :
if ((fractionLoaded * 100) < PLAY_PERCENT) {
break;
}
if (gPlaying) {
break;
}
_parent.play();
gPlaying = true;
}
}
if (loadedBytes == totalBytes) {
isLoaded = true;
}
if (isLoaded) {
if (!STREAM) {
_parent.play();
}
gLoading = false;
stop();
}
}
Symbol 12 MovieClip Frame 3
gotoAndPlay (2);
Symbol 37 MovieClip Frame 1
gotoAndPlay(Math.floor(Math.random() * 1000));
Symbol 45 MovieClip Frame 1
gotoAndPlay(Math.floor(Math.random() * 1000));
Symbol 54 MovieClip Frame 1
gotoAndPlay(Math.floor(Math.random() * 1000));
Symbol 73 Button
on (release) {
if (!muted) {
sound_button.start();
}
gotoAndPlay (42);
}
Symbol 95 Button
on (release) {
if (!muted) {
sound_button.start();
}
gotoAndStop (3);
}
Symbol 107 Button
on (release) {
if (!muted) {
sound_button.start();
}
gotoAndStop (38);
}
Symbol 111 Button
on (release) {
sound_button.start();
getURL ("http://www.kwikgames.com", _blank);
}
Symbol 174 Button
on (release) {
sound_button.start();
getURL ("http://www.kernowweb.co.uk", _blank);
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
stop();
Symbol 200 MovieClip Frame 3
stop();
Symbol 200 MovieClip Frame 8
play();
Symbol 200 MovieClip Frame 12
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 200 MovieClip Frame 18
play();
Symbol 200 MovieClip Frame 22
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 200 MovieClip Frame 28
play();
Symbol 200 MovieClip Frame 32
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 2
stop();
Symbol 208 MovieClip Frame 3
stop();
Symbol 208 MovieClip Frame 4
stop();
Symbol 208 MovieClip Frame 5
stop();
Symbol 208 MovieClip Frame 10
play();
Symbol 208 MovieClip Frame 14
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 208 MovieClip Frame 20
play();
Symbol 208 MovieClip Frame 24
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 208 MovieClip Frame 30
play();
Symbol 208 MovieClip Frame 34
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 7
play();
Symbol 216 MovieClip Frame 11
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 216 MovieClip Frame 17
play();
Symbol 216 MovieClip Frame 21
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 216 MovieClip Frame 27
play();
Symbol 216 MovieClip Frame 31
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 224 MovieClip Frame 3
stop();
Symbol 224 MovieClip Frame 4
stop();
Symbol 224 MovieClip Frame 9
play();
Symbol 224 MovieClip Frame 13
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 224 MovieClip Frame 19
play();
Symbol 224 MovieClip Frame 23
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 224 MovieClip Frame 29
play();
Symbol 224 MovieClip Frame 33
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 3
stop();
Symbol 232 MovieClip Frame 4
stop();
Symbol 232 MovieClip Frame 9
play();
Symbol 232 MovieClip Frame 13
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 232 MovieClip Frame 19
play();
Symbol 232 MovieClip Frame 23
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 232 MovieClip Frame 29
play();
Symbol 232 MovieClip Frame 33
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 241 MovieClip Frame 1
play();
Symbol 241 MovieClip Frame 5
Symbol 241 MovieClip Frame 6
stop();
Symbol 241 MovieClip Frame 11
play();
Symbol 241 MovieClip Frame 15
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 241 MovieClip Frame 21
play();
Symbol 241 MovieClip Frame 25
_root.blocks[this.name] = 1;
gotoAndStop (1);
Symbol 255 Button
on (release) {
nextFrame();
}
Symbol 259 Button
on (release) {
gotoAndStop (11);
}
Symbol 262 Button
on (release) {
gotoAndStop (2);
}
Symbol 267 Button
on (release) {
getURL ("http://www.kwikgames.com/downloads/blobtwist.zip");
}
Symbol 271 Button
on (release) {
getURL ("http://www.kwikgames.com/downloads/blobtwist.exe");
}
Symbol 275 Button
on (release) {
getURL ("http://www.kwikgames.com/downloads/blobtwist.hqx");
}
Symbol 282 Button
on (release) {
if (!muted) {
sound_button.start();
}
}
Symbol 293 Button
on (press) {
form.body_txt.scroll--;
}
Symbol 294 Button
on (press) {
form.body_txt.scroll++;
}
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
_root.board._rotation = _root.board._rotation + 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation - 15;
j++;
}
i++;
}
Symbol 323 MovieClip Frame 3
_root.board._rotation = _root.board._rotation + 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation - 15;
j++;
}
i++;
}
Symbol 323 MovieClip Frame 4
_root.board._rotation = _root.board._rotation + 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation - 15;
j++;
}
i++;
}
Symbol 323 MovieClip Frame 5
_root.board._rotation = _root.board._rotation + 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation - 15;
j++;
}
i++;
}
Symbol 323 MovieClip Frame 6
_root.board._rotation = _root.board._rotation + 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation - 15;
j++;
}
i++;
}
Symbol 323 MovieClip Frame 7
_root.board._rotation = _root.board._rotation + 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation - 15;
j++;
}
i++;
}
gotoAndStop (1);
_root.rotating = false;
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
_root.board._rotation = _root.board._rotation - 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation + 15;
j++;
}
i++;
}
Symbol 325 MovieClip Frame 3
_root.board._rotation = _root.board._rotation - 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation + 15;
j++;
}
i++;
}
Symbol 325 MovieClip Frame 4
_root.board._rotation = _root.board._rotation - 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation + 15;
j++;
}
i++;
}
Symbol 325 MovieClip Frame 5
_root.board._rotation = _root.board._rotation - 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation + 15;
j++;
}
i++;
}
Symbol 325 MovieClip Frame 6
_root.board._rotation = _root.board._rotation - 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation + 15;
j++;
}
i++;
}
Symbol 325 MovieClip Frame 7
_root.board._rotation = _root.board._rotation - 15;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
numb = (i * 10) + j;
name = "_root.board.block" + numb;
eval (name)._rotation = eval (name)._rotation + 15;
j++;
}
i++;
}
gotoAndStop (1);
_root.rotating = false;
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 6
_root.fadeMore();
Symbol 330 MovieClip Frame 10
if (_root.destroyMore) {
gotoAndPlay (6);
} else {
gotoAndStop (1);
}
Symbol 361 MovieClip Frame 1
stop();
Symbol 363 Button
on (release) {
debugShowBoard();
}
Symbol 364 Button
on (release) {
gotoAndStop (44);
}
Symbol 368 Button
on (release) {
if (!_root.muted) {
_root.muted = true;
} else {
_root.muted = false;
}
nextFrame();
}
on (keyPress "s") {
if (!_root.muted) {
_root.muted = true;
} else {
_root.muted = false;
}
nextFrame();
}
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 3
gotoAndStop (1);
Symbol 372 Button
on (release) {
if (!_root.gamePaused) {
_root.pause();
_root.gamePaused = true;
} else {
_root.gamePaused = false;
_root.unpause();
}
nextFrame();
}
on (keyPress "p") {
if (!_root.gamePaused) {
_root.pause();
_root.gamePaused = true;
} else {
_root.gamePaused = false;
_root.unpause();
}
nextFrame();
}
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 2
stop();
Symbol 375 MovieClip Frame 3
gotoAndStop (1);
Symbol 382 Button
on (release) {
_root.sound_button.start();
_root.pause();
_root.gamePaused = true;
nextFrame();
}
on (keyPress "q") {
_root.sound_button.start();
_root.pause();
_root.gamePaused = true;
nextFrame();
}
Symbol 383 Button
on (release) {
_root.sound_endgame.start();
_root.gamePaused = false;
_root.gotoAndPlay(1, 11);
}
on (keyPress "y") {
_root.sound_endgame.start();
_root.gamePaused = false;
_root.gotoAndPlay(1, 11);
}
on (keyPress "n") {
_root.sound_button.start();
_root.gamePaused = false;
_root.unpause();
gotoAndStop (1);
}
Symbol 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 2
stop();
Symbol 420 Button
on (release) {
sound_endgame.start();
gotoAndPlay (57);
}
Symbol 430 Button
on (release) {
getURL ("http://www.Equitalk.co.uk/default.asp?refid=LRS636", _blank);
}