Frame 1
var WLSnd = new Sound();
WLSnd.attachSound("_win_level_snd");
var PUES_Snd = new Sound();
PUES_Snd.attachSound("_pickup_elementinsky_snd");
var PUE2_Snd = new Sound();
PUE2_Snd.attachSound("_PUE2_snd");
var DO_Snd = new Sound();
DO_Snd.attachSound("_drop_object_snd");
var ER_Snd = new Sound();
ER_Snd.attachSound("_element_rotation_snd");
var ECI_Snd = new Sound();
ECI_Snd.attachSound("_element_cantins_snd");
var EI1_Snd = new Sound();
EI1_Snd.attachSound("_element_inserted1_snd");
var BE_Snd = new Sound();
BE_Snd.attachSound("_burn_element_snd");
var EWB_Snd = new Sound();
EWB_Snd.attachSound("_element_wbonus_snd");
var BO_Snd = new Sound();
BO_Snd.attachSound("_bonus_off_snd");
var BOs_Snd = new Sound();
BOs_Snd.attachSound("_bonus_octopus_snd");
var BHf_Snd = new Sound();
BHf_Snd.attachSound("_bonus_hammerfish_snd");
var BPf_Snd = new Sound();
BPf_Snd.attachSound("_bonus_pufferfish_snd");
Frame 2
function ef_go() {
progress.setprogress((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (this.getBytesLoaded() == this.getBytesTotal()) {
this.onEnterFrame = undefined;
_root.gotoAndStop(3);
}
}
if (_global.bypass == "true") {
if (_global.link != undefined) {
_root.link = _global.link;
}
if (_global.dload_f != undefined) {
_root.dload_f = _global.dload_f;
}
if (_global.close_f != undefined) {
_root.close_f = _global.close_f;
}
if (_global.alawar_f != undefined) {
_root.alawar_f = _global.alawar_f;
}
} else {
stop();
progress.init();
progress.start();
}
Stage.showMenu = false;
Frame 3
BonusArr = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0]];
FigAmount = [5, 7, 7, 9];
AreaCoord = [[133.8, 77.2], [151.3, 77.2], [98.8, 77.2], [73.8, 42.2]];
AreaSize = [[9, 12], [10, 12], [11, 16], [14, 16]];
CMatrix0 = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
CMatrix1 = [[], [], [], [], [], [], [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0;
Bonus_Puff = 2;
Bonus_Slow = 2;
Bonus_Hammer = 3;
Bonus_Octopus = 3;
Cur_Hammer_F = false;
Cur_Puffer_F = false;
Cur_Octopus_F = false;
Bonus_F = false;
CurBonus = 0;
CurBonusNum = 0;
GotoDownload = function () {
if (_root.link != undefined) {
getURL (link, "_blank");
} else {
getURL ("http://www.alawar.com/download/ArcticQuest.exe", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + dload_f) + "()";
getURL (cstr);
}
};
BurnFire = function () {
clearInterval(_global.IntID1);
OFire.gotoAndStop(1);
};
DisHint = function () {
clearInterval(_global.IntID);
_root.Hint_o._visible = false;
_root.EnPanelBtns();
_root.UpdateInfo();
_root.MainStop_F = false;
_root.FullStop_F = false;
_root.Start_F = true;
};
toEndLevelMenu = function () {
clearInterval(_global.IntID3);
OMessages._visible = false;
HideFigs();
_root.gotoAndStop(ffo + 4);
TMin = Math.floor(Time / 60);
TSec = Time - (TMin * 60);
if (TSec < 10) {
TSec = "0" + TSec;
}
Time = (TMin + ":") + TSec;
OEndLevelMenu.TLS.text = LevelScore;
OEndLevelMenu.TLS_.text = LevelScore;
OEndLevelMenu.TLS__.text = LevelScore;
OEndLevelMenu.TTS.text = TotalScore;
OEndLevelMenu.TTS_.text = TotalScore;
OEndLevelMenu.TTS__.text = TotalScore;
OEndLevelMenu.TYT.text = Time;
OEndLevelMenu.TYT_.text = Time;
OEndLevelMenu.TYT__.text = Time;
OEndLevelMenu.TFA.text = Freed;
OEndLevelMenu.TFA_.text = Freed;
OEndLevelMenu.TFA__.text = Freed;
OEndLevelMenu.TP.text = Pearls;
OEndLevelMenu.TP_.text = Pearls;
OEndLevelMenu.TP__.text = Pearls;
};
StartLevelMess = function () {
clearInterval(_global.IntID);
OMessages._visible = false;
_root.EnPanelBtns();
_root.UpdateInfo();
_root.NewFig_C = 0;
_root.Start_F = true;
};
DisPanelBtns = function () {
Dis_Cur_Octopus();
Dis_Cur_Puffer();
Dis_Cur_Hammer();
Panel.ONF_Btn.gotoAndStop(2);
Panel.OPuff_Btn.gotoAndStop(2);
Panel.OSlow_Btn.gotoAndStop(2);
if (Panel.OSlow_Btn.OBtnS._currentframe > 1) {
Panel.OSlow_Btn.OBtnS.gotoAndPlay(219);
}
Panel.OHammer_Btn.gotoAndStop(2);
Panel.OOctopus_Btn.gotoAndStop(2);
Panel.OMnu_Btn.gotoAndStop(2);
Panel.OHlp_Btn.gotoAndStop(2);
};
EnPanelBtns = function () {
Panel.ONF_Btn.gotoAndStop(1);
Panel.OPuff_Btn.gotoAndStop(1);
Panel.OSlow_Btn.gotoAndStop(1);
Panel.OHammer_Btn.gotoAndStop(1);
Panel.OOctopus_Btn.gotoAndStop(1);
Panel.OMnu_Btn.gotoAndStop(1);
Panel.OHlp_Btn.gotoAndStop(1);
};
InitLevel = function (Stage) {
_global.CurFig = 0;
NewFig_C = 0;
Frame_C = 0;
Drag_F = false;
MainStop_F = false;
FullStop_F = false;
WinStop_F = false;
CurLevel = -5000;
Figures = [];
CurPos = 0;
Bonus_F = false;
CurBonus = 0;
CurBonusNum = 0;
Time = 0;
LevelScore = 0;
Pearls = 0;
Freed = 0;
if (Restart_F) {
TotalScore = Tmp_TS;
Bonus_Puff = Tmp_BP;
Bonus_Slow = Tmp_BS;
Bonus_Hammer = Tmp_BH;
Bonus_Octopus = Tmp_BO;
} else {
Tmp_TS = TotalScore;
Tmp_BP = Bonus_Puff;
Tmp_BS = Bonus_Slow;
Tmp_BH = Bonus_Hammer;
Tmp_BO = Bonus_Octopus;
}
Size9 = AreaSize[Stage - 1][0];
Size12 = AreaSize[Stage - 1][1];
i = 0;
while (i < Size9) {
j = 0;
while (j < Size12) {
CMatrix0[i][j] = eval ("CMatrix0_" + Stage)[i][j];
CMatrix1[i][j] = eval ("CMatrix1_" + Stage)[i][j];
j++;
}
i++;
}
OGrid.gotoAndStop(Stage);
OGrid._x = AreaCoord[Stage - 1][0];
OGrid._y = AreaCoord[Stage - 1][1];
BonusNum = Math.floor(Math.random() * 4.9) + 1;
Sum = 0;
i = 0;
while (i < BonusNum) {
BonusArr[i][0] = (Sum + Math.floor(Math.random() * 40)) + 20;
BonusArr[i][1] = Math.floor(Math.random() * 4.9) + 1;
Sum = BonusArr[i][0];
i++;
}
UpdateInfo();
Start_F = false;
OMessages.gotoAndStop(CurrStage + 1);
this.OMessages._visible = true;
_global.IntID = setInterval(StartLevelMess, 2000);
DisPanelBtns();
};
NextLevel = function () {
if (_root.CurrStage < 4) {
_root.Restart_F = false;
_root.CurrStage++;
_root.gotoAndStop(ffo + 2);
} else {
_root.Win__F = true;
so.data.content = "WIN";
_root.gotoAndStop(ffo + 1);
}
};
CheckFig = function (Fig, Points) {
th = 35 * K;
tw = 40 * K;
dx = 5 * K;
dyh = 5 * K;
dyl = -2 * K;
disp0 = 4 * K;
disp1 = 7 * K;
Point = new Object();
if (Tmp0 == undefined) {
Tmp0 = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
Tmp1 = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
}
i = 0;
while (i < Size9) {
j = 0;
while (j < Size12) {
Tmp0[i][j] = CMatrix0[i][j];
Tmp1[i][j] = CMatrix1[i][j];
j++;
}
i++;
}
i = 1;
while (i <= Fig.NumPoints) {
Point.x = Fig["p" + i]._x;
Point.y = Fig["p" + i]._y;
Fig.localToGlobal(Point);
if (Point.x <= OGrid._x) {
return(false);
}
if (Point.x >= (OGrid._x + OGrid._width)) {
return(false);
}
if (Point.y <= OGrid._y) {
return(false);
}
if (Point.y >= (OGrid._y + OGrid._height)) {
return(false);
}
Ny = Math.floor((Point.y - OGrid._y) / th);
odd = Ny - (Math.floor(Ny / 2) * 2);
if (Fig.TriDir[i - 1] == 0) {
Nx = Math.floor(((Point.x - OGrid._x) + ((tw / 2) * (1 - odd))) / tw);
if (Tmp0[Ny][Nx] != 1) {
return(false);
}
Tmp0[Ny][Nx] = 2;
} else {
Nx = Math.floor(((Point.x - OGrid._x) + ((tw / 2) * odd)) / tw);
if (Tmp1[Ny][Nx] != 1) {
return(false);
}
Tmp1[Ny][Nx] = 2;
}
i++;
}
if (Fig.TriDir[i - 2] == 0) {
if (Point.y < (((OGrid._y + (Ny * th)) + dyh) + disp0)) {
return(false);
}
if (Point.y > (((OGrid._y + ((Ny + 1) * th)) - dyl) + disp0)) {
return(false);
}
if (Point.x < (((OGrid._x + (Nx * tw)) + dx) - ((tw / 2) * (1 - odd)))) {
return(false);
}
if (Point.x > (((OGrid._x + ((Nx + 1) * tw)) - dx) - ((tw / 2) * (1 - odd)))) {
return(false);
}
deltaX = Point.x - (((OGrid._x + (Nx * tw)) - ((tw / 2) * (1 - odd))) + (tw / 2));
deltaY = Point.y - ((OGrid._y + (Ny * th)) + ((th * 2) / 3));
} else {
if (Point.y < (((OGrid._y + (Ny * th)) + dyh) - disp1)) {
return(false);
}
if (Point.y > (((OGrid._y + ((Ny + 1) * th)) - dyl) - disp1)) {
return(false);
}
if (Point.x < (((OGrid._x + (Nx * tw)) + dx) - ((tw / 2) * odd))) {
return(false);
}
if (Point.x > (((OGrid._x + ((Nx + 1) * tw)) - dx) - ((tw / 2) * odd))) {
return(false);
}
deltaX = Point.x - (((OGrid._x + (Nx * tw)) - ((tw / 2) * odd)) + (tw / 2));
deltaY = Point.y - ((OGrid._y + (Ny * th)) + (th / 3));
}
Fig._x = Fig._x - deltaX;
Fig._y = Fig._y - deltaY;
Fig.Locked_F = true;
i = 0;
while (i < Size9) {
j = 0;
while (j < Size12) {
CMatrix0[i][j] = Tmp0[i][j];
CMatrix1[i][j] = Tmp1[i][j];
j++;
}
i++;
}
Fig.swapDepths(CurLevel - 2000);
if (Points) {
AddScore(Fig);
}
CheckWin();
return(true);
};
UnCheckFig = function (Fig) {
i = 1;
while (i <= Fig.NumPoints) {
Point.x = Fig["p" + i]._x;
Point.y = Fig["p" + i]._y;
Fig.localToGlobal(Point);
Ny = Math.floor((Point.y - OGrid._y) / th);
odd = Ny - (Math.floor(Ny / 2) * 2);
if (Fig.TriDir[i - 1] == 0) {
Nx = Math.floor(((Point.x - OGrid._x) + ((tw / 2) * (1 - odd))) / tw);
CMatrix0[Ny][Nx] = 1;
} else {
Nx = Math.floor(((Point.x - OGrid._x) + ((tw / 2) * odd)) / tw);
CMatrix1[Ny][Nx] = 1;
}
i++;
}
};
FigRotate = function (Fig) {
if (Fig == 0) {
return(undefined);
}
if (!Cur_Puffer_F) {
ER_Snd.start();
}
Fig._rotation = Fig._rotation + 60;
i = 0;
while (i < Fig.NumPoints) {
Fig.TriDir[i] = !Fig.TriDir[i];
i++;
}
};
FigDrag = function (Fig) {
if (!Fig._visible) {
return(undefined);
}
if (Cur_Puffer_F) {
return(undefined);
}
if (FullStop_F) {
return(undefined);
}
if (Cur_Hammer_F) {
if (Bonus_Hammer == 0) {
return(undefined);
}
Bonus_Hammer--;
_root.UpdateInfo();
if (Fig.Locked_F) {
UnCheckFig(Fig);
} else {
TakeFig(Fig);
}
Fig.unloadMovie();
OCur.OCurHammer.play();
OExplode._x = _root._xmouse;
OExplode._y = _root._ymouse;
BHf_Snd.start();
OExplode.play();
return(undefined);
}
if (Fig.Locked_F && (Cur_Octopus_F)) {
BOs_Snd.start();
UnCheckFig(Fig);
Fig.Locked_F = false;
Bonus_Octopus--;
UpdateInfo();
} else {
if (Fig.Locked_F && (!Cur_Octopus_F)) {
return(undefined);
}
if (((!Fig.Locked_F) && (Cur_Octopus_F)) && (!Drag_F)) {
ECI_Snd.start();
return(undefined);
}
}
if (_root.Drag_F == false) {
if (!Fig.Landed_F) {
PUES_Snd.start();
} else {
PUE2_Snd.start();
}
Fig.swapDepths(0);
Fig.Landed_F = false;
_root.Drag_F = true;
Fig.Drag_F = true;
_global.CurFig = Fig;
if (!Cur_Octopus_F) {
TakeFig(Fig);
}
if (Fig.Lnd_F == undefined) {
OExtraScore._x = _root._xmouse - 5;
OExtraScore._y = _root._ymouse - (Fig._height / 2);
OExtraScore.Sc = 10;
OExtraScore.Obj = 1;
OExtraScore.gotoAndPlay(2);
LevelScore = LevelScore + 10;
TotalScore = TotalScore + 10;
Fig.Lnd_F = true;
UpdateInfo();
}
startDrag (Fig, true);
updateAfterEvent();
} else {
if (OFire.hitTest(_xmouse, _ymouse, true) && (OFire._currentframe == 3)) {
ECI_Snd.start();
return(undefined);
}
if (CheckFire() && (OFire._currentframe != 3)) {
_root.Drag_F = false;
Fig.Drag_F = false;
_global.CurFig = 0;
Fig.stopDrag();
Fig.unloadMovie();
OHaze._x = _root._xmouse;
OHaze._y = _root._ymouse;
OHaze._visible = true;
BE_Snd.start();
OHaze.play();
OFire.gotoAndStop(3);
_global.IntID1 = setInterval(BurnFire, 6000);
if ((Bonus_Octopus == 0) && (Cur_Octopus_F)) {
Dis_Cur_Octopus();
}
return(undefined);
}
Test();
if (!CheckFig(Fig, !Cur_Octopus_F)) {
if (OGrid.hitTest(_xmouse, _ymouse, true)) {
ECI_Snd.start();
return(undefined);
}
Fig.swapDepths(CurLevel);
CurLevel++;
} else if ((Fig.Bonus != 0) && (Fig.Bonus != undefined)) {
Fig.OStars.gotoAndStop(1);
OExtraScore._x = _root._xmouse - 5;
OExtraScore._y = _root._ymouse - (Fig._height / 2);
OExtraScore.Sc = 600;
OExtraScore.Obj = Fig.Bonus;
OExtraScore.gotoAndPlay(2);
_root.Freed++;
EWB_Snd.start();
switch (Fig.Bonus) {
case 1 :
LevelScore = LevelScore + 600;
TotalScore = TotalScore + 600;
if (Start_F) {
UpdateInfo();
}
break;
case 2 :
Bonus_Slow++;
if (Start_F) {
UpdateInfo();
}
break;
case 3 :
Bonus_Puff++;
if (Start_F) {
UpdateInfo();
}
break;
case 4 :
Bonus_Octopus++;
if (Start_F) {
UpdateInfo();
}
break;
case 5 :
Bonus_Hammer++;
if (!Start_F) {
break;
}
UpdateInfo();
}
}
_root.Drag_F = false;
Fig.Drag_F = false;
_global.CurFig = 0;
DropFig(Fig);
Fig.stopDrag();
if (!Fig.Locked_F) {
ECI_Snd.start();
} else {
EI1_Snd.start();
}
if ((Bonus_Octopus == 0) && (Cur_Octopus_F)) {
Dis_Cur_Octopus();
}
}
};
NewFig = function () {
Num = Math.ceil(FigAmount[CurrStage - 1] * Math.random());
Name = ("OIce" + Num) + "_";
NewName = Name + (CurLevel + 5000);
duplicateMovieClip (this[Name], NewName, CurLevel);
this[NewName]._x = ((this[NewName]._width / 2) + (4 * K)) + CurPos;
this[NewName]._y = 0;
CurLevel++;
this[NewName].ShiftX = this[NewName]._x;
this[NewName].FigNum = Figures.length;
Figures.push([this[NewName], this[NewName]._x]);
CurPos = CurPos + (this[NewName]._width + 0);
if (Bonus_F) {
this[NewName].Bonus = CurBonus;
this[NewName].OStars.gotoAndStop(2);
Bonus_F = false;
}
};
TakeFig = function (Fig) {
Figures.splice(Fig.FigNum, 1);
CurPos = CurPos - (Fig._width + 0);
UpdShiftX(Fig.FigNum, Fig._width + 0, -1);
};
DropFig = function (Fig) {
if (Fig.Locked_F) {
return(undefined);
}
Numb = 0;
CurPos = CurPos + (Fig.w + 0);
i = 0;
while (i < Figures.length) {
if (Figures[i][1] >= Fig._x) {
Numb = i;
break;
}
i++;
}
if (Figures[Figures.length - 1][1] < Fig._x) {
Numb = Figures.length;
}
Fig._rotation = 0;
i = 0;
while (i < Fig.NumPoints) {
Fig.TriDir[i] = Fig.TriDir_[i];
i++;
}
Fig.FigNum = Numb;
if (Numb > 0) {
PFig = Figures[Numb - 1][0];
Fig.ShiftX = ((PFig.ShiftX + (PFig._width / 2)) + 0) + (Fig.w / 2);
} else {
Fig.ShiftX = (Fig.w / 2) + (4 * K);
}
Figures.splice(Numb, 0, [Fig, Fig.ShiftX]);
Figures[Numb][0] = Fig;
Figures[Numb][1] = Fig.ShiftX;
UpdShiftX(Numb + 1, -(Fig.w + 0), 1);
};
UpdShiftX = function (Num, DeltaX, UN) {
i = 0;
while (i < Figures.length) {
if (i >= Num) {
Figures[i][1] = Figures[i][1] - DeltaX;
Figures[i][0].FigNum = Figures[i][0].FigNum + UN;
}
Figures[i][0].ShiftX = Figures[i][1];
i++;
}
};
CheckFire = function () {
if (OFire._currentFrame != 3) {
if (CurFig.hitTest(OFire)) {
OFire.gotoAndStop(2);
return(true);
}
OFire.gotoAndStop(1);
return(false);
}
};
Wave = function (frame, shift) {
return(Math.sin((((frame / 24) + ((6 * (shift + 100)) / Stage.width)) * 2) * Math.PI));
};
UpdateC = function () {
if (Frame_C < 23) {
Frame_C++;
} else {
Frame_C = 0;
if (Start_F) {
Time++;
CheckBonus();
}
}
if (NewFig_C < FigNT) {
NewFig_C++;
} else {
NewFig_C = 0;
}
if (MainStop_F) {
NewFig_C = 10;
}
};
CheckWin = function () {
i = 0;
while (i < Size9) {
j = 0;
while (j < Size12) {
if (CMatrix0[i][j] == 1) {
return(undefined);
}
if (CMatrix1[i][j] == 1) {
return(undefined);
}
j++;
}
i++;
}
WinLevel();
};
CheckLose = function (Fig) {
Y = Figures[Figures.length - 1][0]._y;
if (Y > (600 * K)) {
LoseLevel();
}
};
WinLevel = function () {
FullStop_F = true;
Start_F = false;
CorrectDepths();
OMessages.gotoAndStop(1);
OMessages._visible = true;
WLSnd.start();
_global.IntID3 = setInterval(toEndLevelMenu, 2000);
DisPanelBtns();
};
LoseLevel = function () {
if (Drag_F) {
FigDrag(CurFig);
}
FullStop_F = true;
CorrectDepths();
DisPanelBtns();
_root.gotoAndStop(ffo + 3);
};
HideFigs = function () {
for (each in _root) {
var _local2 = _root[each];
if (((_local2 instanceof MovieClip) && (_local2._name.slice(0, 4) == "OIce")) && (_local2._name.length > 5)) {
_local2.unloadMovie();
}
}
};
AddScore = function (Fig) {
TotalScore = TotalScore + (10 * Fig.NumPoints);
LevelScore = LevelScore + (10 * Fig.NumPoints);
UpdateInfo();
};
UpdateInfo = function () {
Panel.TScore.text = TotalScore;
Panel.TLevel.text = CurrStage;
if (Pearls == 0) {
Panel.TPearls.text = "00";
} else {
Panel.TPearls.text = Pearls;
}
if (Bonus_Puff == 0) {
Panel.OPuff_Btn.B_Puff_Num.text = "00";
Panel.OPuff_Btn.gotoAndStop(2);
} else {
if (Bonus_Puff < 10) {
Panel.OPuff_Btn.B_Puff_Num.text = "0" + Bonus_Puff;
} else {
Panel.OPuff_Btn.B_Puff_Num.text = Bonus_Puff;
}
Panel.OPuff_Btn.gotoAndStop(1);
}
if (Bonus_Slow == 0) {
Panel.OSlow_Btn.B_Slow_Num.text = "00";
Panel.OSlow_Btn.gotoAndStop(2);
} else {
if (Bonus_Slow < 10) {
Panel.OSlow_Btn.B_Slow_Num.text = "0" + Bonus_Slow;
} else {
Panel.OSlow_Btn.B_Slow_Num.text = Bonus_Slow;
}
if (Panel.OSlow_Btn.OBtnS._currentframe == 1) {
Panel.OSlow_Btn.gotoAndStop(1);
}
}
if (Bonus_Hammer == 0) {
Panel.OHammer_Btn.B_Hammer_Num.text = "00";
Panel.OHammer_Btn.gotoAndStop(2);
} else {
if (Bonus_Hammer < 10) {
Panel.OHammer_Btn.B_Hammer_Num.text = "0" + Bonus_Hammer;
} else {
Panel.OHammer_Btn.B_Hammer_Num.text = Bonus_Hammer;
}
Panel.OHammer_Btn.gotoAndStop(1);
}
if (Bonus_Octopus == 0) {
Panel.OOctopus_Btn.B_Octopus_Num.text = "00";
Panel.OOctopus_Btn.gotoAndStop(2);
} else {
if (Bonus_Octopus < 10) {
Panel.OOctopus_Btn.B_Octopus_Num.text = "0" + Bonus_Octopus;
} else {
Panel.OOctopus_Btn.B_Octopus_Num.text = Bonus_Octopus;
}
Panel.OOctopus_Btn.gotoAndStop(1);
}
};
Dis_Cur_Hammer = function () {
Cur_Hammer_F = false;
_root.OCur.OCurHammer._visible = false;
_root.OCur.OCurHammer._x = -66;
_root.OCur.OCurHammer._y = -20;
Mouse.show();
};
Dis_Cur_Puffer = function () {
Cur_Puffer_F = false;
_root.OCur.OCurPuffer._visible = false;
_root.OCur.OCurPuffer._x = -72;
_root.OCur.OCurPuffer._y = -64;
Mouse.show();
};
Dis_Cur_Octopus = function () {
Cur_Octopus_F = false;
_root.OCur.OCurOctopus._visible = false;
_root.OCur.OCurOctopus._x = -66;
_root.OCur.OCurOctopus._y = -20;
Mouse.show();
};
Puffer = function () {
if (Bonus_Puff == 0) {
return(undefined);
}
NewName = Name + (CurLevel + 5000);
duplicateMovieClip ("OIce1_", NewName, CurLevel);
this[NewName]._x = _root._xmouse - 10;
this[NewName]._y = _root._ymouse;
CurLevel++;
this[NewName].Landed_F = false;
this[NewName].Drag_F = false;
this[NewName].Lnd_F = true;
this[NewName].w = 41 * K;
this[NewName].NumPoints = 1;
this[NewName].TriDir = [0];
this[NewName].TriDir_ = [0];
this[NewName].useHandCursor = false;
if (!CheckFig(this[NewName], false)) {
FigRotate(this[NewName]);
if (!CheckFig(this[NewName], false)) {
this[NewName].unloadMovie();
CurLevel--;
ECI_Snd.start();
} else {
BPf_Snd.start();
OCur.OCurPuffer.play();
Bonus_Puff--;
if (Start_F) {
UpdateInfo();
}
}
} else {
BPf_Snd.start();
OCur.OCurPuffer.play();
Bonus_Puff--;
if (Start_F) {
UpdateInfo();
}
}
};
CheckBonus = function () {
if (CurBonusNum < 5) {
if (Time == BonusArr[CurBonusNum][0]) {
Bonus_F = true;
CurBonus = BonusArr[CurBonusNum][1];
CurBonusNum++;
}
}
};
DispLevels = function () {
for (each in _root) {
var _local2 = _root[each];
if (_local2 instanceof MovieClip) {
var _local3 = _local2.getDepth();
trace((_local2._name + ":") + _local3);
}
}
trace("-------------------");
};
CorrectDepths = function () {
for (each in _root) {
var _local2 = _root[each];
if ((((_local2 instanceof MovieClip) && (_local2._name.slice(0, 4) == "OIce")) && (_local2._name.length > 5)) && (_local2.Locked_F)) {
if (_local2.getDepth() > -1000) {
_local2.swapDepths(CurLevel - 2000);
}
CurLevel++;
}
}
};
Test = function () {
Size9 = AreaSize[CurrStage - 1][0];
Size12 = AreaSize[CurrStage - 1][1];
i = 0;
while (i < Size9) {
j = 0;
while (j < Size12) {
CMatrix0[i][j] = eval ("CMatrix0_" + CurrStage)[i][j];
CMatrix1[i][j] = eval ("CMatrix1_" + CurrStage)[i][j];
j++;
}
i++;
}
for (each in _root) {
var obj = _root[each];
if ((((obj instanceof MovieClip) && (obj._name.slice(0, 4) == "OIce")) && (obj._name.length > 5)) && (obj.Locked_F)) {
var objDepth = obj.getDepth();
Fig = obj;
i = 1;
while (i <= Fig.NumPoints) {
Point.x = Fig["p" + i]._x;
Point.y = Fig["p" + i]._y;
Fig.localToGlobal(Point);
Ny = Math.floor((Point.y - OGrid._y) / th);
odd = Ny - (Math.floor(Ny / 2) * 2);
if (Fig.TriDir[i - 1] == 0) {
Nx = Math.floor(((Point.x - OGrid._x) + ((tw / 2) * (1 - odd))) / tw);
CMatrix0[Ny][Nx] = 2;
} else {
Nx = Math.floor(((Point.x - OGrid._x) + ((tw / 2) * odd)) / tw);
CMatrix1[Ny][Nx] = 2;
}
i++;
}
}
}
};
stop();
this.onLoad = function () {
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
Stage.scaleMode = "exactFit";
};
var so = SharedObject.getLocal("temp");
if (so.data.content != "WIN") {
so.data.content = "";
} else {
Win__F = true;
Mmenu.ODL_text.play();
}
if (alawar_f != undefined) {
_Menu.dload._visible = false;
_Menu.dloadlabel._visible = false;
_Menu.help._y = _Menu.help._y - 39;
_Menu.helplabel._y = _Menu.helplabel._y - 39;
_Menu.E_btn._y = _Menu.E_btn._y - 39;
_Menu.E_label._y = _Menu.E_label._y - 39;
}
if (close_f == undefined) {
_root._Menu.E_btn._visible = false;
_root._Menu.E_label._visible = false;
} else {
_root._Menu.E_btn._visible = true;
_root._Menu.E_label._visible = true;
}
_root.First_time = true;
Instance of Symbol 60 MovieClip "OHaze" in Frame 3
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 124 MovieClip "OExplode" in Frame 3
onClipEvent (load) {
this.swapDepths(10001);
}
Instance of Symbol 137 MovieClip "OExtraScore" in Frame 3
/* no clip actions */
Instance of Symbol 229 MovieClip "OSunB" in Frame 3
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.8;
}
Instance of Symbol 242 MovieClip "OMessages" in Frame 3
onClipEvent (load) {
this.swapDepths(-70);
this._visible = false;
}
Instance of Symbol 271 MovieClip "OIce1_" in Frame 3
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 277 MovieClip "Hint_o" in Frame 3
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 289 MovieClip "OPausedMenu" in Frame 3
onClipEvent (load) {
this._visible = false;
this.swapDepths(-78);
}
Instance of Symbol 302 MovieClip "OHelp" in Frame 3
onClipEvent (load) {
this._visible = false;
this.swapDepths(10850);
this.swapDepths(10851);
this.swapDepths(10852);
this.swapDepths(10853);
this.swapDepths(10854);
}
Instance of Symbol 332 MovieClip "OCur" in Frame 3
onClipEvent (load) {
this.swapDepths(20010);
this.swapDepths(20011);
this.swapDepths(20012);
this.swapDepths(20013);
this.swapDepths(20014);
this.swapDepths(20015);
}
Frame 4
stop();
InitLevel(CurrStage);
this.onEnterFrame = function () {
if (Cur_Hammer_F && (Key.isDown(32))) {
BO_Snd.start();
Dis_Cur_Hammer();
}
if (Cur_Puffer_F && (Key.isDown(32))) {
BO_Snd.start();
Dis_Cur_Puffer();
}
if ((Cur_Octopus_F && (Key.isDown(32))) && (!Drag_F)) {
BO_Snd.start();
Dis_Cur_Octopus();
}
if (Start_F) {
if (Drag_F) {
CheckFire();
if (_root._xmouse > (877 * K)) {
_global.CurFig.swapDepths(-10000);
} else {
_global.CurFig.swapDepths(0);
}
}
if (NewFig_C == 0) {
NewFig();
}
if (!WinStop_F) {
if (CurPos > (877 * K)) {
MainStop_F = true;
Panel.ONF_Btn.gotoAndStop(2);
CheckLose();
} else {
MainStop_F = false;
Panel.ONF_Btn.gotoAndStop(1);
}
}
}
UpdateC();
};
Instance of Symbol 393 MovieClip "OIce4_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 271 MovieClip "OIce1_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 397 MovieClip "OIce2_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 401 MovieClip "OIce3_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 405 MovieClip "OIce5_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 409 MovieClip "OIce6_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 413 MovieClip "OIce7_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 417 MovieClip "OIce8_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 421 MovieClip "OIce9_" in Frame 4
onClipEvent (load) {
if (this._name.slice(6) == "") {
this._visible = false;
}
}
on (press) {
_root.FigDrag(this);
}
on (keyPress "<Space>") {
_root.FigRotate(_global.CurFig);
}
Instance of Symbol 189 MovieClip "OWaves1" in Frame 4
onClipEvent (load) {
this.swapDepths(-100);
}
Instance of Symbol 461 MovieClip "OFire" in Frame 4
/* no clip actions */
Instance of Symbol 539 MovieClip "Panel" in Frame 4
onClipEvent (load) {
this.swapDepths(-90);
}
Instance of Symbol 556 MovieClip "OGrid" in Frame 4
/* no clip actions */
Frame 5
stop();
OReplayMenu.swapDepths(-80);
Instance of Symbol 564 MovieClip "OReplayMenu" in Frame 5
/* no clip actions */
Frame 6
stop();
OEndLevelMenu.swapDepths(-79);
Symbol 20 MovieClip Frame 1
function init() {
this._alpha = 0;
up1._x = INITXUP;
down1._x = INITXDOWN - (1 * down1._width);
if (up2 != undefined) {
removeMovieClip(up2);
}
if (down2 != undefined) {
removeMovieClip(down2);
}
if (up3 != undefined) {
removeMovieClip(up3);
}
if (down3 != undefined) {
removeMovieClip(down3);
}
}
function start() {
duplicateMovieClip (up1, "up2", this.getNextHighestDepth());
duplicateMovieClip (up1, "up3", this.getNextHighestDepth());
duplicateMovieClip (down1, "down2", this.getNextHighestDepth());
duplicateMovieClip (down1, "down3", this.getNextHighestDepth());
up2._x = up1._width;
up3._x = up1._width * 2;
down2._x = 0;
down3._x = down1._width;
this.onEnterFrame = ef_start;
}
function ef_start() {
up1._x = up1._x - SHIFTSTEP;
up2._x = up2._x - SHIFTSTEP;
up3._x = up3._x - SHIFTSTEP;
down1._x = down1._x + SHIFTSTEP;
down2._x = down2._x + SHIFTSTEP;
down3._x = down3._x + SHIFTSTEP;
i = 1;
while (i <= 3) {
if (this["up" + i]._x < (-1 * up1._width)) {
this["up" + i]._x = up1._width * 2;
}
if (this["down" + i]._x > (2 * down1._width)) {
this["down" + i]._x = -1 * down1._width;
}
i++;
}
if (this._alpha <= (ALPHA - ALPHASTEP)) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHA;
}
}
var INITXUP = 0;
var INITXDOWN = 0;
var SHIFTSTEP = 1;
var ALPHASTEP = 0.7;
var ALPHA;
Symbol 22 MovieClip Frame 1
function init() {
text1.init();
text1.ALPHA = 75;
text2.init();
text2.ALPHA = 15;
}
function start() {
text1.start();
text2.start();
}
Symbol 26 MovieClip Frame 1
FirstTime = true;
Symbol 26 MovieClip Frame 28
if (FirstTime) {
stop();
FirstTime = false;
}
Symbol 26 MovieClip Frame 55
gotoAndPlay (2);
Symbol 46 MovieClip Frame 1
function start() {
Cnt = 0;
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local3;
var _local4;
Cnt++;
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
_local3 = 100 - (_local4 * Math.sin((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))));
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 19) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
function wave(cx) {
OldCX = CX;
CX = cx;
Cnt = 0;
startf = false;
this.onEnterFrame = ef_wave;
}
function ef_wave() {
var _local3;
var _local5;
var _local4;
Cnt++;
if ((Cnt > 1) && (!startf)) {
return(undefined);
}
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = ((((Math.PI*2) * CX) / this._width) * 0.7) + 0.1;
_local5 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
if ((CX - OldCX) >= 0) {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))) + _local4));
} else {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) - (i * LV))) + _local4));
}
if (_local3 < 100) {
_local3 = 100 - ((100 - _local3) * 0.8);
}
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 18) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
var LFRAMES = 100;
var LPER = 3;
var INITAMP = 27;
var INITPH = 5;
var LV = 2;
var Cnt;
var CX;
var OldCX = 0;
var startf;
Symbol 52 MovieClip Frame 1
function go() {
if ((((dummy._xmouse < dummy._width) && (dummy._xmouse > 0)) && (dummy._ymouse < dummy._height)) && (dummy._ymouse > 0)) {
loading.wave(dummy._xmouse);
}
}
dummy.useHandCursor = false;
dummy.onRollOut = function () {
loading.startf = true;
};
Symbol 57 MovieClip Frame 1
function start() {
duplicateMovieClip (prnload, "prnload1", this.getNextHighestDepth());
duplicateMovieClip (prnload, "prnload2", this.getNextHighestDepth());
prnload._alpha = PRALPHAINIT;
prnload._xscale = PRMAGNINIT;
prnload._yscale = PRMAGNINIT;
prnload1._alpha = PRALPHAINIT1;
prnload1._xscale = PRMAGNINIT1;
prnload1._yscale = PRMAGNINIT1;
prnload2._alpha = PRALPHAINIT2;
prnload2._xscale = PRMAGNINIT2;
prnload2._yscale = PRMAGNINIT2;
this.onEnterFrame = ef1_start;
}
function ef1_start() {
if (prnload._xscale > 100) {
tmp = PRMAGNSTEP;
if ((prnload._xscale - tmp) < 0) {
tmp = prnload._xscale - 100;
}
prnload._xscale = prnload._xscale - tmp;
prnload._yscale = prnload._yscale - tmp;
prnload._alpha = prnload._alpha + (PRALPHASTEP * PRALPHASTEP);
} else {
prnload._xscale = prnload._xscale - 0.8;
prnload._yscale = prnload._yscale - 0.8;
}
if (prnload._xscale < PRSTART1) {
if (prnload1._xscale > 100) {
tmp = (PRMAGNSTEP1 * PRMAGNSTEP1) / 23;
if ((prnload1._xscale - tmp) < 100) {
tmp = prnload1._xscale - 100;
}
prnload1._xscale = prnload1._xscale - tmp;
prnload1._yscale = prnload1._yscale - tmp;
if (prnload._xscale > 100) {
prnload1._alpha = prnload1._alpha + (PRALPHASTEP1 * PRALPHASTEP1);
} else {
prnload1._alpha = prnload1._alpha - (PRALPHASTEP1 * PRALPHASTEP1);
}
} else {
removeMovieClip(prnload1);
}
}
if (prnload._xscale < PRSTART2) {
if (prnload2._xscale > 100) {
tmp = (PRMAGNSTEP2 * PRMAGNSTEP2) / 15.4;
if ((prnload2._xscale - tmp) < 100) {
tmp = prnload2._xscale - 100;
}
prnload2._xscale = prnload2._xscale - tmp;
prnload2._yscale = prnload2._yscale - tmp;
if (prnload1._xscale != 100) {
prnload2._alpha = prnload2._alpha + (PRALPHASTEP2 * PRALPHASTEP2);
} else {
prnload2._alpha = prnload2._alpha - (PRALPHASTEP2 * PRALPHASTEP2);
}
} else {
removeMovieClip(prnload2);
}
}
if (prnload2 == undefined) {
Cnt = 0;
prnload._alpha = 100;
shadow.play();
prnload.loading.start();
prnload.progress._alpha = 35;
this.onEnterFrame = ef2_start;
_root.onEnterFrame = _root.ef_go;
}
}
function ef2_start() {
Cnt++;
if (Cnt == TEXTSTART) {
text.start();
}
if (Cnt < WVFRAMES) {
tmp = 100 - ((WVINITAMP * (1 - (Cnt / WVFRAMES))) * Math.sin((((Math.PI * Cnt) / WVFRAMES) * WVPERIODS) + (Math.PI/4)));
prnload._xscale = tmp;
prnload._yscale = tmp;
maskmc._xscale = tmp;
maskmc._yscale = tmp;
filled._xscale = tmp;
filled._yscale = tmp;
} else {
this.onEnterFrame = undefined;
}
}
function init() {
text.init();
Cnt = 0;
this._alpha = 100;
htmp = maskmc.target._height;
ytmp = maskmc.target._y;
maskmc.target._height = 0;
maskmc.target._y = ytmp + htmp;
}
function setprogress(pr) {
maskmc.target._height = (pr * htmp) / 100;
maskmc.target._y = ytmp + (htmp * (1 - (pr / 100)));
}
var PRMAGNINIT = 1000;
var PRALPHAINIT = 0;
var PRMAGNSTEP = 25;
var PRALPHASTEP = 1.5;
var PRMAGNINIT1 = 1000;
var PRALPHAINIT1 = 0;
var PRMAGNSTEP1 = 25;
var PRALPHASTEP1 = 1.5;
var PRSTART1 = 700;
var PRMAGNINIT2 = 1000;
var PRALPHAINIT2 = 0;
var PRMAGNSTEP2 = 25;
var PRALPHASTEP2 = 1.6;
var PRSTART2 = 300;
var WVFRAMES = 85;
var WVINITAMP = 17;
var WVPERIODS = 3.5;
var TEXTSTART = 30;
var htmp;
var ytmp;
var Cnt;
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 23
this._visible = false;
Symbol 123 MovieClip Frame 1
gotoAndPlay(1 + Math.floor(30 * Math.random()));
Symbol 124 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 2
this.swapDepths(15000);
OPoints.Extra_score_T.text = Sc;
OPoints.gotoAndStop(Obj);
Symbol 200 Button
on (press) {
if (_root.Drag_F) {
return(undefined);
}
_root.CorrectDepths();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
if (_root.OHelp.getDepth() < 10850) {
_root.OHelp.swapDepths(10855);
}
_root.OHelp._visible = true;
}
Symbol 203 Button
on (press) {
_root.GotoDownload();
}
on (rollOver) {
ODL_Text.play();
}
on (rollOut) {
if (_root.Win__F == undefined) {
ODL_Text.gotoAndStop(1);
}
}
Symbol 214 Button
on (release) {
_parent.gotoAndStop(_root.ffo + 2);
}
Symbol 218 Button
on (press) {
fscommand ("quit");
if (_root.close_f != 0) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
}
}
Symbol 225 MovieClip Frame 1
stop();
if (_root.Win__F != undefined) {
this.gotoAndStop(12);
}
Symbol 225 MovieClip Frame 9
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 1
gotoAndPlay(1 + Math.floor(24 * Math.random()));
Symbol 270 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
if (this.Locked_F == undefined) {
this.Locked_F = false;
}
this.Drag_F = false;
this.w = 41 * K;
this.NumPoints = 1;
if (TriDir == undefined) {
var TriDir = new Array(0, 0);
var TriDir_ = new Array(0, 0);
}
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
if (Drag_F) {
_root.FigDrag(this);
}
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 623 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Instance of Symbol 270 MovieClip "OStas" in Symbol 271 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 273 MovieClip in Symbol 277 MovieClip Frame 1
on (release) {
clearInterval(_global.IntID);
_root.Hint_o._visible = false;
_root.EnPanelBtns();
_root.UpdateInfo();
_root.MainStop_F = false;
_root.FullStop_F = false;
_root.Start_F = true;
}
onClipEvent (keyUp) {
clearInterval(_global.IntID);
_root.Hint_o._visible = false;
_root.EnPanelBtns();
_root.UpdateInfo();
_root.MainStop_F = false;
_root.FullStop_F = false;
_root.Start_F = true;
}
Symbol 281 Button
on (press) {
_root.EnPanelBtns();
_root.Start_F = true;
_root.MainStop_F = false;
_root.FullStop_F = false;
_root.OPausedMenu._visible = false;
}
Symbol 284 Button
on (press) {
HideFigs();
_root.OPausedMenu._visible = false;
_root.gotoAndStop(_root.ffo + 1);
}
Symbol 292 Button
on (press) {
this.gotoAndStop(2);
}
Symbol 295 Button
on (press) {
_root.Start_F = true;
_root.MainStop_F = false;
_root.FullStop_F = false;
_root.OHelp._visible = false;
}
Symbol 301 Button
on (press) {
this.gotoAndStop(1);
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 7
if (_root.Bonus_Puff <= 0) {
_root.Dis_Cur_Puffer();
return(undefined);
}
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 8
if (_root.Bonus_Hammer <= 0) {
_root.Dis_Cur_Hammer();
return(undefined);
}
Instance of Symbol 317 MovieClip "OCurPuffer" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
on (press) {
trace("PUFFER!");
_root.Puffer();
}
onClipEvent (enterFrame) {
if (_root.Cur_Puffer_F) {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
}
Instance of Symbol 320 MovieClip "OCurOctopus" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.Cur_Octopus_F) {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
}
Instance of Symbol 331 MovieClip "OCurHammer" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.Cur_Hammer_F) {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
}
Symbol 392 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 81 * K;
this.NumPoints = 4;
var TriDir = new Array(0, 0, 1, 0);
var TriDir_ = new Array(0, 0, 1, 0);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
if (Drag_F) {
_root.FigDrag(this);
}
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
Rotate();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 633 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 396 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 41 * K;
this.NumPoints = 2;
var TriDir = new Array(0, 1);
var TriDir_ = new Array(0, 1);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
if (Drag_F) {
_root.FigDrag(this);
}
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
Rotate();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 627 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 400 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 61 * K;
this.NumPoints = 3;
var TriDir = new Array(0, 1, 1);
var TriDir_ = new Array(0, 1, 1);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
if (Drag_F) {
_root.FigDrag(this);
}
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
Rotate();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 629 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 404 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 82 * K;
this.NumPoints = 6;
var TriDir = new Array(0, 0, 1, 1, 1, 0);
var TriDir_ = new Array(0, 0, 1, 1, 1, 0);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
CheckX();
MoveDown();
MoveX();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 628 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 408 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 61 * K;
this.NumPoints = 5;
var TriDir = new Array(0, 1, 0, 0, 1);
var TriDir_ = new Array(0, 1, 0, 0, 1);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
if (Drag_F) {
_root.FigDrag(this);
}
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 629 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 412 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 61 * K;
this.NumPoints = 5;
var TriDir = new Array(0, 1, 0, 0, 1);
var TriDir_ = new Array(0, 1, 0, 0, 1);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
if (Drag_F) {
_root.FigDrag(this);
}
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 628 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 416 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 62 * K;
this.NumPoints = 6;
var TriDir = new Array(1, 0, 1, 0, 1, 0);
var TriDir_ = new Array(0, 0, 1, 1, 1, 0);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
if (Drag_F) {
_root.FigDrag(this);
}
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 628 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 420 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 1
this.K = 0.625;
this.Landed_F = false;
this.Locked_F = false;
this.Drag_F = false;
this.w = 62 * K;
this.NumPoints = 6;
var TriDir = new Array(0, 1, 0, 1, 0, 1);
var TriDir_ = new Array(0, 1, 0, 1, 0, 1);
i = 1;
while (i <= this.NumPoints) {
this["p" + i]._visible = false;
i++;
}
this.onEnterFrame = function () {
if (!this._visible) {
return(undefined);
}
if (_root.FullStop_F) {
return(undefined);
}
if ((_root.First_time == undefined) || (_root.First_time)) {
if (this._y > 50) {
_root.First_time = false;
if (Drag_F) {
_root.FigDrag(this);
}
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.Hint_o.Hint._x = this._x + (this._width / 2);
_root.Hint_o.Hint._y = (this._y + (this._height / 2)) + 5;
_root.Hint_o._visible = true;
_global.IntID = setInterval(_root.DisHint, 17000);
}
}
CheckX();
MoveDown();
MoveX();
};
CheckX = function () {
if (this._x < (this._width / 2)) {
this._x = this._width / 2;
}
if (this._x > ((877 * K) - (this._width / 2))) {
this._x = (877 * K) - (this._width / 2);
}
};
MoveDown = function () {
Deep = 628 * K;
if (!Landed_F) {
if ((!Locked_F) && (!Drag_F)) {
if (this._y <= (Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x)))) {
this._y = this._y + _root.FigMR;
} else {
this._y = Deep + ((2 * K) * _root.Wave(_root.Frame_C, this._x));
Landed_F = true;
Lnd_F = true;
_root.DO_Snd.start();
}
}
} else {
this._y = Deep + (((1 + (0.2 * NumPoints)) * K) * _root.Wave(_root.Frame_C, this._x));
}
};
MoveX = function () {
if (Landed_F) {
if (Math.abs(this._x - this.ShiftX) < (3 * K)) {
this._x = this.ShiftX;
} else if (this._x < this.ShiftX) {
this._x = this._x + (3 * K);
} else if (this._x > this.ShiftX) {
this._x = this._x - (3 * K);
}
}
};
Symbol 461 MovieClip Frame 1
stop();
Symbol 476 Button
on (press) {
if (_root.Drag_F) {
return(undefined);
}
_root.Dis_Cur_Hammer();
_root.Dis_Cur_Puffer();
_root.UpdateInfo();
_root.OCur.OCurOctopus._visible = true;
Mouse.hide();
_root.Cur_Octopus_F = true;
}
Symbol 482 MovieClip Frame 1
stop();
Symbol 483 Button
on (press) {
if (_root.Drag_F) {
return(undefined);
}
_root.Dis_Cur_Octopus();
_root.Dis_Cur_Puffer();
_root.UpdateInfo();
_root.OCur.OCurHammer._visible = true;
Mouse.hide();
_root.Cur_Hammer_F = true;
}
Symbol 486 MovieClip Frame 1
stop();
Symbol 487 Button
on (press) {
if (_root.Bonus_Slow != 0) {
_root.Bonus_Slow--;
}
_root.UpdateInfo();
OBtnS._visible = true;
_root.FigMR = _root.i_FigMR / 2;
_root.FigNT = _root.i_FigNT * 2;
this.gotoAndStop(2);
OBtnS.play();
}
Symbol 493 MovieClip Frame 1
stop();
if (_root.Start_F) {
_root.UpdateInfo();
}
Symbol 493 MovieClip Frame 220
this._visible = false;
_root.FigMR = _root.i_FigMR;
_root.FigNT = _root.i_FigNT;
Symbol 494 MovieClip Frame 1
stop();
Instance of Symbol 493 MovieClip "OBtnS" in Symbol 494 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 495 Button
on (press) {
if (_root.Drag_F) {
return(undefined);
}
_root.Dis_Cur_Octopus();
_root.Dis_Cur_Hammer();
_root.UpdateInfo();
_root.OCur.OCurPuffer._visible = true;
Mouse.hide();
_root.Cur_Puffer_F = true;
}
Symbol 498 MovieClip Frame 1
stop();
Symbol 506 Button
on (press) {
_root.NewFig();
}
Symbol 511 MovieClip Frame 1
stop();
Symbol 515 Button
on (press) {
if (_root.Drag_F) {
return(undefined);
}
_root.CorrectDepths();
_root.DisPanelBtns();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
_root.OPausedMenu._visible = true;
}
Symbol 520 MovieClip Frame 1
stop();
Symbol 521 Button
on (press) {
if (_root.Drag_F) {
return(undefined);
}
if (Key.isDown(17)) {
_root.First_time = false;
_root.WinLevel();
return(undefined);
}
_root.CorrectDepths();
_root.MainStop_F = true;
_root.FullStop_F = true;
_root.Start_F = false;
if (_root.OHelp.getDepth() < 10850) {
_root.OHelp.swapDepths(10855);
}
_root.OHelp._visible = true;
}
Symbol 524 MovieClip Frame 1
stop();
Symbol 529 Button
on (press) {
_root.GotoDownload();
}
Symbol 539 MovieClip Frame 1
if (_root.alawar_f != undefined) {
dload._visible = false;
OMnu_Btn._y = OMnu_Btn._y - 30;
OHlp_Btn._y = OHlp_Btn._y - 20;
}
Symbol 556 MovieClip Frame 1
stop();
Symbol 558 Button
on (press) {
_root.Restart_F = true;
_root.gotoAndStop(_root.ffo + 2);
}
Symbol 569 Button
on (press) {
_root.NextLevel();
}
Instance of Symbol 571 MovieClip in Symbol 594 MovieClip Frame 1
/* no clip actions */