Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (load) {
Mouse.hide();
startDrag (this, true, 0, 0, 550, 550);
}
Instance of Symbol 6 MovieClip in Frame 2
onClipEvent (load) {
Mouse.hide();
startDrag (this, true, 0, 0, 550, 550);
}
Frame 71
stop();
Frame 72
stop();
Frame 73
stop();
Frame 74
function start() {
if (musicFlag == 1) {
sound.play("backGround");
}
pauseFlag = 0;
pauseGame._visible = true;
gameLevel = 1;
totalPoint = 0;
game_Over = 0;
nextShape = random(7) + 1;
nextShapeColor = random(5) + 1;
creditDialog._visible = false;
readMeDialog._visible = false;
startter = 1;
rotateTime = 0;
timer = getTimer();
levelTime = 500;
turnOffAllBlock();
turnOffShape();
assignArray();
getShape();
displayShape();
assignShapeToBlock();
}
function gameControl() {
i = 0;
while (i < 4) {
nextArray[i] = shapeArray[i] + 10;
i++;
}
if (((pauseFlag == 1) || (startter == 0)) || (gameOver() == 1)) {
} else if (pointFlag == 1) {
if (getTimer() > PointAnimation_timer) {
rowPointAnimation();
PointAnimation_timer = getTimer() + 10;
}
} else if ((noDown() == 1) && (testNext() == 1)) {
if (getTimer() > timer) {
copyArrayAndOff();
(block0 = block0 + 10);
(block1 = block1 + 10);
(block2 = block2 + 10);
(block3 = block3 + 10);
assignBlock();
timer = getTimer() + leveltimer;
PointAnimation_timer = getTimer() + 10;
newShape_Timer = getTimer() + 200;
}
} else if (getTimer() > newShape_Timer) {
if (soundFlag == 1) {
sound.gotoAndPlay("downM");
}
levelTimer = levelTime;
changTraceArray();
rotateTime = 0;
getShape();
turnOffShape();
displayShape();
assignShapeToBlock();
isDone();
}
}
function turnOffAllBlock() {
var i = 1;
while (i <= 150) {
offBlock(i);
traceArray[i] = 0;
i++;
}
}
function turnOffShape() {
var i = 1;
while (i <= 7) {
this["shape" + i]._visible = false;
i++;
}
}
function displayShape() {
this["shape" + nextShape].changeShapeColor(nextShapeColor);
if (nextShape == 1) {
shape1._visible = true;
} else if (nextShape == 2) {
shape2._visible = true;
} else if (nextShape == 3) {
shape3._visible = true;
} else if (nextShape == 4) {
shape4._visible = true;
} else if (nextShape == 5) {
shape5._visible = true;
} else if (nextShape == 6) {
shape6._visible = true;
} else if (nextShape == 7) {
shape7._visible = true;
}
}
function onBlock(whichBlock) {
this["b" + whichBlock]._visible = true;
}
function offBlock(whichBlock) {
this["b" + whichBlock]._visible = false;
}
function assignBlock() {
shapeArray[0] = block0;
shapeArray[1] = block1;
shapeArray[2] = block2;
shapeArray[3] = block3;
i = 0;
while (i < 4) {
onBlock(shapeArray[i]);
this["b" + shapeArray[i]].gotoAndStop(shapeColor);
i++;
}
}
function assignShapeToBlock() {
if (Shape == 1) {
(block0 = -35);
(block1 = -25);
(block2 = -15);
(block3 = -5);
assignBlock();
} else if (Shape == 2) {
(block0 = -25);
(block1 = -15);
(block2 = -5);
(block3 = -24);
assignBlock();
} else if (Shape == 3) {
(block0 = -25);
(block1 = -15);
(block2 = -14);
(block3 = -4);
assignBlock();
} else if (Shape == 4) {
(block0 = -15);
(block1 = -14);
(block2 = -5);
(block3 = -4);
assignBlock();
} else if (Shape == 5) {
(block0 = -25);
(block1 = -15);
(block2 = -5);
(block3 = -14);
assignBlock();
} else if (Shape == 6) {
(block0 = -24);
(block1 = -14);
(block2 = -4);
(block3 = -25);
assignBlock();
} else if (Shape == 7) {
(block0 = -24);
(block1 = -14);
(block2 = -15);
(block3 = -5);
assignBlock();
}
}
function assignArray() {
_global.noLeft_Array = new array();
_global.noRight_Array = new array();
_global.noDown_Array = new array();
num = -20;
i = 0;
while (i <= 17) {
noLeft_Array[i] = num - 9;
noRight_Array[i] = num;
num = num + 10;
i++;
}
num = 141;
i = 0;
while (i < 10) {
noDown_Array[i] = num;
num = num + 1;
i++;
}
i = -10;
while (i <= 150) {
traceArray[i] = 0;
i++;
}
i = -10;
while (i <= 150) {
traceColorArray[i] = 1;
i++;
}
}
function getShape() {
Shape = nextShape;
shapeColor = nextShapeColor;
nextShape = random(7) + 1;
nextShapeColor = random(5) + 1;
}
function moveOverRight_1() {
i = 0;
while (i < 17) {
if (shapeArray[1] == noLeft_Array[i]) {
j = 0;
while (j < 4) {
nextArray[j] = nextArray[j] + 1;
j++;
}
}
i++;
}
}
function moveOverLeft_1() {
i = 0;
while (i < 17) {
if (shapeArray[1] == noRight_Array[i]) {
j = 0;
while (j < 4) {
nextArray[j] = nextArray[j] - 1;
j++;
}
}
i++;
}
}
function keyDown() {
if ((Key.isDown(69) || (Key.isDown(38) && (pauseFlag == 0))) && (pointFlag == 0)) {
if (soundFlag == 1) {
sound.gotoAndPlay("rotateM");
}
if (((Shape == 6) || (Shape == 2)) && (noDown() == 1)) {
if (rotateTime == 0) {
if (Shape == 2) {
(nextArray[0] = shapeArray[0] + 11);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] - 11);
(nextArray[3] = shapeArray[3] + 20);
moveOverRight_1();
} else if (Shape == 6) {
(nextArray[0] = shapeArray[0] + 11);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] - 11);
(nextArray[3] = shapeArray[3] + 2);
moveOverLeft_1();
}
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 1;
}
} else if (rotateTime == 1) {
if (Shape == 2) {
(nextArray[0] = shapeArray[0] + 9);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] - 9);
(nextArray[3] = shapeArray[3] - 2);
} else if (Shape == 6) {
(nextArray[0] = shapeArray[0] + 9);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] - 9);
(nextArray[3] = shapeArray[3] + 20);
}
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 2;
}
} else if (rotateTime == 2) {
if (Shape == 2) {
(nextArray[0] = shapeArray[0] - 11);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] + 11);
(nextArray[3] = shapeArray[3] - 20);
moveOverLeft_1();
} else if (Shape == 6) {
(nextArray[0] = shapeArray[0] + -11);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] + 11);
(nextArray[3] = shapeArray[3] - 2);
moveOverRight_1();
}
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 3;
}
} else {
if (Shape == 2) {
(nextArray[0] = shapeArray[0] - 9);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] + 9);
(nextArray[3] = shapeArray[3] + 2);
} else if (Shape == 6) {
(nextArray[0] = shapeArray[0] - 9);
(nextArray[1] = shapeArray[1]);
(nextArray[2] = shapeArray[2] + 9);
(nextArray[3] = shapeArray[3] - 20);
}
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 0;
}
}
} else if ((shape == 1) && (noDown() == 1)) {
if (rotateTime == 0) {
if (shape == 1) {
(nextArray[0] = block0 + 9);
(nextArray[1] = block1);
(nextArray[2] = block2 - 9);
(nextArray[3] = block3 - 18);
i = 1;
while (i <= 17) {
if (shapeArray[3] == noLeft_Array[i]) {
(nextArray[0] = nextArray[0] + 1);
(nextArray[1] = nextArray[1] + 1);
(nextArray[2] = nextArray[2] + 1);
(nextArray[3] = nextArray[3] + 1);
} else if (shapeArray[3] == (noRight_Array[i] - 1)) {
(nextArray[0] = nextArray[0] - 1);
(nextArray[1] = nextArray[1] - 1);
(nextArray[2] = nextArray[2] - 1);
(nextArray[3] = nextArray[3] - 1);
} else if (shapeArray[3] == noRight_Array[i]) {
(nextArray[0] = nextArray[0] - 2);
(nextArray[1] = nextArray[1] - 2);
(nextArray[2] = nextArray[2] - 2);
(nextArray[3] = nextArray[3] - 2);
}
i++;
}
}
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 1;
}
} else if (rotateTime == 1) {
if (shape == 1) {
(nextArray[0] = block0 - 9);
(nextArray[2] = block2 + 9);
(nextArray[3] = block3 + 18);
}
nextArray[1] = block1;
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 0;
}
}
} else if (((shape == 3) || (shape == 7)) && (noDown() == 1)) {
if (rotateTime == 0) {
if (shape == 3) {
(nextArray[0] = block0 + 11);
(nextArray[1] = block1);
(nextArray[2] = block2 + 9);
(nextArray[3] = block3 - 2);
moveOverRight_1();
} else if (shape == 7) {
(nextArray[0] = block0 + 9);
(nextArray[1] = block1);
(nextArray[2] = block2 + 11);
(nextArray[3] = block3 + 2);
moveOverLeft_1();
}
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 1;
}
} else if (rotateTime == 1) {
if (shape == 3) {
(nextArray[0] = block0 - 11);
(nextArray[2] = block2 - 9);
(nextArray[3] = block3 + 2);
} else if (shape == 7) {
(nextArray[0] = block0 - 9);
(nextArray[2] = block2 - 11);
(nextArray[3] = block3 - 2);
}
nextArray[1] = block1;
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 0;
}
}
} else if (shape == 4) {
assignBlock();
} else if ((shape == 5) && (noDown() == 1)) {
if (rotateTime == 0) {
(nextArray[0] = block0 + 9);
(nextArray[1] = block1);
(nextArray[2] = block2);
(nextArray[3] = block3);
moveOverRight_1();
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 1;
}
} else if (rotateTime == 1) {
(nextArray[0] = block0);
(nextArray[1] = block1);
(nextArray[2] = block2);
(nextArray[3] = block3 - 11);
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 2;
}
} else if (rotateTime == 2) {
(nextArray[0] = block0);
(nextArray[1] = block1);
(nextArray[2] = block2 - 9);
(nextArray[3] = block3);
moveOverLeft_1();
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 3;
}
} else if (rotateTime == 3) {
(nextArray[0] = block0 - 9);
(nextArray[1] = block1);
(nextArray[2] = block2 + 9);
(nextArray[3] = block3 + 11);
if (testNext() == 1) {
(block0 = nextArray[0]);
(block1 = nextArray[1]);
(block2 = nextArray[2]);
(block3 = nextArray[3]);
copyArrayAndOff();
assignBlock();
rotateTime = 0;
}
}
} else {
assignBlock();
}
} else if (((Key.isDown(83) || (Key.isDown(37))) && (noLeft() == 1)) && (pauseFlag == 0)) {
if (soundFlag == 1) {
sound.gotoAndPlay("rotateM");
}
i = 0;
while (i < 4) {
nextArray[i] = shapeArray[i] - 1;
i++;
}
if (testNext() == 1) {
copyArrayAndOff();
(block0 = block0 - 1);
(block1 = block1 - 1);
(block2 = block2 - 1);
(block3 = block3 - 1);
assignBlock();
}
} else if (((Key.isDown(70) || (Key.isDown(39))) && (noRight() == 1)) && (pauseFlag == 0)) {
if (soundFlag == 1) {
sound.gotoAndPlay("rotateM");
}
i = 0;
while (i < 4) {
nextArray[i] = shapeArray[i] + 1;
i++;
}
if (testNext() == 1) {
copyArrayAndOff();
(block0 = block0 + 1);
(block1 = block1 + 1);
(block2 = block2 + 1);
(block3 = block3 + 1);
assignBlock();
} else {
assignBlock();
}
} else if ((((Key.isDown(68) || (Key.isDown(40))) && (noDown() == 1)) && (pauseFlag == 0)) && (pointFlag == 0)) {
levelTimer = 0;
timer = 0;
}
}
function noLeft() {
i = 0;
while (i < 4) {
j = 0;
while (j <= 17) {
if (shapeArray[i] == noLeft_Array[j]) {
return(0);
}
j++;
}
i++;
}
return(1);
}
function noRight() {
i = 0;
while (i < 4) {
j = 0;
while (j <= 17) {
if (shapeArray[i] == noRight_Array[j]) {
return(0);
}
j++;
}
i++;
}
return(1);
}
function noDown() {
i = 0;
while (i < 4) {
j = 0;
while (j < 10) {
if (shapeArray[i] == noDown_Array[j]) {
return(0);
}
j++;
}
i++;
}
return(1);
}
function copyArrayAndOff() {
i = 0;
while (i < 4) {
oldArray[i] = shapeArray[i];
i++;
}
i = 0;
while (i < 4) {
offBlock(oldArray[i]);
i++;
}
}
function testNext() {
i = 0;
while (i < 4) {
if (traceArray[nextArray[i]] == 1) {
return(0);
}
i++;
}
return(1);
}
function changTraceArray() {
i = 0;
while (i < 4) {
traceArray[shapeArray[i]] = 1;
traceColorArray[shapeArray[i]] = shapeColor;
i++;
}
}
function isDone() {
rowPoint = 0;
i = 14;
while (i >= 0) {
counter = 0;
j = (i * 10) + 1;
while (j <= ((i * 10) + 10)) {
if (traceArray[j] == 1) {
counter = counter + 1;
}
j++;
}
if (counter == 10) {
rowPoint = rowPoint + 1;
rowPoint_Array[rowPoint] = (i * 10) + 1;
pointFlag = 1;
}
i--;
}
rowPoint_index = rowPoint;
point();
}
function rowPointAnimation() {
size = size - 4;
k = rowPoint_Array[1];
while (k <= (rowPoint_Array[1] + 9)) {
setProperty("b" + k, _width , size);
setProperty("b" + k, _height , size);
k++;
}
if (size < 0) {
size = 25;
k = rowPoint_Array[1];
while (k <= (rowPoint_Array[1] + 9)) {
setProperty("b" + k, _width , size);
setProperty("b" + k, _height , size);
offBlock(k);
k_index = k;
k++;
}
noneActiveRowDown(k_index);
}
}
function noneActiveRowDown(k) {
var h = k;
while (h >= 1) {
if (traceArray[h - 10] == 1) {
traceArray[h] = 1;
traceArray[h - 10] = 0;
traceColorArray[h] = traceColorArray[h - 10];
this["b" + h].gotoAndStop(traceColorArray[h]);
onBlock(h);
offBlock(h - 10);
} else {
traceArray[h] = 0;
}
h--;
}
rowPoint_index = rowPoint_index - 1;
if (rowPoint_index > 0) {
i = 1;
while (i <= rowPoint_index) {
rowPoint_Array[i] = rowPoint_Array[i + 1] + 10;
i++;
}
pointFlag = 1;
} else if (rowPoint_index == 0) {
pointFlag = 0;
level();
}
}
function point() {
num = random(3);
if (num == 0) {
killType = "bow";
} else if (num == 2) {
killType = "sword";
} else {
killType = "blade";
}
if (rowPoint >= 1) {
if (rowPoint == 1) {
if (soundFlag == 1) {
sound.gotoAndPlay("pointM");
}
currPointText.currPoint = 50;
totalPoint = totalPoint + currPointText.currPoint;
} else if (rowPoint == 2) {
if (soundFlag == 1) {
sound.gotoAndPlay("pointM");
}
currPointText.currPoint = 125;
totalPoint = totalPoint + currPointText.currPoint;
} else if (rowPoint == 3) {
if (soundFlag == 1) {
sound.gotoAndPlay("pointM");
}
currPointText.currPoint = 200;
totalPoint = totalPoint + currPointText.currPoint;
} else if (rowPoint == 4) {
if (soundFlag == 1) {
sound.gotoAndPlay("pointM");
}
currPointText.currPoint = 275;
totalPoint = totalPoint + currPointText.currPoint;
}
human.gotoAndPlay(killtype);
currPointText._visible = true;
currPointText.gotoAndPlay(1);
}
}
function level() {
currentLevel = gameLevel;
if (totalPoint >= 18000) {
gameLevel = 10;
levelTime = 40;
} else if (totalPoint >= 15000) {
gameLevel = 9;
levelTime = 65;
} else if (totalPoint >= 12000) {
gameLevel = 8;
levelTime = 100;
} else if (totalPoint > 9500) {
gameLevel = 7;
levelTime = 130;
} else if (totalPoint > 7500) {
gameLevel = 6;
levelTime = 170;
} else if (totalPoint > 5500) {
gameLevel = 5;
levelTime = 200;
} else if (totalPoint >= 3500) {
gameLevel = 4;
levelTime = 230;
} else if (totalPoint >= 2000) {
gameLevel = 3;
levelTime = 250;
} else if (totalPoint >= 1000) {
gameLevel = 2;
levelTime = 350;
} else {
levelTime = 500;
}
if (gameLevel > currentLevel) {
pauseFlag = 1;
levelUp._visible = true;
levelUp.gotoAndPlay(1);
}
}
function resume() {
resumeGame._visible = false;
pauseGame._visible = true;
creditDialog._visible = false;
readMeDialog._visible = false;
pause_dialog._Visible = false;
pause_dialog.stop();
timer = getTimer();
pauseFlag = 0;
if (startter == 1) {
i = 1;
while (i <= 150) {
offBlock(i);
i++;
}
i = 150;
while (i >= 1) {
if (traceArray[i] == 1) {
onBlock(i);
}
i--;
}
timer = getTimer();
pause();
}
}
function gameOver() {
i = -9;
while (i <= 10) {
if ((traceArray[i] == 1) || (game_Over == 1)) {
stopAllSounds();
newGame._visible = true;
quitGame._visible = false;
human._visible = false;
pauseGame._visible = false;
resumeGame._visible = false;
readMeDialog._visible = false;
i = 0;
while (i < 10) {
noDown_Array[i] = i;
i++;
}
var i = 1;
while (i <= 150) {
onBlock(i);
i++;
}
var i = -30;
while (i <= 150) {
traceArray[i] = 0;
i++;
}
(block0 = 0);
(block1 = 0);
(block2 = 0);
(block3 = 0);
assignBlock();
startter = 0;
return(1);
}
i++;
}
return(0);
}
gotoAndStop (74);
(musicFlag = 1);
(soundFlag = 1);
startter = 0;
_global.block0;
_global.block1;
_global.block2;
_global.block3;
_global.introFinish = 0;
_global.pauseFlag;
_global.gameLevel = 1;
_global.currentLevel = gameLevel;
_global.levelTime = 500;
_global.levelTimer = levelTime;
_global.game_Over = 1;
_global.timer;
_global.delayTime;
_global.currPoint = 0;
_global.totalPoint = 0;
_global.rowPoint = 0;
_global.rowPoint_index;
_global.nextShape;
_global.Shape;
_global.shapeColor;
_global.nextShapeColor;
_global.pointFlag = 0;
_global.rotateTime;
_global.size = 25;
_global.traceArray = new array();
_global.traceColorArray = new array();
_global.shapeArray = new array();
_global.oldArray = new array();
_global.nextArray = new array();
_global.rowPoint_Array = new array();
hideGrid._visible = false;
Grid._visible = false;
creditDialog._visible = false;
resumeGame._visible = false;
pauseGame._visible = false;
quitGame._visible = false;
human._visible = false;
pause_dialog._visible = false;
pause_dialog.stop();
readMeDialog._visible = false;
readMeDialog.stop();
quitDialog.stop();
quitDialog._visible = false;
levelUp._visible = false;
turnOffShape();
turnOffAllBlock();
Instance of Symbol 6 MovieClip in Frame 74
onClipEvent (load) {
Mouse.hide();
startDrag (this, true, 0, 0, 550, 550);
}
Instance of Symbol 86 MovieClip "sound" in Frame 74
onClipEvent (keyDown) {
_parent.keyDown();
}
onClipEvent (enterFrame) {
_parent.gameControl();
}
Symbol 6 MovieClip Frame 1
stop();
Symbol 14 Button
on (release) {
_root.play();
}
Symbol 15 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 15 MovieClip Frame 2
gotoAndPlay (1);
Symbol 28 Button
on (release) {
gotoAndStop (73);
}
Symbol 31 Button
on (release) {
nextFrame();
}
Symbol 34 Button
on (release) {
gotoAndPlay (74);
}
Symbol 39 Button
on (release) {
prevFrame();
}
Symbol 62 Button
on (release) {
_quality = "BEST";
}
Symbol 65 Button
on (release) {
_quality = "HIGH";
}
Symbol 68 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 71 Button
on (release) {
_quality = "LOW";
}
Symbol 83 Button
on (release) {
gotoAndStop (71);
}
Symbol 86 MovieClip Frame 1
gotoAndStop (1);
Symbol 86 MovieClip Frame 2
gotoAndPlay (1);
Symbol 86 MovieClip Frame 3
gotoAndPlay (1);
Symbol 86 MovieClip Frame 4
gotoAndPlay (1);
Symbol 86 MovieClip Frame 5
gotoAndPlay (1);
Symbol 91 MovieClip Frame 15
gotoAndStop (1);
_parent.currPointText._visible = false;
Symbol 100 Button
on (release) {
gotoAndStop (1);
_parent.resume();
_parent.quitDialog._visible = false;
_parent.readMeButton.enabled = true;
_parent.pauseButton.enabled = true;
_parent.startButton.enabled = true;
_parent.creditButton.enabled = true;
_parent.Soff.enabled = true;
_parent.Moff.enabled = true;
_parent.Volume.enabled = true;
}
Symbol 103 Button
on (release) {
gotoAndStop (1);
_parent.pause_dialog._Visible = false;
_parent.pause_dialog.stop();
_parent.game_Over = 1;
_parent.gameOver();
_parent.quitDialog._Visible = false;
_parent.readMeButton.enabled = true;
_parent.pauseButton.enabled = true;
_parent.startButton.enabled = true;
_parent.creditButton.enabled = true;
_parent.Soff.enabled = true;
_parent.Moff.enabled = true;
_parent.Volume.enabled = true;
}
Symbol 104 MovieClip Frame 17
stop();
Symbol 110 MovieClip Frame 10
stop();
Symbol 114 MovieClip Frame 20
_parent.levelUp._visible = false;
if (_parent.pauseGame._visible == true) {
_parent.pauseFlag = 0;
}
_parent.timer = getTimer();
gotoAndStop (1);
Symbol 119 Button
on (release) {
soundFlag = 0;
Son._visible = true;
Soff._visible = false;
}
Symbol 121 Button
on (release) {
soundFlag = 1;
Son._visible = false;
Soff._visible = true;
}
Symbol 122 Button
on (release) {
musicFlag = 0;
stopAllSounds();
Mon._visible = true;
Moff._visible = false;
}
Symbol 123 Button
on (release) {
if (startter == 1) {
sound.play("backGround");
}
musicFlag = 1;
Moff._visible = true;
Mon._visible = false;
}
Symbol 129 MovieClip Frame 1
gotoAndStop (1);
Symbol 129 MovieClip Frame 2
gotoAndStop (2);
Symbol 129 MovieClip Frame 3
gotoAndStop (3);
Symbol 129 MovieClip Frame 4
gotoAndStop (4);
Symbol 129 MovieClip Frame 5
gotoAndStop (5);
Symbol 130 MovieClip Frame 1
function changeShapeColor(myColor) {
e1.gotoAndStop(myColor);
e2.gotoAndStop(myColor);
e3.gotoAndStop(myColor);
e4.gotoAndStop(myColor);
}
Symbol 131 MovieClip Frame 1
function changeShapeColor(myColor) {
u1.gotoAndStop(myColor);
u2.gotoAndStop(myColor);
u3.gotoAndStop(myColor);
u4.gotoAndStop(myColor);
}
Symbol 132 MovieClip Frame 1
function changeShapeColor(myColor) {
y1.gotoAndStop(myColor);
y2.gotoAndStop(myColor);
y3.gotoAndStop(myColor);
y4.gotoAndStop(myColor);
}
Symbol 133 MovieClip Frame 1
function changeShapeColor(myColor) {
t1.gotoAndStop(myColor);
t2.gotoAndStop(myColor);
t3.gotoAndStop(myColor);
t4.gotoAndStop(myColor);
}
Symbol 134 MovieClip Frame 1
function changeShapeColor(myColor) {
r1.gotoAndStop(myColor);
r2.gotoAndStop(myColor);
r3.gotoAndStop(myColor);
r4.gotoAndStop(myColor);
}
Symbol 135 MovieClip Frame 1
function changeShapeColor(myColor) {
w1.gotoAndStop(myColor);
w2.gotoAndStop(myColor);
w3.gotoAndStop(myColor);
w4.gotoAndStop(myColor);
}
Symbol 136 MovieClip Frame 1
function changeShapeColor(myColor) {
q1.gotoAndStop(myColor);
q2.gotoAndStop(myColor);
q3.gotoAndStop(myColor);
q4.gotoAndStop(myColor);
}
Symbol 142 Button
on (release) {
gotoAndPlay (17);
}
Symbol 143 Button
on (release) {
play();
}
Symbol 144 Button
on (release) {
gotoAndPlay (1);
}
Symbol 147 Button
on (release) {
gotoAndPlay (3);
}
Symbol 150 Button
on (release) {
gotoAndPlay (5);
}
Symbol 153 Button
on (release) {
gotoAndPlay (7);
}
Symbol 156 Button
on (release) {
gotoAndPlay (9);
}
Symbol 159 Button
on (release) {
gotoAndPlay (11);
}
Symbol 162 Button
on (release) {
gotoAndPlay (13);
}
Symbol 165 Button
on (release) {
gotoAndPlay (15);
}
Symbol 168 MovieClip Frame 1
stopAllSounds();
Symbol 168 MovieClip Frame 2
stop();
Symbol 168 MovieClip Frame 3
stopAllSounds();
Symbol 168 MovieClip Frame 4
stop();
Symbol 168 MovieClip Frame 5
stopAllSounds();
Symbol 168 MovieClip Frame 6
stop();
Symbol 168 MovieClip Frame 7
stopAllSounds();
Symbol 168 MovieClip Frame 8
stop();
Symbol 168 MovieClip Frame 9
stopAllSounds();
Symbol 168 MovieClip Frame 10
stop();
Symbol 168 MovieClip Frame 11
stopAllSounds();
Symbol 168 MovieClip Frame 12
stop();
Symbol 168 MovieClip Frame 13
stopAllSounds();
Symbol 168 MovieClip Frame 14
stop();
Symbol 168 MovieClip Frame 15
stopAllSounds();
Symbol 168 MovieClip Frame 16
stop();
Symbol 168 MovieClip Frame 17
stopAllSounds();
Symbol 168 MovieClip Frame 18
stop();
Symbol 176 Button
on (release) {
stopAllSounds();
}
on (release) {
gotoAndPlay (2);
}
Symbol 182 Button
on (release) {
pause_dialog._Visible = false;
pause_dialog.stop();
if (quitGame._visible == false) {
introFinish = 1;
start();
newGame._visible = false;
quitGame._visible = true;
human._visible = true;
human.gotoAndPlay(1);
} else if (quitGame._visible == true) {
pauseFlag = 1;
pause._visible = true;
quitDialog.play(1);
quitDialog._visible = true;
readMeButton.enabled = false;
pauseButton.enabled = false;
startButton.enabled = false;
creditButton.enabled = false;
Soff.enabled = false;
Moff.enabled = false;
Volume.enabled = false;
}
}
Symbol 187 Button
on (release) {
pause_dialog._Visible = false;
creditDialog._Visible = false;
pause_dialog.stop();
if (readMeDialog._visible == false) {
if (startter == 1) {
resumeGame._visible = true;
pauseGame._visible = false;
}
readMeDialog._visible = true;
readMeDialog.gotoAndPlay(1);
pauseFlag = 1;
if (startter == 1) {
pause();
i = 1;
while (i <= 150) {
onBlock(i);
i++;
}
}
} else if (readMeDialog._visible == true) {
if (startter == 1) {
resumeGame._visible = false;
pauseGame._visible = true;
}
readMeDialog._visible = false;
pauseFlag = 0;
if (startter == 1) {
i = 1;
while (i <= 150) {
offBlock(i);
i++;
}
i = 150;
while (i >= 1) {
if (traceArray[i] == 1) {
onBlock(i);
}
i--;
}
timer = getTimer();
pause();
}
}
}
Symbol 197 Button
on (keyPress "<Space>") {
if (pauseGame._visible == true) {
resumeGame._visible = true;
pauseGame._visible = false;
pause_dialog._Visible = true;
pause_dialog.play();
pauseFlag = 1;
} else if (resumeGame._visible == true) {
resume();
}
}
Symbol 201 Button
on (release, keyPress "q") {
nextFrame();
}
Symbol 202 Button
on (release, keyPress "q") {
gotoAndStop (1);
}
Symbol 203 MovieClip Frame 1
stop();
_quality = "BEST";
Symbol 203 MovieClip Frame 2
stop();
_quality = "MEDIUM";
Symbol 203 MovieClip Frame 3
stop();
_quality = "LOW";
Symbol 207 Button
on (release) {
nextFrame();
}
Symbol 213 Button
on (release) {
gotoAndStop (1);
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
stop();
Symbol 218 MovieClip Frame 3
stop();
Symbol 218 MovieClip Frame 4
stop();