Frame 1
var MAPW = 640;
var BLOCKSIZEX = 40;
var BLOCKSIZEY = 40;
var BLOCKNUMX = 80;
var BLOCKNUMY = 40;
var GD_LEVELS = 4;
var GD_LIVES = 5;
var SC_GEM = [100];
var SnowyPosL1 = new Array(2);
var GemsL1;
var MonstersL1;
var MonstersPosL1 = new Array(2);
var MonstersInitPosL1 = new Array(2);
var i = 0;
while (i < 5) {
MonstersPosL1[i] = new Array(2);
MonstersInitPosL1[i] = new Array(2);
i++;
}
var BlockImgL1 = new Array(BLOCKNUMY);
var EMapL1 = new Array(BLOCKNUMY);
var BackImgL1 = new Array(BLOCKNUMY);
var WBlockImgL1 = new Array(BLOCKNUMY);
var CheckMapL1 = new Array(BLOCKNUMY);
var WCheckMapL1 = new Array(BLOCKNUMY);
var CheckGemsL1 = new Array(BLOCKNUMY);
var CheckBonusesL1 = new Array(BLOCKNUMY);
var CheckMonsters = new Array(BLOCKNUMY);
var CheckBricks = new Array(BLOCKNUMY);
i = 0;
while (i < BLOCKNUMY) {
BlockImgL1[i] = new Array(BLOCKNUMX);
EMapL1[i] = new Array(BLOCKNUMX);
BackImgL1[i] = new Array(BLOCKNUMX);
WBlockImgL1[i] = new Array(BLOCKNUMX);
CheckMapL1[i] = new Array(BLOCKNUMX);
WCheckMapL1[i] = new Array(BLOCKNUMX);
CheckGemsL1[i] = new Array(BLOCKNUMX);
CheckBonusesL1[i] = new Array(BLOCKNUMX);
CheckMonsters[i] = new Array(BLOCKNUMX);
CheckBricks[i] = new Array(BLOCKNUMX);
i++;
}
var win_f;
var LD_blocknumxL4 = 31;
var LD_blocknumyL4 = 16;
var LD_MonstersL4 = 1;
var LD_MonstersPosL4 = [[19, 13]];
var LD_MonstersInitPosL4 = [[7, 6]];
var LD_SnowyPosL4 = [15, 13];
var LD_BlockImgL4 = [[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3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0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 15, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 15, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 13, 13, 13, 13, 13, 13, 13, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 20, 20, 20, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 20, 20, 20, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 0, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
if (Number(System.capabilities.version.slice(4, 5)) >= 8) {
warning._visible = false;
play();
} else {
warning._visible = true;
stop();
}
var global_sound = new Sound();
var ButtonClickSnd = new Sound(this);
ButtonClickSnd.attachSound("button_click_");
var CountScoreSnd = new Sound(this);
CountScoreSnd.attachSound("count_score_");
var WorldSelectSnd = new Sound(this);
WorldSelectSnd.attachSound("world_select_");
var AllGoldSnd = new Sound(this);
AllGoldSnd.attachSound("all_gold_");
var DigSnd = new Sound(this);
DigSnd.attachSound("dig_");
var DoorCloseSnd = new Sound(this);
DoorCloseSnd.attachSound("door_close_");
var DoorOpenClickSnd = new Sound(this);
DoorOpenSnd.attachSound("door_open_");
var Gold1Snd = new Sound(this);
Gold1Snd.attachSound("gold1_");
var Gold2Snd = new Sound(this);
Gold2Snd.attachSound("gold2_");
var HeroDeadSnd = new Sound(this);
HeroDeadSnd.attachSound("hero_dead_");
var HeroFallSnd = new Sound(this);
HeroFallSnd.attachSound("hero_fall_");
var HeroLandedSnd = new Sound(this);
HeroLandedSnd.attachSound("hero_landed_");
var HintCloseSnd = new Sound(this);
HintCloseSnd.attachSound("hint_close_");
var HintOpenSnd = new Sound(this);
HintOpenSnd.attachSound("hint_open_");
var MonsterDeadSnd = new Sound(this);
MonsterDeadSnd.attachSound("monster_dead_");
var MoveClimbSnd = new Sound(this.shadow);
MoveClimbSnd.attachSound("move_climb_");
var MoveHBarSnd = new Sound(this.shadow);
MoveHBarSnd.attachSound("move_hbar_");
var MoveGroundSnd = new Sound(this.shadow);
MoveGroundSnd.attachSound("move_ground_");
var StartLevelSnd = new Sound(this);
StartLevelSnd.attachSound("start_level_");
var WinLevelSnd = new Sound(this);
WinLevelSnd.attachSound("win_level_");
var CurrentScore;
var CurrentLevel;
var Lives;
var Gems;
Frame 2
function ef_go() {
progress.setprogress((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (this.getBytesLoaded() == this.getBytesTotal()) {
this.onEnterFrame = undefined;
_root.gotoAndStop("Menu");
}
}
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;
var so = SharedObject.getLocal("temp");
var inf = new Object();
inf.flag = "inf";
inf.level = 0;
if (so.data.content.flag == "inf") {
inf.level = so.data.content.level;
}
Frame 3
stop();
Lives = GD_LIVES;
CurrentScore = 0;
if (snd_firstime == undefined) {
snd_firstime = false;
var sosnd = SharedObject.getLocal("sound");
var snd = new Object();
snd.flag = "snd";
snd.volume = 50;
snd.mute = false;
if (sosnd.data.content.flag == "snd") {
snd.volume = sosnd.data.content.volume;
snd.mute = sosnd.data.content.mute;
}
}
dload.onPress = function () {
_root.ButtonClickSnd.start();
_root.shadow.show(_root, "Download");
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Frame 9
var cnt = 0;
_test.onPress = function () {
_root.gamedy.nextlevel();
};
stop();
Pause = false;
_root.igmenu.init();
_root.ighelp.init();
_root.gmenu.init();
gmenu.gs.show();
igkmenu.onPress = function () {
_root.igmenu.show();
};
igkhelp.onPress = function () {
_root.ighelp.show();
};
Frame 10
stop();
_root.shadow.hide();
GotoDownload = function () {
if (_root.link != undefined) {
getURL (link, "_blank");
} else {
getURL ("http://www.alawar.com/games/pyramid-runner/?referer1=flash&referer2=PyramidRunner", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + dload_f) + "()";
getURL (cstr);
}
};
Symbol 76 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
light._xscale = light._xscale + ALPHASTEP;
light._yscale = light._yscale + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
light._xscale = ALPHAMAX;
light._yscale = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
light._xscale = light._xscale - ALPHASTEP;
light._yscale = light._yscale - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
Symbol 81 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
light._xscale = light._xscale + ALPHASTEP;
light._yscale = light._yscale + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
light._xscale = ALPHAMAX;
light._yscale = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
light._xscale = light._xscale - ALPHASTEP;
light._yscale = light._yscale - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
Symbol 86 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
light._xscale = light._xscale + ALPHASTEP;
light._yscale = light._yscale + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
light._xscale = ALPHAMAX;
light._yscale = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
light._xscale = light._xscale - ALPHASTEP;
light._yscale = light._yscale - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
Symbol 91 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
light._xscale = light._xscale + ALPHASTEP;
light._yscale = light._yscale + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
light._xscale = ALPHAMAX;
light._yscale = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
light._xscale = light._xscale - ALPHASTEP;
light._yscale = light._yscale - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
Symbol 96 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
light._xscale = light._xscale + ALPHASTEP;
light._yscale = light._yscale + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
light._xscale = ALPHAMAX;
light._yscale = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
light._xscale = light._xscale - ALPHASTEP;
light._yscale = light._yscale - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
Symbol 109 MovieClip [_b_26] Frame 1
stop();
_root.DoorOpenSnd.start();
Symbol 109 MovieClip [_b_26] Frame 11
stop();
_root.WinLevelSnd.start();
Symbol 118 MovieClip [_b_24] Frame 1
stop();
Symbol 118 MovieClip [_b_24] Frame 2
stop();
Symbol 125 MovieClip Frame 30
stop();
_parent.gotoAndStop(1);
Symbol 128 MovieClip [_b_23] Frame 1
stop();
Symbol 128 MovieClip [_b_23] Frame 2
stop();
Symbol 193 MovieClip [eff_foamww] Frame 1
var sy;
var sz;
Symbol 197 MovieClip [_dust_effect] Frame 25
this.removeMovieClip();
Symbol 198 MovieClip [_dig_effect] Frame 1
function ef_move() {
if (Cnt < DSTEPS) {
i = 0;
while (i < STARS) {
this["star_" + i]._x = this["star_" + i]._x + (this["star_" + i].tx / DSTEPS);
this["star_" + i]._y = this["star_" + i]._y + (this["star_" + i].ty / DSTEPS);
if (Cnt <= AL1) {
this["star_" + i]._alpha = this["star_" + i]._alpha + (30 / AL1);
}
if (Cnt >= AL2) {
this["star_" + i]._alpha = this["star_" + i]._alpha - (30 / (DSTEPS - AL2));
this["star_" + i]._rotation = this["star_" + i]._rotation - as;
}
i++;
}
if (Cnt >= AL2) {
this._rotation = this._rotation + as;
}
Cnt++;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
var STARS = 12;
var DISTANCE = 25;
var DELTA = 30;
var ADELTA = 5;
var DSTEPS = 8;
var ASPEED = 30;
var AL1 = 2;
var AL2 = 4;
var Cnt = 0;
var i;
var tmp;
var as;
i = 0;
while (i < STARS) {
this.attachMovie("_star_effect", "star_" + i, this.getNextHighestDepth());
this["star_" + i]._xscale = 80 + (50 * Math.random());
this["star_" + i]._yscale = this["star_" + i]._xscale;
this["star_" + i]._x = 0;
this["star_" + i]._y = 0;
tmp = (ADELTA / 2) - (ADELTA * Math.random());
this["star_" + i].tx = (DISTANCE * Math.cos((((Math.PI*2) / STARS) * i) + tmp)) + (DELTA * Math.random());
this["star_" + i].ty = (DISTANCE * Math.sin((((Math.PI*2) / STARS) * i) + tmp)) + (DELTA * Math.random());
this["star_" + i]._alpha = 0;
i++;
}
as = ASPEED - ((ASPEED / 2) * Math.random());
this.onEnterFrame = ef_move;
Symbol 199 MovieClip [_gems_effect] Frame 1
function ef_move() {
if (Cnt < DSTEPS) {
i = 0;
while (i < STARS) {
this["star_" + i]._x = this["star_" + i]._x + (this["star_" + i].tx / DSTEPS);
this["star_" + i]._y = this["star_" + i]._y + (this["star_" + i].ty / DSTEPS);
if (Cnt <= AL1) {
this["star_" + i]._alpha = this["star_" + i]._alpha + (30 / AL1);
}
if (Cnt >= AL2) {
this["star_" + i]._alpha = this["star_" + i]._alpha - (30 / (DSTEPS - AL2));
this["star_" + i]._rotation = this["star_" + i]._rotation - as;
}
i++;
}
if (Cnt >= AL2) {
this._rotation = this._rotation + as;
}
Cnt++;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
var STARS = 12;
var DISTANCE = 15;
var DELTA = 10;
var ADELTA = 0.7;
var DSTEPS = 4;
var ASPEED = 0.5;
var AL1 = 1;
var AL2 = 2;
var Cnt = 0;
var i;
var tmp;
var as;
i = 0;
while (i < STARS) {
this.attachMovie("_star_effect", "star_" + i, this.getNextHighestDepth());
this["star_" + i]._xscale = 80 + (50 * Math.random());
this["star_" + i]._yscale = this["star_" + i]._xscale;
this["star_" + i]._x = 0;
this["star_" + i]._y = 0;
tmp = (ADELTA / 2) - (ADELTA * Math.random());
this["star_" + i].tx = (DISTANCE * Math.cos((((Math.PI*2) / STARS) * i) + tmp)) + (DELTA * Math.random());
this["star_" + i].ty = (DISTANCE * Math.sin((((Math.PI*2) / STARS) * i) + tmp)) + (DELTA * Math.random());
this["star_" + i]._alpha = 0;
i++;
}
as = ASPEED - (ASPEED * Math.random());
this.onEnterFrame = ef_move;
Symbol 200 MovieClip [_block_effect2] Frame 1
function hide() {
Cnt = 0;
this.onEnterFrame = ef_hide;
}
function show() {
Cnt = 32;
this.onEnterFrame = ef_show;
}
function ef_hide() {
Cnt = Cnt + STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._y + STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._height - STEP;
if (Cnt > 32) {
for (each in this) {
removeMovieClip(each);
}
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y + _root.BLOCKSIZEY;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = 0;
this.onEnterFrame = undefined;
}
}
function ef_show() {
Cnt = Cnt - STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._y - STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._height + STEP;
if (Cnt < 0) {
for (each in this) {
removeMovieClip(each);
}
_root.gamedy.map[(("B" + eyn) + "_") + exn].setMask(null);
_root.gamedy.map[(("DM" + eyn) + "_") + exn].removeMovieClip();
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
var STEP = 4;
var ASTEP = 12.5;
var LLEN = 5;
var Cnt;
hide();
Symbol 201 MovieClip [_block_effect] Frame 1
function hide() {
Cnt = 0;
_root.gamedy.map[(("B" + eyn) + "_") + exn]._alpha = 100;
this.onEnterFrame = ef_hide;
}
function show() {
Cnt = 32;
this.onEnterFrame = ef_show;
}
function ef_hide() {
Cnt = Cnt + STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._y + STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._height - STEP;
_root.gamedy.map[(("B" + eyn) + "_") + exn]._alpha = _root.gamedy.map[(("B" + eyn) + "_") + exn]._alpha - ASTEP;
if (Cnt > 32) {
for (each in this) {
removeMovieClip(each);
}
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = (_root.gamedy.map[(("B" + eyn) + "_") + exn]._y + _root.BLOCKSIZEY) + 10;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = 0;
this.onEnterFrame = undefined;
}
}
function ef_show() {
Cnt = Cnt - STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._y - STEP;
_root.gamedy.map[(("DM" + eyn) + "_") + exn]._height = _root.gamedy.map[(("DM" + eyn) + "_") + exn]._height + STEP;
_root.gamedy.map[(("B" + eyn) + "_") + exn]._alpha = _root.gamedy.map[(("B" + eyn) + "_") + exn]._alpha + ASTEP;
if (Cnt < 0) {
for (each in this) {
removeMovieClip(each);
}
_root.gamedy.map[(("B" + eyn) + "_") + exn].setMask(null);
_root.gamedy.map[(("DM" + eyn) + "_") + exn].removeMovieClip();
_root.gamedy.map[(("B" + eyn) + "_") + exn]._alpha = 100;
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
var STEP = 4;
var ASTEP = 8;
var LLEN = 5;
var Cnt;
hide();
Symbol 203 MovieClip [eff_foamw] Frame 1
var sy;
var sz;
Symbol 208 MovieClip [_dig2_] Frame 1
function refresh() {
if (sl) {
ldig._visible = true;
} else {
ldig._visible = false;
}
if (sr) {
rdig._visible = true;
} else {
rdig._visible = false;
}
if (su) {
udig._visible = true;
} else {
udig._visible = false;
}
if (sd) {
ddig._visible = true;
} else {
ddig._visible = false;
}
}
var sl;
var sr;
var su;
var sd;
refresh();
Symbol 216 MovieClip [_dig_] Frame 1
function refresh() {
if (sl) {
ldig._visible = true;
} else {
ldig._visible = false;
}
if (sr) {
rdig._visible = true;
} else {
rdig._visible = false;
}
if (su) {
udig._visible = true;
} else {
udig._visible = false;
}
if (sd) {
ddig._visible = true;
} else {
ddig._visible = false;
}
}
var sl;
var sr;
var su;
var sd;
refresh();
Symbol 361 MovieClip Frame 14
stop();
this._parent._parent._parent.snowydead();
Symbol 362 MovieClip Frame 5
stop();
Symbol 363 MovieClip Frame 5
stop();
Symbol 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 2
stop();
Symbol 364 MovieClip Frame 3
stop();
Symbol 364 MovieClip Frame 4
stop();
Symbol 364 MovieClip Frame 5
stop();
Symbol 364 MovieClip Frame 6
stop();
Symbol 364 MovieClip Frame 7
stop();
Symbol 364 MovieClip Frame 8
stop();
Symbol 364 MovieClip Frame 9
stop();
Symbol 364 MovieClip Frame 10
stop();
Symbol 364 MovieClip Frame 11
stop();
Symbol 364 MovieClip Frame 12
stop();
Symbol 364 MovieClip Frame 13
stop();
Symbol 364 MovieClip Frame 14
stop();
Symbol 364 MovieClip Frame 15
stop();
Symbol 364 MovieClip Frame 16
stop();
Symbol 364 MovieClip Frame 17
stop();
Symbol 364 MovieClip Frame 18
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
stop();
Symbol 366 MovieClip [_monster_] Frame 1
function init(sx, sy) {
SaveCnt = 0;
DopCnt = 0;
ErbCnt = 0;
eup_f = false;
fall_f = false;
Stick_f = false;
Gold_f = false;
GLastX = 0;
GLastY = 0;
gold._visible = false;
this._visible = false;
Status = "_RIGHT";
DigL_f = false;
DigR_f = false;
this._x = sx * _root.BLOCKSIZEX;
this._y = sy * _root.BLOCKSIZEY;
this.onEnterFrame = undefined;
oldpx = undefined;
oldpy = undefined;
i = 0;
while (i < _root.BLOCKNUMY) {
j = 0;
while (j < _root.BLOCKNUMX) {
_root.CheckMonsters[i][j] = 0;
j++;
}
i++;
}
}
function show() {
_root.hero_appear_Snd.start();
this._visible = true;
}
function start() {
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local3;
var _local4;
var _local8;
var _local9;
var _local6;
var _local5;
var _local10;
var _local11;
if ((getxn(this._x) != GLastX) || (getyn(this._y) != GLastY)) {
GLastX = undefined;
GLastY = undefined;
}
if ((Gold_f && (_root.CheckGemsL1[getyn(this._y)][getxn(this._x)] == 0)) && (Math.floor(Math.random() * 200) == 1)) {
Gold_f = false;
gold._visible = false;
GLastX = getxn(this._x);
GLastY = getyn(this._y);
_root.gamedy.gems.returngem(getxn(this._x), getyn(this._y), _root.CheckGemsL1);
}
if (Key.isDown(16) || (_root.Pause)) {
checkstand();
return(undefined);
}
checkmouse();
_local10 = z_key;
_local11 = x_key;
_local6 = left_key;
_local5 = right_key;
_local8 = up_key;
_local9 = down_key;
updatematrix();
if (_root.CheckMapL1[getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)][getxn(this._x)] == 1) {
this.onEnterFrame = undefined;
_root.MonsterDeadSnd.start();
if (Status == "_RIGHT") {
dir.gotoAndStop("DeadL");
} else {
dir.gotoAndStop("DeadR");
}
reborn();
return(undefined);
}
_local3 = _root.CheckGemsL1[getyn(this._y)][getxn(this._x)];
if ((((((SaveCnt == 0) && (!Gold_f)) && (_local3 != 0)) && (_local3 != 9)) && (getxn(this._x) != GLastX)) && (getyn(this._y) != GLastY)) {
Gold_f = true;
gold._visible = true;
_root.gamedy.gems.takegem(getxn(this._x), getyn(this._y), _root.CheckGemsL1);
}
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) != 3) {
if ((checkmap(getxn(this._x), getyn(this._y - (_root.BLOCKSIZEY / 2))) != 5) || (Stick_f && (this._y != (getyn(this._y) * _root.BLOCKSIZEY)))) {
_local3 = checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2)));
_local4 = _root.CheckBricks[getyn(this._y + (_root.BLOCKSIZEY / 2)) - 1][getxn(this._x)];
if (((_local3 == 0) || (_local3 == 5)) && (_local4 != 1)) {
_local3 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) + SYSTEP));
_local4 = _root.CheckBricks[getyn((this._y + (_root.BLOCKSIZEY / 2)) + SYSTEP) - 1][getxn(this._x)];
if (!eup_f) {
if (((_local3 == 0) || (_local3 == 5)) && (_local4 != 1)) {
if (!fall_f) {
this.hero_fall_Snd.start();
fall_f = true;
}
Stick_f = false;
this._y = this._y + SYSTEP;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
if (Status == "_RIGHT") {
dir.gotoAndStop("FlyRight");
gold.gotoAndStop("Right");
} else {
dir.gotoAndStop("FlyLeft");
gold.gotoAndStop("Left");
}
return(undefined);
}
this._y = getyn(this._y) * _root.BLOCKSIZEY;
this.hero_fall_Snd.stop();
fall_f = false;
if (checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2))) != 3) {
_root.hero_landing_Snd.start();
}
return(undefined);
}
}
} else if (!Stick_f) {
this._y = getyn(this._y) * _root.BLOCKSIZEY;
Stick_f = true;
return(undefined);
}
}
if (_local6 && (!_local5)) {
var _local7;
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("StickgoLeft");
gold.gotoAndStop("Left");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftLeft");
gold.gotoAndStop("Left");
} else {
dir.gotoAndStop("GoLeft");
gold.gotoAndStop("Left");
}
Status = "_LEFT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
_local7 = SXSTEP / 2;
} else {
_local7 = SXSTEP;
}
_local3 = checkmap(getxn((this._x - (_root.BLOCKSIZEX / 2)) - _local7), getyn(this._y));
_local4 = _root.CheckBricks[getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)][getxn((this._x - (_root.BLOCKSIZEX / 2)) - _local7)];
if (_local4 == 0) {
if (((_local3 == 0) || (_local3 == 3)) || (_local3 == 5)) {
this._x = this._x - _local7;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
// unexpected jump
}
this._x = getxn(this._x - (_root.BLOCKSIZEX / 2)) * _root.BLOCKSIZEX;
checkstand();
return(undefined);
}
checkstand();
return(undefined);
}
if ((!_local6) && (_local5)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("StickgoRight");
gold.gotoAndStop("Right");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftRight");
gold.gotoAndStop("Right");
} else {
dir.gotoAndStop("GoRight");
gold.gotoAndStop("Right");
}
Status = "_RIGHT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
var _local7 = SXSTEP / 2;
} else {
var _local7 = SXSTEP;
}
_local3 = checkmap(getxn((this._x + (_root.BLOCKSIZEX / 2)) + _local7), getyn(this._y));
_local4 = _root.CheckBricks[getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)][getxn((this._x + (_root.BLOCKSIZEX / 2)) + _local7)];
if (_local4 == 0) {
if (((_local3 == 0) || (_local3 == 3)) || (_local3 == 5)) {
this._x = this._x + _local7;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
// unexpected jump
}
this._x = getxn(this._x) * _root.BLOCKSIZEX;
checkstand();
return(undefined);
}
checkstand();
return(undefined);
}
if (((!_local6) && (!_local5)) && (!(_local8 || (_local9)))) {
checkstand();
}
if (_local6 && (_local5)) {
checkstand();
return(undefined);
}
if ((((!_local9) && (_local8)) && (!_local6)) && (!_local5)) {
_local3 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8));
if (((_local3 != 0) && (_local3 != 5)) || (eup_f)) {
_local3 = checkmap(getxn(this._x), getyn((this._y - (_root.BLOCKSIZEY / 2)) - LUPSTEP));
if (((_local3 == 0) || (_local3 == 3)) || (eup_f)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)) == 3) {
dir.gotoAndStop("LiftUp");
}
if (eup_f) {
dir.gotoAndStop("LiftUp");
}
this._y = this._y - LUPSTEP;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
// unexpected jump
}
this._y = getyn(this._y - (_root.BLOCKSIZEY / 2)) * _root.BLOCKSIZEY;
checkstand();
return(undefined);
}
checkstand();
return(undefined);
}
if (((_local9 && (!_local8)) && (!_local6)) && (!_local5)) {
if (Stick_f) {
tstep = SDOWNSTEP;
} else {
tstep = LDOWNSTEP;
}
_local3 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) + tstep));
if (((_local3 == 0) || (_local3 == 3)) || (_local3 == 5)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)) == 3) {
dir.gotoAndStop("LiftDown");
}
this._y = this._y + tstep;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
} else {
this._y = getyn(this._y) * _root.BLOCKSIZEY;
checkstand();
return(undefined);
}
}
if (_local10 && (!_local11)) {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
stopf();
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("DigSLeft");
gold.gotoAndStop("Left");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("DigLLeft");
gold.gotoAndStop("Left");
} else {
dir.gotoAndStop("DigLeft");
gold.gotoAndStop("Left");
}
if ((checkmap(getxn(this._x) - 1, getyn(this._y) + 1) == 1) && ((checkmap(getxn(this._x) - 1, getyn(this._y)) == 0) || (checkmap(getxn(this._x) - 1, getyn(this._y)) == 5))) {
_root.hero_dig_Snd.start();
DigL_f = true;
}
}
if ((!_local10) && (_local11)) {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
stopf();
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("DigSRight");
gold.gotoAndStop("Right");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("DigLRight");
gold.gotoAndStop("Right");
} else {
dir.gotoAndStop("DigRight");
gold.gotoAndStop("Right");
}
if ((checkmap(getxn(this._x) + 1, getyn(this._y) + 1) == 1) && ((checkmap(getxn(this._x) + 1, getyn(this._y)) == 0) || (checkmap(getxn(this._x) + 1, getyn(this._y)) == 5))) {
_root.hero_dig_Snd.start();
DigR_f = true;
}
}
}
function checkmap(numx, numy) {
var _local2;
if ((((numx < 0) || (numx > _root.BLOCKNUMX)) || (numy < 0)) || (numy > _root.BLOCKNUMY)) {
_local2 = 2;
} else {
_local2 = _root.CheckMapL1[numy][numx];
}
if ((_local2 == -1) || (_local2 == 6)) {
_local2 = 0;
}
return(_local2);
}
function getxn(curx) {
return(Math.round(curx / _root.BLOCKSIZEX));
}
function getyn(cury) {
return(Math.round(cury / _root.BLOCKSIZEY));
}
function stopf() {
this.onEnterFrame = undefined;
}
function gof() {
this.onEnterFrame = ef_start;
}
function dig() {
if (DigL_f) {
_parent.map.dig(getxn(this._x) - 1, getyn(this._y) + 1);
DigL_f = false;
if (_root.CheckGemsL1[getyn(this._y)][getxn(this._x) - 1] == 9) {
_root.gamedy.gems.removepointer(getxn(this._x) - 1, getyn(this._y), _root.CheckGemsL1);
}
}
if (DigR_f) {
_parent.map.dig(getxn(this._x) + 1, getyn(this._y) + 1);
DigR_f = false;
if (_root.CheckGemsL1[getyn(this._y)][getxn(this._x) + 1] == 9) {
_root.gamedy.gems.removepointer(getxn(this._x) + 1, getyn(this._y), _root.CheckGemsL1);
}
}
}
function checkstand() {
var _local3;
var _local4;
_local3 = "";
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7));
if (_local4 == 3) {
_local3 = "SLift";
} else if (_local4 == 5) {
_local3 = "Stick";
} else {
_local3 = "Stand";
}
if (Status == "_RIGHT") {
_local3 = _local3 + "Right";
gold.gotoAndStop("Right");
}
if (Status == "_LEFT") {
_local3 = _local3 + "Left";
gold.gotoAndStop("Left");
}
dir.gotoAndStop(_local3);
}
function checkmouse() {
var _local4;
var _local5;
var _local7 = 16;
var _local6 = 12;
var _local8 = 10;
if (_root.CheckBricks[getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)][getxn(this._x)] == 1) {
if (Gold_f && (_root.CheckGemsL1[getyn(this._y)][getxn(this._x)] == 0)) {
Gold_f = false;
gold._visible = false;
_root.gamedy.gems.returngem(getxn(this._x), getyn(this._y), _root.CheckGemsL1);
}
up_key = false;
down_key = false;
right_key = false;
left_key = false;
if (SaveCnt < 60) {
SaveCnt++;
} else {
eup_f = true;
up_key = true;
}
return(undefined);
}
SaveCnt = 0;
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8));
_local5 = checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2)));
if (getyn(_parent.snowy._y) < getyn(this._y)) {
up_key = true;
} else {
up_key = false;
}
if (getyn(_parent.snowy._y) > getyn(this._y)) {
down_key = true;
} else {
down_key = false;
}
if ((up_key && (_local4 == 3)) || (down_key && (_local5 == 3))) {
right_key = false;
left_key = false;
x_key = false;
z_key = false;
return(undefined);
}
if (getxn(_parent.snowy._x) > getxn(this._x)) {
right_key = true;
} else {
right_key = false;
}
if (getxn(_parent.snowy._x) < getxn(this._x)) {
left_key = true;
} else {
left_key = false;
}
if (eup_f && (DopCnt < 5)) {
DopCnt++;
up_key = true;
} else {
DopCnt = 0;
eup_f = false;
}
}
function updatematrix() {
if ((oldpx != undefined) && (_root.CheckMonsters[oldpy][oldpx] == (num + 1))) {
_root.CheckMonsters[oldpy][oldpx] = 0;
}
oldpx = getxn(this._x);
oldpy = getyn(this._y + (_root.BLOCKSIZEY / 2));
_root.CheckMonsters[oldpy][oldpx] = num + 1;
}
function reborn() {
_root.gamedy.Monsters++;
_parent.map[(("B" + _root.MonstersPosL1[num][1]) + "_") + _root.MonstersPosL1[num][0]].play();
this.onEnterFrame = ef_reborn;
}
function ef_reborn() {
if (ErbCnt < 30) {
ErbCnt++;
} else {
this.onEnterFrame = undefined;
init(_root.MonstersPosL1[num][0], _root.MonstersPosL1[num][1]);
show();
start();
ErbCnt = 0;
}
}
var SXSTEP = 4.5;
var SYSTEP = 9;
var LUPSTEP = 4;
var LDOWNSTEP = 5;
var SDOWNSTEP = 11;
var DUSTX = -10;
var DUSTY = 5;
var up_key;
var down_key;
var left_key;
var right_key;
var z_key;
var x_key;
var oldpx;
var oldpy;
var num;
var Status;
var DigL_f;
var DigR_f;
var SaveCnt = 0;
var DopCnt = 0;
var ErbCnt = 0;
var Stick_f = false;
var fall_f = false;
var eup_f = false;
var Gold_f = false;
var GLastX;
var GLastY;
var hero_fall_Snd = new Sound(this);
hero_fall_Snd.attachSound("hero_fall");
init(_root.MonstersInitPosL1[num][0], _root.MonstersInitPosL1[num][1]);
show();
start();
Symbol 367 MovieClip Frame 1
function init() {
this._alpha = 0;
}
function hide() {
Status = "_HIDE";
this._visible = true;
this._alpha = 100;
this.onEnterFrame = ef_hide;
}
function ef_hide() {
if (this._alpha > 0) {
this._alpha = this._alpha - HSTEP;
} else {
this._alpha = 100;
this._visible = false;
this.onEnterFrame = undefined;
Status = "_READY";
}
}
function show(sender, slabel, sender2, slabel2) {
Sender = sender;
SLabel = slabel;
Sender2 = sender2;
SLabel2 = slabel2;
Status = "_SHOW";
this._visible = true;
this._alpha = 0;
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + SSTEP;
} else {
this._alpha = 100;
Status = "_READY";
this.onEnterFrame = undefined;
if ((Sender != undefined) && (SLabel != undefined)) {
Sender.gotoAndPlay(SLabel);
}
}
}
var HSTEP = 12;
var SSTEP = 12;
var Status = "_READY";
var Sender;
var SLabel;
var Sender2;
var SLabel2;
init();
Symbol 375 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 377 MovieClip Frame 1
function init() {
text1.init();
text1.ALPHA = 75;
text2.init();
text2.ALPHA = 15;
}
function start() {
text1.start();
text2.start();
}
Symbol 381 MovieClip Frame 1
FirstTime = true;
Symbol 381 MovieClip Frame 28
if (FirstTime) {
stop();
FirstTime = false;
}
Symbol 381 MovieClip Frame 55
gotoAndPlay (2);
Symbol 401 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 407 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 412 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 418 Button
on (press) {
getURL ("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash", "_blank");
}
Symbol 427 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 430 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
if (_root.swcancel_f) {
light._alpha = ALPHAMAX;
lhide();
} else {
light._alpha = ALPHAMIN;
}
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 440 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 451 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 469 MovieClip Frame 1
this.onPress = function () {
_root.WorldSelectSnd.start();
};
Symbol 470 MovieClip Frame 1
swcancel.onPress = function () {
_root.ButtonClickSnd.start();
_parent.gotoAndPlay("ToMMenu");
};
swstart.onPress = function () {
_root.ButtonClickSnd.start();
_parent.gotoAndPlay("SelectL");
};
Symbol 514 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
if (_root.swcancel_f) {
light._alpha = ALPHAMAX;
lhide();
} else {
light._alpha = ALPHAMIN;
}
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 517 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
if (_root.swcancel_f) {
light._alpha = ALPHAMAX;
lhide();
} else {
light._alpha = ALPHAMIN;
}
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 531 MovieClip Frame 1
function select() {
_parent.slpic2.lshow();
_parent.slpic3.lshow();
_parent.slpic4.lshow();
frame._visible = true;
lhide();
_root.CurrentLevel = 1;
}
function lshow() {
frame._visible = false;
warning._visible = false;
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 25;
var ALPHASTEP = 6;
var showwarning;
light._alpha = ALPHAMAX;
frame._visible = false;
warning._visible = false;
bird._visible = false;
this.onPress = function () {
if (!showwarning) {
_root.WorldSelectSnd.start();
select();
}
};
this.onRollOver = function () {
if (showwarning) {
warning._visible = true;
}
};
this.onRollOut = function () {
if (showwarning) {
warning._visible = false;
}
};
Symbol 534 MovieClip Frame 1
function select() {
_parent.slpic1.lshow();
_parent.slpic3.lshow();
_parent.slpic4.lshow();
frame._visible = true;
lhide();
_root.CurrentLevel = 2;
}
function lshow() {
frame._visible = false;
warning._visible = false;
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 25;
var ALPHASTEP = 6;
var showwarning;
light._alpha = ALPHAMAX;
frame._visible = false;
warning._visible = false;
bird._visible = false;
this.onPress = function () {
if (!showwarning) {
_root.WorldSelectSnd.start();
select();
}
};
this.onRollOver = function () {
if (showwarning) {
warning._visible = true;
}
};
this.onRollOut = function () {
if (showwarning) {
warning._visible = false;
}
};
Symbol 537 MovieClip Frame 1
function select() {
_parent.slpic1.lshow();
_parent.slpic2.lshow();
_parent.slpic4.lshow();
frame._visible = true;
lhide();
_root.CurrentLevel = 3;
}
function lshow() {
frame._visible = false;
warning._visible = false;
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 25;
var ALPHASTEP = 6;
var showwarning;
light._alpha = ALPHAMAX;
frame._visible = false;
warning._visible = false;
bird._visible = false;
this.onPress = function () {
if (!showwarning) {
_root.WorldSelectSnd.start();
select();
}
};
this.onRollOver = function () {
if (showwarning) {
warning._visible = true;
}
};
this.onRollOut = function () {
if (showwarning) {
warning._visible = false;
}
};
Symbol 540 MovieClip Frame 1
function select() {
_parent.slpic1.lshow();
_parent.slpic2.lshow();
_parent.slpic3.lshow();
frame._visible = true;
lhide();
_root.CurrentLevel = 4;
}
function lshow() {
frame._visible = false;
warning._visible = false;
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 25;
var ALPHASTEP = 6;
var showwarning;
light._alpha = ALPHAMAX;
frame._visible = false;
warning._visible = false;
bird._visible = false;
this.onPress = function () {
if (!showwarning) {
_root.WorldSelectSnd.start();
select();
}
};
this.onRollOver = function () {
if (showwarning) {
warning._visible = true;
}
};
this.onRollOut = function () {
if (showwarning) {
warning._visible = false;
}
};
Symbol 544 MovieClip Frame 1
stop();
if (_root.GoSL) {
_root.GoSL = false;
gotoAndPlay ("_SelectL");
} else if (_root.shadow._visible) {
_root.shadow.hide();
}
mmstart.onPress = function () {
_root.ButtonClickSnd.start();
if (_root.close_f != undefined) {
gotoAndPlay ("SelectW");
} else {
gotoAndPlay ("SWNoExit");
}
};
mmexit.onPress = function () {
_root.ButtonClickSnd.start();
gotoAndPlay ("Exit");
};
if (_root.close_f == undefined) {
mmexit._visible = false;
} else {
mmexit._visible = true;
}
Symbol 544 MovieClip Frame 26
stop();
Symbol 544 MovieClip Frame 35
if (_root.close_f == undefined) {
_root.swcancel_f = true;
gotoAndStop ("MMenu");
}
Symbol 544 MovieClip Frame 45
_root.swcancel_f = true;
gotoAndStop ("MMenu");
Symbol 544 MovieClip Frame 52
_root.shadow.show();
Symbol 544 MovieClip Frame 55
stop();
fscommand ("quit");
if (_root.close_f != undefined) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
}
Symbol 544 MovieClip Frame 63
_root.shadow.show(this, "_SelectL");
Symbol 544 MovieClip Frame 65
stop();
Symbol 544 MovieClip Frame 66
play();
_root.shadow.hide();
completed._visible = false;
slquit.onPress = function () {
_root.ButtonClickSnd.start();
_root.shadow.show(this._parent, "MMenu");
};
slgo.onPress = function () {
_root.ButtonClickSnd.start();
_root.shadow.show(_root, "Game");
};
Symbol 544 MovieClip Frame 67
var i = 1;
while (i <= 4) {
if (i <= (_root.inf.level + 1)) {
this["slpic" + i].showwarning = false;
} else {
this["slpic" + i].showwarning = true;
}
if (i <= _root.inf.level) {
this["slpic" + i].bird._visible = true;
} else {
this["slpic" + i].bird._visible = false;
}
i++;
}
if (_root.inf.level < 4) {
this["slpic" + (_root.inf.level + 1)].select();
} else {
slpic4.select();
completed._visible = true;
}
slpic2.showwarning = false;
Symbol 544 MovieClip Frame 80
stop();
Symbol 550 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
light._alpha = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 552 MovieClip Frame 1
this.useHandCursor = false;
this.onPress = function () {
};
Symbol 559 MovieClip Frame 1
function update() {
if (_parent._parent.Mute) {
_root.global_sound.setVolume(0);
gotoAndStop (2);
} else {
_root.global_sound.setVolume(_parent._parent.Volume);
gotoAndStop (1);
}
}
update();
stop();
Symbol 559 MovieClip Frame 2
stop();
Symbol 576 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
_parent.hint.lshow();
_parent.hint.speaker.update();
};
this.onRollOut = function () {
gotoAndStop (1);
_parent.hint.lhide();
};
this.onMouseUp = function () {
if ((((this._xmouse > this._width) || (this._ymouse > this._height)) || (this._xmouse < 0)) || (this._ymouse < 0)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
stop();
Symbol 576 MovieClip Frame 2
stop();
Symbol 576 MovieClip Frame 3
stop();
Symbol 580 MovieClip Frame 1
this.useHandCursor = false;
this.onRollOver = function () {
gotoAndStop (2);
_parent.regul.gotoAndStop(2);
};
this.onRollOut = function () {
gotoAndStop (1);
_parent.regul.gotoAndStop(1);
};
stop();
Symbol 580 MovieClip Frame 2
stop();
Symbol 580 MovieClip Frame 3
stop();
Symbol 586 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
_parent.scal.gotoAndStop(2);
};
this.onRollOut = function () {
gotoAndStop (1);
_parent.scal.gotoAndStop(1);
};
stop();
Symbol 586 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 3
stop();
Symbol 591 MovieClip Frame 1
function update() {
if (_parent._parent._parent._parent.Mute) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
stop();
Symbol 591 MovieClip Frame 2
stop();
Symbol 592 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((this._alpha + ALPHASTEP) < ALPHAMAX) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((this._alpha - ALPHASTEP) > ALPHAMIN) {
this._alpha = this._alpha - ALPHASTEP;
} else {
this._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 35;
var SCALEMAX = 25;
this._alpha = ALPHAMIN;
this._xscale = 100;
this._yscale = 100;
Symbol 596 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((this._alpha + ALPHASTEP) < ALPHAMAX) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((this._alpha - ALPHASTEP) > ALPHAMIN) {
this._alpha = this._alpha - ALPHASTEP;
} else {
this._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
this._xscale = 100 + ((SCALEMAX * this._alpha) / (ALPHAMAX - ALPHAMIN));
this._yscale = _xscale;
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 35;
var SCALEMAX = 25;
this._alpha = ALPHAMIN;
this._xscale = 100;
this._yscale = 100;
Symbol 597 MovieClip Frame 1
function setvol(vol) {
update((YMAX - ((vol / 100) * (YMAX - YMIN))) + (regul._height / 4));
}
function update(ry) {
regul._y = ry - (regul._height / 4);
if (regul._y < YMIN) {
regul._y = YMIN;
}
if (regul._y > YMAX) {
regul._y = YMAX;
}
grade.arrow._y = ((regul._y - 8.2) * 1.018) - 4.4;
_parent._parent.Volume = Math.floor(((YMAX - regul._y) / (YMAX - YMIN)) * 100);
if (!_parent._parent.Mute) {
_root.global_sound.setVolume(_parent._parent.Volume);
}
}
function mouse_handler() {
update(_ymouse);
}
var YMIN = 3;
var YMAX = 76;
setvol(_parent._parent.Volume);
mute.onPress = function () {
_parent._parent.Mute = !_parent._parent.Mute;
_parent.speaker.update();
this.gotoAndStop(3);
hint.speaker.update();
};
scal.onPress = function () {
update(_ymouse);
};
regul.onPress = function () {
grade.lshow();
regul.gotoAndStop(3);
scal.gotoAndStop(3);
scal.onMouseMove = mouse_handler;
};
regul.onMouseUp = function () {
scal.onMouseMove = undefined;
if ((((scal._xmouse > (scal._width - 14)) || (scal._ymouse > (scal._height - 1))) || (scal._xmouse < 0)) || (scal._ymouse < 0)) {
regul.gotoAndStop(1);
scal.gotoAndStop(1);
} else {
regul.gotoAndStop(2);
scal.gotoAndStop(2);
}
grade.lhide();
_parent._parent.setsosnd();
};
Symbol 604 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._xscale + ALPHASTEP) < ALPHAMAX) {
light._xscale = light._xscale + ALPHASTEP;
light._yscale = light._yscale + ALPHASTEP;
} else {
light._xscale = ALPHAMAX;
light._yscale = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._xscale - ALPHASTEP) > ALPHAMIN) {
light._xscale = light._xscale - ALPHASTEP;
light._yscale = light._yscale - ALPHASTEP;
} else {
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 100;
var ALPHAMAX = 150;
var ALPHASTEP = 18;
light._xscale = ALPHAMIN;
light._yscale = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 606 MovieClip Frame 1
Symbol 607 MovieClip Frame 1
function setsosnd() {
_parent.snd.volume = Volume;
_parent.snd.mute = Mute;
_parent.sosnd.data.content = _parent.snd;
}
var Volume;
var Mute;
Volume = _parent.snd.volume;
Mute = _parent.snd.mute;
stop();
openbtn.onPress = function () {
gotoAndPlay ("Show");
};
Symbol 607 MovieClip Frame 10
stop();
closebtn.onPress = function () {
play();
};
headbtn.onPress = function () {
play();
};
headbtn.onRollOver = function () {
closebtn.lshow();
};
headbtn.onRollOut = function () {
closebtn.lhide();
};
Symbol 607 MovieClip Frame 17
gotoAndStop ("Start");
Symbol 611 MovieClip Frame 1
function clear() {
_root.gamedy.effect.clear();
Status = "_CLEAR";
var _local3 = this[each];
for (each in this) {
_local3 = this[each];
removeMovieClip(_local3);
}
}
function show(blockimg) {
var _local4;
var _local3;
_local4 = 0;
while (_local4 < dCnt.lenght) {
dCnt.shift();
dXn.shift();
dYn.shift();
_local4++;
}
Status = "_SHOW";
_local4 = _root.BLOCKNUMY - 1;
while (_local4 >= 0) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
if (_root.BackImgL1[_local4][_local3] > 0) {
if (this[(("BB" + _local4) + "_") + _local3] == undefined) {
this.attachMovie(String("_b_" + _root.BackImgL1[_local4][_local3]), String((("BB" + _local4) + "_") + _local3), this.getNextHighestDepth());
}
this[(("BB" + _local4) + "_") + _local3]._x = (_local3 * _root.BLOCKSIZEX) + 7;
this[(("BB" + _local4) + "_") + _local3]._y = (_local4 * _root.BLOCKSIZEY) - 18;
}
_local3++;
}
_local4--;
}
_local4 = _root.BLOCKNUMY - 1;
while (_local4 >= 0) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
if (blockimg[_local4][_local3] > 0) {
if ((this[(("B" + _local4) + "_") + _local3] != undefined) && (this[(("DM" + _local4) + "_") + _local3] == undefined)) {
removeMovieClip(this[(("B" + _local4) + "_") + _local3]);
}
if ((this[(("B" + _local4) + "_") + _local3] != undefined) && (this[(("DM" + _local4) + "_") + _local3] != undefined)) {
this[(("B" + _local4) + "_") + _local3].swapDepths(this.getNextHighestDepth());
}
if (this[(("B" + _local4) + "_") + _local3] == undefined) {
this.attachMovie(String("_b_" + blockimg[_local4][_local3]), String((("B" + _local4) + "_") + _local3), this.getNextHighestDepth());
}
this[(("B" + _local4) + "_") + _local3]._x = (_local3 * _root.BLOCKSIZEX) - 1;
this[(("B" + _local4) + "_") + _local3]._y = (_local4 * _root.BLOCKSIZEY) - 10;
}
_local3++;
}
_local4--;
}
this.onEnterFrame = ef_undig;
}
function dig(xn, yn) {
_parent.dig.attachMovie("_dig_effect", (("de_" + yn) + "_") + xn, _parent.dig.getNextHighestDepth());
_parent.dig[(("de_" + yn) + "_") + xn]._x = ((xn * _root.BLOCKSIZEX) + (_root.BLOCKSIZEX / 2)) + 5;
_parent.dig[(("de_" + yn) + "_") + xn]._y = ((yn * _root.BLOCKSIZEY) + (_root.BLOCKSIZEY / 2)) - 16;
_root.gamedy.effect.seteffect(yn, xn);
this.attachMovie("_digmask_", String((("DM" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("DM" + yn) + "_") + xn]._width = _root.BLOCKSIZEX + 10;
this[(("DM" + yn) + "_") + xn]._height = _root.BLOCKSIZEY + 10;
this[(("DM" + yn) + "_") + xn]._x = xn * _root.BLOCKSIZEX;
this[(("DM" + yn) + "_") + xn]._y = (yn * _root.BLOCKSIZEY) - 10;
this[(("B" + yn) + "_") + xn].setMask(this[(("DM" + yn) + "_") + xn]);
_root.CheckMapL1[yn][xn] = -1;
_root.CheckBricks[yn][xn] = 1;
dXn.push(xn);
dYn.push(yn);
dCnt.push(TIME * FPS);
}
function ef_undig() {
var _local2;
var _local3;
var _local4;
if (Key.isDown(16) || (_root.Pause)) {
return(undefined);
}
_local2 = 0;
while (_local2 < dCnt.length) {
dCnt[_local2]--;
if (dCnt[_local2] <= 0) {
dCnt.shift();
_local3 = dXn.shift();
_local4 = dYn.shift();
_root.CheckMapL1[_local4][_local3] = 1;
_root.CheckBricks[_local4][_local3] = 0;
_root.gamedy.effect[(("E" + _local4) + "_") + _local3].show();
}
_local2++;
}
}
var TIME = 8;
var FPS = 22;
var Status;
var dCnt = new Array(50);
var dXn = new Array(50);
var dYn = new Array(50);
Symbol 612 MovieClip Frame 1
function clear() {
Ecnt = 0;
Status = "_CLEAR";
var _local3;
var _local2;
for (_local3 in this) {
_local2 = this[_local3];
if (_local2 instanceof MovieClip) {
removeMovieClip(_local2);
}
}
}
function show(blockimg) {
var _local4;
var _local3;
Status = "_SHOW";
_local4 = 0;
while (_local4 < _root.BLOCKNUMY) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
if (blockimg[_local4][_local3] > 0) {
this.attachMovie(String("_g_" + blockimg[_local4][_local3]), String((("G" + _local4) + "_") + _local3), this.getNextHighestDepth());
this[(("G" + _local4) + "_") + _local3]._x = (_local3 * _root.BLOCKSIZEX) + OFFSETX;
this[(("G" + _local4) + "_") + _local3]._y = (_local4 * _root.BLOCKSIZEY) + OFFSETY;
}
_local3++;
}
_local4++;
}
}
function removegem(xn, yn, blockimg) {
blockimg[yn][xn] = 0;
removeMovieClip(this[(("G" + yn) + "_") + xn]);
_parent.dig.attachMovie("_gems_effect", "ge_" + Ecnt, _parent.dig.getNextHighestDepth());
_parent.dig["ge_" + Ecnt]._x = (xn * _root.BLOCKSIZEX) + (_root.BLOCKSIZEX / 2);
_parent.dig["ge_" + Ecnt]._y = ((yn * _root.BLOCKSIZEY) + (_root.BLOCKSIZEY / 2)) - 6;
Ecnt++;
}
function takegem(xn, yn, blockimg) {
blockimg[yn][xn] = 0;
removeMovieClip(this[(("G" + yn) + "_") + xn]);
}
function returngem(xn, yn, blockimg) {
blockimg[yn][xn] = 1;
this.attachMovie(String("_g_" + blockimg[yn][xn]), String((("G" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("G" + yn) + "_") + xn]._x = (xn * _root.BLOCKSIZEX) + OFFSETX;
this[(("G" + yn) + "_") + xn]._y = (yn * _root.BLOCKSIZEY) + OFFSETY;
}
var OFFSETX = -1;
var OFFSETY = -12;
var Status;
var Ecnt;
Symbol 613 MovieClip Frame 1
function clear() {
var _local2 = new Object();
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function refresh(blockimg) {
var _local2;
var _local1;
}
function setmask(yn, xn) {
}
var DELTA = 6;
Symbol 614 MovieClip Frame 1
function clear() {
var _local2 = this[each];
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function seteffect(yn, xn) {
this.attachMovie("_block_effect", String((("E" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("E" + yn) + "_") + xn]._x = xn * _root.BLOCKSIZEX;
this[(("E" + yn) + "_") + xn]._y = yn * _root.BLOCKSIZEY;
this[(("E" + yn) + "_") + xn].exn = xn;
this[(("E" + yn) + "_") + xn].eyn = yn;
}
Symbol 717 MovieClip Frame 7
_parent._parent.dig();
Symbol 717 MovieClip Frame 8
_parent._parent.gof();
Symbol 719 MovieClip Frame 5
_parent._parent.dig();
Symbol 719 MovieClip Frame 6
_parent._parent.gof();
Symbol 720 MovieClip Frame 29
stop();
_parent._parent.snowygone();
Symbol 723 MovieClip Frame 14
stop();
this._parent._parent._parent.snowydead();
Symbol 724 MovieClip Frame 5
stop();
Symbol 725 MovieClip Frame 5
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 2
stop();
Symbol 726 MovieClip Frame 3
stop();
Symbol 726 MovieClip Frame 4
stop();
Symbol 726 MovieClip Frame 5
stop();
Symbol 726 MovieClip Frame 6
stop();
Symbol 726 MovieClip Frame 7
stop();
Symbol 726 MovieClip Frame 8
stop();
Symbol 726 MovieClip Frame 9
stop();
Symbol 726 MovieClip Frame 10
stop();
Symbol 726 MovieClip Frame 11
stop();
Symbol 726 MovieClip Frame 12
stop();
Symbol 726 MovieClip Frame 13
stop();
Symbol 726 MovieClip Frame 14
stop();
Symbol 726 MovieClip Frame 15
stop();
Symbol 726 MovieClip Frame 16
stop();
Symbol 726 MovieClip Frame 17
stop();
Symbol 726 MovieClip Frame 18
stop();
Symbol 726 MovieClip Frame 19
stop();
Symbol 726 MovieClip Frame 20
stop();
Symbol 726 MovieClip Frame 21
stop();
Symbol 726 MovieClip Frame 22
stop();
Symbol 726 MovieClip Frame 23
stop();
Symbol 726 MovieClip Frame 24
stop();
Symbol 726 MovieClip Frame 25
stop();
Symbol 727 MovieClip Frame 1
function apstart() {
goflag = true;
Cnt = 0;
RCnt = 0;
this.onEnterFrame = ef_go;
}
function apstop() {
goflag = false;
this.onEnterFrame = undefined;
}
function ef_go() {
if (Key.isDown(16) || (_root.Pause)) {
return(undefined);
}
if (Cnt < TIMESTEP) {
Cnt++;
} else {
Cnt = 0;
dostep();
}
}
function dostep() {
if (RCnt >= Root.length) {
apstop();
return(undefined);
}
kl = false;
kr = false;
ku = false;
kd = false;
kz = false;
kx = false;
this[Root[RCnt]] = true;
if (Root[RCnt] == "kd") {
Cnt = Cnt + (TIMESTEP / 2);
}
RCnt++;
}
var TIMESTEP = 10;
var Root = ["kr", "kr", "kr", "kx", "nop", "kr", "kr", "kz", "kr", "kz", "kr", "kz", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "nop", "kr", "kr", "ku", "ku", "ku", "kz", "kl", "kr", "kz", "kl", "kl", "kl", "kr", "kr", "kr", "ku", "ku", "ku", "kl", "kl", "kl", "kl", "kl", "kl", "ku", "kz", "kd", "kz", "kl", "kl", "kl", "kl", "kr", "kr", "kz", "kl", "kl", "kx", "kr", "kx", "kl", "kx", "kr", "kr", "kz", "kl", "kl", "kl", "kl", "kr", "ku", "ku", "kl", "ku", "ku", "ku", "ku", "ku", "kr", "kr", "nop", "nop", "nop", "kr"];
var Cnt;
var RCnt;
var goflag;
var kl;
var kr;
var ku;
var kd;
var kz;
var kx;
var nop;
Symbol 728 MovieClip Frame 1
function init(sx, sy) {
MS_f = "nosnd";
message_f = false;
oldx = undefined;
oldy = undefined;
fall_f = false;
this._visible = false;
Status = "_RIGHT";
DigL_f = false;
DigR_f = false;
this._x = sx * _root.BLOCKSIZEX;
this._y = sy * _root.BLOCKSIZEY;
this.onEnterFrame = undefined;
_parent.onMouseDown = undefined;
_parent.onMouseUp = undefined;
}
function show() {
_root.hero_appear_Snd.start();
this._visible = true;
}
function start() {
if (_root.CurrentLevel == 1) {
autoplay.apstart();
}
_parent.onMouseDown = pressmouse;
_parent.onMouseUp = releasemouse;
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local4;
var _local7;
var _local8;
var _local6;
var _local5;
var _local9;
var _local11;
if (Key.isDown(16) || (_root.Pause)) {
checkstand();
return(undefined);
}
if (Key.isDown(27)) {
_root.igmenu.show();
return(undefined);
}
if (Key.isDown(112)) {
_root.ighelp.show();
return(undefined);
}
if (!autoplay.goflag) {
if (mouse_f) {
checkmouse();
}
if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
_local6 = Key.isDown(37);
_local5 = Key.isDown(39);
_local7 = Key.isDown(38);
_local8 = Key.isDown(40);
} else {
_local6 = left_key;
_local5 = right_key;
_local7 = up_key;
_local8 = down_key;
}
_local9 = Key.isDown(90);
_local11 = Key.isDown(88);
} else {
_local6 = autoplay.kl;
_local5 = autoplay.kr;
_local7 = autoplay.ku;
_local8 = autoplay.kd;
_local9 = autoplay.kz;
_local11 = autoplay.kx;
}
if ((Math.abs(this._x - _parent.monster0._x) < ((_root.BLOCKSIZEX / 3) * 2)) && (Math.abs(this._y - _parent.monster0._y) < (_root.BLOCKSIZEY / 2))) {
MMF = true;
} else {
MMF = false;
}
if ((_root.CheckMapL1[getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)][getxn(this._x)] == 1) || (MMF)) {
this.onEnterFrame = undefined;
_root.HeroDeadSnd.start();
if (Status == "_RIGHT") {
dir.gotoAndStop("DeadL");
} else {
dir.gotoAndStop("DeadR");
}
_root.MoveClimbSnd.stop();
_root.MoveGroundSnd.stop();
_root.MoveHBarSnd.stop();
return(undefined);
}
_local4 = _root.CheckGemsL1[getyn(this._y)][getxn(this._x)];
if ((_local4 != 0) && (_local4 != 9)) {
_root.gamedy.gems.removegem(getxn(this._x), getyn(this._y), _root.CheckGemsL1);
_root.gamedy.takegem(_local4);
}
if (!message_f) {
if (_root.BlockImgL1[getyn(this._y)][getxn(this._x)] == 32) {
message_f = true;
oldx = getxn(this._x);
oldy = getyn(this._y);
_root.HintOpenSnd.start();
_parent.emap[(("B" + getyn(this._y)) + "_") + getxn(this._x)].message.lshow();
}
} else if (((oldx != undefined) && (oldy != undefined)) && ((oldx != getxn(this._x)) || (oldy != getyn(this._y)))) {
message_f = false;
_root.HintCloseSnd.start();
_parent.emap[(("B" + oldy) + "_") + oldx].message.lhide();
}
if (_root.CheckMapL1[getyn(this._y)][getxn(this._x)] == 6) {
this.onEnterFrame = undefined;
_parent.monster0.onEnterFrame = undefined;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
dir.gotoAndStop("Exit");
_parent.map[(("B" + getyn(this._y)) + "_") + getxn(this._x)].play();
_root.MoveClimbSnd.stop();
_root.MoveGroundSnd.stop();
_root.MoveHBarSnd.stop();
return(undefined);
}
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) != 3) {
if ((checkmap(getxn(this._x), getyn(this._y - (_root.BLOCKSIZEY / 2))) != 5) || (Stick_f && (this._y != (getyn(this._y) * _root.BLOCKSIZEY)))) {
_local4 = checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2)));
if ((_local4 == 0) || (_local4 == 5)) {
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) + SYSTEP));
tmpm = _root.CheckMonsters[getyn(this._y + (_root.BLOCKSIZEY / 2)) + 1][getxn(this._x)];
if (tmpm == 0) {
if ((_local4 == 0) || (_local4 == 5)) {
if (!fall_f) {
_root.HeroFallSnd.start();
fall_f = true;
}
Stick_f = false;
this._y = this._y + SYSTEP;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
if (Status == "_RIGHT") {
dir.gotoAndStop("FlyRight");
} else {
dir.gotoAndStop("FlyLeft");
}
return(undefined);
}
this._y = getyn(this._y) * _root.BLOCKSIZEY;
_root.HeroFallSnd.stop();
fall_f = false;
if (checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2))) != 3) {
_root.HeroLandedSnd.start();
}
return(undefined);
}
}
} else if (!Stick_f) {
this._y = getyn(this._y) * _root.BLOCKSIZEY;
Stick_f = true;
return(undefined);
}
}
if (_local6 && (!_local5)) {
var _local10;
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
sndf = "hbar";
dir.gotoAndStop("StickgoLeft");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftLeft");
} else {
sndf = "ground";
dir.gotoAndStop("GoLeft");
}
Status = "_LEFT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
_local10 = SXSTEP / 2;
} else {
_local10 = SXSTEP;
}
_local4 = checkmap(getxn((this._x - (_root.BLOCKSIZEX / 2)) - _local10), getyn(this._y));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) {
if (MS_f != sndf) {
_root.MoveGroundSnd.stop();
_root.MoveHBarSnd.stop();
_root.MoveClimbSnd.stop();
if (sndf == "hbar") {
MS_f = "hbar";
_root.MoveHBarSnd.start(0, 100);
} else {
MS_f = "ground";
_root.MoveGroundSnd.start(0, 100);
}
}
this._x = this._x - _local10;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
} else {
this._x = getxn(this._x - (_root.BLOCKSIZEX / 2)) * _root.BLOCKSIZEX;
checkstand();
return(undefined);
}
}
if ((!_local6) && (_local5)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
sndf = "hbar";
dir.gotoAndStop("StickgoRight");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftRight");
} else {
sndf = "ground";
dir.gotoAndStop("GoRight");
}
Status = "_RIGHT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
var _local10 = SXSTEP / 2;
} else {
var _local10 = SXSTEP;
}
_local4 = checkmap(getxn((this._x + (_root.BLOCKSIZEX / 2)) + _local10), getyn(this._y));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) {
this._x = this._x + _local10;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
if (MS_f != sndf) {
_root.MoveGroundSnd.stop();
_root.MoveHBarSnd.stop();
_root.MoveClimbSnd.stop();
if (sndf == "hbar") {
MS_f = "hbar";
_root.MoveHBarSnd.start(0, 100);
} else {
MS_f = "ground";
_root.MoveGroundSnd.start(0, 100);
}
}
} else {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
checkstand();
return(undefined);
}
}
if (((!_local6) && (!_local5)) && (!(_local7 || (_local8)))) {
checkstand();
}
if (_local6 && (_local5)) {
checkstand();
return(undefined);
}
if ((((!_local8) && (_local7)) && (!_local6)) && (!_local5)) {
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8));
if ((_local4 != 0) && (_local4 != 5)) {
_local4 = checkmap(getxn(this._x), getyn((this._y - (_root.BLOCKSIZEY / 2)) - LUPSTEP));
if ((_local4 == 0) || (_local4 == 3)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)) == 3) {
dir.gotoAndStop("LiftUp");
}
if (MS_f != "climb") {
_root.MoveGroundSnd.stop();
_root.MoveHBarSnd.stop();
MS_f = "climb";
_root.MoveClimbSnd.start(0, 100);
}
this._y = this._y - LUPSTEP;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
// unexpected jump
}
this._y = getyn(this._y - (_root.BLOCKSIZEY / 2)) * _root.BLOCKSIZEY;
checkstand();
return(undefined);
}
checkstand();
return(undefined);
}
if (((_local8 && (!_local7)) && (!_local6)) && (!_local5)) {
if (Stick_f) {
tstep = SDOWNSTEP;
} else {
tstep = LDOWNSTEP;
}
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) + tstep));
tmpm = _root.CheckMonsters[getyn(this._y + (_root.BLOCKSIZEY / 2)) + 1][getxn(this._x)];
if ((((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) && (tmpm == 0)) {
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8)) == 3) {
dir.gotoAndStop("LiftDown");
}
if (MS_f != "climb") {
_root.MoveGroundSnd.stop();
_root.MoveHBarSnd.stop();
MS_f = "climb";
_root.MoveClimbSnd.start(0, 100);
}
this._y = this._y + tstep;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
} else {
this._y = getyn(this._y) * _root.BLOCKSIZEY;
checkstand();
return(undefined);
}
}
if (_local9 && (!_local11)) {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
stopf();
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("DigSLeft");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("DigLLeft");
} else {
dir.gotoAndStop("DigLeft");
}
if ((checkmap(getxn(this._x) - 1, getyn(this._y) + 1) == 1) && ((checkmap(getxn(this._x) - 1, getyn(this._y)) == 0) || (checkmap(getxn(this._x) - 1, getyn(this._y)) == 5))) {
_root.DigSnd.start();
DigL_f = true;
}
}
if ((!_local9) && (_local11)) {
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
stopf();
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("DigSRight");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("DigLRight");
} else {
dir.gotoAndStop("DigRight");
}
if ((checkmap(getxn(this._x) + 1, getyn(this._y) + 1) == 1) && ((checkmap(getxn(this._x) + 1, getyn(this._y)) == 0) || (checkmap(getxn(this._x) + 1, getyn(this._y)) == 5))) {
_root.DigSnd.start();
DigR_f = true;
}
}
}
function checkmap(numx, numy) {
var _local2;
if ((((numx < 0) || (numx > _root.BLOCKNUMX)) || (numy < 0)) || (numy > _root.BLOCKNUMY)) {
_local2 = 2;
} else {
_local2 = _root.CheckMapL1[numy][numx];
}
if ((_local2 == -1) || (_local2 == 6)) {
_local2 = 0;
}
return(_local2);
}
function getxn(curx) {
return(Math.round(curx / _root.BLOCKSIZEX));
}
function getyn(cury) {
return(Math.round(cury / _root.BLOCKSIZEY));
}
function stopf() {
this.onEnterFrame = undefined;
}
function gof() {
this.onEnterFrame = ef_start;
}
function dig() {
if (DigL_f) {
_parent.map.dig(getxn(this._x) - 1, getyn(this._y) + 1);
DigL_f = false;
}
if (DigR_f) {
_parent.map.dig(getxn(this._x) + 1, getyn(this._y) + 1);
DigR_f = false;
}
}
function checkstand() {
var _local3;
var _local4;
_local3 = "";
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7));
if (_local4 == 3) {
_local3 = "SLift";
} else if (_local4 == 5) {
_local3 = "Stick";
} else {
_local3 = "Stand";
}
if (Status == "_RIGHT") {
_local3 = _local3 + "Right";
}
if (Status == "_LEFT") {
_local3 = _local3 + "Left";
}
dir.gotoAndStop(_local3);
if (MS_f != "nosnd") {
MS_f = "nosnd";
_root.MoveClimbSnd.stop();
_root.MoveGroundSnd.stop();
_root.MoveHBarSnd.stop();
}
}
function snowygone() {
_parent.endlevel();
}
function snowydead() {
_parent.loselevel();
}
function checkmouse() {
var _local4;
var _local5;
var _local7 = 16;
var _local6 = 12;
var _local8 = 10;
_local4 = checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-8));
_local5 = checkmap(getxn(this._x), getyn(this._y + (_root.BLOCKSIZEY / 2)));
if (getyn(_parent._ymouse - (_root.BLOCKSIZEY / 2)) < getyn(this._y)) {
up_key = true;
} else {
up_key = false;
}
if (getyn(_parent._ymouse - (_root.BLOCKSIZEY / 2)) > getyn(this._y)) {
down_key = true;
} else {
down_key = false;
}
if ((up_key && (_local4 == 3)) || (down_key && (_local5 == 3))) {
right_key = false;
left_key = false;
return(undefined);
}
if (getxn(_parent._xmouse - (_root.BLOCKSIZEX / 2)) > getxn(this._x)) {
right_key = true;
} else {
right_key = false;
}
if (getxn(_parent._xmouse - (_root.BLOCKSIZEX / 2)) < getxn(this._x)) {
left_key = true;
} else {
left_key = false;
}
}
function pressmouse() {
mouse_f = true;
}
function releasemouse() {
mouse_f = false;
left_key = false;
right_key = false;
up_key = false;
down_key = false;
}
var SXSTEP = 6;
var SYSTEP = 11;
var LUPSTEP = 6;
var LDOWNSTEP = 8.25;
var SDOWNSTEP = 10;
var DUSTX = -10;
var DUSTY = 5;
var up_key;
var down_key;
var left_key;
var right_key;
var z_key;
var x_key;
var Status;
var DigL_f;
var DigR_f;
var MS_f;
var Stick_f = false;
var mouse_f = false;
var fall_f = false;
var message_f = false;
var oldx;
var oldy;
var hero_fall_Snd = new Sound(this);
hero_fall_Snd.attachSound("hero_fall");
Symbol 729 MovieClip Frame 1
function clear() {
Ecnt = 0;
Status = "_CLEAR";
var _local3;
var _local2;
for (_local3 in this) {
_local2 = this[_local3];
if (_local2 instanceof MovieClip) {
removeMovieClip(_local2);
}
}
}
function show(blockimg) {
var _local4;
var _local3;
Status = "_SHOW";
_local4 = 0;
while (_local4 < _root.BLOCKNUMY) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
if (blockimg[_local4][_local3] > 0) {
this.attachMovie(String("_b_" + blockimg[_local4][_local3]), String((("B" + _local4) + "_") + _local3), this.getNextHighestDepth());
this[(("B" + _local4) + "_") + _local3]._x = (_local3 * _root.BLOCKSIZEX) + OFFSETX;
this[(("B" + _local4) + "_") + _local3]._y = (_local4 * _root.BLOCKSIZEY) + OFFSETY;
}
_local3++;
}
_local4++;
}
}
var OFFSETX = -1;
var OFFSETY = -12;
var Status;
var Ecnt;
Symbol 735 MovieClip Frame 1
function start() {
Status = "_START";
this.onEnterFrame = ef_start;
}
function stop() {
Status = "_STOP";
this.onEnterFrame = undefined;
}
function ef_start() {
var _local3;
if (_root.Pause) {
return(undefined);
}
if (Key.isDown(16)) {
if (eye._alpha < 100) {
eye._alpha = eye._alpha + YASTEP;
}
} else if (eye._alpha > 0) {
eye._alpha = eye._alpha - YASTEP;
}
if (((_parent.snowy._x + _parent._x) > (sw / 2)) || (Key.isDown(16) && (Key.isDown(39)))) {
if (Key.isDown(16) && (Key.isDown(39))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.snowy._x + _parent._x) - (sw / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._x - _local3) < (((-_root.BLOCKSIZEX) * _root.BLOCKNUMX) + sw)) {
_local3 = (_parent._x + (_root.BLOCKSIZEX * _root.BLOCKNUMX)) - sw;
_parent._x = _parent._x - _local3;
eye._x = eye._x + _local3;
_parent.back._x = _parent.back._x + (_local3 * 0.8);
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._x = _parent._x - _local3;
eye._x = eye._x + _local3;
_parent.back._x = _parent.back._x + (_local3 * 0.8);
if (Key.isDown(16)) {
return(undefined);
}
}
}
if (((_parent.snowy._x + _parent._x) < (sw / 2)) || (Key.isDown(16) && (Key.isDown(37)))) {
if (Key.isDown(16) && (Key.isDown(37))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.snowy._x + _parent._x) - (sw / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._x + _local3) > 0) {
_local3 = -_parent._x;
_parent._x = _parent._x + _local3;
eye._x = eye._x - _local3;
_parent.back._x = _parent.back._x - (_local3 * 0.8);
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._x = _parent._x + _local3;
eye._x = eye._x - _local3;
_parent.back._x = _parent.back._x - (_local3 * 0.8);
if (Key.isDown(16)) {
return(undefined);
}
}
}
if (((_parent.snowy._y + _parent._y) > (sh / 2)) || (Key.isDown(16) && (Key.isDown(40)))) {
if (Key.isDown(16) && (Key.isDown(40))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.snowy._y + _parent._y) - (sh / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._y - _local3) < (((-_root.BLOCKSIZEY) * _root.BLOCKNUMY) + sh)) {
_local3 = (_parent._y + (_root.BLOCKSIZEY * _root.BLOCKNUMY)) - sh;
_parent._y = _parent._y - _local3;
eye._y = eye._y + _local3;
_parent.back._y = _parent.back._y + (_local3 * 0.6);
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._y = _parent._y - _local3;
eye._y = eye._y + _local3;
_parent.back._y = _parent.back._y + (_local3 * 0.6);
if (Key.isDown(16)) {
return(undefined);
}
}
}
if (((_parent.snowy._y + _parent._y) < (sh / 2)) || (Key.isDown(16) && (Key.isDown(38)))) {
if (Key.isDown(16) && (Key.isDown(38))) {
_local3 = CAMSPD;
} else if (!Key.isDown(16)) {
_local3 = Math.abs((_parent.snowy._y + _parent._y) - (sh / 2));
if (_local3 > 50) {
_local3 = 50;
}
_local3 = (_local3 * _local3) / 80;
}
if ((_parent._y + _local3) > 0) {
_local3 = -_parent._y;
_parent._y = _parent._y + _local3;
eye._y = eye._y - _local3;
_parent.back._y = _parent.back._y - (_local3 * 0.6);
if (Key.isDown(16)) {
return(undefined);
}
} else if (_local3 > 1) {
_parent._y = _parent._y + _local3;
eye._y = eye._y - _local3;
_parent.back._y = _parent.back._y - (_local3 * 0.6);
if (Key.isDown(16)) {
return(undefined);
}
}
}
}
var CAMSPD = 20.5;
var YASTEP = 18.5;
var Status = "_STOP";
var sw = Stage.width;
var sh = Stage.height;
eye._alpha = 0;
Symbol 736 MovieClip Frame 1
function init(level) {
var _local3;
var _local4;
_root.win_f = false;
_root.BLOCKNUMX = _root["LD_blocknumxL" + level];
_root.BLOCKNUMY = _root["LD_blocknumyL" + level];
_local3 = 0;
while (_local3 < _root.BLOCKNUMY) {
_local4 = 0;
while (_local4 < _root.BLOCKNUMX) {
_root.BlockImgL1[_local3][_local4] = _root["LD_BlockImgL" + level][_local3][_local4];
_root.EMapL1[_local3][_local4] = _root["LD_EMapL" + level][_local3][_local4];
_root.BackImgL1[_local3][_local4] = _root["LD_BackImgL" + level][_local3][_local4];
_root.WBlockImgL1[_local3][_local4] = _root["LD_WBlockImgL" + level][_local3][_local4];
_root.CheckMapL1[_local3][_local4] = _root["LD_CheckMapL" + level][_local3][_local4];
_root.WCheckMapL1[_local3][_local4] = _root["LD_WCheckMapL" + level][_local3][_local4];
_root.CheckGemsL1[_local3][_local4] = _root["LD_CheckGemsL" + level][_local3][_local4];
_root.CheckBonusesL1[_local3][_local4] = _root["LD_CheckBonusesL" + level][_local3][_local4];
_root.CheckMonsters[_local3][_local4] = 0;
_root.CheckBricks[_local3][_local4] = 0;
_local4++;
}
_local3++;
}
_root.SnowyPosL1[0] = _root["LD_SnowyPosL" + level][0];
_root.SnowyPosL1[1] = _root["LD_SnowyPosL" + level][1];
_root.GemsL1 = _root["LD_GemsL" + level];
_root.MonstersL1 = _root["LD_MonstersL" + level];
_local3 = 0;
while (_local3 < _root.MonstersL1) {
_root.MonstersPosL1[_local3][0] = _root["LD_MonstersPosL" + level][_local3][0];
_root.MonstersPosL1[_local3][1] = _root["LD_MonstersPosL" + level][_local3][1];
_root.MonstersInitPosL1[_local3][0] = _root["LD_MonstersInitPosL" + level][_local3][0];
_root.MonstersInitPosL1[_local3][1] = _root["LD_MonstersInitPosL" + level][_local3][1];
_local3++;
}
this.monster0.num = 0;
_root.Gems = _root.GemsL1;
Gems = _root.GemsL1;
Monsters = 0;
_root.CurrentLevel = level;
map.clear();
emap.clear();
dig.clear();
gems.clear();
snowy.init(_root.SnowyPosL1[0], _root.SnowyPosL1[1]);
_root.info.gold.text = _root.Gems;
OldScore = _root.CurrentScore;
if (level == 1) {
_root.gpdemo._visible = true;
} else {
_root.gpdemo._visible = false;
}
if (level == 2) {
_root.ighelp.show();
}
}
function start() {
map.show(_root.BlockImgL1);
emap.show(_root.EMapL1);
gems.show(_root.CheckGemsL1);
snowy.show();
snowy.start();
i = 0;
while (i < _root.MonstersL1) {
this["monster" + i].init(_root.MonstersInitPosL1[i][0], _root.MonstersInitPosL1[i][1]);
this["monster" + i].show();
this["monster" + i].start();
i++;
}
_root.shadow.hide();
camera.start();
}
function takegem(gem) {
var _local2;
_root.Gems--;
_root.info.gold.text = _root.Gems;
_root.CurrentScore = _root.CurrentScore + _root.SC_GEM[gem - 1];
if (_root.Gems == 0) {
_root.AllGoldSnd.start();
winlevel();
} else {
_local2 = Math.ceil(Math.random() * 2);
_root[("Gold" + _local2) + "Snd"].start();
}
}
function winlevel() {
_root.exitu.play();
i = 0;
while (i < _root.BLOCKNUMY) {
j = 0;
while (j < _root.BLOCKNUMX) {
if (_root.CheckMapL1[i][j] != -1) {
_root.CheckMapL1[i][j] = _root.WCheckMapL1[i][j];
}
j++;
}
i++;
}
map.show(_root.WBlockImgL1);
_root.win_f = true;
}
function endlevel() {
if (_root.CurrentLevel > _root.inf.level) {
_root.inf.level = _root.CurrentLevel;
_root.so.data.content = _root.inf;
}
if (_root.CurrentLevel == 1) {
_root.CurrentScore = 0;
_root.GoSL = true;
_root.shadow.show(_root, "Menu");
} else {
_root.CurrentScore = _root.CurrentScore + (Monsters * 100);
_root.gmenu.lc.show();
}
}
function nextlevel() {
if (_root.CurrentLevel == _root.GD_LEVELS) {
_root.GoSL = true;
_root.shadow.show(_root, "Menu");
} else {
_root.CurrentLevel++;
_root.shadow.show(_root, "Game");
}
}
function loselevel() {
if (_root.Lives == 0) {
_root.gmenu.go.show();
} else {
_root.Lives--;
_root.CurrentScore = OldScore;
this.onEnterFrame = undefined;
_root.shadow.show(_root, "Game");
}
}
var OldScore;
var Gems;
var Monsters;
Symbol 746 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 1
this.useHandCursor = false;
this.onPress = function () {
};
Symbol 775 MovieClip Frame 1
function init() {
gotoAndStop (1);
this._visible = false;
}
function show() {
this.createEmptyMovieClip("esc", this.getNextHighestDepth());
_root.ButtonClickSnd.start();
_root.Pause = true;
this._visible = true;
gotoAndPlay ("Show");
}
function hide() {
removeMovieClip(esc);
_root.Pause = false;
this._visible = false;
}
Symbol 775 MovieClip Frame 12
stop();
var flag = false;
esc.onEnterFrame = function () {
if ((Key.isDown(27) || (Key.isDown(13))) && (!flag)) {
flag = true;
_root.ButtonClickSnd.start();
this._parent.play();
}
};
okbtn.onPress = function () {
_root.ButtonClickSnd.start();
play();
};
Symbol 775 MovieClip Frame 22
hide();
Symbol 781 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP2) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP2;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 20;
var ALPHASTEP2 = 100;
light._alpha = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 784 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP2) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP2;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 20;
var ALPHASTEP2 = 100;
light._alpha = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 787 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP2) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP2;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 0;
var ALPHAMAX = 100;
var ALPHASTEP = 20;
var ALPHASTEP2 = 100;
light._alpha = ALPHAMIN;
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 788 MovieClip Frame 1
function init() {
gotoAndStop (1);
this._visible = false;
}
function show() {
_root.ButtonClickSnd.start();
this.createEmptyMovieClip("esc", this.getNextHighestDepth());
_root.Pause = true;
this._visible = true;
gotoAndPlay ("Show");
}
function hide() {
removeMovieClip(esc);
_root.Pause = false;
this._visible = false;
}
Symbol 788 MovieClip Frame 12
stop();
var flag = false;
esc.onEnterFrame = function () {
if (Key.isDown(27) && (!flag)) {
flag = true;
_root.ButtonClickSnd.start();
this._parent.play();
}
};
igcontinue.onPress = function () {
this.lhide();
_root.ButtonClickSnd.start();
this._parent.onEnterFrame = undefined;
this._parent.play();
};
igrestart.onPress = function () {
this.lhide();
_root.ButtonClickSnd.start();
_root.CurrentScore = _root.gamedy.OldScore;
_root.shadow.show(_root, "Game");
};
igquit.onPress = function () {
this.lhide();
_root.ButtonClickSnd.start();
_root.GoSL = true;
_root.shadow.show(_root, "Menu");
};
Symbol 788 MovieClip Frame 21
hide();
Symbol 792 MovieClip Frame 1
if (_root.alawar_f == undefined) {
this._y = 36;
} else {
this._y = 1;
}
Symbol 796 MovieClip Frame 1
function init() {
Cnt = 0;
this._visible = false;
}
function show() {
_root.shadow.show();
this.onEnterFrame = ef_show;
}
function ef_show() {
if (_root.shadow.Status == "_READY") {
this._visible = true;
this.onEnterFrame = ef_show2;
_root.shadow.hide();
}
}
function ef_show2() {
if (Cnt < TIME) {
Cnt++;
} else {
Cnt = 0;
this.onEnterFrame = undefined;
_root.GoSL = true;
_root.shadow.show(_root, "Menu");
}
}
var TIME = 60;
var Cnt;
Symbol 809 MovieClip Frame 1
function init() {
this.gotoAndStop(1);
Cnt = 0;
this._visible = false;
}
function show() {
if (_root.CurrentLevel == 1) {
gotoAndStop ("GPDemo");
}
level.text = _root.CurrentLevel;
lives.text = _root.Lives;
score.text = _root.CurrentScore;
this.play();
_root.StartLevelSnd.start();
this._visible = true;
_root.shadow.hide();
this.onEnterFrame = ef_show;
}
function ef_show() {
if (Cnt < TIME) {
Cnt++;
} else {
Cnt = 0;
this.onEnterFrame = ef_shadow;
_root.shadow.show();
}
}
function ef_shadow() {
if (_root.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
init();
_root.gamedy.init(_root.CurrentLevel);
_root.gamedy.start();
}
}
stop();
var TIME = 60;
var Cnt;
Symbol 809 MovieClip Frame 20
stop();
level.text = _root.CurrentLevel;
lives.text = _root.Lives;
score.text = _root.CurrentScore;
Symbol 809 MovieClip Frame 40
stop();
Symbol 819 MovieClip Frame 30
stop();
Symbol 840 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
if (_root.swcancel_f) {
light._alpha = ALPHAMAX;
lhide();
} else {
light._alpha = ALPHAMIN;
}
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 841 MovieClip Frame 1
function init() {
this._visible = false;
}
function show() {
_root.levelcompleted_Snd.start();
_root.shadow.show();
this.onEnterFrame = ef_show1;
}
function ef_show1() {
if (_root.shadow.Status == "_READY") {
this._visible = true;
monster._visible = false;
scm._visible = false;
okbtn._visible = false;
line._y = 166;
sct._y = 175;
Cnt1 = 0;
Cnt2 = 0;
level.text = _root.CurrentLevel;
sct.text = "SCORE: 0";
SctTmp = 0;
_root.shadow.hide();
this.onEnterFrame = ef_show;
}
}
function ef_show() {
if (Cnt2 < _root.gamedy.Gems) {
if (Cnt1 < C1INTERVAL) {
Cnt1++;
} else {
Cnt1 = 0;
Cnt2++;
_root.CountScoreSnd.start();
scg.text = (Cnt2 + " x 100 = ") + (Cnt2 * 100);
SctTmp = SctTmp + 100;
sct.text = "SCORE: " + SctTmp;
result.text = (((("SCORE: " + _root.gamedy.OldScore) + " + ") + SctTmp) + " = ") + (_root.gamedy.OldScore + SctTmp);
}
} else {
Cnt1 = 0;
Cnt2 = 0;
this.onEnterFrame = ef_show2;
monster._visible = true;
scm._visible = true;
line._y = 216;
sct._y = 225;
scm.text = "0 x 100 = 0";
}
}
function ef_show2() {
if (Cnt2 < _root.gamedy.Monsters) {
if (Cnt1 < C1INTERVAL) {
Cnt1++;
} else {
Cnt1 = 0;
Cnt2++;
_root.CountScoreSnd.start();
scm.text = (Cnt2 + " x 100 = ") + (Cnt2 * 100);
SctTmp = SctTmp + 100;
sct.text = "SCORE: " + SctTmp;
result.text = (((("SCORE: " + _root.gamedy.OldScore) + " + ") + SctTmp) + " = ") + (_root.gamedy.OldScore + SctTmp);
}
} else {
okbtn._visible = true;
this.onEnterFrame = undefined;
}
}
var C1INTERVAL = 2;
var Cnt1;
var Cnt2;
var SctTmp;
okbtn.onPress = function () {
_root.ButtonClickSnd.start();
_root.gamedy.nextlevel();
};
Symbol 842 MovieClip Frame 1
function init() {
cover._visible = false;
cover.useHandCursor = false;
gs.init();
go.init();
lc.init();
}
Symbol 857 MovieClip Frame 1
function lshow() {
this.onEnterFrame = ef_lshow;
}
function ef_lshow() {
if ((light._alpha + ALPHASTEP) < ALPHAMAX) {
light._alpha = light._alpha + ALPHASTEP;
} else {
light._alpha = ALPHAMAX;
this.onEnterFrame = undefined;
}
}
function lhide() {
this.onEnterFrame = ef_lhide;
}
function ef_lhide() {
if ((light._alpha - ALPHASTEP) > ALPHAMIN) {
light._alpha = light._alpha - ALPHASTEP;
} else {
light._alpha = ALPHAMIN;
this.onEnterFrame = undefined;
}
}
var ALPHAMIN = 50;
var ALPHAMAX = 100;
var ALPHASTEP = 15;
if (_root.swcancel_f) {
light._alpha = ALPHAMAX;
lhide();
} else {
light._alpha = ALPHAMIN;
}
this.onRollOver = function () {
lshow();
};
this.onRollOut = function () {
lhide();
};
Symbol 865 MovieClip Frame 1
back.onPress = function () {
_root.ButtonClickSnd.start();
_root.shadow.show(_root, "Menu");
};
dload.onPress = function () {
_root.ButtonClickSnd.start();
_root.GotoDownload();
};