Frame 1
var MAPW = 640;
var BLOCKSIZEX = 32;
var BLOCKSIZEY = 32;
var BLOCKNUMX = 20;
var BLOCKNUMY = 14;
var GD_LEVELS = 6;
var GD_LIVES = 5;
var SC_GEM = [120, 150, 200, 230, 250, 270];
var SC_BONUS = [0, 200, 250, 300, 400, 300];
var LD_IGHELP = [1, 0, 2, 0, 3, 0, 0];
var CLR_BONUS = [16676984, 16737956, 15794022, 16750899, 16645241, 12712810];
var SnowyPosL1 = new Array(2);
var GemsL1;
var BlockImgL1 = 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 i = 0;
while (i < BLOCKNUMY) {
BlockImgL1[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);
i++;
}
var win_f;
var LD_SnowyPosL6 = [1, 2];
var LD_BlockImgL6 = [[45, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 45], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [47, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 40, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 44], [47, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 37, 50, 42, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 42, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 42, 0, 0, 44], [46, 50, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 25, 0, 0, 44], [46, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [47, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47]];
var LD_CheckMapL6 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 0, 0, 2], [2, 0, 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, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 45], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [47, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 40, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 44], [46, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 44], [47, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 37, 50, 42, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 42, 0, 0, 44], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 42, 0, 0, 44], [46, 50, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 25, 0, 0, 44], [46, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [46, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44], [47, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47]];
var LD_WCheckMapL6 = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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50, 0, 0, 0, 0, 50, 19, 26, 21, 48, 0, 0, 0], [0, 0, 0, 49, 0, 0, 0, 48, 0, 0, 0, 0, 48, 0, 0, 0, 49, 0, 0, 0], [0, 50, 19, 41, 26, 26, 21, 48, 0, 0, 0, 0, 48, 19, 26, 26, 41, 21, 50, 0], [0, 48, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 50, 39, 30, 30, 30, 30, 40, 50, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 48, 13, 32, 28, 28, 32, 15, 48, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 48, 29, 31, 0, 0, 29, 31, 48, 0, 0, 0, 0, 48, 0], [0, 49, 0, 0, 0, 0, 49, 29, 31, 58, 58, 29, 31, 49, 0, 0, 0, 0, 49, 0], [45, 45, 14, 14, 30, 14, 45, 32, 32, 14, 30, 32, 32, 45, 30, 14, 14, 14, 45, 45]];
var LD_CheckMapL5 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 3, 5, 5, 5, 0, 0, 0, 0, 0, 0, 5, 5, 5, 3, 0, 0, 0], [0, 0, 0, 3, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 3, 0, 0, 0], [0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0], [0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0], [0, 0, 0, 3, 1, 1, 1, 3, 0, 0, 0, 0, 3, 1, 1, 1, 3, 0, 0, 0], [0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0], [0, 3, 1, 2, 1, 1, 1, 3, 0, 0, 0, 0, 3, 1, 1, 1, 2, 1, 3, 0], [0, 3, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var LD_WBlockImgL5 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 50, 53, 52, 54, 0, 0, 0, 0, 0, 0, 53, 52, 54, 50, 0, 0, 0], [0, 0, 0, 48, 0, 0, 0, 23, 26, 26, 26, 26, 24, 0, 0, 0, 48, 0, 0, 0], [0, 0, 0, 48, 0, 0, 0, 18, 0, 0, 0, 0, 18, 0, 0, 0, 48, 0, 0, 0], [0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0], [0, 0, 0, 48, 19, 26, 21, 50, 0, 0, 0, 0, 50, 19, 26, 21, 48, 0, 0, 0], [0, 0, 0, 49, 0, 0, 0, 48, 0, 0, 0, 0, 48, 0, 0, 0, 49, 0, 0, 0], [0, 50, 19, 41, 21, 21, 26, 48, 0, 0, 0, 0, 48, 19, 26, 26, 41, 21, 50, 0], [0, 48, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 50, 39, 30, 30, 30, 30, 40, 50, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 48, 13, 32, 28, 28, 32, 15, 48, 0, 0, 0, 0, 48, 0], [0, 48, 0, 0, 0, 0, 48, 29, 31, 56, 56, 29, 31, 48, 0, 0, 0, 0, 48, 0], [0, 49, 0, 0, 0, 0, 49, 29, 31, 58, 58, 29, 31, 49, 0, 0, 0, 0, 49, 0], [45, 45, 14, 14, 30, 14, 45, 32, 32, 14, 30, 32, 32, 45, 30, 14, 14, 14, 45, 45]];
var LD_WCheckMapL5 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 3, 5, 5, 5, 0, 0, 0, 0, 0, 0, 5, 5, 5, 3, 0, 0, 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0, 0, 50, 19, 26, 21, 50, 0, 0, 0, 0, 0], [47, 46, 0, 0, 0, 0, 0, 42, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [47, 47, 45, 14, 14, 14, 45, 46, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [47, 43, 43, 43, 28, 43, 43, 37, 0, 0, 48, 19, 26, 21, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 19, 26, 21, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 49, 0, 0, 0, 0, 0], [47, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45]];
var LD_CheckMapL4 = [[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], [2, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 2, 0, 0, 0, 0, 0, 2, 0, 0, 3, 1, 1, 1, 3, 0, 0, 0, 0, 0], [2, 2, 0, 0, 0, 0, 0, 2, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0], [2, 2, 2, 1, 1, 1, 2, 2, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 0], [2, 2, 2, 2, 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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, 0, 0]];
var LD_WBlockImgL4 = [[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], [45, 40, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [47, 46, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [47, 46, 0, 0, 0, 0, 0, 42, 0, 0, 50, 19, 26, 21, 50, 0, 0, 0, 0, 0], [47, 46, 0, 0, 0, 0, 0, 42, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [47, 47, 45, 14, 14, 14, 45, 46, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [47, 43, 43, 43, 28, 43, 43, 37, 0, 0, 48, 19, 26, 21, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 19, 26, 21, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 48, 0, 0, 0, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 49, 0, 0, 56, 0, 0], [47, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45]];
var LD_WCheckMapL4 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [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50, 3, 26, 26, 8, 51, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 49, 0, 0, 0, 48, 0, 0, 0, 22, 26, 26, 21, 0, 0, 0], [0, 0, 0, 50, 19, 26, 26, 26, 21, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 49, 0, 0, 0, 0, 0, 48, 0, 0, 19, 26, 21, 50, 0, 0, 0, 0], [0, 0, 19, 21, 0, 50, 19, 26, 21, 48, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0], [0, 0, 0, 0, 0, 49, 0, 0, 0, 49, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0], [0, 0, 50, 19, 26, 21, 0, 0, 0, 19, 26, 26, 21, 0, 0, 48, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0], [0, 3, 26, 26, 26, 26, 26, 26, 21, 50, 0, 0, 0, 0, 0, 19, 26, 21, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [30, 30, 30, 30, 30, 30, 30, 30, 30, 45, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]];
var LD_CheckMapL3 = [[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, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 3, 1, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 3, 0, 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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, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var LD_WBlockImgL3 = [[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, 56, 0, 0, 0], [0, 0, 19, 26, 21, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 0, 0, 0], [0, 0, 0, 0, 0, 48, 0, 0, 0, 50, 3, 26, 26, 8, 51, 0, 49, 0, 0, 0], [0, 0, 0, 0, 0, 49, 0, 0, 0, 48, 0, 0, 0, 22, 26, 26, 21, 0, 0, 0], [0, 0, 0, 50, 19, 26, 26, 26, 21, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 49, 0, 0, 0, 0, 0, 48, 0, 0, 19, 26, 21, 50, 0, 0, 0, 0], [0, 0, 19, 21, 0, 50, 19, 26, 21, 48, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0], [0, 0, 0, 0, 0, 49, 0, 0, 0, 49, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0], [0, 0, 50, 19, 26, 21, 0, 0, 0, 19, 26, 26, 21, 0, 0, 48, 0, 0, 0, 0], [0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0], [0, 3, 26, 26, 26, 26, 26, 26, 21, 50, 0, 0, 0, 0, 0, 19, 26, 21, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [30, 30, 30, 30, 30, 30, 30, 30, 30, 45, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]];
var LD_WCheckMapL3 = [[0, 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0, 0, 0, 0, 0, 0, 44, 47, 47, 47], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 47, 47, 47], [47, 45, 30, 30, 30, 30, 30, 30, 30, 30, 30, 40, 58, 39, 40, 0, 38, 43, 43, 47], [47, 43, 47, 43, 47, 43, 47, 43, 47, 43, 47, 43, 47, 43, 46, 0, 0, 0, 0, 44], [37, 0, 33, 0, 33, 0, 33, 0, 33, 0, 33, 0, 33, 0, 42, 0, 0, 0, 0, 44], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 44], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 44], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 41, 41, 37, 50, 44], [0, 0, 0, 0, 0, 23, 26, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 44], [0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 44], [0, 0, 57, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 44], [30, 14, 30, 14, 45, 45, 14, 30, 45, 30, 14, 30, 14, 14, 30, 14, 45, 45, 45, 47]];
var LD_CheckMapL2 = [[2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 0, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 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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], [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]];
var LD_WBlockImgL2 = [[40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 45, 45, 45], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 32, 32, 47], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 47, 47, 47], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 47, 47, 47], [47, 45, 30, 30, 30, 30, 30, 30, 30, 30, 30, 40, 58, 39, 40, 0, 38, 43, 43, 47], [47, 43, 47, 43, 47, 43, 47, 43, 47, 43, 47, 43, 47, 43, 46, 0, 0, 0, 0, 44], [37, 0, 33, 0, 33, 0, 33, 0, 33, 0, 33, 0, 33, 0, 42, 0, 0, 0, 0, 44], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 44], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 44], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 41, 41, 37, 50, 44], [0, 0, 0, 0, 50, 23, 26, 21, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 44], [0, 0, 0, 0, 48, 42, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 44], [0, 0, 57, 0, 49, 42, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 44], [30, 14, 30, 14, 45, 45, 14, 30,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0, 0, 0, 0, 0, 0, 36, 0, 0], [90, 53, 52, 52, 52, 52, 54, 0, 39, 41, 41, 41, 41, 37, 50, 35, 41, 46, 0, 0], [0, 0, 0, 0, 0, 0, 0, 39, 69, 0, 0, 0, 0, 0, 48, 0, 0, 42, 0, 0], [0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 49, 0, 0, 42, 0, 0], [0, 0, 35, 41, 41, 41, 41, 43, 41, 41, 41, 41, 41, 41, 41, 41, 41, 46, 0, 0], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0], [43, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 30, 41, 26, 46, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 26, 41, 69, 0, 0], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39], [31, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 32]];
var LD_CheckMapL1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0], [2, 5, 5, 5, 5, 5, 5, 0, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 3, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 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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, 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]];
var LD_WBlockImgL1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0], [90, 53, 52, 52, 52, 52, 54, 0, 39, 41, 41, 41, 41, 37, 50, 35, 41, 46, 0, 0], [0, 0, 0, 0, 0, 0, 0, 39, 69, 0, 0, 0, 0, 0, 48, 0, 0, 42, 0, 0], [0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 49, 0, 0, 42, 0, 0], [0, 0, 35, 41, 41, 41, 41, 43, 41, 41, 41, 41, 41, 41, 41, 41, 41, 46, 0, 0], [40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0], [46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0], [43, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 30, 41, 26, 46, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 42, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 26, 41, 69, 0, 0], [40, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39], [31, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 32]];
var LD_WCheckMapL1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0], [2, 5, 5, 5, 5, 5, 5, 0, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 3, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 3, 0, 0, 2, 0, 0], [0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 2, 2, 0, 0], [2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]];
var global_sound = new Sound();
var MABSnd = new Sound();
MABSnd.attachSound("003_activatebutton");
var MCBSnd = new Sound();
MCBSnd.attachSound("005_clickbutton");
var MSSSnd = new Sound();
MSSSnd.attachSound("007_switchscreen1");
var MESnd = new Sound();
MESnd.attachSound("006_error");
var gameover_Snd = new Sound();
gameover_Snd.attachSound("gameover");
var getgem1_Snd = new Sound();
getgem1_Snd.attachSound("getgem1");
var getgem2_Snd = new Sound();
getgem2_Snd.attachSound("getgem2");
var getgem3_Snd = new Sound();
getgem3_Snd.attachSound("getgem3");
var getgem4_Snd = new Sound();
getgem4_Snd.attachSound("getgem4");
var getlifebonus_Snd = new Sound();
getlifebonus_Snd.attachSound("getlifebonus");
var getscorebonus1_Snd = new Sound();
getscorebonus1_Snd.attachSound("getscorebonus1");
var getscorebonus2_Snd = new Sound();
getscorebonus2_Snd.attachSound("getscorebonus2");
var getscorebonus3_Snd = new Sound();
getscorebonus3_Snd.attachSound("getscorebonus3");
var getscorebonus4_Snd = new Sound();
getscorebonus4_Snd.attachSound("getscorebonus4");
var hero_appear_Snd = new Sound();
hero_appear_Snd.attachSound("hero_appear");
var hero_death2_Snd = new Sound();
hero_death2_Snd.attachSound("hero_death2");
var hero_dig_Snd = new Sound();
hero_dig_Snd.attachSound("hero_dig");
var hero_exit_Snd = new Sound();
hero_exit_Snd.attachSound("hero_exit");
var hero_landing_Snd = new Sound();
hero_landing_Snd.attachSound("hero_landing");
var hints_appear_Snd = new Sound();
hints_appear_Snd.attachSound("hints_appear");
var lastgem_Snd = new Sound();
lastgem_Snd.attachSound("lastgem");
var levelcompleted_Snd = new Sound();
levelcompleted_Snd.attachSound("levelcompleted");
var CurrentScore;
var CurrentLevel;
var Lives;
var Gems;
GotoDownload = function () {
if (_root.link != undefined) {
getURL (link, "_blank");
} else {
getURL ("http://www.alawar.com/download/SnowyTreasureHunter3.exe", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + dload_f) + "()";
getURL (cstr);
}
};
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.scaleMode = "noScale";
Stage.showMenu = false;
var so = SharedObject.getLocal("temp");
var inf = new Object();
inf.flag = "inf";
inf.level = 0;
if (so.data.content.flag == "inf") {
}
Frame 3
stop();
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;
}
}
Frame 9
var cnt = 0;
_test.onPress = function () {
if (cnt == 0) {
cnt++;
} else if (cnt == 1) {
cnt = 0;
}
};
stop();
Lives = GD_LIVES;
gamedy.init(CurrentLevel);
gamedy.start();
Frame 10
stop();
Frame 15
stop();
Symbol 26 MovieClip [eff_foamww] Frame 1
var sy;
var sz;
Symbol 28 MovieClip [eff_foamw] Frame 1
var sy;
var sz;
Symbol 33 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 41 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 50 MovieClip [_star_] Frame 21
this.removeMovieClip();
Symbol 441 MovieClip [_g_9] Frame 1
function getCnt(mm, mt) {
return(mm + Math.floor(Math.random() * (mt - mm)));
}
function ef() {
if (Cnt < RndCnt) {
Cnt++;
newStar();
} else {
Cnt = getCnt(MINTIME, MAXTIME);
}
}
function newStar() {
this.attachMovie("_star_effect", "star_" + StarID, this.getNextHighestDepth());
this["star_" + StarID]._xscale = 50 + (50 * Math.random());
this["star_" + StarID]._yscale = this["star_" + StarID]._xscale;
this["star_" + StarID]._x = 11 + Math.floor(Math.random() * 32);
this["star_" + StarID]._y = 42 + Math.floor(Math.random() * 32);
this["star_" + StarID].dx = MAXDX - ((2 * MAXDX) * Math.random());
this["star_" + StarID].dy = MAXDX - ((2 * MAXDX) * Math.random());
var _local2 = MINTINT + Math.floor(Math.random() * (MAXTINT - MINTINT));
this["star_" + StarID].cnt = _local2;
this["star_" + StarID].tint = _local2;
this["star_" + StarID].astep = (100 / _local2) * 2;
this["star_" + StarID]._alpha = 0;
this["star_" + StarID].onEnterFrame = starMove;
StarID++;
}
function starMove() {
if (this.cnt > 0) {
if (this.cnt > (this.tint / 2)) {
this._alpha = this._alpha + this.astep;
} else {
this._alpha = this._alpha - this.astep;
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
} else {
this.onEnterFrame = undefined;
this.removeMovieClip();
}
this.cnt--;
}
stop();
var MAXTIME = 20;
var MINTIME = 10;
var MAXDX = 1;
var MAXTINT = 12;
var MINTINT = 8;
var Cnt;
var StarID;
var RndCnt;
var as;
StarID = 0;
Cnt = 0;
RndCnt = getCnt(MINTIME, MAXTIME);
this.onEnterFrame = ef;
Symbol 441 MovieClip [_g_9] Frame 50
stop();
removeMovieClip(this);
Symbol 509 MovieClip Frame 1
this.gotoAndPlay(Math.floor(Math.random() * 32) + 1);
Symbol 509 MovieClip Frame 33
gotoAndPlay (2);
Symbol 575 MovieClip Frame 32
if (_root.key_flag) {
_parent.gotoAndStop(2);
}
Symbol 704 MovieClip Frame 64
gotoAndPlay (33);
Symbol 705 MovieClip [_b_57] Frame 1
stop();
Symbol 705 MovieClip [_b_57] Frame 2
stop();
Symbol 830 MovieClip Frame 64
gotoAndPlay (33);
Symbol 993 MovieClip Frame 1
this.gotoAndPlay(Math.floor(Math.random() * 32) + 1);
Symbol 993 MovieClip Frame 33
gotoAndPlay (2);
Symbol 1462 MovieClip [_dust_effect] Frame 25
this.removeMovieClip();
Symbol 1463 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 + (100 / AL1);
}
if (Cnt >= AL2) {
this["star_" + i]._alpha = this["star_" + i]._alpha - (100 / (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 = 16;
var DISTANCE = 30;
var DELTA = 7;
var ADELTA = 0.7;
var DSTEPS = 12;
var ASPEED = 3;
var AL1 = 6;
var AL2 = 7;
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 1464 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;
var _local3 = 0;
while (_local3 < LLEN) {
if (this[("f_" + (LLEN * Cnt)) + _local3] == undefined) {
this.attachMovie("eff_foamww", String(("f_" + (LLEN * Cnt)) + _local3), this.getNextHighestDepth());
}
this[String(("f_" + (LLEN * Cnt)) + _local3)].onEnterFrame = ef_foam;
_local3++;
}
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;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
this.onEnterFrame = undefined;
}
}
function ef_show() {
Cnt = Cnt - STEP;
var _local2 = 0;
while (_local2 < LLEN) {
this.attachMovie("eff_foamww", String(("f_" + (LLEN * Cnt)) + _local2), this.getNextHighestDepth());
this[String(("f_" + (LLEN * Cnt)) + _local2)].onEnterFrame = ef_foam;
_local2++;
}
if (Cnt < 0) {
for (each in this) {
removeMovieClip(each);
}
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
function ef_foam() {
if ((this._xscale - this.sz) >= 0) {
this._xscale = this._xscale - this.sz;
this._yscale = this._xscale;
this._y = this._y - this.sy;
} else {
removeMovieClip(this);
}
}
var STEP = 4;
var LLEN = 5;
var Cnt;
hide();
Symbol 1465 MovieClip [_block_effect] Frame 1
function hide() {
_parent[(("E2" + eyn) + "_") + exn].hide();
Cnt = 0;
this.onEnterFrame = ef_hide;
}
function show() {
_parent[(("E2" + eyn) + "_") + exn].show();
Cnt = 32;
if (_root.CheckMapL1[eyn + 1][exn] == -1) {
_root.gamedy.dig[(("D" + (eyn + 1)) + "_") + exn].su = true;
_root.gamedy.dig[(("D" + (eyn + 1)) + "_") + exn].refresh();
}
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.dig[(("DDM" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height + STEP;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height + STEP;
var _local4 = 0;
while (_local4 < LLEN) {
if (this[("f_" + (LLEN * Cnt)) + _local4] == undefined) {
this.attachMovie("eff_foamb", String(("f_" + (LLEN * Cnt)) + _local4), this.getNextHighestDepth());
}
this[String(("f_" + (LLEN * Cnt)) + _local4)]._y = Cnt - 2;
this[String(("f_" + (LLEN * Cnt)) + _local4)]._x = Math.floor(Math.random() * _root.BLOCKSIZEX);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = 50 + Math.floor(Math.random() * 50);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
this[String(("f_" + (LLEN * Cnt)) + _local4)].onEnterFrame = ef_foam;
this[String(("f_" + (LLEN * Cnt)) + _local4)].sy = 0.5 + Math.floor(Math.random() * 3);
this[String(("f_" + (LLEN * Cnt)) + _local4)].sz = 6 + Math.floor((Math.random() * 3) * this[String(("f_" + (LLEN * Cnt)) + _local4)].sy);
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._y = this[String(("f_" + (LLEN * Cnt)) + _local4)]._y;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._x = this[String(("f_" + (LLEN * Cnt)) + _local4)]._x;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sy = this[String(("f_" + (LLEN * Cnt)) + _local4)].sy;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sz = this[String(("f_" + (LLEN * Cnt)) + _local4)].sz;
_local4++;
}
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;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._y = _root.gamedy.map[(("B" + eyn) + "_") + exn]._y - _root.gamedy.dig.DELTA;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.BLOCKSIZEY + (_root.gamedy.dig.DELTA * 2);
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.dig[(("DDM" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM" + eyn) + "_") + exn]._height - STEP;
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height = _root.gamedy.dig[(("DDM2" + eyn) + "_") + exn]._height - STEP;
var _local4 = 0;
while (_local4 < LLEN) {
this.attachMovie("eff_foamb", String(("f_" + (LLEN * Cnt)) + _local4), this.getNextHighestDepth());
this[String(("f_" + (LLEN * Cnt)) + _local4)]._y = Cnt - 2;
this[String(("f_" + (LLEN * Cnt)) + _local4)]._x = Math.floor(Math.random() * _root.BLOCKSIZEX);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = 50 + Math.floor(Math.random() * 50);
this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
this[String(("f_" + (LLEN * Cnt)) + _local4)].onEnterFrame = ef_foam;
this[String(("f_" + (LLEN * Cnt)) + _local4)].sy = 0.5 + Math.floor(Math.random() * 2);
this[String(("f_" + (LLEN * Cnt)) + _local4)].sz = 6 + Math.floor(Math.random() * 4);
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._y = this[String(("f_" + (LLEN * Cnt)) + _local4)]._y;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._x = this[String(("f_" + (LLEN * Cnt)) + _local4)]._x;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._xscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._xscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)]._yscale = this[String(("f_" + (LLEN * Cnt)) + _local4)]._yscale;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sy = this[String(("f_" + (LLEN * Cnt)) + _local4)].sy;
_parent[(("E2" + eyn) + "_") + exn][String(("f_" + (LLEN * Cnt)) + _local4)].sz = this[String(("f_" + (LLEN * Cnt)) + _local4)].sz;
_local4++;
}
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.dig[(("D" + eyn) + "_") + exn].setMask(null);
_root.gamedy.dig.refresh(_root.CheckMapL1);
_root.gamedy.dig[(("DDM" + eyn) + "_") + exn].removeMovieClip();
_root.gamedy.dig[(("DDM2" + eyn) + "_") + exn].removeMovieClip();
this.onEnterFrame = undefined;
this.removeMovieClip();
}
}
function ef_foam() {
if ((this._xscale - this.sz) >= 0) {
this._xscale = this._xscale - this.sz;
this._yscale = this._xscale;
this._y = this._y - this.sy;
} else {
removeMovieClip(this);
}
}
var STEP = 4;
var LLEN = 5;
var Cnt;
hide();
Symbol 1479 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 1481 MovieClip Frame 1
function init() {
text1.init();
text1.ALPHA = 75;
text2.init();
text2.ALPHA = 15;
}
function start() {
text1.start();
text2.start();
}
Symbol 1485 MovieClip Frame 1
FirstTime = true;
Symbol 1485 MovieClip Frame 28
if (FirstTime) {
stop();
FirstTime = false;
}
Symbol 1485 MovieClip Frame 55
gotoAndPlay (2);
Symbol 1505 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 1511 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 1516 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 1519 MovieClip Frame 1
var Cnt = 0;
this.onEnterFrame = function () {
if (Math.floor(Math.random() * 18) == 15) {
i = 0;
while (i < Math.floor(Math.random() * 3)) {
x = Math.floor(Math.random() * 40);
y = Math.floor(Math.random() * 15);
this.attachMovie("_star_", "star_" + Cnt, this.getNextHighestDepth());
this["star_" + Cnt]._x = x;
this["star_" + Cnt]._y = y;
Cnt++;
if (Cnt == 100) {
Cnt = 0;
}
i++;
}
}
};
Symbol 1584 MovieClip Frame 1
gotoAndPlay(2 + Math.floor(Math.random() * 32));
Symbol 1584 MovieClip Frame 33
gotoAndPlay (2);
Symbol 1605 MovieClip Frame 1
function show() {
this._visible = true;
this._alpha = 0;
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + HSTEP;
} else {
this._alpha = 0;
this._visible = false;
this.onEnterFrame = undefined;
_root.gotoAndStop("Comix");
}
}
var HSTEP = 18;
Symbol 1611 MovieClip Frame 1
gotoAndPlay(Math.floor(Math.random() * 58) + 1);
Symbol 1611 MovieClip Frame 60
if (Math.floor(Math.random() * 20) == 10) {
gotoAndPlay(Math.floor(Math.random() * 58) + 61);
}
Symbol 1629 MovieClip Frame 1
if (_root.alawar_f == undefined) {
barrow._visible = false;
} else {
barrow._visible = true;
}
Symbol 1630 MovieClip Frame 1
function show() {
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + STEP;
} else {
this._alpha = 100;
this.onEnterFrame = undefined;
}
}
function hide() {
this.onEnterFrame = ef_hide;
}
function ef_hide() {
if (this._alpha > 0) {
this._alpha = this._alpha - STEP;
} else {
this._alpha = 0;
this.onEnterFrame = undefined;
}
}
var STEP = 8;
Symbol 1659 MovieClip Frame 1
slbtnleft.onRollOver = function () {
_root.MABSnd.start();
};
slbtnright.onRollOver = function () {
_root.MABSnd.start();
};
slbtnleft.onPress = function () {
_root.MCBSnd.start();
this._parent.prevFrame();
};
slbtnright.onPress = function () {
_root.MCBSnd.start();
this._parent.nextFrame();
};
stop();
slbtnleft._visible = false;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1659 MovieClip Frame 2
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1659 MovieClip Frame 3
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1659 MovieClip Frame 4
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1659 MovieClip Frame 5
stop();
slbtnleft._visible = true;
slbtnright._visible = true;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1659 MovieClip Frame 6
stop();
slbtnleft._visible = true;
slbtnright._visible = false;
if ((_root.inf.level + 1) < this._currentframe) {
_parent.startbtn._visible = false;
warning._visible = true;
} else {
_parent.startbtn._visible = true;
warning._visible = false;
}
Symbol 1669 MovieClip Frame 1
dload.onRollOver = function () {
_root.MABSnd.start();
};
swbtndown.onRollOver = function () {
_root.MABSnd.start();
};
swbtnup.onRollOver = function () {
_root.MABSnd.start();
};
startbtn.onRollOver = function () {
_root.MABSnd.start();
};
cancelbtn.onRollOver = function () {
_root.MABSnd.start();
};
swbtndown.onPress = function () {
_root.MCBSnd.start();
this._parent.nextFrame();
};
swbtnup.onPress = function () {
_root.MCBSnd.start();
this._parent.prevFrame();
};
startbtn.onPress = function () {
_root.MCBSnd.start();
_root.CurrentLevel = ls._currentframe;
_root.CurrentScore = 0;
shadow.show();
};
cancelbtn.onPress = function () {
_root.MCBSnd.start();
this._parent._parent.gotoAndStop("MMenu");
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Download");
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
stop();
swbtnup._visible = false;
swbtndown._visible = true;
if (firstttime == undefined) {
swext._alpha = 0;
swext._visible = false;
firstttime = false;
} else {
swext.hide();
}
ls._visible = true;
shadow._visible = false;
Symbol 1670 MovieClip Frame 1
stop();
shadow._visible = false;
mmplay.onRollOver = function () {
_root.MABSnd.start();
};
mmexit.onRollOver = function () {
_root.MABSnd.start();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
mmplay.onPress = function () {
_root.menu.play();
_root.MSSSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.GotoDownload();
};
mmexit.onPress = function () {
fscommand ("quit");
if (_root.close_f != undefined) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
}
_root.MCBSnd.start();
};
if (_root.close_f == undefined) {
mmexit._visible = false;
} else {
mmexit._visible = true;
}
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 1670 MovieClip Frame 8
stop();
sgext._alpha = 0;
sgtfk.onRollOver = function () {
_root.MABSnd.start();
};
sgsc.onPress = function () {
_root.MESnd.start();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
wrld2.onRollOver = function () {
this._parent.sgext.show();
};
wrld2.onRollOut = function () {
this._parent.sgext.hide();
};
wrld3.onRollOver = function () {
this._parent.sgext.show();
};
wrld3.onRollOut = function () {
this._parent.sgext.hide();
};
okbtn.onPress = function () {
_root.MCBSnd.start();
_root.CurrentLevel = 1;
_root.CurrentScore = 0;
shadow.show();
};
cancelbtn.onPress = function () {
_root.menu.gotoAndStop(1);
_root.MSSSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.GotoDownload();
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 1670 MovieClip Frame 15
stop();
Symbol 1677 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 1677 MovieClip Frame 2
stop();
Symbol 1685 MovieClip Frame 1
this.useHandCursor = false;
this.onPress = function () {
};
Symbol 1696 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 1696 MovieClip Frame 2
stop();
Symbol 1696 MovieClip Frame 3
stop();
Symbol 1700 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 1700 MovieClip Frame 2
stop();
Symbol 1700 MovieClip Frame 3
stop();
Symbol 1706 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
_parent.scal.gotoAndStop(2);
};
this.onRollOut = function () {
gotoAndStop (1);
_parent.scal.gotoAndStop(1);
};
stop();
Symbol 1706 MovieClip Frame 2
stop();
Symbol 1706 MovieClip Frame 3
stop();
Symbol 1711 MovieClip Frame 1
function update() {
if (_parent._parent._parent._parent.Mute) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
stop();
Symbol 1711 MovieClip Frame 2
stop();
Symbol 1712 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 1716 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 1717 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 1724 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 1726 MovieClip Frame 1
Symbol 1727 MovieClip Frame 1
function setsosnd() {
_parent.snd.volume = Volume;
_parent.snd.mute = Mute;
_parent.sosnd.data.content = _parent.snd;
}
var Volume;
var Mute;
var isActive;
Volume = _parent.snd.volume;
Mute = _parent.snd.mute;
isActive = false;
stop();
openbtn.onPress = function () {
gotoAndPlay ("Show");
};
Symbol 1727 MovieClip Frame 10
this.onEnterFrame = function () {
if ((((this._xmouse > 23) && (this._xmouse < 100)) && (this._ymouse > -113)) && (this._ymouse < 15)) {
isActive = true;
} else {
isActive = false;
}
};
stop();
closebtn.onPress = function () {
play();
};
headbtn.onPress = function () {
play();
};
headbtn.onRollOver = function () {
closebtn.lshow();
};
headbtn.onRollOut = function () {
closebtn.lhide();
};
Symbol 1727 MovieClip Frame 17
this.onEnterFrame = undefined;
isActive = false;
gotoAndStop ("Start");
Symbol 1794 MovieClip Frame 1
gotoAndPlay(2 + Math.floor(Math.random() * 32));
Symbol 1794 MovieClip Frame 33
gotoAndPlay (2);
Symbol 1796 MovieClip Frame 1
function clear() {
Ecnt = 0;
Status = "_CLEAR";
var _local4;
var _local3 = new Object();
for (_local4 in this) {
_local3 = this[_local4];
removeMovieClip(_local3);
}
_parent.pointer.clear();
}
function show(blockimg) {
var _local5;
var _local4;
Status = "_SHOW";
_local5 = 0;
while (_local5 < _root.BLOCKNUMY) {
_local4 = 0;
while (_local4 < _root.BLOCKNUMX) {
if ((blockimg[_local5][_local4] > 0) && (blockimg[_local5][_local4] != 9)) {
this.attachMovie(String("_g_" + blockimg[_local5][_local4]), String((("G" + _local5) + "_") + _local4), this.getNextHighestDepth());
this[(("G" + _local5) + "_") + _local4]._x = (_local4 * _root.BLOCKSIZEX) + OFFSETX;
this[(("G" + _local5) + "_") + _local4]._y = (_local5 * _root.BLOCKSIZEY) + OFFSETY;
this[(("G" + _local5) + "_") + _local4].gotoAndPlay(Math.ceil(Math.random() * 20));
} else {
_parent.pointer.attachMovie(String("_g_" + blockimg[_local5][_local4]), String((("G" + _local5) + "_") + _local4), _parent.pointer.getNextHighestDepth());
_parent.pointer[(("G" + _local5) + "_") + _local4]._x = (_local4 * _root.BLOCKSIZEX) + OFFSETX;
_parent.pointer[(("G" + _local5) + "_") + _local4]._y = (_local5 * _root.BLOCKSIZEY) + OFFSETY;
_parent.pointer[(("G" + _local5) + "_") + _local4].gotoAndPlay(Math.ceil(Math.random() * 20));
}
_local4++;
}
_local5++;
}
}
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 removepointer(xn, yn, blockimg) {
blockimg[yn][xn] = 0;
_parent.pointer[(("G" + yn) + "_") + xn].gotoAndPlay("Remove");
}
var OFFSETX = -10;
var OFFSETY = -12;
var Status;
var Ecnt;
Symbol 1797 MovieClip Frame 1
function clear() {
Ecnt = 0;
Hide_f = false;
Status = "_CLEAR";
var _local3;
for (each in this) {
var _local2 = this[each];
if (_local2._name.slice(0, 3) == "BNS") {
removeMovieClip(_local2);
}
}
}
function show(blockimg) {
var _local4;
var _local3;
var _local5;
Cnt = 0;
ObjCnt = 0;
Status = "_SHOW";
_local4 = 0;
while (_local4 < _root.BLOCKNUMY) {
_local3 = 0;
while (_local3 < _root.BLOCKNUMX) {
if (blockimg[_local4][_local3] > 0) {
this.attachMovie(String("_bns_" + blockimg[_local4][_local3]), String((("BNS" + _local4) + "_") + _local3), this.getNextHighestDepth());
this[(("BNS" + _local4) + "_") + _local3].ni = _local4;
this[(("BNS" + _local4) + "_") + _local3].nj = _local3;
this[(("BNS" + _local4) + "_") + _local3]._xscale = 30;
this[(("BNS" + _local4) + "_") + _local3]._yscale = 30;
_local5 = (51 - this[(("BNS" + _local4) + "_") + _local3]._width) / 2;
this[(("BNS" + _local4) + "_") + _local3]._x = ((_local3 * _root.BLOCKSIZEX) + OFFSETX) + _local5;
this[(("BNS" + _local4) + "_") + _local3]._y = ((_local4 * _root.BLOCKSIZEY) + OFFSETY) + _local5;
this[(("BNS" + _local4) + "_") + _local3].gotoAndPlay(Math.ceil(Math.random() * 20));
ObjCnt++;
}
_local3++;
}
_local4++;
}
this.onEnterFrame = ef_show;
}
function ef_show() {
Cnt++;
var _local8;
var _local7;
var _local6;
var _local4;
var _local5 = 0;
if (!Hide_f) {
for (_local6 in this) {
var _local3 = this[_local6];
if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale < 100)) {
_local3._xscale = _local3._xscale + SSTEP;
_local3._yscale = _local3._yscale + SSTEP;
_local4 = (51 - _local3._width) / 2;
_local3._x = ((_local3.nj * _root.BLOCKSIZEX) + OFFSETX) + _local4;
_local3._y = ((_local3.ni * _root.BLOCKSIZEY) + OFFSETY) + _local4;
} else if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale >= 100)) {
_local3._xscale = 100;
_local3._yscale = 100;
_local3._x = (_local7 * _root.BLOCKSIZEX) + OFFSETX;
_local3._y = (_local8 * _root.BLOCKSIZEY) + OFFSETY;
_local5++;
if (_local5 == ObjCnt) {
Hide_f = true;
}
}
}
} else if (Cnt > SHOWTIME) {
for (_local6 in this) {
var _local3 = this[_local6];
if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale > 10)) {
_local3._xscale = _local3._xscale - SSTEP;
_local3._yscale = _local3._yscale - SSTEP;
_local4 = (51 - _local3._width) / 2;
_local3._x = ((_local3.nj * _root.BLOCKSIZEX) + OFFSETX) + _local4;
_local3._y = ((_local3.ni * _root.BLOCKSIZEY) + OFFSETY) + _local4;
} else if ((_local3._name.slice(0, 3) == "BNS") && (_local3._xscale <= 10)) {
removeMovieClip(_local3);
_local5++;
if (_local5 == ObjCnt) {
_root.win_f = false;
this.onEnterFrame = undefined;
}
}
}
}
}
function removebonus(xn, yn, blockimg) {
_parent.dig.attachMovie("_gems_effect", "be_" + Ecnt, _parent.dig.getNextHighestDepth());
_parent.dig["be_" + Ecnt]._x = (xn * _root.BLOCKSIZEX) + (_root.BLOCKSIZEX / 2);
_parent.dig["be_" + Ecnt]._y = ((yn * _root.BLOCKSIZEY) + (_root.BLOCKSIZEY / 2)) - 6;
var _local6 = new Color(_parent.dig["be_" + Ecnt]);
_local6.setRGB(_root.CLR_BONUS[blockimg[yn][xn] - 1]);
Ecnt++;
blockimg[yn][xn] = 0;
removeMovieClip(this[(("BNS" + yn) + "_") + xn]);
ObjCnt--;
}
var OFFSETX = -10;
var OFFSETY = -12;
var SSTEP = 7;
var SHOWTIME = 270;
var Cnt;
var Ecnt;
var Status;
var ObjCnt;
var Hide_f = false;
Symbol 1798 MovieClip Frame 1
function clear() {
i = 0;
while (i <= dCnt.length) {
dCnt.shift();
dXn.shift();
dYn.shift();
i++;
}
_root.gamedy.effect.clear();
Status = "_CLEAR";
var _local3 = this[each];
for (each in this) {
_local3 = this[each];
removeMovieClip(_local3);
}
this.onEnterFrame = null;
}
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) {
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;
this[(("B" + _local4) + "_") + _local3]._y = _local4 * _root.BLOCKSIZEY;
if (blockimg[_local4][_local3] == 57) {
_root.ClosedExit = this[(("B" + _local4) + "_") + _local3];
}
}
_local3++;
}
_local4++;
}
this.onEnterFrame = ef_undig;
}
function dig(xn, yn) {
_root.gamedy.effect.seteffect(yn, xn);
this.attachMovie("_digmask_", String((("DM" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("DM" + yn) + "_") + xn]._width = _root.BLOCKSIZEX;
this[(("DM" + yn) + "_") + xn]._height = _root.BLOCKSIZEY;
this[(("DM" + yn) + "_") + xn]._x = xn * _root.BLOCKSIZEX;
this[(("DM" + yn) + "_") + xn]._y = yn * _root.BLOCKSIZEY;
this[(("B" + yn) + "_") + xn].setMask(this[(("DM" + yn) + "_") + xn]);
_root.CheckMapL1[yn][xn] = -1;
dXn.push(xn);
dYn.push(yn);
dCnt.push(TIME * FPS);
_parent.dig.refresh(_root.CheckMapL1);
_parent.dig.setmask(yn, xn);
}
function ef_undig() {
var _local2;
var _local3;
var _local4;
_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.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);
this.onEnterFrame = null;
Symbol 1800 MovieClip Frame 1
function clear() {
var _local2 = new Object();
for (each in this) {
_local2 = this[each];
removeMovieClip(_local2);
}
}
function refresh(blockimg) {
_parent.dig2.refresh(blockimg);
var _local5;
var _local4;
_local5 = 0;
while (_local5 < _root.BLOCKNUMY) {
_local4 = 0;
while (_local4 < _root.BLOCKNUMX) {
if (blockimg[_local5][_local4] == -1) {
if (this[(("D" + _local5) + "_") + _local4] == undefined) {
this.attachMovie("_dig_", String((("D" + _local5) + "_") + _local4), this.getNextHighestDepth());
this.attachMovie("_dig2_", String((("D2" + _local5) + "_") + _local4), this.getNextHighestDepth());
}
this[(("D" + _local5) + "_") + _local4]._x = _local4 * _root.BLOCKSIZEX;
this[(("D" + _local5) + "_") + _local4]._y = _local5 * _root.BLOCKSIZEY;
this[(("D2" + _local5) + "_") + _local4]._x = this[(("D" + _local5) + "_") + _local4]._x;
this[(("D2" + _local5) + "_") + _local4]._y = this[(("D" + _local5) + "_") + _local4]._y;
if ((blockimg[_local5][_local4 + 1] == 1) || (blockimg[_local5][_local4 + 1] == 2)) {
this[(("D" + _local5) + "_") + _local4].sr = true;
this[(("D2" + _local5) + "_") + _local4].sr = true;
} else {
this[(("D" + _local5) + "_") + _local4].sr = false;
this[(("D2" + _local5) + "_") + _local4].sr = false;
}
if ((blockimg[_local5][_local4 - 1] == 1) || (blockimg[_local5][_local4 - 1] == 2)) {
this[(("D" + _local5) + "_") + _local4].sl = true;
this[(("D2" + _local5) + "_") + _local4].sl = true;
} else {
this[(("D" + _local5) + "_") + _local4].sl = false;
this[(("D2" + _local5) + "_") + _local4].sl = false;
}
if ((blockimg[_local5 - 1][_local4] == 1) || (blockimg[_local5 - 1][_local4] == 2)) {
this[(("D" + _local5) + "_") + _local4].su = true;
this[(("D2" + _local5) + "_") + _local4].su = true;
} else {
this[(("D" + _local5) + "_") + _local4].su = false;
this[(("D2" + _local5) + "_") + _local4].su = false;
}
if ((blockimg[_local5 + 1][_local4] == 1) || (blockimg[_local5 + 1][_local4] == 2)) {
this[(("D" + _local5) + "_") + _local4].sd = true;
this[(("D2" + _local5) + "_") + _local4].sd = true;
} else {
this[(("D" + _local5) + "_") + _local4].sd = false;
this[(("D2" + _local5) + "_") + _local4].sd = false;
}
this[(("D" + _local5) + "_") + _local4].refresh();
this[(("D2" + _local5) + "_") + _local4].refresh();
} else if (this[(("D" + _local5) + "_") + _local4] != undefined) {
removeMovieClip(this[(("D" + _local5) + "_") + _local4]);
removeMovieClip(this[(("D2" + _local5) + "_") + _local4]);
}
_local4++;
}
_local5++;
}
}
function setmask(yn, xn) {
this.attachMovie("_digmask_", String((("DDM" + yn) + "_") + xn), this.getNextHighestDepth());
this.attachMovie("_digmask_", String((("DDM2" + yn) + "_") + xn), this.getNextHighestDepth());
this[(("DDM" + yn) + "_") + xn]._width = _root.BLOCKSIZEX + (DELTA * 2);
this[(("DDM" + yn) + "_") + xn]._height = 0;
this[(("DDM" + yn) + "_") + xn]._x = (xn * _root.BLOCKSIZEX) - DELTA;
this[(("DDM" + yn) + "_") + xn]._y = yn * _root.BLOCKSIZEY;
this[(("DDM2" + yn) + "_") + xn]._width = this[(("DDM" + yn) + "_") + xn]._width;
this[(("DDM2" + yn) + "_") + xn]._height = this[(("DDM" + yn) + "_") + xn]._height;
this[(("DDM2" + yn) + "_") + xn]._x = this[(("DDM" + yn) + "_") + xn]._x;
this[(("DDM2" + yn) + "_") + xn]._y = this[(("DDM" + yn) + "_") + xn]._y;
this[(("D" + yn) + "_") + xn].setMask(this[(("DDM" + yn) + "_") + xn]);
this[(("D2" + yn) + "_") + xn].setMask(this[(("DDM2" + yn) + "_") + xn]);
}
var DELTA = 6;
Symbol 1801 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.attachMovie("_block_effect2", String((("E2" + 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;
this[(("E2" + yn) + "_") + xn]._x = this[(("E" + yn) + "_") + xn]._x;
this[(("E2" + yn) + "_") + xn]._y = this[(("E" + yn) + "_") + xn]._y;
this[(("E2" + yn) + "_") + xn].exn = this[(("E" + yn) + "_") + xn].exn;
this[(("E2" + yn) + "_") + xn].eyn = this[(("E" + yn) + "_") + xn].eyn;
}
Symbol 1802 MovieClip Frame 1
function clear() {
Ecnt = 0;
Status = "_CLEAR";
var _local3;
var _local2 = new Object();
for (_local3 in this) {
_local2 = this[_local3];
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;
this[(("G" + _local4) + "_") + _local3].gotoAndPlay(Math.ceil(Math.random() * 20));
}
_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 removepointer(xn, yn, blockimg) {
blockimg[yn][xn] = 0;
this[(("G" + yn) + "_") + xn].gotoAndPlay("Remove");
}
var OFFSETX = -10;
var OFFSETY = -12;
var Status;
var Ecnt;
Symbol 1810 MovieClip Frame 8
stop();
Symbol 1876 MovieClip Frame 39
gotoAndPlay (8);
Symbol 1942 MovieClip Frame 39
gotoAndPlay (8);
Symbol 1947 MovieClip Frame 8
stop();
Symbol 1952 MovieClip Frame 8
stop();
Symbol 1957 MovieClip Frame 8
stop();
Symbol 1962 MovieClip Frame 8
stop();
Symbol 1969 MovieClip Frame 8
stop();
Symbol 1975 MovieClip Frame 8
stop();
Symbol 1980 MovieClip Frame 8
stop();
Symbol 1985 MovieClip Frame 8
stop();
Symbol 1990 MovieClip Frame 8
stop();
Symbol 1995 MovieClip Frame 8
stop();
Symbol 2001 MovieClip Frame 8
stop();
Symbol 2007 MovieClip Frame 8
stop();
Symbol 2008 MovieClip Frame 1
var GuideL1 = [[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, 9, 0, 0, 7, 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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, 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, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
stop();
Symbol 2008 MovieClip Frame 3
stop();
Symbol 2008 MovieClip Frame 5
stop();
Symbol 2008 MovieClip Frame 7
stop();
Symbol 2008 MovieClip Frame 9
stop();
Symbol 2008 MovieClip Frame 11
stop();
Symbol 2008 MovieClip Frame 13
stop();
Symbol 2008 MovieClip Frame 15
stop();
Symbol 2008 MovieClip Frame 17
stop();
Symbol 2008 MovieClip Frame 19
stop();
Symbol 2008 MovieClip Frame 21
stop();
Symbol 2008 MovieClip Frame 23
stop();
Symbol 2008 MovieClip Frame 25
stop();
Symbol 2008 MovieClip Frame 27
stop();
Symbol 2008 MovieClip Frame 29
stop();
Symbol 2008 MovieClip Frame 31
stop();
Symbol 2008 MovieClip Frame 33
stop();
Symbol 2008 MovieClip Frame 35
stop();
Symbol 2008 MovieClip Frame 37
stop();
Symbol 2008 MovieClip Frame 39
stop();
Symbol 2008 MovieClip Frame 41
stop();
Symbol 2008 MovieClip Frame 43
stop();
Symbol 2008 MovieClip Frame 45
stop();
Symbol 2008 MovieClip Frame 47
stop();
Symbol 2008 MovieClip Frame 49
stop();
Symbol 2008 MovieClip Frame 51
stop();
Symbol 2008 MovieClip Frame 53
stop();
Symbol 2008 MovieClip Frame 55
stop();
Symbol 2155 MovieClip Frame 11
_parent._parent.dig();
Symbol 2155 MovieClip Frame 16
_parent._parent.gof();
Symbol 2189 MovieClip Frame 11
_parent._parent.dig();
Symbol 2189 MovieClip Frame 16
_parent._parent.gof();
Symbol 2222 MovieClip Frame 11
_parent._parent.dig();
Symbol 2222 MovieClip Frame 16
_parent._parent.gof();
Symbol 2255 MovieClip Frame 16
stop();
_parent._parent.snowygone();
Symbol 2288 MovieClip Frame 16
stop();
this._parent._parent._parent.snowydead();
Symbol 2289 MovieClip Frame 5
stop();
Symbol 2290 MovieClip Frame 5
stop();
Symbol 2291 MovieClip Frame 1
stop();
Symbol 2291 MovieClip Frame 2
stop();
Symbol 2291 MovieClip Frame 3
stop();
Symbol 2291 MovieClip Frame 4
stop();
Symbol 2291 MovieClip Frame 5
stop();
Symbol 2291 MovieClip Frame 6
stop();
Symbol 2291 MovieClip Frame 7
stop();
Symbol 2291 MovieClip Frame 8
stop();
Symbol 2291 MovieClip Frame 9
stop();
Symbol 2291 MovieClip Frame 10
stop();
Symbol 2291 MovieClip Frame 11
stop();
Symbol 2291 MovieClip Frame 12
stop();
Symbol 2291 MovieClip Frame 13
stop();
Symbol 2291 MovieClip Frame 14
stop();
Symbol 2291 MovieClip Frame 15
stop();
Symbol 2291 MovieClip Frame 16
stop();
Symbol 2291 MovieClip Frame 17
stop();
Symbol 2291 MovieClip Frame 18
stop();
Symbol 2291 MovieClip Frame 19
stop();
Symbol 2291 MovieClip Frame 20
stop();
Symbol 2291 MovieClip Frame 21
stop();
Symbol 2291 MovieClip Frame 22
stop();
Symbol 2291 MovieClip Frame 23
stop();
Symbol 2291 MovieClip Frame 24
stop();
Symbol 2291 MovieClip Frame 25
stop();
Symbol 2292 MovieClip Frame 1
function init(sx, sy) {
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() {
_parent.onMouseDown = pressmouse;
_parent.onMouseUp = releasemouse;
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local4;
var _local7;
var _local8;
var _local6;
var _local5;
if ((mouse_f && (!_root.sndcontrol.isActive)) && (!_root.exitmenuflag)) {
checkmouse();
}
if ((((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) && (!_root.exitmenuflag)) {
_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;
}
_local4 = _parent.ighelp["GuideL" + _root.CurrentLevel][getyn(this._y)][getxn(this._x)];
if ((_local4 != null) && (_local4 > 0)) {
if (_parent.ighelp._currentframe != _local4) {
_parent.ighelp.gotoAndStop(_local4);
}
}
if (_root.CheckMapL1[getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)][getxn(this._x)] == 1) {
this.onEnterFrame = undefined;
_root.hero_death2_Snd.start();
if (Status == "_RIGHT") {
dir.gotoAndStop("DeadL");
} else {
dir.gotoAndStop("DeadR");
}
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);
}
_local4 = _root.CheckBonusesL1[getyn(this._y)][getxn(this._x)];
if (_root.win_f && (_local4 != 0)) {
_root.gamedy.bonuses.removebonus(getxn(this._x), getyn(this._y), _root.CheckBonusesL1);
_root.gamedy.takebonus(_local4);
}
if (_root.CheckMapL1[getyn(this._y)][getxn(this._x)] == 6) {
this.onEnterFrame = undefined;
this._x = getxn(this._x) * _root.BLOCKSIZEX;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
_root.hero_exit_Snd.start();
dir.gotoAndStop("Exit");
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));
if ((_local4 == 0) || (_local4 == 5)) {
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");
} else {
dir.gotoAndStop("FlyLeft");
}
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) {
_parent.attachMovie("_dust_effect", "dust", _parent.getNextHighestDepth());
_parent.dust._x = this._x + DUSTX;
_parent.dust._y = this._y + DUSTY;
_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 _local9;
if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 5) {
dir.gotoAndStop("StickgoLeft");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftLeft");
} else {
dir.gotoAndStop("GoLeft");
}
Status = "_LEFT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
_local9 = SXSTEP / 2;
} else {
_local9 = SXSTEP;
}
_local4 = checkmap(getxn((this._x - (_root.BLOCKSIZEX / 2)) - _local9), getyn(this._y));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) {
this._x = this._x - _local9;
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) {
dir.gotoAndStop("StickgoRight");
} else if (checkmap(getxn(this._x), getyn((this._y + (_root.BLOCKSIZEY / 2)) - 1E-7)) == 3) {
dir.gotoAndStop("LiftRight");
} else {
dir.gotoAndStop("GoRight");
}
Status = "_RIGHT";
if (checkmap(getxn(this._x), getyn(this._y) + 1) == 4) {
var _local9 = SXSTEP / 2;
} else {
var _local9 = SXSTEP;
}
_local4 = checkmap(getxn((this._x + (_root.BLOCKSIZEX / 2)) + _local9), getyn(this._y));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 5)) {
this._x = this._x + _local9;
this._y = getyn(this._y) * _root.BLOCKSIZEY;
} 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");
}
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));
if (((_local4 == 0) || (_local4 == 3)) || (_local4 == 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 (Key.isDown(90) && (!Key.isDown(88))) {
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.hero_dig_Snd.start();
DigL_f = true;
}
}
if ((!Key.isDown(90)) && (Key.isDown(88))) {
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.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";
}
if (Status == "_LEFT") {
_local3 = _local3 + "Left";
}
dir.gotoAndStop(_local3);
}
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 = 5.5;
var SYSTEP = 11;
var LUPSTEP = 5.5;
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 Stick_f = false;
var mouse_f = false;
var fall_f = false;
var hero_fall_Snd = new Sound(this);
hero_fall_Snd.attachSound("hero_fall");
Symbol 2302 MovieClip Frame 1
function ef_shadow() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_root.gotoAndStop("Menu");
}
}
menu.onRollOver = function () {
_root.MABSnd.start();
};
menu.onRelease = function () {
if (Key.isDown(17)) {
_root.gamedy.endlevel();
return(undefined);
}
_root.MCBSnd.start();
_root.gamedy.menu.exit.show();
};
Symbol 2311 MovieClip Frame 1
function go() {
area.onMouseDown = undefined;
Key.removeListener(keyListener);
_root.gamedy.shadow.show();
this.onEnterFrame = ef_go;
}
function ef_go() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_parent.cover._visible = false;
_root.gamedy.nextlevel();
}
}
function init() {
this._visible = false;
}
function show() {
_root.levelcompleted_Snd.start();
_root.gamedy.ighelp._visible = false;
_parent.cover._visible = true;
InitX = this._x;
InitY = this._y;
InitH = this._height;
InitW = this._width;
this._visible = true;
this._alpha = 0;
this._xscale = 130;
this._yscale = 130;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._xscale > 100) {
if (this._alpha < 100) {
this._alpha = this._alpha + SALPHA;
}
this._xscale = this._xscale - SSCALE;
this._yscale = this._xscale;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
} else {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
this._x = InitX;
this._y = InitY;
this.onEnterFrame = undefined;
Key.addListener(keyListener);
area.onMouseDown = function () {
go();
};
}
}
var SALPHA = 15;
var SSCALE = 4;
var InitX;
var InitY;
var InitH;
var InitW;
var keyListener = new Object();
keyListener.onKeyDown = function () {
go();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.GotoDownload();
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 2317 MovieClip Frame 1
if (_root.alawar_f == undefined) {
barrow._visible = false;
} else {
barrow._visible = true;
}
Symbol 2318 MovieClip Frame 1
function show() {
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._alpha < 100) {
this._alpha = this._alpha + STEP;
} else {
this._alpha = 100;
this.onEnterFrame = undefined;
}
}
function hide() {
this.onEnterFrame = ef_hide;
}
function ef_hide() {
if (this._alpha > 0) {
this._alpha = this._alpha - STEP;
} else {
this._alpha = 0;
this.onEnterFrame = undefined;
}
}
var STEP = 8;
Symbol 2319 MovieClip Frame 1
function go() {
area.onMouseDown = undefined;
Key.removeListener(keyListener);
_root.gamedy.shadow.show();
this.onEnterFrame = ef_go;
}
function ef_go() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_parent.cover._visible = false;
_root.gotoAndStop("Menu");
}
}
function init() {
this._visible = false;
}
function show() {
_root.levelcompleted_Snd.start();
_root.gamedy.ighelp._visible = false;
_parent.cover._visible = true;
InitX = this._x;
InitY = this._y;
InitH = this._height;
InitW = this._width;
this._visible = true;
this._alpha = 0;
this._xscale = 130;
this._yscale = 130;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._xscale < 100) {
if (this._alpha > 100) {
this._alpha = this._alpha + SALPHA;
}
this._xscale = this._xscale - SSCALE;
this._yscale = this._xscale;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
} else {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
this._x = InitX;
this._y = InitY;
this.onEnterFrame = undefined;
Key.addListener(keyListener);
area.onMouseDown = function () {
go();
};
arrow.show();
}
}
var SALPHA = 15;
var SSCALE = 4;
var InitX;
var InitY;
var InitH;
var InitW;
var keyListener = new Object();
keyListener.onKeyDown = function () {
go();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.GotoDownload();
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 2322 MovieClip Frame 1
function go() {
area.onMouseDown = undefined;
Key.removeListener(keyListener);
_root.gamedy.shadow.show();
this.onEnterFrame = ef_go;
}
function ef_go() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_parent.cover._visible = false;
_root.gotoAndStop("Menu");
}
}
function init() {
this._visible = false;
}
function show() {
_root.gameover_Snd.start();
_root.gamedy.ighelp._visible = false;
_parent.cover._visible = true;
InitX = this._x;
InitY = this._y;
InitH = this._height;
InitW = this._width;
this._visible = true;
this._alpha = 0;
this._xscale = 130;
this._yscale = 130;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._xscale > 100) {
if (this._alpha < 100) {
this._alpha = this._alpha + SALPHA;
}
this._xscale = this._xscale - SSCALE;
this._yscale = this._xscale;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
} else {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
this._x = InitX;
this._y = InitY;
this.onEnterFrame = undefined;
Key.addListener(keyListener);
area.onMouseDown = function () {
go();
};
}
}
var SALPHA = 15;
var SSCALE = 4;
var InitX;
var InitY;
var InitH;
var InitW;
var keyListener = new Object();
keyListener.onKeyDown = function () {
go();
};
Symbol 2328 MovieClip Frame 1
function go() {
_root.exitmenuflag = false;
_root.gamedy.shadow.show();
this.onEnterFrame = ef_go;
}
function ef_go() {
if (_root.gamedy.shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_parent.cover._visible = false;
_root.gotoAndStop("Menu");
}
}
function init() {
this._visible = false;
_root.exitmenuflag = false;
}
function show() {
_parent.cover._visible = true;
_root.exitmenuflag = true;
InitX = this._x;
InitY = this._y;
InitH = this._height;
InitW = this._width;
this._visible = true;
this._alpha = 0;
this._xscale = 130;
this._yscale = 130;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
this.onEnterFrame = ef_show;
}
function ef_show() {
if (this._xscale > 100) {
if (this._alpha < 100) {
this._alpha = this._alpha + SALPHA;
}
this._xscale = this._xscale - SSCALE;
this._yscale = this._xscale;
this._x = InitX + ((InitW - this._width) / 2);
this._y = InitY + ((InitH - this._height) / 2);
} else {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
this._x = InitX;
this._y = InitY;
this.onEnterFrame = undefined;
}
}
var SALPHA = 15;
var SSCALE = 4;
var InitX;
var InitY;
var InitH;
var InitW;
okbtn.onPress = function () {
_root.MCBSnd.start();
go();
};
cancelbtn.onPress = function () {
_root.MCBSnd.start();
_parent.cover._visible = false;
init();
};
if (_root.alawar_f == undefined) {
dload._visible = true;
} else {
dload._visible = false;
}
Symbol 2329 MovieClip Frame 1
function init() {
cover._visible = false;
cover.useHandCursor = false;
go.init();
lc.init();
ec.init();
exit.init();
}
Symbol 2330 MovieClip Frame 1
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() {
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;
this.onEnterFrame = undefined;
Status = "_READY";
}
}
var HSTEP = 12;
var SSTEP = 25;
var Status;
Symbol 2331 MovieClip Frame 1
function init(level) {
var _local3;
var _local2;
_root.win_f = false;
_local3 = 0;
while (_local3 < _root.BLOCKNUMY) {
_local2 = 0;
while (_local2 < _root.BLOCKNUMX) {
_root.BlockImgL1[_local3][_local2] = _root["LD_BlockImgL" + level][_local3][_local2];
_root.WBlockImgL1[_local3][_local2] = _root["LD_WBlockImgL" + level][_local3][_local2];
_root.CheckMapL1[_local3][_local2] = _root["LD_CheckMapL" + level][_local3][_local2];
_root.WCheckMapL1[_local3][_local2] = _root["LD_WCheckMapL" + level][_local3][_local2];
_root.CheckGemsL1[_local3][_local2] = _root["LD_CheckGemsL" + level][_local3][_local2];
_root.CheckBonusesL1[_local3][_local2] = _root["LD_CheckBonusesL" + level][_local3][_local2];
_local2++;
}
_local3++;
}
_root.SnowyPosL1[0] = _root["LD_SnowyPosL" + level][0];
_root.SnowyPosL1[1] = _root["LD_SnowyPosL" + level][1];
_root.GemsL1 = _root["LD_GemsL" + level];
OldScore = _root.CurrentScore;
_root.Gems = _root.GemsL1;
_root.CurrentLevel = level;
map.clear();
dig.clear();
gems.clear();
pointer.clear();
bonuses.clear();
snowy.init(_root.SnowyPosL1[0], _root.SnowyPosL1[1]);
menu.init();
ighelp._visible = false;
ighelp.gotoAndStop(29);
info.level.text = _root.CurrentLevel;
info.gems.text = _root.Gems;
info.lives.text = _root.Lives;
info.score.text = _root.CurrentScore;
}
function start() {
map.show(_root.BlockImgL1);
gems.show(_root.CheckGemsL1);
snowy.show();
snowy.start();
shadow.hide();
ighelp._visible = true;
}
function takegem(gem) {
var _local2;
_root.Gems--;
info.gems.text = _root.Gems;
_root.CurrentScore = _root.CurrentScore + _root.SC_GEM[gem - 1];
info.score.text = _root.CurrentScore;
if (_root.Gems == 0) {
_root.lastgem_Snd.start();
winlevel();
} else {
_local2 = Math.ceil(Math.random() * 4);
_root[("getgem" + _local2) + "_Snd"].start();
}
}
function takebonus(bonus) {
var _local2;
if (bonus == 1) {
_root.getlifebonus_Snd.start();
_root.ClosedExit.gotoAndStop(2);
} else {
_local2 = Math.ceil(Math.random() * 4);
_root[("getscorebonus" + _local2) + "_Snd"].start();
}
_root.CurrentScore = _root.CurrentScore + _root.SC_BONUS[bonus - 1];
info.score.text = _root.CurrentScore;
}
function winlevel() {
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;
bonuses.show(_root.CheckBonusesL1);
}
function endlevel() {
_root.inf.level = _root.CurrentLevel;
if (_root.CurrentLevel == _root.GD_LEVELS) {
menu.ec.show();
} else {
menu.lc.show();
}
}
function nextlevel() {
_root.CurrentLevel++;
init(_root.CurrentLevel);
start();
}
function loselevel() {
if (_root.Lives == 0) {
menu.go.show();
} else {
_root.CurrentScore = OldScore;
shadow.show();
this.onEnterFrame = ef_loselevel;
}
}
function ef_loselevel() {
if (shadow.Status == "_READY") {
this.onEnterFrame = undefined;
_root.Lives--;
init(_root.CurrentLevel);
start();
}
}
var OldScore;
Symbol 2349 MovieClip Frame 1
back.onRollOver = function () {
_root.MABSnd.start();
};
dload.onRollOver = function () {
_root.MABSnd.start();
};
back.onPress = function () {
_root.MCBSnd.start();
_root.gotoAndStop("Menu");
};
dload.onPress = function () {
_root.MCBSnd.start();
_root.GotoDownload();
};
Symbol 2365 MovieClip Frame 1
function nextclick() {
if (_currentframe < 5) {
play();
} else {
_root.gotoAndStop("Game");
}
}
gotoAndStop (1);
area.onPress = function () {
nextclick();
};
btn.onPress = function () {
nextclick();
};
stop();
Symbol 2365 MovieClip Frame 2
stop();
Symbol 2365 MovieClip Frame 3
stop();
Symbol 2365 MovieClip Frame 4
stop();
Symbol 2365 MovieClip Frame 5
stop();