Frame 1
fscommand ("showmenu", "false");
stop();
downloadUrl = "http://www.arkadium.com/install/arkdownloader.exe";
System.security.allowDomain("http://web41.radiant.net/~arkadium/temp/");
loadVariables ("config.txt", _root);
function chooseGameEndProcedure() {
if (tKey == undefined) {
tKey = "sjri5jf85jdor560";
}
gameEndSubmitUrl = "http://freeplay.gamedek.com/gameend.aspx";
if (params == undefined) {
myVariables.load("config.txt");
} else {
decryptParams(params);
crypto = 2;
}
}
function t_fLoadGameEnd() {
mcResign.removeMovieClip();
mcGameOver.removeMovieClip();
if (mcGameEnd != undefined) {
mcGameEnd.removeMovieClip();
}
endContainer.createEmptyMovieClip("mcGameEnd", 100);
endContainer.createEmptyMovieClip("mcGameEndBack", 99);
with (endContainer.mcGameEndBack) {
var backColor = 0;
beginFill(backColor, 100);
lineStyle(1, backColor, 100);
moveTo(0, 0);
lineTo(g_numGameWidth, 0);
lineTo(g_numGameWidth, g_numGameHeight);
lineTo(0, g_numGameHeight);
lineTo(0, 0);
endFill();
}
if (freeplayid != undefined) {
downloadURL = downloadURL + affiliateId;
}
var endUrlArray = new Array();
endUrlArray = endURL.split(".");
var subString = endUrlArray[endUrlArray.length - 1];
if ((subString == "aspx") || (subString == "html")) {
getURL (endURL, "_self");
} else {
endContainer.mcGameEnd.loadMovie(endURL, mcGameEnd);
endContainer.playAgain = playAgain;
}
}
function postGameLog() {
if (gameLogEnabled == 1) {
var _local1 = new LoadVars();
var _local2 = TEAEncrypt((("freeplayid=" + freeplayid) + "&gameLog=") + gameLog, tKey);
_local1.params = _local2;
_local1.sendAndLoad(gameEndSubmitUrl, result_lv, "POST");
gameLog = "";
}
}
function addToLog(myAddition) {
if (gameLogEnabled == 1) {
gameLog = gameLog + myAddition;
}
}
function trc(theString) {
trace((theString + ": ") + eval (theString));
}
function TEAEncrypt(src, key) {
var _local2 = charsToLongs(strToChars(src));
var k = charsToLongs(strToChars(key));
var n = _local2.length;
if (n == 0) {
return("");
}
if (n == 1) {
_local2[n++] = 0;
}
var _local3 = _local2[n - 1];
var y = _local2[0];
var delta = 2654435769;
var max32 = 4294967295;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = 0;
var sum2 = 0;
while ((q--) > 0) {
sum = sum + delta;
sum = sum >>> 0;
e = (sum >>> 2) & 3;
var _local1 = 0;
while (_local1 < (n - 1)) {
y = _local2[_local1 + 1];
mx = (((_local3 >>> 5) ^ (y << 2)) + ((y >>> 3) ^ (_local3 << 4))) ^ ((sum ^ y) + (k[(_local1 & 3) ^ e] ^ _local3));
mx = mx >>> 0;
_local2[_local1] = _local2[_local1] + mx;
_local2[_local1] = _local2[_local1] >>> 0;
_local3 = _local2[_local1];
_local1++;
}
y = _local2[0];
mx = (((_local3 >>> 5) ^ (y << 2)) + ((y >>> 3) ^ (_local3 << 4))) ^ ((sum ^ y) + (k[(_local1 & 3) ^ e] ^ _local3));
mx = mx >>> 0;
_local2[n - 1] = _local2[n - 1] + mx;
_local2[n - 1] = _local2[n - 1] >>> 0;
_local3 = _local2[n - 1];
}
return(charsToHex(longsToChars(_local2)));
}
function TEADecrypt(src, key) {
var v = charsToLongs(hexToChars(src));
var k = charsToLongs(strToChars(key));
var n = v.length;
if (n == 0) {
return("");
}
var _local2 = v[n - 1];
var _local3 = v[0];
var delta = 2654435769;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = (q * delta);
while (sum != 0) {
e = (sum >>> 2) & 3;
var _local1 = n - 1;
while (_local1 > 0) {
_local2 = v[_local1 - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[_local1] = v[_local1] - mx);
_local1--;
}
_local2 = v[n - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[0] = v[0] - mx);
sum = sum - delta;
}
return(charsToStr(longsToChars(v)));
}
function charsToLongs(chars) {
var _local2 = chars;
var _local3 = new Array(Math.ceil(_local2.length / 4));
var _local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1] = ((_local2[_local1 * 4] + (_local2[(_local1 * 4) + 1] << 8)) + (_local2[(_local1 * 4) + 2] << 16)) + (_local2[(_local1 * 4) + 3] << 24);
_local1++;
}
return(_local3);
}
function longsToChars(longs) {
var _local2 = longs;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1] & 255, (_local2[_local1] >>> 8) & 255, (_local2[_local1] >>> 16) & 255, (_local2[_local1] >>> 24) & 255);
_local1++;
}
return(_local3);
}
function charsToHex(chars) {
var _local2 = chars;
var result = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < _local2.length) {
result = result + (_local3[_local2[_local1] >> 4] + _local3[_local2[_local1] & 15]);
_local1++;
}
return(result);
}
function hexToChars(hex) {
var _local2 = hex;
var _local3 = new Array();
var _local1 = ((_local2.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < _local2.length) {
_local3.push(parseInt(_local2.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
function charsToStr(chars) {
var _local2 = chars;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + String.fromCharCode(_local2[_local1]);
_local1++;
}
return(_local3);
}
function strToChars(str) {
var _local2 = str;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
function decryptParams(myParams) {
decPar = TEADecrypt(myParams, tKey);
arrayOfVars = new Array();
arrayOfVars = decPar.split("&");
count = 0;
while (count < arrayOfVars.length) {
varHolder = new Array();
varHolder = arrayOfVars[count].split("=");
Set(varHolder[0], varHolder[1]);
count++;
}
}
fscommand ("showmenu", "false");
stop();
System.security.allowDomain(domainToAllow);
System.security.allowDomain("http://freeplay.gamedek.com/");
var crypto = 0;
var gameLog = "";
myVariables = new LoadVars();
myVariables.onLoad = function (success) {
if (success) {
crypto = 1;
_root.decryptParams(this.params);
} else {
crypto = 0;
}
};
_root.xmlGameEnd = new XML();
_root.xmlGameEnd.onLoad = function (success) {
var _local1 = _root;
if (success) {
_local1.decryptParams(this.firstChild.firstChild.nodeValue);
_local1.endURL = _local1.gameEndUrl;
_local1.t_fLoadGameEnd();
delete this.onLoad;
}
};
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
trace("whatAmI" + this);
} else {
trace("Error receiving from server.");
}
};
chooseGameEndProcedure();
Instance of Symbol 54 MovieClip in Frame 1
/* no clip actions */
Instance of Symbol 60 MovieClip "mcConsole" in Frame 1
onClipEvent (enterFrame) {
if ((_root.endURL != undefined) && (!_root.blnLoad)) {
_root.loadEnd();
}
}
Frame 2
Frame 3
function getRandomValue(max) {
Result = random(max);
return(Result);
}
num_points = 0;
gameTotalTime = 120;
function loadEnd() {
loadMovie (endURL, endFeature);
blnLoad = true;
}
function setup_souns() {
row_sound = new Sound();
drop_sound = new Sound();
warn_sound = new Sound();
row_sound.attachSound("bubbles");
drop_sound.attachSound("dropsound");
warn_sound.attachSound("sec");
bg_sound.setVolume(50);
}
function build_matrix() {
i = 0;
while (i < 8) {
matrix[i] = new Array(8);
i++;
}
}
function get_random_movie(my_x, my_y) {
var _local1 = getRandomValue(7);
var _local2 = arr_faces[_local1];
return(_local2);
}
function show_faces() {
var _local2 = _root;
i = 0;
while (i < 8) {
n = 0;
while (n < 8) {
var _local3 = get_random_movie(i, n);
var _local1 = String(num_count);
duplicateMovieClip ("mc_container", _local1, num_count);
_local2[_local1]._x = num_x;
_local2[_local1]._y = num_y;
_local2[_local1].bln_fade_out = false;
_local2[_local1].attachMovie(_local3, "new", 1);
_local2[_local1].str_value = _local3;
_local2[_local1].arr_pos = new Array(i, n);
matrix[i][n] = _local1;
num_count++;
num_y = num_y + 42;
n++;
}
num_x = num_x + 42;
num_y = -340;
i++;
}
mc_fall.play();
}
function click_on_fruit(mc_fruit) {
var _local1 = mc_fruit;
if (mc_first_movie == null) {
_local1.new.gotoAndStop(3);
mc_first_movie = _local1;
} else if (mc_first_movie == _local1) {
_local1.new.gotoAndStop(1);
mc_first_movie = null;
} else if ((Math.abs(_local1.arr_pos[0] - mc_first_movie.arr_pos[0]) > 1) || (Math.abs(_local1.arr_pos[1] - mc_first_movie.arr_pos[1]) > 1)) {
mc_first_movie.new.gotoAndStop(1);
mc_first_movie = null;
click_on_fruit(_local1);
} else if ((Math.abs(_local1.arr_pos[0] - mc_first_movie.arr_pos[0]) == 1) && (Math.abs(_local1.arr_pos[1] - mc_first_movie.arr_pos[1]) == 1)) {
mc_first_movie.new.gotoAndStop(1);
mc_first_movie = null;
click_on_fruit(_local1);
} else {
replace_fruits(_local1);
}
}
function replace_fruits(mc_fruit) {
var _local1 = mc_fruit;
var _local2 = mc_first_movie.arr_pos;
mc_first_movie.end_x = _local1._x;
mc_first_movie.end_y = _local1._y;
matrix[_local1.arr_pos[0]][_local1.arr_pos[1]] = mc_first_movie._name;
matrix[mc_first_movie.arr_pos[0]][mc_first_movie.arr_pos[1]] = _local1._name;
mc_first_movie.arr_pos = _local1.arr_pos;
_local1.end_x = mc_first_movie._x;
_local1.end_y = mc_first_movie._y;
_local1.arr_pos = _local2;
_local1.str_course = get_course(mc_first_movie._x, mc_first_movie._y, _local1._x, _local1._y);
mc_first_movie.str_course = get_course(_local1._x, _local1._y, mc_first_movie._x, mc_first_movie._y);
_local1.bln_move = true;
mc_first_movie.bln_move = true;
mc_first_movie.new.gotoAndStop(1);
mc_first_movie = null;
bln_replace = true;
}
function get_course(end_x, end_y, my_x, my_y) {
if (my_x < end_x) {
return("right");
}
if (my_x > end_x) {
return("left");
}
if (my_y < end_y) {
return("up");
}
if (my_y > end_y) {
return("down");
}
}
function check_line() {
var _local1 = _root;
if (num_level == 3) {
check_four_lines();
} else {
arr_to_delete = new Array();
i = 0;
while (i < 8) {
n = 0;
while (n < 8) {
if ((_local1[matrix[i][n]].str_value == _local1[matrix[i + 1][n]].str_value) && (_local1[matrix[i][n]].str_value == _local1[matrix[i + 2][n]].str_value)) {
num_delete_x = _local1[matrix[i][n]]._x;
num_delete_y = _local1[matrix[i][n]]._y;
t = 0;
while (t < 3) {
if (check_array_to_delete(matrix[i + t][n]) == 0) {
arr_to_delete.push(matrix[i + t][n]);
}
t++;
}
}
if ((_local1[matrix[i][n]].str_value == _local1[matrix[i][n + 1]].str_value) && (_local1[matrix[i][n]].str_value == _local1[matrix[i][n + 2]].str_value)) {
num_delete_x = _local1[matrix[i][n]]._x;
num_delete_y = _local1[matrix[i][n]]._y;
t = 0;
while (t < 3) {
if (check_array_to_delete(matrix[i][n + t]) == 0) {
arr_to_delete.push(matrix[i][n + t]);
}
t++;
}
}
n++;
}
i++;
}
}
add_points(arr_to_delete.length);
delete_fruits();
}
function check_four_lines() {
var _local1 = _root;
arr_to_delete = new Array();
i = 0;
while (i < 8) {
n = 0;
while (n < 8) {
if (((_local1[matrix[i][n]].str_value == _local1[matrix[i + 1][n]].str_value) && (_local1[matrix[i][n]].str_value == _local1[matrix[i + 2][n]].str_value)) && (_local1[matrix[i][n]].str_value == _local1[matrix[i + 3][n]].str_value)) {
num_delete_x = _local1[matrix[i][n]]._x;
num_delete_y = _local1[matrix[i][n]]._y;
t = 0;
while (t < 4) {
if (check_array_to_delete(matrix[i + t][n]) == 0) {
arr_to_delete.push(matrix[i + t][n]);
}
t++;
}
}
if (((_local1[matrix[i][n]].str_value == _local1[matrix[i][n + 1]].str_value) && (_local1[matrix[i][n]].str_value == _local1[matrix[i][n + 2]].str_value)) && (_local1[matrix[i][n]].str_value == _local1[matrix[i][n + 3]].str_value)) {
num_delete_x = _local1[matrix[i][n]]._x;
num_delete_y = _local1[matrix[i][n]]._y;
t = 0;
while (t < 4) {
if (check_array_to_delete(matrix[i][n + t]) == 0) {
arr_to_delete.push(matrix[i][n + t]);
}
t++;
}
}
n++;
}
i++;
}
}
function check_array_to_delete(my_movie) {
var _local2 = my_movie;
var _local1 = 0;
m = 0;
while (m < arr_to_delete.length) {
if (arr_to_delete[m] == _local2) {
_local1 = 1;
break;
}
m++;
}
return(_local1);
}
function delete_fruits() {
var _local1 = _root;
i = 0;
while (i < arr_to_delete.length) {
matrix[_local1[arr_to_delete[i]].arr_pos[0]][_local1[arr_to_delete[i]].arr_pos[1]] = "empty";
removeMovieClip(arr_to_delete[i]);
i++;
}
if (arr_to_delete.length > 0) {
row_sound.start();
}
resort_matrix();
}
function add_points(num_fruits) {
var _local1 = num_fruits;
trace("NF" + _local1);
if (_local1 == 3) {
num_points = num_points + 20;
show_points(20);
} else if (_local1 == 4) {
num_points = num_points + 50;
show_points(50);
} else if (_local1 == 5) {
num_points = num_points + 100;
show_points(100);
} else if (_local1 == 6) {
num_points = num_points + 150;
show_points(150);
} else if (_local1 == 7) {
num_points = num_points + 200;
show_points(200);
} else if (_local1 == 8) {
num_points = num_points + 250;
show_points(250);
} else if (_local1 == 9) {
num_points = num_points + 300;
show_points(300);
} else if (_local1 == 10) {
num_points = num_points + 350;
show_points(350);
} else if (_local1 == 11) {
num_points = num_points + 400;
show_points(400);
} else if (_local1 == 12) {
num_points = num_points + 450;
show_points(450);
} else if (_local1 == 13) {
num_points = num_points + 500;
show_points(500);
} else if (_local1 == 14) {
num_points = num_points + 550;
show_points(550);
} else if ((_local1 == 0) && (bln_replace == true)) {
num_points = num_points - 20;
num_delete_x = _root._xmouse;
num_delete_y = _root._ymouse - 20;
show_points(-20);
}
bln_replace = false;
}
function check_end_move() {
var _local2 = _root;
var _local1 = false;
i = 0;
while (i < 8) {
n = 0;
while (n < 8) {
if (_local2[matrix[i][n]].bln_move == true) {
_local1 = true;
break;
}
n++;
}
i++;
}
if (_local1 != true) {
check_line();
}
}
function resort_matrix() {
i = 0;
while (i < 8) {
var _local1 = new Array();
n = 0;
while (n < 8) {
if (matrix[i][n] == "empty") {
_local1.unshift(matrix[i][n]);
} else {
_local1.push(matrix[i][n]);
}
n++;
}
matrix[i] = _local1;
_local1 = null;
i++;
}
add_new_fruits();
}
function refresh_matrix() {
var _local1 = _root;
i = 0;
while (i < 8) {
n = 0;
while (n < 8) {
if (matrix[i][n] != "empty") {
_local1[matrix[i][n]].str_course = get_course(280 + (i * 42), 80 + (n * 42), _local1[matrix[i][n]]._x, _local1[matrix[i][n]]._y);
_local1[matrix[i][n]].end_x = 280 + (i * 42);
_local1[matrix[i][n]].end_y = 80 + (n * 42);
_local1[matrix[i][n]].arr_pos = new Array(i, n);
if ((_local1[matrix[i][n]]._x != (280 + (i * 42))) || (_local1[matrix[i][n]]._y != (80 + (n * 42)))) {
_local1[matrix[i][n]].bln_move = true;
}
}
n++;
}
i++;
}
}
function add_new_fruits() {
var _local2 = _root;
num_count++;
i = 0;
while (i < 8) {
var f = 1;
n = 7;
while (n >= 0) {
if (matrix[i][n] == "empty") {
var m = 1;
var _local3 = arr_faces[getRandomValue(7)];
var _local1 = String(num_count);
duplicateMovieClip ("mc_container", _local1, num_count);
_local2[_local1]._x = 280 + (i * 42);
_local2[_local1]._y = 80 - (42 * f);
_local2[_local1].attachMovie(_local3, "new", 1);
_local2[_local1].str_value = _local3;
_local2[_local1].arr_pos = new Array(i, n);
matrix[i][n] = _local1;
num_count++;
f++;
}
n--;
}
i++;
}
if (m == 1) {
drop_sound.start();
}
refresh_matrix();
}
function rotate_fruit() {
str_movie_rotate = matrix[rotate_i][rotate_n];
var _local1 = arr_faces[getRandomValue(7)];
_root[matrix[rotate_i][rotate_n]].attachMovie(_local1, "new", 1);
_root[matrix[rotate_i][rotate_n]].str_value = _local1;
}
function end_level() {
if (bln_end_level == true) {
if (num_level == 3) {
bul_game_over = true;
var _local2 = "GAME OVER";
var _local1 = "Final Score " + String(num_points);
mcReplay._y = 415;
} else {
num_level++;
if (num_level == 3) {
var _local2 = "ROUND THREE";
var _local1 = "Match any 4 treasures to score points. Last round, good luck!";
} else {
var _local2 = "ROUND TWO";
var _local1 = "Match any 3 treasures to score points. Watch out for rotating pieces!";
}
}
fade_out_all();
mc_message.swapDepths(5000);
mc_message._y = 215;
mc_message.str_message = _local2;
mc_message.str_message2 = _local1;
mc_message.play();
}
}
function start_level() {
remove_all_clips();
bln_end_level = false;
num_x = 280;
num_y = -340;
num_fall = 7;
show_faces();
}
function start_game() {
mc_message.swapDepths(5000);
mc_message._y = 215;
var _local2 = "ROUND ONE";
var _local1 = "Match any 3 treasures to score points. Match 4 or more to earn bonus points.";
mc_message.str_message = _local2;
mc_message.str_message2 = _local1;
mc_message.gotoAndPlay(2);
}
function start_sounds() {
row_sound.setVolume(100);
drop_sound.setVolume(100);
warn_sound.setVolume(100);
}
function stop_sounds() {
row_sound.setVolume(0);
drop_sound.setVolume(0);
warn_sound.setVolume(0);
}
function remove_all_clips() {
i = 0;
while (i < 8) {
n = 0;
while (n < 8) {
removeMovieClip(matrix[i][n]);
n++;
}
i++;
}
}
function fade_out_all() {
var _local1 = _root;
i = 0;
while (i < 8) {
n = 0;
while (n < 8) {
_local1[matrix[i][n]].bln_fade_out = true;
n++;
}
i++;
}
}
function fall_in() {
var _local1 = _root;
if (num_fall >= 0) {
n = num_fall;
i = 0;
while (i < 8) {
_local1[matrix[i][n]].str_course = get_course(280 + (i * 42), 80 + (n * 42), _local1[matrix[i][n]]._x, _local1[matrix[i][n]]._y);
_local1[matrix[i][n]].end_x = 280 + (i * 42);
_local1[matrix[i][n]].end_y = 80 + (n * 42);
_local1[matrix[i][n]].bln_move = true;
i++;
}
num_fall--;
drop_sound.start();
}
}
function show_points(num) {
var _local1 = _root;
trace((((("SP" + num) + " ") + num_delete_x) + " ") + num_delete_y);
duplicateMovieClip ("mc_container1", String(num_count), num_count + 10);
_local1[String(num_count)].attachMovie("mc_points", "new", 1);
_local1[String(num_count)]._x = num_delete_x;
_local1[String(num_count)]._y = num_delete_y;
_local1[String(num_count)].points = num;
num_count++;
}
function Replay() {
num_level = 1;
num_points = 0;
mc_first_movie = null;
bln_end_level = true;
bul_game_over = false;
num_fall = 7;
}
arr_faces = new Array("mc_ananas", "mc_apple", "mc_banana", "mc_orange", "mc_peach", "mc_pear", "mc_plum");
matrix = new Array(8);
arr_to_delete = new Array();
num_count = 10;
num_x = 280;
num_y = 400;
num_level = 1;
mc_first_movie = null;
bln_end_level = true;
bul_game_over = false;
num_fall = 7;
mc_message.gotoAndStop(1);
mc_message._y = -1000;
setup_souns();
build_matrix();
start_game();
stop();
function g_fSetGameSize(a_numWidth, a_numHeight) {
g_numGameWidth = a_numWidth;
g_numGameHeight = a_numHeight;
}
function playAgain() {
_root.gotoAndPlay(2);
}
function downloadStandAlone() {
getURL (downloadURL, "_blank");
}
g_fSetGameSize(680, 430);
endContainer.playAgain = function () {
_root.gotoAndPlay(2);
};
endContainer.downloadStandAlone = function () {
getURL (_root.downloadURL, "_blank");
};
Instance of Symbol 98 MovieClip "mcHelp" in Frame 3
onClipEvent (load) {
this.swapDepths(4900);
}
Instance of Symbol 60 MovieClip "mc_container" in Frame 3
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.bln_end_level != true)) {
if (this._name == _root.str_movie_rotate) {
_root.str_movie_rotate = null;
_root.check_line();
}
_root.click_on_fruit(this);
}
}
onClipEvent (mouseMove) {
if ((this.hitTest(_root._xmouse, _root._ymouse, true) && (this != _root.mc_first_movie)) && (_root.bln_end_level != true)) {
this.new.gotoAndStop(2);
} else if ((this != _root.mc_first_movie) && (_root.bln_end_level != true)) {
this.new.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if ((this._alpha > 0) && (this.bln_fade_out == true)) {
this._alpha = this._alpha - 5;
}
if (this.bln_move == true) {
if (this.str_course == "left") {
if (this._x < this.end_x) {
this.bln_move = false;
this._x = this.end_x;
_root.check_end_move();
} else {
this._x = this._x - 14.1;
}
} else if (this.str_course == "right") {
if (this._x > this.end_x) {
this.bln_move = false;
this._x = this.end_x;
_root.check_end_move();
} else {
this._x = this._x + 14.1;
}
} else if (this.str_course == "up") {
if (this._y > this.end_y) {
this.bln_move = false;
this._y = this.end_y;
_root.check_end_move();
} else {
this._y = this._y + 14.1;
}
} else if (this.str_course == "down") {
if (this._y < this.end_y) {
this.bln_move = false;
this._y = this.end_y;
_root.check_end_move();
} else {
this._y = this._y - 14.1;
}
}
}
}
Instance of Symbol 233 MovieClip in Frame 3
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 60 MovieClip "endFeature" in Frame 3
/* no clip actions */
Frame 16
function playAgain() {
gotoAndPlay (2);
}
mcHelp.removeMovieClip();
mc_message.removeMovieClip();
remove_all_clips();
g_numScore = num_points;
mcHelp.removeMovieClip();
stop();
endContainer.g_numScore = num_points;
mcGameEnd.removeMovieClip();
if ((crypto == 2) || (crypto == 0)) {
postGameLog();
_root.xmlGameEnd.load((gameEndSubmitUrl + "?params=") + TEAEncrypt((((("freePlayID=" + freeplayid) + "&score=") + endContainer.g_numScore) + "&timeStamp=") + timeStamp, tKey));
} else {
trace("config");
_root.t_fLoadGameEnd();
}
Instance of Symbol 60 MovieClip "endFeature" in Frame 16
/* no clip actions */
Symbol 12 MovieClip Frame 10
stop();
Symbol 13 MovieClip [mc_plum] Frame 1
stop();
Symbol 19 MovieClip [mc_pear] Frame 1
stop();
Symbol 25 MovieClip [mc_peach] Frame 1
stop();
Symbol 31 MovieClip [mc_orange] Frame 1
stop();
Symbol 37 MovieClip [mc_banana] Frame 1
stop();
Symbol 43 MovieClip [mc_apple] Frame 1
stop();
Symbol 49 MovieClip [mc_ananas] Frame 1
stop();
Symbol 52 MovieClip [mc_points] Frame 25
_parent.removeMovieClip();
Symbol 59 MovieClip Frame 1
nowb = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = int((nowb / total) * 100);
setProperty("_root.loading.line", _xscale , percent);
if (percent >= 99) {
_root.play();
}
Symbol 59 MovieClip Frame 2
gotoAndPlay (1);
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
play();
Symbol 77 MovieClip Frame 26
if (_root.bul_game_over == true) {
_root.warn_sound.start();
}
Symbol 77 MovieClip Frame 75
if (_root.bul_game_over == true) {
stop();
_root.play();
}
Symbol 77 MovieClip Frame 115
_root.start_level();
this._y = -1000;
Symbol 82 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 86 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 87 MovieClip Frame 1
stop();
_root.start_sounds();
Symbol 87 MovieClip Frame 2
stop();
_root.stop_sounds();
Symbol 88 MovieClip Frame 1
stop();
Symbol 90 Button
on (release, releaseOutside) {
if (_currentframe == 1) {
_parent.pressButton();
this.swapDepths(15000);
play();
}
}
Symbol 97 Button
on (release, releaseOutside) {
_parent.pressButton();
play();
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 13
stop();
Symbol 98 MovieClip Frame 23
gotoAndStop (1);
Symbol 100 MovieClip Frame 1
if (_root.logoUrl == undefined) {
play();
} else {
loadBrandMov.loadMovie(_root.logoUrl);
stop();
}
Symbol 100 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
num_level_time = _root.gameTotalTime;
num_start_time = Math.floor(getTimer());
gotoAndPlay (3);
Symbol 225 MovieClip Frame 3
time = Math.floor(num_level_time - ((getTimer() - num_start_time) / 1000));
if (time == my_time) {
play();
} else {
if (time <= 0) {
gotoAndStop (5);
_root.bln_end_level = true;
_root.end_level();
}
if (time == 10) {
_root.warn_sound.start();
}
if (_root.num_level == 2) {
if (_root.str_movie_rotate != null) {
_root.rotate_fruit();
} else {
_root.rotate_i = random(8);
_root.rotate_n = random(8);
_root.rotate_fruit();
}
}
trace(time);
minutes = Math.floor(time / 60);
seconds = Math.floor(time % 60);
str_time = String(minutes) + " : ";
if (seconds > 9) {
str_time = str_time + String(seconds);
} else {
str_time = str_time + ("0" + String(seconds));
}
play();
}
Symbol 225 MovieClip Frame 4
my_time = time;
gotoAndStop (3);
Symbol 225 MovieClip Frame 5
stop();
str_time = "0 : 00";
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
play();
Symbol 229 MovieClip Frame 6
_root.fall_in();
if (_root.num_fall < 0) {
play();
} else {
gotoAndPlay (2);
}
Symbol 229 MovieClip Frame 45
_root.mc_timer.gotoAndPlay(2);
gotoAndStop (1);