Frame 1
var total_bytes = _root.getBytesTotal();
var loaded_bytes = 0;
var percent_done = 0;
Frame 2
loaded_bytes = _root.getBytesLoaded();
percent_done = int((loaded_bytes / total_bytes) * 100);
_root.loadBar_mc.gotoAndStop(percent_done);
if (percent_done >= 99) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
main.gotoAndPlay(1);
stop();
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 10
gotoAndStop (1);
Symbol 22 MovieClip [eskimo_mc] Frame 1
stop();
Symbol 22 MovieClip [eskimo_mc] Frame 5
Symbol 22 MovieClip [eskimo_mc] Frame 6
gotoAndStop (1);
Symbol 22 MovieClip [eskimo_mc] Frame 7
stop();
Symbol 22 MovieClip [eskimo_mc] Frame 10
Symbol 22 MovieClip [eskimo_mc] Frame 12
gotoAndStop (7);
Symbol 22 MovieClip [eskimo_mc] Frame 13
stop();
Symbol 22 MovieClip [eskimo_mc] Frame 16
Symbol 22 MovieClip [eskimo_mc] Frame 18
gotoAndStop (13);
Symbol 22 MovieClip [eskimo_mc] Frame 19
stop();
Symbol 22 MovieClip [eskimo_mc] Frame 22
Symbol 22 MovieClip [eskimo_mc] Frame 24
gotoAndStop (19);
Symbol 36 MovieClip [explodeEskimo_mc] Frame 1
stop();
Symbol 36 MovieClip [explodeEskimo_mc] Frame 14
_parent.makeSplashSound();
Symbol 36 MovieClip [explodeEskimo_mc] Frame 24
gotoAndPlay (107);
Symbol 36 MovieClip [explodeEskimo_mc] Frame 37
_parent.makeSplashSound();
Symbol 36 MovieClip [explodeEskimo_mc] Frame 47
gotoAndPlay (107);
Symbol 36 MovieClip [explodeEskimo_mc] Frame 60
_parent.makeSplashSound();
Symbol 36 MovieClip [explodeEskimo_mc] Frame 70
gotoAndPlay (107);
Symbol 36 MovieClip [explodeEskimo_mc] Frame 83
_parent.makeSplashSound();
Symbol 36 MovieClip [explodeEskimo_mc] Frame 93
gotoAndPlay (107);
Symbol 36 MovieClip [explodeEskimo_mc] Frame 107
_parent.makeShatterSound();
Symbol 36 MovieClip [explodeEskimo_mc] Frame 144
_parent.dieMode = 0;
_parent.manDie();
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 15
gotoAndStop ("still");
Symbol 44 MovieClip Frame 20
gotoAndStop ("still");
Symbol 50 MovieClip Frame 6
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 3
stop();
Symbol 57 MovieClip Frame 4
stop();
Symbol 58 MovieClip [blockSet_mc] Frame 1
stop();
Symbol 58 MovieClip [blockSet_mc] Frame 2
stop();
Symbol 58 MovieClip [blockSet_mc] Frame 3
stop();
Symbol 58 MovieClip [blockSet_mc] Frame 4
stop();
Symbol 58 MovieClip [blockSet_mc] Frame 5
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 62 MovieClip [nbox] Frame 1
stop();
Symbol 64 MovieClip [ice] Frame 1
this.box.red._alpha = 0;
stop();
Symbol 64 MovieClip [ice] Frame 17
this.box.red._alpha = 0;
gotoAndPlay (1);
Symbol 64 MovieClip [ice] Frame 18
this.box.red._alpha = 0;
Symbol 64 MovieClip [ice] Frame 33
this.box.red._alpha = 0;
gotoAndStop (1);
Symbol 67 MovieClip Frame 20
gotoAndPlay ("start");
Symbol 68 MovieClip [blockLevel_mc] Frame 1
stop();
Symbol 68 MovieClip [blockLevel_mc] Frame 2
stop();
Symbol 68 MovieClip [blockLevel_mc] Frame 3
stop();
Symbol 68 MovieClip [blockLevel_mc] Frame 4
stop();
Symbol 68 MovieClip [blockLevel_mc] Frame 5
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 77 MovieClip [penguin_mc] Frame 1
stop();
Symbol 77 MovieClip [penguin_mc] Frame 17
gotoAndPlay ("leftWalk");
Symbol 77 MovieClip [penguin_mc] Frame 18
stop();
Symbol 77 MovieClip [penguin_mc] Frame 34
gotoAndPlay ("downWalk");
Symbol 77 MovieClip [penguin_mc] Frame 35
stop();
Symbol 77 MovieClip [penguin_mc] Frame 51
gotoAndPlay ("rightWalk");
Symbol 77 MovieClip [penguin_mc] Frame 52
stop();
Symbol 77 MovieClip [penguin_mc] Frame 68
gotoAndPlay ("upWalk");
Symbol 77 MovieClip [penguin_mc] Frame 85
gotoAndPlay ("leftSwim");
Symbol 77 MovieClip [penguin_mc] Frame 102
gotoAndPlay ("downSwim");
Symbol 77 MovieClip [penguin_mc] Frame 119
gotoAndPlay ("rightSwim");
Symbol 77 MovieClip [penguin_mc] Frame 136
gotoAndPlay ("upSwim");
Symbol 95 MovieClip Frame 8
gotoAndPlay ("start");
Symbol 95 MovieClip Frame 9
stop();
Symbol 95 MovieClip Frame 17
gotoAndPlay (10);
Symbol 96 MovieClip [flag_mc] Frame 1
stop();
Symbol 96 MovieClip [flag_mc] Frame 50
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 1
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 2
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 3
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 4
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 5
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 6
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 7
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 8
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 9
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 10
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 11
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 12
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 13
stop();
Symbol 98 MovieClip [blockSet2_mc] Frame 20
stop();
Symbol 116 MovieClip [levelEnd_mc] Frame 1
stop();
Symbol 116 MovieClip [levelEnd_mc] Frame 2
_parent.backgroundMusic(0);
this._x = 278;
this.cleared_txt.text = String(Math.round(100 * (_parent.removedIceBlockCount / _parent.iceBlockCount))) + "%";
this.required_txt.text = String(_parent.blockPercentRequired) + "%";
extra = Math.round(100 * (_parent.removedIceBlockCount / _parent.iceBlockCount)) - _parent.blockPercentRequired;
this.extra_txt.text = String(extra) + "%";
Symbol 116 MovieClip [levelEnd_mc] Frame 10
var bonusPoints = 0;
Symbol 116 MovieClip [levelEnd_mc] Frame 18
if (extra > 0) {
_parent.makeBonusCollectSound();
extra = extra - 1;
this.extra_txt.text = String(extra) + "%";
_parent.addScore(1000);
bonusPoints = bonusPoints + 1000;
bonus_txt.text = Number(bonusPoints);
gotoAndPlay (11);
}
Symbol 116 MovieClip [levelEnd_mc] Frame 54
Symbol 116 MovieClip [levelEnd_mc] Frame 55
this._x = -365;
_parent.gotoAndPlay("enteringNewLevel");
stop();
Symbol 116 MovieClip [levelEnd_mc] Frame 56
this._x = 278;
this.level_txt.text = "LEVEL " + _parent.gLevel;
this.clear_txt.text = ("CLEAR " + String(this._parent["platstr" + _parent.gLevel][326])) + "%";
this.levelTitle_txt.text = _parent.levelTitle[_parent.gLevel];
if (_parent.previewMode == true) {
_parent.buildIceFloor();
gotoAndPlay (104);
}
Symbol 116 MovieClip [levelEnd_mc] Frame 57
var i = 0;
_parent.makeThunderSound();
Symbol 116 MovieClip [levelEnd_mc] Frame 58
j = 0;
while (j < 19) {
if (_parent[(("block" + (19 - j)) + "_") + i]._currentframe == 1) {
_parent[(("block" + (19 - j)) + "_") + i].gotoAndPlay(3);
}
j++;
}
i = i + 1;
if (i > 19) {
gotoAndPlay (60);
}
Symbol 116 MovieClip [levelEnd_mc] Frame 59
gotoAndPlay (58);
Symbol 116 MovieClip [levelEnd_mc] Frame 60
Symbol 116 MovieClip [levelEnd_mc] Frame 95
_parent.buildIceFloor();
Symbol 116 MovieClip [levelEnd_mc] Frame 116
this._x = -365;
_parent.backgroundMusic(0);
_parent.backgroundMusic(1);
_parent.gotoAndPlay("newLife");
stop();
Symbol 118 MovieClip [selector_mc] Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 136 Button
on (release) {
getURL ("http://www.myndwave.com", "_blank");
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 3
stop();
Symbol 141 MovieClip Frame 4
stop();
Symbol 141 MovieClip Frame 5
stop();
Symbol 141 MovieClip Frame 6
stop();
Symbol 141 MovieClip Frame 7
stop();
Symbol 141 MovieClip Frame 8
stop();
Symbol 141 MovieClip Frame 9
stop();
Symbol 141 MovieClip Frame 10
stop();
Symbol 141 MovieClip Frame 11
stop();
Symbol 145 Button
on (release) {
if (_parent.pauseFlag == false) {
_parent.pauseFlag = true;
gotoAndStop (2);
_parent.stop();
} else if (_parent.pauseFlag == true) {
_parent.pauseFlag = false;
gotoAndStop (1);
_parent.play();
}
}
Symbol 146 Button
on (release) {
if (_parent.pauseFlag == false) {
_parent.pauseFlag = true;
gotoAndStop (2);
_parent.stop();
} else if (_parent.pauseFlag == true) {
_parent.pauseFlag = false;
gotoAndStop (1);
_parent.play();
}
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
stop();
Symbol 148 Button
on (release) {
if (this._currentframe == 1) {
gotoAndPlay (2);
} else if (this._currentframe == 2) {
gotoAndPlay (1);
}
}
Symbol 151 MovieClip Frame 1
_parent.turnSound(true);
stop();
Symbol 151 MovieClip Frame 2
_parent.turnSound(false);
stop();
Symbol 157 Button
on (release) {
_parent.gLevel = 0;
_parent.robotMode = false;
_parent.lives = 6;
_parent.gotoAndPlay("startGame");
this._visible = false;
}
Symbol 161 Button
on (release) {
_parent.robotMode = false;
_parent.lives = 6;
_parent.gLevel = 9;
_parent.gotoAndPlay("startGame");
this._visible = false;
}
Symbol 165 Button
on (release) {
_parent.editorMode = true;
_parent.robotMode = false;
_parent.gotoAndPlay("editorModeStart");
}
Symbol 168 Button
on (release) {
_parent.robotMode = false;
_parent.lives = 6;
_parent.gLevel = 19;
_parent.gotoAndPlay("startGame");
this._visible = false;
}
Symbol 172 Button
on (release) {
_parent.previewMode = true;
_parent.robotMode = false;
_parent.previewLevel(-1);
gotoAndStop (3);
}
Symbol 175 Button
on (release) {
_parent.previewMode = true;
_parent.robotMode = false;
_parent.previewLevel(1);
gotoAndStop (3);
}
Symbol 179 Button
on (release) {
if ((!_parent.gLevel) >= 1) {
_parent.gLevel = 1;
}
_parent.gLevel = _parent.gLevel - 1;
_parent.robotMode = false;
_parent.lives = 6;
_parent.gotoAndPlay("startGame");
this._visible = false;
}
Symbol 192 Button
on (release) {
_parent.gLevel = _parent.gLevel - 1;
_parent.robotMode = false;
_parent.lives = 6;
_parent.gotoAndPlay("startGame");
this._visible = false;
}
Symbol 196 Button
on (release) {
_parent.previewMode = false;
gotoAndPlay (1);
_parent.gotoAndPlay("preGame");
_parent.robotMode = true;
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 3
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 215 Button
on (release) {
saveLevel(1);
}
Symbol 219 Button
on (release) {
if (editorCode_mc._x == 4) {
editorCode_mc._x = 1000;
} else if (editorCode_mc._x == 1000) {
editorCode_mc.swapDepths(this.getNextHighestDepth());
editorCode_mc._x = 4;
saveLevel(0);
}
}
Symbol 222 Button
on (release) {
didEditorSave = false;
gotoAndPlay ("editorModeStart");
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 1
function myMoveAdd(i) {
if (robotMode == false) {
myMovesCount = myMovesCount + 1;
myMoves[myMovesCount] = i;
}
}
function swapDepthCheck() {
var _local2 = 0;
while (_local2 < numberOfPenguins) {
this["penguin" + _local2].swapDepths(Math.round(this["penguin" + _local2]._y - 40) + 350);
_local2++;
}
this.myEskimo.swapDepths(Math.round(this.myEskimo._y) + 350);
_local2 = 0;
while (_local2 < numberOfFlags) {
this["flag_mc" + _local2].swapDepths(Math.round(this["flag_mc" + _local2]._y) + 400);
_local2++;
}
}
function removeAllCharacters() {
var _local2 = 0;
while (_local2 < 8) {
this["penguin" + _local2].removeMovieClip();
_local2++;
}
this.myEskimo.removeMovieClip();
this.explodeEskimo_mc.removeMovieClip();
this.selector_mc.removeMovieClip();
this.editorCode_mc.removeMovieClip();
}
function resetCharacters() {
removeAllCharacters();
var _local1 = -1;
i = 0;
while (i < numberOfPenguins) {
addPenguin(i);
i++;
}
addEskimo();
}
function buildIceFloor() {
didEditorHaveMan = false;
iceBlockCount = 0;
removedIceBlockCount = 0;
numberOfFlags = 0;
numberOfPenguins = 0;
penguinTimer = [0, 0, 0, 0, 0, 0, 0, 0];
manXStart = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
manYStart = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = 0;
while (i < 8) {
this["flag_mc" + i].removeMovieClip();
i++;
}
i = 0;
while (i < 8) {
this["penguin" + i].removeMovieClip();
i++;
}
var _local6 = 0;
this.removedBlocks_txt.text = 0;
this.removedBlocksPercentage_txt.text = "0%";
percentMet = false;
removedPercent = 0;
var _local3 = 10;
var _local5 = -378;
var _local4 = 325 + yOffset;
var i = 1;
while (i < 19) {
_local5 = _local5 + 862;
_local4 = _local4 - 131;
var _local2 = 1;
while (_local2 < 19) {
_local3 = _local3 + 1;
_local6 = this["platstr" + gLevel][_local3 - 11];
this.removeMovieClip((("block" + (19 - _local2)) + "_") + i);
this.attachMovie("blockSet_mc", (("block" + (19 - _local2)) + "_") + i, _local3);
this[(("block" + (19 - _local2)) + "_") + i]._x = _local5;
this[(("block" + (19 - _local2)) + "_") + i]._y = _local4;
switch (_local6) {
case 0 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(3);
this[(("block" + (19 - _local2)) + "_") + i].blockBreak_mc.gotoAndStop(6);
break;
case 20 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(3);
this[(("block" + (19 - _local2)) + "_") + i].blockBreak_mc.gotoAndStop(6);
break;
case 1 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(3);
this[(("block" + (19 - _local2)) + "_") + i].blockBreak_mc.gotoAndStop(6);
break;
case 2 :
this[(("block" + (19 - _local2)) + "_") + i]._alpha = 25;
iceBlockCount = iceBlockCount + 1;
break;
case 3 :
this[(("block" + (19 - _local2)) + "_") + i]._alpha = 50;
iceBlockCount = iceBlockCount + 1;
break;
case 4 :
this[(("block" + (19 - _local2)) + "_") + i]._alpha = 75;
iceBlockCount = iceBlockCount + 1;
break;
case 5 :
iceBlockCount = iceBlockCount + 1;
break;
case 6 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(4);
break;
case 7 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(4);
numberOfFlags = numberOfFlags + 1;
addFlag(numberOfFlags - 1, 19 - _local2, i);
break;
case 8 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(4);
manXStart[10] = 19 - _local2;
manYStart[10] = i;
didEditorHaveMan = true;
break;
case 9 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(3);
numberOfPenguins = numberOfPenguins + 1;
manXStart[numberOfPenguins - 1] = 19 - _local2;
manYStart[numberOfPenguins - 1] = i;
break;
case 10 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(5);
this[(("block" + (19 - _local2)) + "_") + i].slideDir_mc.gotoAndStop(1);
break;
case 11 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(5);
this[(("block" + (19 - _local2)) + "_") + i].slideDir_mc.gotoAndStop(2);
break;
case 12 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(5);
this[(("block" + (19 - _local2)) + "_") + i].slideDir_mc.gotoAndStop(3);
break;
case 13 :
this[(("block" + (19 - _local2)) + "_") + i].gotoAndStop(5);
this[(("block" + (19 - _local2)) + "_") + i].slideDir_mc.gotoAndStop(4);
}
_local5 = _local5 - 46;
_local4 = _local4 + 8;
_local2++;
}
i++;
}
penguinSpeed = this["platstr" + gLevel][325];
blockPercentRequired = this["platstr" + gLevel][326];
if (didEditorHaveMan == false) {
this.block11_8.gotoAndStop(4);
manXStart[10] = 11;
manYStart[10] = 8;
}
}
function manHitPenCheck() {
if (dieMode == 0) {
var _local2 = 0;
while (_local2 < numberOfPenguins) {
if ((manX[10] == manX[_local2]) && (manY[10] == manY[_local2])) {
if (((this["penguin" + _local2]._currentframe < 69) && (manJump != 1)) && (penMode[_local2] != 5)) {
explodeEskimo(2, this.myEskimo._x, this.myEskimo._y);
}
}
_local2++;
}
}
}
function manDie() {
lives = lives - 1;
explodeEskimo_mc.removeMovieClip();
if (robotMode == true) {
gameOver();
dieMode = 20;
level = 0;
}
if (lives < 0) {
gameOver();
dieMode = 20;
level = 0;
} else if (lives > -1) {
this.livesStats_mc.gotoAndStop(lives + 1);
gotoAndPlay ("newLife");
}
}
function explodeEskimo(dM, tX, tY) {
if (tY != undefined) {
dieMode = dM;
this.myEskimo.removeMovieClip();
this.attachMovie("explodeEskimo_mc", "explodeEskimo_mc", 340 + tY);
this.explodeEskimo_mc._x = tX;
this.explodeEskimo_mc._y = tY;
}
}
function gameOver() {
if (robotMode == false) {
gotoAndPlay ("gameOver");
} else {
gotoAndPlay ("preGame");
}
}
function addEskimo() {
slideMode[10] = 0;
slideMove[10] = 0;
this.attachMovie("eskimo_mc", "myEskimo", 340);
manMode = 0;
manMove = 0;
manJump = 0;
manJumpMove = 0;
dieMode = 0;
manX[10] = manXStart[10];
manY[10] = manYStart[10];
alignXY("myEskimo", 10);
if (robotMode == true) {
newMove = 6 - lives;
}
}
function addPenguin(pNum) {
this.attachMovie("penguin_mc", "penguin" + pNum, 350 + pNum);
slideMode[pNum] = 0;
slideMove[pNum] = 0;
penMode = [0, 0, 0, 0, 0, 0, 0, 0];
penMove = [0, 0, 0, 0, 0, 0, 0, 0];
penFreeze = [0, 0, 0, 0, 0, 0, 0, 0];
manX[pNum] = manXStart[pNum];
manY[pNum] = manYStart[pNum];
alignXY("penguin" + pNum, pNum);
}
function addFlag(fNum, fXt, fYt) {
this.attachMovie("flag_mc", "flag_mc" + fNum, 390 + fNum);
flagMode[fNum] = 0;
this["flag_mc" + fNum].gotoAndStop(1);
fX[fNum] = fXt;
fY[fNum] = fYt;
this["flag_mc" + fNum]._x = (-348 + (fXt * 46)) + (fYt * 34);
this["flag_mc" + fNum]._y = ((254 + yOffset) - (fXt * 8)) + (fYt * 13);
}
function penHitPenCheckX(pNum, pDir) {
i = 0;
while (i < numberOfPenguins) {
if (((manX[pNum] + pDir) == manX[i]) && (manY[pNum] == manY[i])) {
return(1);
}
i++;
}
}
function penHitPenCheckY(pNum, pDir) {
i = 0;
while (i < numberOfPenguins) {
if (((manY[pNum] + pDir) == manY[i]) && (manX[pNum] == manX[i])) {
return(1);
}
i++;
}
}
function movePenguin(pNum) {
if (penMode[pNum] == 0) {
if (slideMode[pNum] == 0) {
alignXY("penguin" + pNum, pNum);
}
var _local7 = Math.round(Math.random() * 2);
var _local6 = Math.round(Math.random() * 3);
var _local5 = Math.round(Math.random() * 3);
tempFind = 0;
if (_local6 == 0) {
tempFind = 2 - _local5;
}
if (_local7 == 0) {
if (manX[pNum] > (manX[10] + tempFind)) {
if (penHitPenCheckX(pNum, -1) != 1) {
penMode[pNum] = 1;
}
} else if (penHitPenCheckX(pNum, 1) != 1) {
penMode[pNum] = 3;
}
} else if (manY[pNum] > (manY[10] + tempFind)) {
if (penHitPenCheckY(pNum, -1) != 1) {
penMode[pNum] = 2;
}
} else if (penHitPenCheckY(pNum, 1) != 1) {
penMode[pNum] = 4;
}
checkNewLoc2(pNum);
}
if (penMode[pNum] == 1) {
if (penMove[pNum] < 4) {
penMove[pNum] = penMove[pNum] + 1;
this["penguin" + pNum]._x = this["penguin" + pNum]._x - 11.5;
this["penguin" + pNum]._y = this["penguin" + pNum]._y + 2;
if (penMove[pNum] == 2) {
manX[pNum] = manX[pNum] - 1;
checkNewLoc2(pNum);
}
} else {
penMode[pNum] = 0;
penMove[pNum] = 0;
}
} else if (penMode[pNum] == 3) {
if (penMove[pNum] < 4) {
penMove[pNum] = penMove[pNum] + 1;
this["penguin" + pNum]._x = this["penguin" + pNum]._x + 11.5;
this["penguin" + pNum]._y = this["penguin" + pNum]._y - 2;
if (penMove[pNum] == 2) {
manX[pNum] = manX[pNum] + 1;
checkNewLoc2(pNum);
}
} else {
penMode[pNum] = 0;
penMove[pNum] = 0;
}
} else if (penMode[pNum] == 4) {
if (penMove[pNum] < 4) {
penMove[pNum] = penMove[pNum] + 1;
this["penguin" + pNum]._x = this["penguin" + pNum]._x + 8.5;
this["penguin" + pNum]._y = this["penguin" + pNum]._y + 3.25;
if (penMove[pNum] == 2) {
manY[pNum] = manY[pNum] + 1;
checkNewLoc2(pNum);
}
} else {
penMode[pNum] = 0;
penMove[pNum] = 0;
}
} else if (penMode[pNum] == 2) {
if (penMove[pNum] < 4) {
penMove[pNum] = penMove[pNum] + 1;
this["penguin" + pNum]._x = this["penguin" + pNum]._x - 8.5;
this["penguin" + pNum]._y = this["penguin" + pNum]._y - 3.25;
if (penMove[pNum] == 2) {
manY[pNum] = manY[pNum] - 1;
checkNewLoc2(pNum);
}
} else {
penMode[pNum] = 0;
penMove[pNum] = 0;
}
} else if (penMode[pNum] == 5) {
penFreeze[pNum] = penFreeze[pNum] + 1;
if ((this[(("block" + manX[pNum]) + "_") + manY[pNum]]._currentframe == 3) && (this["penguin" + pNum]._currentframe < 69)) {
this["penguin" + pNum].gotoAndStop(this["penguin" + pNum]._currentframe + 68);
}
if (penFreeze[pNum] < (penFreezeTime[pNum] - 6)) {
var _local3 = new Color(this["penguin" + pNum]);
var _local4 = {ra:100, rb:-47, ga:100, gb:225, ba:100, bb:255, aa:100, ab:0};
_local3.setTransform(_local4);
} else if (penFreeze[pNum] < (penFreezeTime[pNum] - 3)) {
var _local3 = new Color(this["penguin" + pNum]);
var _local4 = {ra:100, rb:-37, ga:100, gb:175, ba:100, bb:205, aa:100, ab:0};
_local3.setTransform(_local4);
} else if (penFreeze[pNum] < penFreezeTime[pNum]) {
var _local3 = new Color(this["penguin" + pNum]);
var _local4 = {ra:100, rb:-27, ga:100, gb:125, ba:100, bb:155, aa:100, ab:0};
_local3.setTransform(_local4);
}
if (penFreeze[pNum] > penFreezeTime[pNum]) {
penFreeze[pNum] = 0;
checkNewLoc2(pNum);
penMode[pNum] = 0;
var _local3 = new Color(this["penguin" + pNum]);
var _local4 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local3.setTransform(_local4);
}
}
if (((this[(("block" + manX[pNum]) + "_") + manY[pNum]].blockJump_mc._currentframe > 1) && (penMode[pNum] != 5)) && (penFreeze[pNum] == 0)) {
addScore(1000);
penMode[pNum] = 5;
this["penguin" + pNum]._x = (-344 + (manX[pNum] * 46)) + (manY[pNum] * 34);
this["penguin" + pNum]._y = ((332 - (manX[pNum] * 8)) + yOffset) + (manY[pNum] * 13);
this["penguin" + pNum].stop();
penFreeze[pNum] = 0;
var _local3 = new Color(this["penguin" + pNum]);
var _local4 = {ra:100, rb:-57, ga:100, gb:225, ba:100, bb:255, aa:100, ab:0};
_local3.setTransform(_local4);
} else if (((this[(("block" + manX[pNum]) + "_") + manY[pNum]].blockJump_mc._currentframe > 1) && (penMode[pNum] == 5)) && (penFreeze[pNum] > 0)) {
penFreeze[pNum] = 0;
var _local3 = new Color(this["penguin" + pNum]);
var _local4 = {ra:100, rb:-57, ga:100, gb:225, ba:100, bb:255, aa:100, ab:0};
_local3.setTransform(_local4);
}
}
function checkNewLoc() {
if (manJump == 0) {
if ((this[(("block" + manX[10]) + "_") + manY[10]]._currentframe == 3) || ((((manX[10] < 1) || (manX[10] > 18)) || (manY[10] < 1)) || (manY[10] > 18))) {
alignXY("myEskimo", 10);
explodeEskimo(1, this.myEskimo._x, this.myEskimo._y);
} else if ((this[(("block" + manX[10]) + "_") + manY[10]]._currentframe == 5) && (slideMode[10] == 0)) {
slideMove[10] = 0;
slideMode[10] = this[(("block" + manX[10]) + "_") + manY[10]].slideDir_mc._currentframe;
} else if (((slideMode[10] == 0) && (manMode == 0)) && (manJump == 0)) {
alignXY("myEskimo", 10);
}
}
}
function alignXY(whatCharacter, charID) {
if (charID == 10) {
if (manJump == 0) {
this[whatCharacter]._x = (-353 + (manX[10] * 46)) + (manY[10] * 34);
this[whatCharacter]._y = ((300 + yOffset) - (manX[10] * 8)) + (manY[10] * 13);
}
} else {
this[whatCharacter]._x = (-344 + (manX[charID] * 46)) + (manY[charID] * 34);
this[whatCharacter]._y = ((332 - (manX[charID] * 8)) + yOffset) + (manY[charID] * 13);
}
}
function slideCheck(whatCharacter, slideID) {
if (slideMode[slideID] != 0) {
slideMove[slideID] = slideMove[slideID] + 1;
switch (slideMode[slideID]) {
case 1 :
if (slideMove[slideID] < 9) {
this[whatCharacter]._x = this[whatCharacter]._x - 5.7;
this[whatCharacter]._y = this[whatCharacter]._y + 1;
if (slideMove[slideID] == 6) {
if (slideID == 10) {
manX[10] = manX[10] - 1;
} else {
manX[slideID] = manX[slideID] - 1;
checkNewLoc2(slideID);
}
}
} else {
this[whatCharacter]._x = this[whatCharacter]._x - 0.4;
slideMode[slideID] = 0;
slideMove[slideID] = 0;
alignXY(whatCharacter, slideID);
}
break;
case 2 :
if (slideMove[slideID] < 9) {
this[whatCharacter]._x = this[whatCharacter]._x - 4.25;
this[whatCharacter]._y = this[whatCharacter]._y - 1.6;
if (slideMove[slideID] == 6) {
if (slideID == 10) {
manY[10] = manY[10] - 1;
} else {
manY[slideID] = manY[slideID] - 1;
checkNewLoc2(slideID);
}
}
} else {
this[whatCharacter]._y = this[whatCharacter]._y - 0.2;
slideMode[slideID] = 0;
slideMove[slideID] = 0;
alignXY(whatCharacter, slideID);
}
break;
case 3 :
if (slideMove[slideID] < 9) {
this[whatCharacter]._x = this[whatCharacter]._x + 5.7;
this[whatCharacter]._y = this[whatCharacter]._y - 1;
if (slideMove[slideID] == 6) {
if (slideID == 10) {
manX[10] = manX[10] + 1;
} else {
manX[slideID] = manX[slideID] + 1;
checkNewLoc2(slideID);
}
}
} else {
this[whatCharacter]._x = this[whatCharacter]._x + 0.4;
slideMode[slideID] = 0;
slideMove[slideID] = 0;
alignXY(whatCharacter, slideID);
}
break;
case 4 :
if (slideMove[slideID] < 9) {
this[whatCharacter]._x = this[whatCharacter]._x + 4.25;
this[whatCharacter]._y = this[whatCharacter]._y + 1.6;
if (slideMove[slideID] == 6) {
if (slideID == 8) {
manY[10] = manY[10] + 1;
} else {
manY[slideID] = manY[slideID] + 1;
checkNewLoc2(slideID);
}
}
} else {
this[whatCharacter]._y = this[whatCharacter]._y + 0.2;
slideMode[slideID] = 0;
slideMove[slideID] = 0;
alignXY(whatCharacter, slideID);
}
}
}
}
function checkNewLoc2(pNum) {
if ((this[(("block" + manX[pNum]) + "_") + manY[pNum]]._currentframe == 5) && (slideMode[pNum] == 0)) {
slideMode[pNum] = this[(("block" + manX[pNum]) + "_") + manY[pNum]].slideDir_mc._currentframe;
}
if (this[(("block" + manX[pNum]) + "_") + manY[pNum]]._currentframe == 3) {
if (penMode[pNum] == 1) {
this["penguin" + pNum].gotoAndPlay("leftSwim");
} else if (penMode[pNum] == 4) {
this["penguin" + pNum].gotoAndPlay("downSwim");
} else if (penMode[pNum] == 3) {
this["penguin" + pNum].gotoAndPlay("rightSwim");
} else if (penMode[pNum] == 2) {
this["penguin" + pNum].gotoAndPlay("upSwim");
}
} else if (this[(("block" + manX[pNum]) + "_") + manY[pNum]]._currentframe != 3) {
if (penMode[pNum] == 1) {
this["penguin" + pNum].gotoAndPlay("leftWalk");
} else if (penMode[pNum] == 4) {
this["penguin" + pNum].gotoAndPlay("downWalk");
} else if (penMode[pNum] == 3) {
this["penguin" + pNum].gotoAndPlay("rightWalk");
} else if (penMode[pNum] == 2) {
this["penguin" + pNum].gotoAndPlay("upWalk");
}
}
}
function checkFlagCapture() {
if (percentMet == true) {
i = 0;
while (i < numberOfFlags) {
if ((manX[10] == fX[i]) && (manY[10] == fY[i])) {
if (flagMode[i] < 50) {
flagMode[i] = flagMode[i] + 1;
if ((((flagMode[i] - 4) % 9) == 1) && (flagMode[i] < 44)) {
makeFlagSound();
myEskimo.gotoAndPlay(2);
addScore(100 + (gLevel * 20));
}
this["flag_mc" + i].gotoAndStop(flagMode[i]);
if ((manMode == 0) && (flagFlag == false)) {
flagFlag = true;
currentDir = 1;
}
if (flagMode[i] > 49) {
this["flag_mc" + i].flagAnimation_mc.gotoAndStop(15);
gotoAndPlay (8);
}
}
}
i++;
}
}
}
function checkMoveMan() {
if (manMode == 0) {
if (Key.isDown(37) || (Key.isDown(65))) {
manMode = 1;
currentDir = 1;
manMove = 0;
flagFlag = false;
} else if (Key.isDown(39) || (Key.isDown(68))) {
manMode = 3;
currentDir = 3;
manMove = 0;
flagFlag = false;
} else if (Key.isDown(40) || (Key.isDown(83))) {
manMode = 4;
currentDir = 4;
manMove = 0;
flagFlag = false;
} else if (Key.isDown(38) || (Key.isDown(87))) {
manMode = 2;
currentDir = 2;
manMove = 0;
flagFlag = false;
}
if (manMode != 0) {
myEskimo.gotoAndPlay((currentDir * 6) - 5);
}
}
if (((manMode == 0) && (manJump == 0)) && (flagFlag == false)) {
myEskimo.gotoAndStop((currentDir * 6) - 5);
}
}
function checkJumpMan() {
if (manJump == 0) {
if (Key.isDown(32)) {
flagFlag = false;
manJump = 1;
manJumpMove = 0;
}
}
}
function moveMan() {
if (manMode == 1) {
if (manMove < 4) {
manMove = manMove + 1;
this.myEskimo._x = this.myEskimo._x - 11.5;
this.myEskimo._y = this.myEskimo._y + 2;
if (manMove == 2) {
iceFadeCheck(true, manX[10], manY[10]);
manX[10] = manX[10] - 1;
}
} else {
manMode = 0;
manMove = 0;
}
} else if (manMode == 3) {
if (manMove < 4) {
manMove = manMove + 1;
this.myEskimo._x = this.myEskimo._x + 11.5;
this.myEskimo._y = this.myEskimo._y - 2;
if (manMove == 2) {
iceFadeCheck(true, manX[10], manY[10]);
manX[10] = manX[10] + 1;
}
} else {
manMode = 0;
manMove = 0;
}
} else if (manMode == 4) {
if (manMove < 4) {
manMove = manMove + 1;
this.myEskimo._x = this.myEskimo._x + 8.5;
this.myEskimo._y = this.myEskimo._y + 3.25;
if (manMove == 2) {
iceFadeCheck(true, manX[10], manY[10]);
manY[10] = manY[10] + 1;
}
} else {
manMode = 0;
manMove = 0;
}
} else if (manMode == 2) {
if (manMove < 4) {
manMove = manMove + 1;
this.myEskimo._x = this.myEskimo._x - 8.5;
this.myEskimo._y = this.myEskimo._y - 3.25;
if (manMove == 2) {
iceFadeCheck(true, manX[10], manY[10]);
manY[10] = manY[10] - 1;
}
} else {
manMode = 0;
manMove = 0;
}
}
if (manMode == 0) {
checkNewLoc();
}
}
function jumpMan() {
if (manJump == 1) {
flagFlag = false;
myEskimo.gotoAndStop((currentDir * 6) - 4);
manJumpMove = manJumpMove + 1;
this.myEskimo.shadow_mc._y = this.myEskimo.shadow_mc._y + jumpArray[10 - manJumpMove];
if (manJumpMove == 2) {
makeJumpSound();
this.myEskimo.shadow_mc.gotoAndPlay(2);
}
if (manJumpMove < 11) {
this.myEskimo._y = this.myEskimo._y + jumpArray[manJumpMove - 1];
} else {
manJump = 0;
this.myEskimo.shadow_mc._y = 31;
manJumpMove = -1;
checkNewLoc();
blockLand(manX[10], manY[10]);
if (robotMode == true) {
switch (currentDir) {
case 1 :
myEskimo.gotoAndStop(1);
break;
case 2 :
myEskimo.gotoAndStop(19);
break;
case 3 :
myEskimo.gotoAndStop(13);
break;
case 4 :
myEskimo.gotoAndStop(19);
}
}
}
}
}
function blockLand(landXorig, landYorig) {
checkNewLoc();
iceFadeCheck(true, manX[10], manY[10]);
if (this[(("block" + landXorig) + "_") + landYorig]._currentframe == 4) {
makeLandSound();
} else if (this[(("block" + landXorig) + "_") + landYorig]._currentframe == 1) {
makeLandSound();
this[(("block" + manX[10]) + "_") + manY[10]].blockJump_mc.gotoAndPlay("blockSink");
rippleMode = 0;
landX = landXorig;
landY = landYorig;
landX_L = landX;
landX_R = landX;
landY_U = landY;
landY_D = landY;
while (landX_L > 0) {
if (this[(("block" + landX_L) + "_") + landY]._currentframe != 1) {
break;
}
landX_L--;
}
while (landX_R < 18) {
if (this[(("block" + landX_R) + "_") + landY]._currentframe != 1) {
break;
}
landX_R++;
}
while (landY_U > 0) {
if (this[(("block" + landX) + "_") + landY_U]._currentframe != 1) {
break;
}
landY_U--;
}
while (landY_D < 18) {
if (this[(("block" + landX) + "_") + landY_D]._currentframe != 1) {
break;
}
landY_D++;
}
} else if (this[(("block" + landXorig) + "_") + landYorig]._currentframe != 1) {
checkNewLoc();
}
}
function rippleCheck() {
if (rippleMode > -1) {
rippleMode = rippleMode + 1;
if ((landX - rippleMode) > landX_L) {
iceFadeCheck(false, landX - rippleMode, landY);
this[(("block" + (landX - rippleMode)) + "_") + landY].blockJump_mc.gotoAndPlay("start");
}
if ((landX + rippleMode) < landX_R) {
iceFadeCheck(false, landX + rippleMode, landY);
this[(("block" + (landX + rippleMode)) + "_") + landY].blockJump_mc.gotoAndPlay("start");
}
if ((landY - rippleMode) > landY_U) {
iceFadeCheck(false, landX, landY - rippleMode);
this[(("block" + landX) + "_") + (landY - rippleMode)].blockJump_mc.gotoAndPlay("start");
}
if ((landY + rippleMode) < landY_D) {
iceFadeCheck(false, landX, landY + rippleMode);
this[(("block" + landX) + "_") + (landY + rippleMode)].blockJump_mc.gotoAndPlay("start");
}
}
}
function iceFadeCheck(eskimo, iX, iY) {
if (this[(("block" + iX) + "_") + iY]._currentframe == 1) {
if (((manJump != 1) && (eskimo == true)) || (eskimo == false)) {
if (this[(("block" + iX) + "_") + iY]._alpha == 100) {
this[(("block" + iX) + "_") + iY]._alpha = 75;
} else if (this[(("block" + iX) + "_") + iY]._alpha == 75) {
this[(("block" + iX) + "_") + iY]._alpha = 50;
} else if (this[(("block" + iX) + "_") + iY]._alpha == 50) {
this[(("block" + iX) + "_") + iY]._alpha = 25;
} else if (this[(("block" + iX) + "_") + iY]._alpha == 25) {
this[(("block" + iX) + "_") + iY].gotoAndStop(3);
this[(("block" + iX) + "_") + iY].blockBreak_mc.gotoAndPlay(1);
removeBlock();
}
}
}
}
function removeBlock() {
addScore(10);
removedIceBlockCount = removedIceBlockCount + 1;
removedPercent = Math.round(100 * (removedIceBlockCount / iceBlockCount));
this.clearedBox_mc.removedBlocksPercentage_txt.text = String(removedPercent) + "%";
if ((removedPercent >= blockPercentRequired) && (percentMet == false)) {
percentMet = true;
i = 0;
while (i < numberOfFlags) {
this["flag_mc" + i].flagAnimation_mc.gotoAndPlay(10);
i++;
}
}
}
function addScore(scoreAmount) {
score = score + scoreAmount;
scoreBox_mc.score_txt.text = score;
if (score > freeManScore) {
makeFreemanSound();
lives = lives + 1;
livesStats_mc.gotoAndStop(lives);
freeManScore = freeManScore + 20000;
}
}
function robotCheckMoveMan() {
if (manMode == 0) {
if (robotMoveMode == 1) {
myEskimo.gotoAndPlay(2);
manMode = 1;
currentDir = 1;
manMove = 0;
} else if (robotMoveMode == 3) {
myEskimo.gotoAndPlay(14);
manMode = 3;
currentDir = 3;
manMove = 0;
} else if (robotMoveMode == 4) {
myEskimo.gotoAndPlay(20);
manMode = 4;
currentDir = 4;
manMove = 0;
} else if (robotMoveMode == 2) {
myEskimo.gotoAndPlay(8);
manMode = 2;
currentDir = 2;
manMove = 0;
}
}
if ((manMode == 0) && (manJump == 0)) {
myEskimo.gotoAndStop((currentDir * 6) - 5);
}
}
function robotCheckJumpMan() {
if (manJump == 0) {
if (robotJumpMode == 1) {
manJump = 1;
manJumpMove = 0;
}
}
}
function saveLevel(displayOrPlay) {
cf2 = 1;
testPlayCount = 0;
cfString = "";
fullString = "var platstr0:Array = [";
clearCount = 0;
var _local3 = 1;
while (_local3 < 19) {
var cfString = "";
var _local2 = 1;
while (_local2 < 19) {
cf2 = this[(("block2_" + (19 - _local2)) + "_") + _local3]._currentframe;
if (cf2 == 20) {
cf2 = 1;
}
if ((cf2 > 1) && (cf2 < 10)) {
clearCount = clearCount + 1;
}
platstr200[testPlayCount] = cf2;
testPlayCount = testPlayCount + 1;
cfString = cfString + String(cf2 + ",");
_local2++;
}
this.fullString = this.fullString + (cfString + newline);
_local3++;
}
this.fullString = this.fullString + String(clearCount + ",4,50];");
testPlayCount = testPlayCount + 1;
platstr200[testPlayCount] = 4;
testPlayCount = testPlayCount + 1;
platstr200[testPlayCount] = 101;
if (displayOrPlay == 0) {
this.fullString = this.fullString.slice(9);
this.editorCode_mc.codeTextBox_txt.text = " ";
this.editorCode_mc.codeTextBox_txt.text = this.fullString;
didEditorSave = true;
} else if (displayOrPlay == 1) {
didEditorSave = true;
robotMode = false;
lives = 1;
gLevel = 199;
gotoAndPlay ("startGame");
}
}
function buildIceFloorBuild() {
if (didEditorSave == true) {
gLevel = 200;
} else {
gLevel = 199;
}
removeAllCharacters();
iceBlockCount = 0;
removedIceBlockCount = 0;
this.removedBlocks_txt.text = 0;
this.removedBlocksPercentage_txt.text = "0%";
i = 0;
while (i < 6) {
this["flag_mc" + i].removeMovieClip();
i++;
}
var _local3 = 10;
var _local5 = -378;
var _local4 = 325 + yOffset;
var i = 1;
while (i < 19) {
_local5 = _local5 + 862;
_local4 = _local4 - 131;
var _local2 = 1;
while (_local2 < 19) {
_local3 = _local3 + 1;
this.attachMovie("blockSet2_mc", (("block2_" + (19 - _local2)) + "_") + i, _local3);
this[(("block2_" + (19 - _local2)) + "_") + i]._x = _local5;
this[(("block2_" + (19 - _local2)) + "_") + i]._y = _local4;
this[(("block2_" + (19 - _local2)) + "_") + i].gotoAndStop(this["platstr" + gLevel][_local3 - 11]);
_local5 = _local5 - 46;
_local4 = _local4 + 8;
_local2++;
}
i++;
}
this.IceBlocks_txt.text = iceBlockCount;
}
function movePointer() {
if ((Key.isDown(37) || (Key.isDown(65))) && (selectX > 1)) {
if (this[(("block2_" + (selectX - 1)) + "_") + selectY]._currentframe != 20) {
selectX = selectX - 1;
}
} else if ((Key.isDown(39) || (Key.isDown(68))) & (selectX < 18)) {
if (this[(("block2_" + (selectX + 1)) + "_") + selectY]._currentframe != 20) {
selectX = selectX + 1;
}
} else if ((Key.isDown(40) || (Key.isDown(83))) & (selectY < 18)) {
if (this[(("block2_" + selectX) + "_") + (selectY + 1)]._currentframe != 20) {
selectY = selectY + 1;
}
} else if ((Key.isDown(38) || (Key.isDown(87))) && (selectY > 1)) {
if (this[(("block2_" + selectX) + "_") + (selectY - 1)]._currentframe != 20) {
selectY = selectY - 1;
}
} else if (Key.isDown(48)) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(1);
} else if (Key.isDown(49)) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(2);
} else if (Key.isDown(50)) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(3);
} else if (Key.isDown(51)) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(4);
} else if (Key.isDown(52)) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(5);
} else if (Key.isDown(53)) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(6);
} else if (Key.isDown(70)) {
var _local3 = 1;
while (_local3 < 19) {
var _local2 = 1;
while (_local2 < 19) {
if (this[(("block2_" + (19 - _local2)) + "_") + _local3]._currentframe == 7) {
flagBuildCount = flagBuildCount + 1;
if (flagBuildCount > 7) {
flagBuildCount = flagBuildCount - 1;
this[(("block2_" + (19 - _local2)) + "_") + _local3].gotoAndStop(5);
}
}
_local2++;
}
_local3++;
}
flagBuildCount = 0;
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(7);
} else if (Key.isDown(77)) {
var _local3 = 1;
while (_local3 < 19) {
var _local2 = 1;
while (_local2 < 19) {
if (this[(("block2_" + (19 - _local2)) + "_") + _local3]._currentframe == 8) {
this[(("block2_" + (19 - _local2)) + "_") + _local3].gotoAndStop(5);
}
_local2++;
}
_local3++;
}
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(8);
} else if (Key.isDown(80)) {
var _local3 = 1;
while (_local3 < 19) {
var _local2 = 1;
while (_local2 < 19) {
if (this[(("block2_" + (19 - _local2)) + "_") + _local3]._currentframe == 9) {
penBuildCount = penBuildCount + 1;
if (penBuildCount > 5) {
penBuildCount = penBuildCount - 1;
this[(("block2_" + (19 - _local2)) + "_") + _local3].gotoAndStop(5);
}
}
_local2++;
}
_local3++;
}
penBuildCount = 0;
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(9);
} else if (Key.isDown(107)) {
blockAdd(selectX, selectY);
} else if (Key.isDown(109)) {
blockSubtract(selectX, selectY);
} else if (Key.isDown(74)) {
editorRipple(selectX, selectY);
} else if (Key.isDown(67)) {
if (this[(("block2_" + selectX) + "_") + selectY]._currentframe == 10) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(11);
} else if (this[(("block2_" + selectX) + "_") + selectY]._currentframe == 11) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(12);
} else if (this[(("block2_" + selectX) + "_") + selectY]._currentframe == 12) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(13);
} else if (this[(("block2_" + selectX) + "_") + selectY]._currentframe == 13) {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(10);
} else {
this[(("block2_" + selectX) + "_") + selectY].gotoAndStop(10);
}
}
this.selector_mc._x = (-378 + (selectX * 46)) + (selectY * 34);
this.selector_mc._y = ((324 + yOffset) - (selectX * 8)) + (selectY * 13);
}
function blockSubtract(x, y) {
var _local2 = this[(("block2_" + x) + "_") + y]._currentframe - 1;
if (_local2 < 1) {
_local2 = 7;
}
this[(("block2_" + x) + "_") + y].gotoAndStop(_local2);
}
function blockAdd(x, y) {
var _local2 = this[(("block2_" + x) + "_") + y]._currentframe + 1;
if (_local2 > 7) {
_local2 = 1;
}
this[(("block2_" + x) + "_") + y].gotoAndStop(_local2);
}
function editorRipple(ripX, ripY) {
landX = ripX;
landY = ripY;
landX_L = landX - 1;
landX_R = landX + 1;
landY_U = landY - 1;
landY_D = landY + 1;
blockSubtract(landX, landY);
while (landX_L > 0) {
if ((this[(("block2_" + landX_L) + "_") + landY]._currentframe == 1) || (this[(("block2_" + landX_L) + "_") + landY]._currentframe > 5)) {
break;
}
blockSubtract(landX_L, landY);
landX_L--;
}
while (landX_R < 18) {
if ((this[(("block2_" + landX_R) + "_") + landY]._currentframe == 1) || (this[(("block2_" + landX_R) + "_") + landY]._currentframe > 5)) {
break;
}
blockSubtract(landX_R, landY);
landX_R++;
}
while (landY_U > 0) {
if ((this[(("block2_" + landX) + "_") + landY_U]._currentframe == 1) || (this[(("block2_" + landX) + "_") + landY_U]._currentframe > 5)) {
break;
}
blockSubtract(landX, landY_U);
landY_U--;
}
while (landY_D < 18) {
if ((this[(("block2_" + landX) + "_") + landY_D]._currentframe == 1) || (this[(("block2_" + landX) + "_") + landY_D]._currentframe > 5)) {
break;
}
blockSubtract(landX, landY_D);
landY_D++;
}
}
function testLevel() {
editorMode = false;
robotMode = false;
selector_mc._visible = false;
editor_mc.gotoAndStop(1);
gotoAndPlay (1);
}
function makeLandSound() {
if (muteFlag == false) {
var _local1 = new Sound("myEskimo");
_local1.attachSound("footstepSound2");
_local1.setVolume(70);
_local1.start(0, 1);
}
}
function makeThunderSound() {
if (muteFlag == false) {
var _local1 = new Sound("levelEnd_mc");
_local1.attachSound("thunder");
_local1.setVolume(50);
_local1.start(0, 1);
}
}
function makeShatterSound() {
if (muteFlag == false) {
var _local1 = new Sound("explodeEskimo_mc");
_local1.attachSound("shatterSound");
_local1.setVolume(80);
_local1.start(0, 1);
}
}
function makeSplashSound() {
if (muteFlag == false) {
var _local1 = new Sound("explodeEskimo_mc");
_local1.attachSound("deepSploshSound");
_local1.setVolume(30);
_local1.start(0, 1);
}
}
function makeFlagSound() {
if (muteFlag == false) {
var _local1 = new Sound("flag_mc0");
_local1.attachSound("flagPull");
_local1.setVolume(100);
_local1.start(-1, 1);
}
}
function makeFreeManSound() {
if (muteFlag == false) {
var _local1 = new Sound("scoreBox_mc");
_local1.attachSound("freemanSound");
_local1.setVolume(30);
_local1.start(0, 1);
}
}
function makePenSplashSound(pNum) {
if (muteFlag == false) {
var _local1 = new Sound("penguin0");
_local1.attachSound("splashSound");
_local1.setVolume(10);
_local1.start(0, 1);
}
}
function makeBonusCollectSound() {
if (muteFlag == false) {
var _local1 = new Sound("scoreBox_mc");
_local1.attachSound("highBeepSound");
_local1.setVolume(50);
_local1.start(0, 1);
}
}
function makeJumpSound() {
if (muteFlag == false) {
var _local1 = new Sound("myEskimo");
_local1.attachSound("jumpSound3");
_local1.setVolume(50);
_local1.start(0, 1);
}
}
function makeWindSound() {
if (muteFlag == false) {
var windSound = new Sound("wind_mc");
windSound.attachSound("windSound");
windSound.setVolume(100);
windSound.start(0, 1);
windFlag = false;
windSound.onSoundComplete = function () {
windSound.start(0, 99);
};
} else {
var windSound = new Sound("wind_mc");
windSound.attachSound("windSound");
windSound.setVolume(0);
}
}
function backgroundMusic(control) {
if ((control == 1) && (muteFlag == false)) {
var musicSound = new Sound("music_mc");
musicSound.attachSound("bigBackgroundSound");
musicSound.onSoundComplete = function () {
musicSound.start(0, 99);
};
musicSound.setVolume(50);
musicSound.stop();
musicSound.start(0, 99);
} else if (control == 0) {
var musicSound = new Sound("music_mc");
musicSound.attachSound("bigBackgroundSound");
musicSound.setVolume(0);
musicSound.stop();
}
}
function turnSound(onOffFlag) {
if (onOffFlag == true) {
muteFlag = false;
backgroundMusic(1);
makeWindSound();
} else if (onOffFlag == false) {
muteFlag = true;
backgroundMusic(0);
makeWindSound();
}
}
function previewLevel(levelDirection) {
if (levelDirection == -1) {
gLevel = gLevel - 2;
}
if (gLevel < 0) {
gLevel = 37;
}
if (gLevel > 37) {
gLevel = 0;
}
gotoAndPlay ("newLevel");
}
var blockPercentRequired = 40;
var version = "beta v.2.8";
var previewMode = false;
var tempFind = 0;
var whichPenguin = 0;
var robotMode = true;
var editorMode = false;
var didEditorSave = false;
var flagCount = 0;
var numberOfFlags = -1;
var fX = [0, 0, 0, 0, 0, 0, 0, 0, 0];
var fY = [0, 0, 0, 0, 0, 0, 0, 0, 0];
var flagMode = [0, 0, 0, 0, 0, 0, 0, 0, 0];
var flagFlag = false;
var dieMode = 0;
var robotMoveMode = 0;
var robotFrameCount = 0;
var robotMoveTimesIndex = 0;
var robotJumpTimesIndex = 0;
var penguinSpeed = 4;
var freeManScore = 20000;
var penBuildCount = 0;
var flagBuildCount = 0;
var slideMode = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var slideMove = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var newMove = 0;
var lives = 1;
var gLevel = 0;
var numberOfPenguins = 0;
var autoMan = 0;
var score = 0;
var currentDir = 1;
var jumpArray = [-8, -5, -2, -1, 0, 0, 1, 2, 5, 8];
var iceBlockCount = 0;
var pauseFlag = false;
var muteFlag = false;
var removedIceBlockCount = 0;
var landX = 0;
var landY = 0;
var landX_L = 0;
var landX_R = 0;
var landY_U = 0;
var landY_D = 0;
var frameCount = 0;
var manMode = 0;
var manMove = 0;
var manJump = 0;
var manJumpMove = 0;
var rippleMode = -1;
var yOffset = -105;
var manX = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var manY = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var manXStart = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var manYStart = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var penMode = [0, 0, 0, 0, 0, 0, 0, 0];
var penMove = [0, 0, 0, 0, 0, 0, 0, 0];
var penFreeze = [0, 0, 0, 0, 0, 0, 0, 0];
var penFreezeTime = [16, 16, 16, 16, 16, 16, 16, 16];
var penguinTimer = [0, 0, 0, 0, 0, 0, 0, 0];
var levelTitle = new Array();
var platstr200 = new Array();
startBtn_mc.swapDepths(800);
var percentMet = false;
var blockPercentRequired = 50;
var removedPercent = 0;
var didEditorHaveMan = false;
var cf2 = 1;
var fullString = "var platstr0:Array = [";
var testPlayCount = 0;
var cfString = "n";
var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99, 105, 110, 138, 143, 164, 169, 174, 179, 189, 194, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 256, 369, 377, 382, 396, 401, 446, 451, 456, 463, 470, 475, 481, 486, 491, 496, 501, 506, 562, 567, 576, 581, 586, 591, 599, 618, 623, 628, 633, 640, 645, 652, 707, 712, 717, 722, 727];
var robotMoves = [0, 4, 4, 3, 4, 3, 3, 3, 4, 4, 4, 4, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 1, 1, 4, 4, 4, 1, 1, 1, 4, 4, 3, 3, 4, 4, 4, 1, 1, 3, 3, 1, 1, 1, 4, 1, 1, 4, 4, 1, 1, 1, 4, 2, 1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 1, 2, 1, 3, 3, 3, 3, 2];
var robotJumpTimes = [44, 139, 166, 189, 352, 579, 592, 717];
var robotMoveTimes = [62, 67, 72, 77, 82, 87, 92, 102, 107, 112, 117, 122, 127, 143, 151, 158, 174, 179, 243, 248, 259, 264, 269, 274, 279, 284, 289, 301, 306, 321, 326, 331, 336, 341, 348, 370, 423, 428, 461, 466, 471, 481, 486, 498, 503, 511, 516, 521, 526, 548, 553];
var robotMoves = [0, 4, 4, 4, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 1, 4, 4, 4, 4, 1, 1, 2, 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 2, 2, 1, 4, 2, 3, 3, 2, 3, 3, 3, 4, 3, 3, 2, 2, 2, 2, 1, 1];
var robotJumpTimes = [87, 157, 282, 353, 432, 468, 513];
var windFlag = false;
var robotMoveTimes = [78, 83, 88, 93, 98, 117, 122, 134, 139, 183, 204, 210, 236, 245, 250, 256, 265, 276, 281, 317, 322, 330, 335, 340, 345, 351, 356, 361, 366, 371, 393, 398, 403, 415, 422, 431, 436, 446, 451, 457, 466, 471, 480, 499, 508, 532, 537, 550, 558, 563, 574, 579, 584, 592, 597, 605, 612, 620, 625, 630, 635, 645, 650, 655, 661, 666, 700, 705, 717, 732, 737, 752, 757, 772, 777, 784, 789, 794, 799, 807, 812, 823, 828, 840, 845, 853, 862, 867, 876, 881, 886, 891, 896, 901, 906, 918, 923, 929, 944, 949, 954, 989, 994, 1042, 1047, 1074, 1079, 1097, 1102, 1152];
var robotMoves = [0, 4, 4, 4, 4, 4, 3, 4, 3, 3, 4, 1, 4, 4, 1, 4, 1, 2, 2, 3, 1, 2, 1, 1, 1, 1, 2, 2, 2, 3, 3, 2, 2, 1, 4, 1, 1, 1, 1, 4, 3, 4, 4, 1, 2, 1, 4, 4, 4, 3, 4, 2, 3, 3, 4, 4, 4, 3, 3, 3, 4, 1, 1, 2, 1, 2, 1, 2, 2, 3, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 3, 3, 4, 4, 3, 3, 2, 3, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 1, 1, 2, 2, 2];
var robotJumpTimes = [91, 138, 158, 190, 216, 277, 297, 319, 378, 394, 432, 455, 485, 513, 534, 557, 591, 675, 702, 732, 754, 774, 794, 808, 825, 930, 958, 991, 1017, 1045, 1075, 1098, 1127];
levelTitle[0] = "Demo";
var platstr0 = [0, 0, 0, 0, 6, 6, 6, 6, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 2, 6, 2, 6, 2, 6, 2, 5, 9, 0, 0, 0, 0, 0, 0, 0, 0, 5, 2, 6, 2, 2, 2, 6, 2, 5, 11, 0, 0, 0, 0, 0, 0, 0, 13, 5, 1, 2, 1, 2, 2, 2, 2, 5, 11, 5, 0, 0, 0, 0, 0, 0, 13, 4, 1, 12, 1, 6, 6, 6, 2, 3, 11, 4, 2, 0, 0, 0, 0, 0, 1, 5, 1, 5, 3, 2, 2, 8, 2, 5, 7, 1, 2, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 6, 6, 2, 3, 1, 1, 2, 2, 9, 0, 0, 0, 3, 5, 1, 11, 2, 2, 2, 6, 1, 5,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, 3, 10, 10, 4, 10, 11, 11, 13, 4, 3, 6, 4, 4, 1, 1, 1, 1, 1, 1, 1, 11, 9, 1, 6, 11, 13, 2, 3, 11, 2, 2, 1, 1, 1, 1, 1, 1, 10, 10, 4, 10, 13, 11, 13, 4, 3, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 11, 4, 11, 13, 11, 13, 12, 12, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 11, 10, 11, 13, 4, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 12, 12, 12, 5, 1, 1, 1, 1, 70, 4, 50];
levelTitle[22] = "SLIDE\nVALLEY";
var platstr22 = [1, 1, 1, 1, 3, 5, 5, 5, 5, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 13, 6, 6, 6, 6, 13, 12, 1, 1, 1, 1, 1, 1, 1, 1, 9, 10, 1, 13, 13, 13, 13, 13, 13, 13, 13, 1, 1, 1, 1, 1, 1, 1, 3, 10, 10, 1, 13, 13, 13, 13, 13, 13, 13, 9, 1, 1, 1, 1, 1, 1, 5, 6, 10, 10, 1, 13, 13, 13, 13, 13, 1, 12, 12, 1, 1, 1, 1, 1, 5, 6, 10, 10, 10, 1, 13, 13, 13, 1, 12, 12, 12, 1, 1, 1, 1, 1, 5, 6, 10, 10, 10, 10, 2, 1, 2, 12, 12, 12, 12, 1, 1, 1, 1, 1, 3, 10, 10, 10, 10, 10, 1, 8, 1, 12, 12, 12, 6, 9, 2, 1, 1, 1, 1, 10, 10, 10, 10, 10, 2, 1, 2, 12, 12, 12, 6, 1, 2, 1, 1, 1, 1, 10, 10, 10, 11, 1, 11, 11, 11, 1, 12, 12, 6, 1, 5, 1, 5, 1, 1, 1, 10, 10, 1, 11, 11, 11, 11, 11, 1, 12, 12, 1, 5, 1, 5, 1, 1, 1, 1, 9, 11, 11, 11, 11, 11, 11, 11, 1, 12, 1, 5, 1, 7, 1, 1, 1, 1, 1, 11, 11, 6, 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 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 8, 3, 3, 1, 1, 1, 1, 51, 2, 80];
levelTitle[36] = "JUMP\nPATH";
var platstr36 = [1, 1, 1, 1, 5, 5, 5, 5, 5, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 5, 5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 10, 13, 13, 13, 13, 13, 13, 13, 13, 1, 1, 1, 1, 1, 1, 1, 5, 5, 10, 6, 6, 1, 1, 6, 1, 9, 6, 6, 1, 1, 1, 1, 1, 1, 5, 12, 10, 1, 12, 11, 11, 11, 11, 11, 10, 6, 12, 1, 1, 1, 1, 1, 5, 12, 10, 9, 12, 10, 13, 13, 13, 13, 13, 1, 12, 1, 1, 1, 1, 1, 5, 12, 10, 6, 12, 10, 6, 1, 1, 6, 1, 6, 12, 6, 1, 1, 1, 1, 5, 6, 10, 1, 12, 10, 10, 12, 11, 11, 11, 11, 12, 6, 6, 1, 1, 1, 1, 6, 10, 1, 12, 10, 6, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 12, 10, 9, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 6, 12, 10, 1, 12, 1, 10, 13, 13, 13, 13, 13, 13, 13, 1, 1, 1, 1, 11, 12, 10, 6, 12, 1, 10, 6, 6, 9, 1, 6, 6, 8, 1, 1, 1, 1, 1, 1, 10, 1, 12, 1, 10, 1, 12, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 1, 10, 1, 12, 1, 10, 1, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 6, 6, 13, 10, 6, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 5, 5, 5, 1, 1, 1, 1, 112, 2, 75];
levelTitle[99] = "Test\nLevel";
Symbol 239 MovieClip Frame 2
if (editorMode == true) {
gotoAndPlay ("editorModeStart");
stop();
}
makeWindSound();
this.attachMovie("levelEnd_mc", "levelEnd_mc", 1000);
this.levelEnd_mc._y = 155;
this.levelEnd_mc._x = -365;
var audioFlag = true;
if (robotMode == true) {
backgroundMusic(1);
robotFrameCount = 0;
robotMoveTimesIndex = 0;
robotJumpTimesIndex = 0;
score = 0;
gotoAndPlay ("startGame");
}
stop();
Symbol 239 MovieClip Frame 3
lives = 6;
score = 0;
freeManScore = 20000;
livesStats_mc.gotoAndStop(lives + 1);
previewMode = false;
if (robotMode == false) {
lives = 6;
livesStats_mc.gotoAndStop(lives + 1);
startBtn_mc._visible = false;
this.editor_mc._visible = false;
} else {
buildIceFloor();
}
if (gLevel == 199) {
lives = 1;
livesStats_mc.gotoAndStop(lives + 1);
}
gotoAndPlay ("newLevel");
Symbol 239 MovieClip Frame 4
flagMode = [0, 0, 0, 0, 0, 0, 0, 0, 0];
flagCount = 0;
this.clearedBox_mc.removedBlocksPercentage_txt.text = String("0%");
if (robotMode == false) {
pause_mc._visible = true;
this.startBtn_mc._visible = false;
gLevel = gLevel + 1;
levelBox_mc.level_txt.text = gLevel;
this.scoreBox_mc.score_txt.text = score;
removeAllCharacters();
this.levelEnd_mc.gotoAndPlay("entering");
stop();
}
Symbol 239 MovieClip Frame 5
resetCharacters();
frameCount = 0;
if (robotMode == true) {
robotFrameCount = 70;
}
Symbol 239 MovieClip Frame 6
if (dieMode == 0) {
slideCheck("myEskimo", 10);
i = 0;
while (i < numberOfPenguins) {
slideCheck("penguin" + i, i);
i++;
}
if (robotMode == true) {
robotFrameCount = robotFrameCount + 1;
if (robotMoveTimes[robotMoveTimesIndex] == robotFrameCount) {
robotMoveTimesIndex = robotMoveTimesIndex + 1;
robotMoveMode = robotMoves[robotMoveTimesIndex];
robotCheckMoveMan();
}
if (robotJumpTimes[robotJumpTimesIndex] == robotFrameCount) {
robotJumpTimesIndex = robotJumpTimesIndex + 1;
robotJumpMode = 1;
robotCheckJumpMan();
}
} else {
checkMoveMan();
checkJumpMan();
}
moveMan();
jumpMan();
rippleCheck();
manHitPenCheck();
var i = 0;
while (i < numberOfPenguins) {
penguinTimer[i] = penguinTimer[i] + 1;
if (penguinTimer[i] > penguinSpeed) {
penguinTimer[i] = 0;
movePenguin(i);
swapDepthCheck();
}
i++;
}
checkFlagCapture();
}
Symbol 239 MovieClip Frame 7
if (dieMode == 1) {
dieMode = 10;
switch (currentDir) {
case 1 :
this.explodeEskimo_mc.gotoAndPlay(2);
break;
case 2 :
this.explodeEskimo_mc.gotoAndPlay(71);
break;
case 3 :
this.explodeEskimo_mc.gotoAndPlay(48);
break;
case 4 :
this.explodeEskimo_mc.gotoAndPlay(25);
}
} else if (dieMode == 2) {
dieMode = 10;
this.explodeEskimo_mc.gotoAndPlay(95);
}
gotoAndPlay ("gameRun");
Symbol 239 MovieClip Frame 8
this.levelEnd_mc.gotoAndPlay("ending");
pause_mc._visible = true;
this.startBtn_mc._visible = false;
stop();
Symbol 239 MovieClip Frame 9
pause_mc._visible = true;
this.startBtn_mc._visible = false;
gLevel = gLevel + 1;
levelBox_mc.level_txt.text = gLevel;
this.scoreBox_mc.score_txt.text = score;
this.clearedBox_mc.removedBlocksPercentage_txt.text = "0%";
flagMode = [0, 0, 0, 0, 0, 0, 0, 0, 0];
flagCount = 0;
removeAllCharacters();
this.levelEnd_mc.gotoAndPlay("entering");
stop();
Symbol 239 MovieClip Frame 10
startBtn_mc._visible = true;
startBtn_mc.gotoAndStop(2);
startBtn_mc.swapDepths(800);
Symbol 239 MovieClip Frame 15
startBtn_mc._visible = false;
editorCode_mc._x = 1000;
removeAllCharacters();
buildIceFloorBuild();
attachMovie("selector_mc", "selector_mc", 1100);
selectX = 10;
selectY = 8;
gotoAndPlay ("gameEditorRun");
Symbol 239 MovieClip Frame 16
movePointer();
Symbol 239 MovieClip Frame 17
Symbol 239 MovieClip Frame 18
gotoAndPlay ("gameEditorRun");
Symbol 239 MovieClip Frame 19
this.editorCode_mc.swapDepths(1005);
this.fullString = this.fullString.slice(9);
this.editorCode_mc.codeTextBox_txt.text = this.fullString;
stop();