Frame 1
_global.G = this;
G.secretword = "killerwhale";
_global.MD5 = new Object();
MD5.hexcase = 0;
MD5.b64pad = "";
MD5.chrsz = 8;
MD5.hex_md5 = function (s) {
trace(("pushing s(" + s) + ") to hex_md5");
return(this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.b64_md5 = function (s) {
return(this.binl2b64(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.str_md5 = function (s) {
return(this.binl2str(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.hex_hmac_md5 = function (key, data) {
return(this.binl2hex(this.core_hmac_md5(key, data)));
};
MD5.b64_hmac_md5 = function (key, data) {
return(this.binl2b64(this.core_hmac_md5(key, data)));
};
MD5.str_hmac_md5 = function (key, data) {
return(this.binl2str(this.core_hmac_md5(key, data)));
};
MD5.md5_vm_test = function () {
return(this.hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
};
MD5.core_md5 = function (x, len) {
var _local11;
var _local10;
var _local9;
var _local8;
x[len >> 5] = x[len >> 5] | (128 << (len & 31));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local12 = x.length;
var _local6 = 0;
while (_local6 < _local12) {
_local11 = _local5;
_local10 = _local4;
_local9 = _local3;
_local8 = _local2;
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = this.safe_add(_local5, _local11);
_local4 = this.safe_add(_local4, _local10);
_local3 = this.safe_add(_local3, _local9);
_local2 = this.safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
var _local14 = Array(_local5, _local4, _local3, _local2);
return(_local14);
};
MD5.md5_cmn = function (q, a, b, x, s, t) {
var _local2 = this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b);
return(_local2);
};
MD5.md5_ff = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
};
MD5.test = function () {
};
MD5.md5_gg = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
};
MD5.md5_hh = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b ^ c) ^ d, a, b, x, s, t));
};
MD5.md5_ii = function (a, b, c, d, x, s, t) {
return(this.md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
};
MD5.core_hmac_md5 = function (key, data) {
var _local3 = this.str2binl(key);
if (_local3.length > 16) {
_local3 = this.core_md5(_local3, key.length * this.chrsz);
}
var _local4 = Array(16);
var _local5 = Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = this.core_md5(_local4.concat(this.str2binl(data)), 512 + (data.length * this.chrsz));
return(this.core_md5(_local5.concat(_local6), 640));
};
MD5.safe_add = function (x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
};
MD5.bit_rol = function (num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
};
MD5.str2binl = function (str) {
var _local3 = Array();
var _local4 = (1 << this.chrsz) - 1;
var _local5 = str.length * this.chrsz;
var _local2 = 0;
while (_local2 < _local5) {
_local3[_local2 >> 5] = _local3[_local2 >> 5] | ((str.charCodeAt(_local2 / this.chrsz) & _local4) << (_local2 & 31));
_local2 = _local2 + this.chrsz;
}
return(_local3);
};
MD5.binl2str = function (bin) {
var _local3 = "";
var _local4 = (1 << this.chrsz) - 1;
var _local5 = bin.length * 32;
var _local2 = 0;
while (_local2 < _local5) {
_local3 = _local3 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 & 31)) & _local4);
_local2 = _local2 + this.chrsz;
}
return(_local3);
};
MD5.binl2hex = function (binarray) {
var _local3 = (this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local5 = "";
var _local6 = binarray.length * 4;
var _local2 = 0;
while (_local2 < _local6) {
_local5 = _local5 + (_local3.charAt((binarray[_local2 >> 2] >> (((_local2 & 3) * 8) + 4)) & 15) + _local3.charAt((binarray[_local2 >> 2] >> ((_local2 & 3) * 8)) & 15));
_local2++;
}
return(_local5);
};
MD5.binl2b64 = function (binarray) {
var _local9 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local6 = "";
var _local7 = binarray.length * 4;
var _local8 = 4 * _local7;
var _local2 = 0;
while (_local2 < _local7) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (_local2 & 3))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) & 3))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) & 3))) & 255);
_local2 = _local2 + 3;
}
var _local3 = 0;
while (_local3 < 4) {
if (((_local2 * 8) + (_local3 * 6)) > _local8) {
_local6 = _local6 + this.b64pad;
} else {
_local6 = _local6 + _local9.charAt((_local5 >> (6 * (3 - _local3))) & 63);
}
_local3++;
}
return(_local6);
};
baseurl = "http://panthro.teamrubber.com/rubber_client_work/ningotiators/";
G.fcheckScore = function (myscore) {
trace("-fcheckScore- init backend service ");
testinfo = "--------------\n";
var sendInfo = new LoadVars();
sendInfo.score = myscore;
sendInfo.scoreEncrypt = _global.MD5.hex_md5(myscore + G.secretword);
sendInfo.onLoad = function (success) {
if (success) {
trace(((((("-fcheckScore- success: value(" + sendInfo.value) + ") rank(") + sendInfo.rank) + ") top_score(") + sendInfo.top_score) + ")");
G.serverdone = true;
G.res = sendInfo;
testinfo = testinfo + (((((("-fcheckScore- success: value(" + sendInfo.value) + ") rank(") + sendInfo.rank) + ") top_score(") + sendInfo.top_score) + ")\n");
} else {
trace(((((("-fcheckScore- fail: value(" + sendInfo.value) + ") rank(") + sendInfo.rank) + ") top_score(") + sendInfo.top_score) + ")");
G.serverdone = true;
testinfo = testinfo + (((((("-fcheckScore- fail: value(" + sendInfo.value) + ") rank(") + sendInfo.rank) + ") top_score(") + sendInfo.top_score) + ")\n");
}
};
sendInfo.sendAndLoad(baseurl + "checkScore", sendInfo, "POST");
};
G.fsubmitScore = function (myname, myemail, myscore, me) {
trace("-fsubmitScore- init backend service ");
testinfo = testinfo + (("-------------- me(" + me) + ")\n");
var sendInfo = new LoadVars();
sendInfo.name = myname;
sendInfo.email = myemail;
sendInfo.score = myscore;
sendInfo.scoreEncrypt = _global.MD5.hex_md5(myscore + G.secretword);
sendInfo.onLoad = function (success) {
if (success) {
testinfo = testinfo + (("-fsubmitScore- success: ok(" + sendInfo.ok) + ")\n");
trace(("-fsubmitScore- success: ok(" + sendInfo.ok) + ")");
G.res = sendInfo;
if (Number(sendInfo.ok) == 1) {
testinfo = testinfo + (((("1 ok = " + Number(sendInfo.ok)) + " me(") + me) + ")\n");
me.gotoAndPlay("sent");
} else if (Number(sendInfo.ok) == 2) {
testinfo = testinfo + (((("2 ok = " + Number(sendInfo.ok)) + " me(") + me) + ")\n");
me.gotoAndPlay("usedemail");
} else if (Number(sendInfo.ok) == 3) {
testinfo = testinfo + (((("3 ok = " + Number(sendInfo.ok)) + " me(") + me) + ")\n");
me.gotoAndPlay("error");
} else if (Number(sendInfo.ok) == 4) {
testinfo = testinfo + (((("4 ok = " + Number(sendInfo.ok)) + " me(") + me) + ")\n");
me.gotoAndPlay("banned_email");
} else {
testinfo = testinfo + (((("5 ok = " + Number(sendInfo.ok)) + " me(") + me) + ")\n");
}
me.testinfo = "ok=" + sendInfo.ok;
} else {
testinfo = testinfo + (("-fsubmitScore- fail: ok(" + sendInfo.ok) + ")\n");
trace(("-fsubmitScore- fail: ok(" + sendInfo.ok) + ")");
me.gotoAndPlay("error");
me.testinfo = "ok=" + sendInfo.ok;
}
};
sendInfo.sendAndLoad(baseurl + "submitScore", sendInfo, "GET");
};
G.fsendToFriend = function (name, email, friendsName, friendsEmail, myscore, me) {
trace("-fsendToFriend- init backend service ");
testinfo = testinfo + "--------------\n";
var sendInfo = new LoadVars();
sendInfo.myname = name;
sendInfo.myemail = email;
sendInfo.name = friendsName;
sendInfo.email = friendsEmail;
sendInfo.score = myscore;
trace("score=" + sendInfo.score);
sendInfo.onLoad = function (success) {
if (success) {
testinfo = testinfo + (("-fsendToFriend- success: ok(" + sendInfo.ok) + ") \n");
trace(("-fsendToFriend- success: ok(" + sendInfo.ok) + ") ");
G.res = sendInfo;
if (sendInfo.ok == "1") {
me.gotoAndPlay("sent1");
} else if (sendInfo.ok == "2") {
me.gotoAndPlay("error1");
}
} else {
testinfo = testinfo + (("-fsendToFriend- success: ok(" + sendInfo.ok) + ")\n");
trace(("-fsendToFriend- success: ok(" + sendInfo.ok) + ") ");
me.gotoAndPlay("error1");
}
};
sendInfo.sendAndLoad(baseurl + "sendToFriend", sendInfo, "GET");
};
G.fholidayDraw = function (myname, myemail, me) {
trace("-fholidayDraw- init backend service ");
testinfo = testinfo + "--------------\n";
var sendInfo = new LoadVars();
sendInfo.name = myname;
sendInfo.email = myemail;
sendInfo.onLoad = function (success) {
if (success) {
testinfo = testinfo + (("fholidayDraw- success: ok(" + sendInfo.ok) + ") \n");
trace(("-fholidayDraw- success: ok(" + sendInfo.ok) + ") ");
G.res = sendInfo;
if (sendInfo.ok == "1") {
me.gotoAndPlay("sent2");
} else if (sendInfo.ok == "2") {
me.gotoAndPlay("error2");
}
} else {
trace(("-fholidayDraw- fail: ok(" + sendInfo.ok) + ") ");
testinfo = testinfo + (("-fholidayDraw- fail: ok(" + sendInfo.ok) + ") \n");
me.gotoAndPlay("error2");
}
};
sendInfo.sendAndLoad(baseurl + "holidayDraw", sendInfo, "GET");
};
Frame 2
check2load = function () {
if ((this.getBytesLoaded() == this.getBytesTotal()) and (this.getBytesTotal() > 100)) {
preloadpercent = "100%";
preloadbar.gotoAndStop(100);
return(true);
}
kbLoaded = Math.floor(this.getBytesLoaded() / 1000);
kbtotal = Math.floor(this.getBytesTotal() / 1000);
percentageLoaded = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
preloadpercent = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100) + "%";
screen_preload.preloadbar.gotoAndStop(percentageLoaded);
return(false);
};
this.onEnterFrame = function () {
if (check2load()) {
G.gotoAndPlay("tr");
this.onEnterFrame = undefined;
}
};
stop();
Frame 24
G.soundsw = "on";
G.sCharm1 = new Sound(G.createEmptyMovieClip("sound1", 121));
G.sCharm1.attachSound("Ningo-Charm_1");
G.sCharm2 = new Sound(G.createEmptyMovieClip("sound1", 101));
G.sCharm2.attachSound("Ningo-Charm_2");
G.sDeath = new Sound(G.createEmptyMovieClip("sound2", 102));
G.sDeath.attachSound("Ningo-death");
G.sHeadlock1 = new Sound(G.createEmptyMovieClip("sound3", 103));
G.sHeadlock1.attachSound("Ningo-headlock_1");
G.sHeadlock2 = new Sound(G.createEmptyMovieClip("sound3b", 113));
G.sHeadlock2.attachSound("Ningo-headlock_2");
G.sInGameMusic = new Sound(G.createEmptyMovieClip("sound4", 104));
G.sInGameMusic.attachSound("Ningo-InGameMusic");
G.sKarateChop1 = new Sound(G.createEmptyMovieClip("sound5", 105));
G.sKarateChop1.attachSound("Ningo-karateChop_1");
G.sKarateChop2 = new Sound(G.createEmptyMovieClip("sound5b", 115));
G.sKarateChop2.attachSound("Ningo-karateChop_2");
G.sRollover = new Sound(G.createEmptyMovieClip("sound6", 106));
G.sRollover.attachSound("Ningo-rollover");
G.sIntro = new Sound(G.createEmptyMovieClip("sound7", 107));
G.sIntro.attachSound("Ningo-Introjingle2");
G.sWalk = new Sound(G.createEmptyMovieClip("sound8", 108));
G.sWalk.attachSound("Ningo-running");
G.sPoints = new Sound(G.createEmptyMovieClip("sound9", 109));
G.sPoints.attachSound("Ningo-pointsachieved");
G.sYa = new Sound(G.createEmptyMovieClip("sound31", 131));
G.sYa.attachSound("Ya");
G.sReady = new Sound(G.createEmptyMovieClip("sound32", 132));
G.sReady.attachSound("Ready");
G.sHai = new Sound(G.createEmptyMovieClip("sound33", 133));
G.sHai.attachSound("Hai");
G.sWhuaa = new Sound(G.createEmptyMovieClip("sound34", 134));
G.sWhuaa.attachSound("Whuaa");
if (G.soundsw != "off") {
G.sIntro.start(0, 0);
G.sIntro.setVolume(60);
}
G.soundlist = new Array(G.sWhuaa, G.sHai, G.sReady, G.sYa, G.sCharm1, G.sCharm2, G.sDeath, G.sHeadlock1, G.sHeadlock2, G.sInGameMusic, G.sInGameMusic, G.sKarateChop1, G.sKarateChop2, G.sRollover, G.sIntro, G.sWalk, G.sPoints);
G.fadeouOutIntro = function () {
G.createEmptyMovieClip("temp_fademusic2", 2001);
G.temp_fademusic2.onEnterFrame = function () {
if (G.sIntro.getVolume() > 0) {
G.sIntro.setVolume(G.sIntro.getVolume() - 10);
} else {
G.sIntro.setVolume(0);
G.sIntro.stop();
this.removeMovieClip();
}
};
};
G.fadeouOutMusic = function () {
G.createEmptyMovieClip("temp_fademusic", 2000);
G.temp_fademusic.onEnterFrame = function () {
if (G.sInGameMusic.getVolume() > 0) {
G.sInGameMusic.setVolume(G.sInGameMusic.getVolume() - 10);
} else {
G.sInGameMusic.setVolume(0);
G.sInGameMusic.stop();
this.removeMovieClip();
}
};
};
function toSplash() {
com.teamrubber.SeqTrackerAdaptor.doLoad();
if (_root.directo2friends != "1") {
G.gotoAndPlay("intro");
} else {
G.gotoAndPlay("friends");
}
}
stop();
com.teamrubber.SeqTrackerAdaptor.setComponentReference(this.tracker_comp);
com.teamrubber.SeqTrackerAdaptor.initTracker(toSplash);
Frame 29
stop();
G.initgame = function () {
G.randomSoundFreq = 12;
G.gameover = false;
G.difficulty = 1;
G.intDifficulty = 1;
trace("init game");
G.gamespeed = 1;
G.gamespeedinc = 0.001;
G.maxgamespeed = 3;
G.mystatus = "start";
G.score = 0;
G.topTiles = new Array();
G.bottomTiles = new Array();
G.tilecounter = 0;
G.topActive = undefined;
G.bottomActive = undefined;
G.topFirst = undefined;
G.bottomFirst = undefined;
G.ch.ninja.roadpos = G.ch.ninja._y;
G.wr = 1.41717794;
G.freeze = false;
G.createTile("top", false);
G.createTile("bottom", false);
};
G.rungame = function () {
G.difficulty = G.difficulty + 0.002;
G.intDifficulty = Math.round(G.difficulty);
if (G.intDifficulty > 4) {
G.intDifficulty = 4;
}
if (G.mystatus != "dead") {
G.chloop();
if (G.gamespeed < G.maxgamespeed) {
G.gamespeed = G.gamespeed + G.gamespeedinc;
} else {
G.gamespeed = G.maxgamespeed;
}
if ((G.topActive._x + G.topActive._width) < 580) {
G.createTile("top", G.topActive);
}
if ((G.bottomActive._x + G.bottomActive._width) < 580) {
G.createTile("bottom", G.bottomActive);
}
if (((G.topFirst._x + G.topFirst._width) + G.topFirst.hotel._width) < -30) {
var _local1 = G.topFirst;
G.topFirst = _local1.child;
G.topTiles.shift();
_local1.myobjects.removeMovieClip();
_local1.hotel.detector.removeMovieClip();
_local1.hotel.removeMovieClip();
_local1.detector.removeMovieClip();
_local1.removeMovieClip();
}
if (((G.bottomFirst._x + G.bottomFirst._width) + G.bottomFirst.hotel._width) < -30) {
var _local1 = G.bottomFirst;
G.bottomFirst = _local1.child;
G.bottomTiles.shift();
_local1.myobjects.removeMovieClip();
_local1.hotel.detector.removeMovieClip();
_local1.hotel.removeMovieClip();
_local1.detector.removeMovieClip();
_local1.removeMovieClip();
}
G.animloop();
if (G.ch.ninja._x < 26) {
G.mystatus = "dead";
G.freeze = true;
G.ch.ninja.gotoAndStop("die");
if (G.soundsw != "off") {
if (G.sWalk.started != false) {
G.sWalk.started = false;
G.sWalk.stop();
}
G.fadeouOutMusic();
}
G.fcheckScore(G.score);
G.gameover = true;
} else if (G.ch.ninja._x < 90) {
if (G.blowup.bu.blol.warn != true) {
G.blowup.bu.blol.warn = true;
G.blowup.bu.blol.gotoAndPlay("warning");
}
G.ch.ninja.warning._alpha = 100;
} else {
G.blowup.bu.blol.gotoAndStop("normal");
G.ch.ninja.warning._alpha = 0;
G.blowup.bu.blol.warn = false;
}
}
};
G.endgame = function () {
trace("- end the game -");
G.gotoAndStop("gameover");
};
G.createTile = function (dir, follow) {
var _local2 = (("tile_" + dir) + "_") + G.tilecounter;
if (dir == "top") {
tiles1.attachMovie("roads" + dir, _local2, G.tilecounter++);
var ct = tiles1[_local2];
} else if (dir == "bottom") {
tiles2.attachMovie("roads" + dir, _local2, G.tilecounter++);
var ct = tiles2[_local2];
}
G[dir + "Tiles"].push(ct);
G[dir + "Active"] = ct;
if (dir == "top") {
ct._y = 262;
} else {
ct._y = 396;
}
if (follow == false) {
ct._x = 0;
G[dir + "First"] = ct;
ct.after = false;
} else {
follow.child = ct;
ct.after = follow;
ct._x = 2000;
}
ct.ready = function () {
if (ct.readied != true) {
ct.readied = true;
ct.diff = G.intDifficulty;
if (ct.diff < 1) {
ct.diff = 1;
}
if (ct.diff > 4) {
ct.diff = 4;
}
if (random(3) == 0) {
ct.diff = ct.diff + (random(11) - 6);
} else if (random(3) == 0) {
ct.diff = ct.diff + (random(5) - 2);
}
if (ct.diff < 1) {
ct.diff = 1;
}
if (ct.diff > 4) {
ct.diff = 4;
}
ct.gotoAndStop(1 + ct.diff);
if (dir == "bottom") {
G.tiles2objects.attachMovie("roads" + dir, "items_of_" + this._name, G.tilecounter++);
G.tiles2objects["items_of_" + this._name].boss = this;
this.tiles2objects = G.tiles2objects["items_of_" + this._name];
G.tiles2objects["items_of_" + this._name].frameToGo = this._currentframe + 20;
G.tiles2objects["items_of_" + this._name].onEnterFrame = function () {
if (this.once != true) {
this.gotoAndStop(this.frameToGo);
this.once = true;
this._x = this.boss._x;
this._y = this.boss._y;
this.onEnterFrame = undefined;
}
};
ct.myobjects = G.tiles2objects["items_of_" + this._name];
}
this._x = (this.after._x + (this.after.p2._x - this.after.p1._x)) + (this.after.hotel.p2._x - this.after.hotel.p1._x);
G.detector.attachMovie("roads" + dir, this._name, G.tilecounter++);
G.detector[this._name].det = true;
G.detector[this._name]._x = this._x;
G.detector[this._name]._y = this._y;
this.detector = G.detector[this._name];
G.detector[this._name].gotoAndStop(this._currentframe + 10);
}
};
_local2 = ((("tile_" + dir) + "_") + G.tilecounter) + "_hotel";
if (dir == "top") {
tiles1.attachMovie("hotels" + dir, _local2, G.tilecounter++);
ct.hotel = tiles1[_local2];
} else {
tiles2.attachMovie("hotels" + dir, _local2, G.tilecounter++);
ct.hotel = tiles2[_local2];
}
ct.testv = ct.p2._x - ct.p1._x;
ct.hotel._x = 2000;
ct.hotel.after = ct;
if (dir == "top") {
ct.hotel._y = 262;
} else {
ct.hotel._y = 402;
}
ct.hotel.ready = function () {
if (ct.hotel.readied != true) {
ct.hotel.readied = true;
ct.hotel.diff = ct.diff;
ct.hotel.gotoAndStop(1 + ct.hotel.diff);
this._x = this.after._x + (this.after.p2._x - this.after.p1._x);
G.detector.attachMovie("hotels" + dir, this._name, G.tilecounter++);
G.detector[this._name].det = true;
G.detector[this._name].myhotel = this;
G.detector[this._name]._x = this._x;
G.detector[this._name]._y = this._y;
this.detector = G.detector[this._name];
G.detector[this._name].gotoAndStop(this._currentframe + 10);
G.detector[this._name]._alpha = 30;
G.detector[this._name].onEnterFrame = function () {
if (!G.freeze) {
var _local2 = {x:G.ch.ninja.s7._x, y:G.ch.ninja.s7._y};
G.ch.ninja.localToGlobal(_local2);
var _local3 = this.hitTest(_local2.x, _local2.y, true);
if (_local3 and (this.done != true)) {
G.currenthotel = this.myhotel;
G.freeze = true;
G.activateHotel(this);
G.blowup.gotoAndPlay("open");
this.calcx = G.ch.ninja._x;
if (this.calcx > 520) {
this.calcx = 520;
} else if (this.calcx < 30) {
this.calcx = 30;
}
G.blowup.startx = this.calcx;
G.blowup._x = this.calcx;
this.calcy = G.ch.ninja._y - 22;
if (this.calcy > 350) {
this.calcy = 350;
} else if (this.calcy < 80) {
this.calcy = 80;
}
G.blowup.starty = this.calcy;
G.blowup._y = this.calcy;
G.blowup.bu.onEnterFrame = function () {
this.calcx = (((540 - (G.blowup.mysize._width / 2)) - 4) - G.blowup._x) / 4;
if ((G.blowup._x + this.calcx) > ((540 - (G.blowup.mysize._width / 2)) - 4)) {
G.blowup._x = (540 - (G.blowup.mysize._width / 2)) - 4;
} else {
G.blowup._x = G.blowup._x + this.calcx;
}
this.calcy = (((390 - (G.blowup.mysize._height / 2)) - 4) - G.blowup._y) / 4;
if ((G.blowup._y + this.calcy) > ((390 - (G.blowup.mysize._height / 2)) - 4)) {
G.blowup._y = (390 - (G.blowup.mysize._height / 2)) - 4;
} else {
G.blowup._y = G.blowup._y + this.calcy;
}
};
this.done = true;
this.onEnterFrame = undefined;
}
}
};
}
};
};
G.animloop = function () {
var _local1 = Math.round((G.gamespeed / 2.5) * 1000) / 1000;
var _local2 = Math.round((G.gamespeed / 4) * 1000) / 1000;
var _local3 = Math.round(G.gamespeed * 1000) / 1000;
G.sky_1._x = G.sky_1._x - _local1;
G.sky_2._x = G.sky_1._x + 1095;
if ((G.sky_1._x - _local1) <= -1095) {
G.sky_1._x = 0;
G.sky_2._x = 1095;
}
G.cloud_1._x = G.cloud_1._x - _local2;
G.cloud_2._x = G.cloud_1._x + 550;
if ((G.cloud_1._x - _local2) <= -550) {
G.cloud_1._x = 0;
G.cloud_2._x = 550;
}
G.road_1._x = G.road_1._x - _local3;
G.road_2._x = G.road_1._x + 550;
if ((G.road_1._x - _local3) <= -550) {
G.road_1._x = 0;
G.road_2._x = 550;
}
var _local4 = G.cloud_2._x - G.cloud_1._x;
i = 0;
while (i < G.topTiles.length) {
G.topTiles[i]._x = G.topTiles[i]._x - G.gamespeed;
G.topTiles[i].hotel._x = G.topTiles[i].hotel._x - G.gamespeed;
G.topTiles[i].detector._x = G.topTiles[i].detector._x - G.gamespeed;
G.topTiles[i].hotel.detector._x = G.topTiles[i].hotel.detector._x - G.gamespeed;
i++;
}
i = 0;
while (i < G.bottomTiles.length) {
G.bottomTiles[i]._x = G.bottomTiles[i]._x - G.gamespeed;
G.bottomTiles[i].hotel._x = G.bottomTiles[i].hotel._x - G.gamespeed;
G.bottomTiles[i].detector._x = G.bottomTiles[i].detector._x - G.gamespeed;
G.bottomTiles[i].hotel.detector._x = G.bottomTiles[i].hotel.detector._x - G.gamespeed;
G.bottomTiles[i].tiles2objects._x = G.bottomTiles[i].tiles2objects._x - G.gamespeed;
i++;
}
};
G.yisoc = function (oldY) {
return(Number((oldY - 8) * 0.6315));
};
G.xisoc = function (oldY) {
return(Number((oldY - 8) * 0.3685));
};
G.chloop = function () {
G.ch.ninja._x = G.ch.ninja._x - G.gamespeed;
var _local1 = 8;
var _local2 = true;
var _local8 = {x:G.ch.ninja.s3._x + (G.xisoc(_local1) / 4), y:G.ch.ninja.s3._y - (G.yisoc(_local1) / 4)};
G.ch.ninja.localToGlobal(_local8);
var _local15 = G.detector.hitTest(_local8.x, _local8.y, true);
var _local5 = {x:G.ch.ninja.s6._x - (G.xisoc(_local1) / 4), y:G.ch.ninja.s6._y + (G.yisoc(_local1) / 4)};
G.ch.ninja.localToGlobal(_local5);
var _local14 = G.detector.hitTest(_local5.x, _local5.y, true);
if (Key.isDown(39) and (G.freeze != true)) {
var _local7 = {x:G.ch.ninja.s4._x + G.xisoc(_local1), y:G.ch.ninja.s4._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local7);
var _local25 = G.detector.hitTest(_local7.x, _local7.y, true);
var _local10 = {x:G.ch.ninja.s4b._x + G.xisoc(_local1), y:G.ch.ninja.s4b._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local10);
var _local28 = G.detector.hitTest(_local10.x, _local10.y, true);
var _local4 = {x:G.ch.ninja.s7._x + ((8 - _local1) / 4), y:G.ch.ninja.s7._y};
G.ch.ninja.localToGlobal(_local4);
var _local23 = G.detector.hitTest(_local4.x, _local4.y, true);
var _local3 = {x:G.ch.ninja.s8._x + (8 - _local1), y:G.ch.ninja.s8._y};
G.ch.ninja.localToGlobal(_local3);
var _local22 = G.detector.hitTest(_local3.x, _local3.y, true);
if (_local22) {
G.ch.ninja.gotoAndStop("right");
G.currentchdir = "right";
if ((G.ch.ninja._x + _local1) < 520) {
G.ch.ninja._x = G.ch.ninja._x + _local1;
_local2 = false;
}
} else if (_local23) {
G.ch.ninja.gotoAndStop("right");
G.currentchdir = "right";
if ((G.ch.ninja._x + (_local1 / 2)) < 520) {
G.ch.ninja._x = G.ch.ninja._x + (_local1 / 2);
_local2 = false;
}
} else if ((_local25 and (G.ch.ninja._y <= G.ch.ninja.roadpos)) and (!Key.isDown(40))) {
G.ch.ninja.gotoAndStop("right");
G.currentchdir = "right";
if ((G.ch.ninja._x + ((_local1 * 0.3685) / 1.001)) < 520) {
G.ch.ninja._y = G.ch.ninja._y - (_local1 * 0.6315);
G.ch.ninja._x = G.ch.ninja._x + ((_local1 * 0.3685) / 1.001);
_local2 = false;
}
var _local29 = true;
} else if ((_local28 and (G.ch.ninja._y > G.ch.ninja.roadpos)) and (!Key.isDown(40))) {
G.ch.ninja.gotoAndStop("right");
G.currentchdir = "right";
if ((G.ch.ninja._x + ((_local1 * 0.3685) / 1.001)) < 520) {
G.ch.ninja._y = G.ch.ninja._y - (_local1 * 0.6315);
G.ch.ninja._x = G.ch.ninja._x + ((_local1 * 0.3685) / 1.001);
_local2 = false;
}
trace("4b");
var _local29 = true;
} else if (_local15 and (!Key.isDown(40))) {
G.ch.ninja.gotoAndStop("right");
G.currentchdir = "right";
if ((G.ch.ninja._x + ((_local1 * 0.3685) / 2.001)) < 520) {
G.ch.ninja._y = G.ch.ninja._y - ((_local1 * 0.6315) / 2);
G.ch.ninja._x = G.ch.ninja._x + ((_local1 * 0.3685) / 2.001);
_local2 = false;
}
var _local29 = true;
}
}
if (Key.isDown(37) and (G.freeze != true)) {
var _local6 = {x:G.ch.ninja.s5._x - G.xisoc(_local1), y:G.ch.ninja.s5._y + G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local6);
var _local24 = G.detector.hitTest(_local6.x, _local6.y, true);
var _local12 = {x:G.ch.ninja.s5b._x - G.xisoc(_local1), y:G.ch.ninja.s5b._y + G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local12);
var _local16 = G.detector.hitTest(_local12.x, _local12.y, true);
var _local11 = {x:G.ch.ninja.s1._x - (8 - _local1), y:G.ch.ninja.s1._y};
G.ch.ninja.localToGlobal(_local11);
var _local27 = G.detector.hitTest(_local11.x, _local11.y, true);
var _local9 = {x:G.ch.ninja.s2._x - ((8 - _local1) / 4), y:G.ch.ninja.s2._y};
G.ch.ninja.localToGlobal(_local9);
var _local26 = G.detector.hitTest(_local9.x, _local9.y, true);
if (_local27) {
G.ch.ninja.gotoAndStop("left");
G.ch.ninja._x = G.ch.ninja._x - _local1;
_local2 = false;
G.currentchdir = "left";
} else if (_local26) {
G.ch.ninja.gotoAndStop("left");
G.ch.ninja._x = G.ch.ninja._x - (_local1 / 2);
_local2 = false;
G.currentchdir = "left";
} else if ((_local24 and (G.ch.ninja._y <= G.ch.ninja.roadpos)) and (!Key.isDown(38))) {
G.ch.ninja._y = G.ch.ninja._y + (_local1 * 0.6315);
G.ch.ninja._x = G.ch.ninja._x - ((_local1 * 0.3685) / 1.001);
G.ch.ninja.gotoAndStop("left");
_local2 = false;
G.currentchdir = "left";
var _local21 = true;
} else if ((_local16 and (G.ch.ninja._y > G.ch.ninja.roadpos)) and (!Key.isDown(38))) {
G.ch.ninja._y = G.ch.ninja._y + (_local1 * 0.6315);
G.ch.ninja._x = G.ch.ninja._x - ((_local1 * 0.3685) / 1.001);
G.ch.ninja.gotoAndStop("left");
_local2 = false;
G.currentchdir = "left";
var _local21 = true;
trace("5b");
} else if (_local14 and (!Key.isDown(38))) {
G.ch.ninja._y = G.ch.ninja._y + ((_local1 * 0.6315) / 2);
G.ch.ninja._x = G.ch.ninja._x - ((_local1 * 0.3685) / 2.001);
G.ch.ninja.gotoAndStop("left");
_local2 = false;
G.currentchdir = "left";
var _local21 = true;
}
}
if (((Key.isDown(40) and (_local21 != true)) and (_local29 != true)) and (G.freeze != true)) {
var _local13 = {x:G.ch.ninja.d4._x + G.xisoc(_local1), y:G.ch.ninja.d4._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local13);
var _local17 = G.detector.hitTest(_local13.x, _local13.y, true);
_local13 = {x:G.ch.ninja.d3._x + G.xisoc(_local1), y:G.ch.ninja.d3._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local13);
var _local18 = G.detector.hitTest(_local13.x, _local13.y, true);
if (!_local17) {
var _local6 = {x:G.ch.ninja.s5b._x + G.xisoc(_local1), y:G.ch.ninja.s5b._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local6);
var _local24 = G.detector.hitTest(_local6.x, _local6.y, true);
} else if (!_local18) {
var _local6 = {x:G.ch.ninja.s5._x + G.xisoc(_local1), y:G.ch.ninja.s5._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local6);
var _local24 = G.detector.hitTest(_local6.x, _local6.y, true);
} else {
var _local6 = {x:G.ch.ninja.s5c._x + G.xisoc(_local1), y:G.ch.ninja.s5c._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local6);
var _local24 = G.detector.hitTest(_local6.x, _local6.y, true);
}
if (_local24) {
G.ch.ninja._y = G.ch.ninja._y + (_local1 * 0.6315);
G.ch.ninja._x = G.ch.ninja._x - (_local1 * 0.3685);
G.ch.ninja.gotoAndStop("left");
_local2 = false;
G.currentchdir = "left";
} else if (_local14) {
G.ch.ninja._y = G.ch.ninja._y + ((_local1 * 0.6315) / 2);
G.ch.ninja._x = G.ch.ninja._x - ((_local1 * 0.3685) / 2);
G.ch.ninja.gotoAndStop("left");
_local2 = false;
G.currentchdir = "left";
}
}
if ((Key.isDown(38) and (_local29 != true)) and (G.freeze != true)) {
var _local13 = {x:G.ch.ninja.d1._x + G.xisoc(_local1), y:G.ch.ninja.d1._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local13);
var _local20 = G.detector.hitTest(_local13.x, _local13.y, true);
_local13 = {x:G.ch.ninja.d2._x + G.xisoc(_local1), y:G.ch.ninja.d2._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local13);
var _local19 = G.detector.hitTest(_local13.x, _local13.y, true);
if (!_local20) {
var _local7 = {x:G.ch.ninja.s4b._x + G.xisoc(_local1), y:G.ch.ninja.s4b._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local7);
var _local25 = G.detector.hitTest(_local7.x, _local7.y, true);
} else if (!_local19) {
var _local7 = {x:G.ch.ninja.s4._x + G.xisoc(_local1), y:G.ch.ninja.s4._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local7);
var _local25 = G.detector.hitTest(_local7.x, _local7.y, true);
} else {
var _local7 = {x:G.ch.ninja.s4c._x + G.xisoc(_local1), y:G.ch.ninja.s4c._y - G.yisoc(_local1)};
G.ch.ninja.localToGlobal(_local7);
var _local25 = G.detector.hitTest(_local7.x, _local7.y, true);
}
if (_local25) {
if ((G.ch.ninja._x + (_local1 * 0.3685)) < 520) {
G.ch.ninja._y = G.ch.ninja._y - (_local1 * 0.6315);
G.ch.ninja._x = G.ch.ninja._x + (_local1 * 0.3685);
}
G.ch.ninja.gotoAndStop("right");
_local2 = false;
G.currentchdir = "right";
var _local29 = true;
} else if (_local15) {
if ((G.ch.ninja._x + ((_local1 * 0.3685) / 2)) < 520) {
G.ch.ninja._y = G.ch.ninja._y - ((_local1 * 0.6315) / 2);
G.ch.ninja._x = G.ch.ninja._x + ((_local1 * 0.3685) / 2);
}
G.ch.ninja.gotoAndStop("right");
_local2 = false;
G.currentchdir = "right";
}
}
if (_local2 and (G.freeze != true)) {
G.ch.ninja.gotoAndStop("stand_" + G.currentchdir);
if (G.sWalk.started != false) {
G.sWalk.started = false;
G.sWalk.stop();
}
} else if (G.sWalk.started != true) {
if (G.soundsw != "off") {
G.sWalk.started = true;
G.sWalk.start(0, 999);
G.sWalk.setVolume(100);
}
}
};
soundSwitch.onRelease = (soundSwitch.onRelease = function () {
trace("sound click");
if (G.soundsw == "on") {
soundSwitch.gotoAndStop("off");
G.soundsw = "off";
trace(" - OFF");
i = 0;
while (i < G.soundlist.length) {
G.soundlist[i].stop();
i++;
}
} else {
soundSwitch.gotoAndStop("on");
G.soundsw = "on";
trace(" - ON");
if (G.ingame != false) {
G.sInGameMusic.start(0, 999);
}
}
});
Frame 36
Frame 43
stop();
G.initgame();
G.popup_once = false;
this.onEnterFrame = function () {
G.rungame();
G.gamespeed = G.gamespeed + G.gamespeedinc;
};
if (G.soundsw != "off") {
G.sInGameMusic.start(0, 999);
G.sInGameMusic.setVolume(40);
}
G.ingame = true;
if (G.soundsw != "off") {
}
Frame 46
G.ingame = false;
play();
Frame 60
stop();
frameCount = 0;
onEnterFrame = function () {
frameCount++;
if (frameCount > 875) {
gotoAndPlay ("fail");
}
if (G.serverdone == true) {
G.play();
G.serverdone = false;
onEnterFrame = undefined;
}
};
Frame 61
if (Number(G.res.value) < 1) {
gotoAndPlay ("loose");
} else {
gotoAndPlay ("win");
}
Frame 67
stop();
bPlayAgain.onRelease = (bPlayAgain.onReleaseOutside = function () {
G.gotoAndPlay("game");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
});
Frame 71
splash_mc.exit_btn.onRelease = function () {
com.teamrubber.SeqTrackerAdaptor.campaignExit("http://www.easyjethotels.co.uk/home/homepage.jsp?idioma=ING&idioma_etiquetas=ENG&P_PARTNER_ID=101&partner=easyjet&goto=home&creative=campaign", "feedbackscreen", "_blank");
};
stop();
Frame 79
splash_mc.exit_btn.onRelease = function () {
com.teamrubber.SeqTrackerAdaptor.campaignExit("http://www.easyjethotels.co.uk/home/homepage.jsp?idioma=ING&idioma_etiquetas=ENG&P_PARTNER_ID=101&partner=easyjet&goto=home&creative=campaign", "feedbackscreen", "_blank");
};
stop();
Frame 86
G.sendEmailPanel.gotoAndStop("sendToFriend");
G.sendEmailPanel.specialgo = "intro";
Frame 92
stop();
Frame 93
stop();
trace("starting back end tests...");
G.fcheckScore(2000);
Frame 94
stop();
G.fsubmitScore("bob", "spam@k9design.co.uk", 1200);
Frame 95
stop();
G.fsendToFriend("spam@k9design.co.uk");
Frame 96
stop();
G.fholidayDraw("bob", "spam@k9design.co.uk");
Frame 97
stop();
Symbol 8 MovieClip [tracker_] Frame 1
#initclip 5
Object.registerClass("tracker_", com.rubberductions.Tracker);
#endinitclip
Symbol 370 MovieClip [__Packages.com.teamrubber.SeqTrackerAdaptor] Frame 0
class com.teamrubber.SeqTrackerAdaptor
{
static var instance;
function SeqTrackerAdaptor () {
init();
setup();
}
function init() {
}
function setup() {
}
static function initTracker(func) {
if (active) {
getInstance().comp.setVerbose(true);
getInstance().comp.setBaseURL(BASE_URL);
getInstance().comp.setCampaignID(CAMPAIGN_ID);
getInstance().comp.setProjectID(PROJECT_ID);
getInstance().comp.initialise(func);
getInstance().comp._visible = false;
} else {
func();
}
}
static function doLoad() {
getInstance().comp.load();
}
static function setComponentReference(comp) {
if (active) {
getInstance().comp = comp;
}
}
static function viewSplash() {
if (active && (projectViewed == false)) {
projectViewed = true;
getInstance().comp.view("viewSplash");
}
}
static function viewScreen(view) {
if (active && (view != undefined)) {
getInstance().comp.view(view);
}
}
static function campaignExit(link, from) {
var _local1;
var _local3;
trace("TRACKER campaignExit called: " + from);
if ((from == undefined) || (from == "")) {
_local1 = CAMPAIGN_LINK_EXIT_LABEL;
} else {
_local1 = from;
}
if ((link == undefined) || (link == "")) {
_local3 = CAMPAIGN_LINK;
} else {
_local3 = link;
}
if (active) {
getInstance().comp.exit(_local3, _local1, "_blank");
}
}
static function startSession() {
if (active) {
getInstance().comp.startSession();
}
}
static function endSession() {
if (active) {
getInstance().comp.endSession();
}
}
static function sendToFriendConversion() {
if (active) {
getInstance().comp.conversion("n/a", "sendToFriend");
}
}
static function submitIdea() {
if (active) {
getInstance().comp.conversion("submitIdea", "submitIdea");
}
}
static function getInstance() {
if (!instance) {
instance = new com.teamrubber.SeqTrackerAdaptor();
}
return(instance);
}
static var BASE_URL = "http://tracking.viralmanager.com/tracking/";
static var CAMPAIGN_ID = "29";
static var PROJECT_ID = "test";
static var CAMPAIGN_LINK = "http://www.google.es";
static var CAMPAIGN_LINK_EXIT_LABEL = "exitCampaign";
static var active = true;
static var projectViewed = false;
}
Symbol 5 MovieClip [__Packages.com.rubberductions.Tracker] Frame 0
class com.rubberductions.Tracker extends MovieClip
{
var lvID, lvs, sessionID, referrer, flashMinorVersion, flashMajorVersion, debug, CID, baseURL, userID, projectID, getIDFunc, userLV, getURL;
function Tracker () {
super();
initVars();
}
function initVars() {
lvID = 0;
lvs = [];
sessionID = "-1";
referrer = ((_root.referrer == undefined) ? "" : (_root.referrer));
var _local3 = com.rubberductions.Utils.getFlashVersion();
flashMinorVersion = (_local3.result ? (_local3.minor) : -1);
flashMajorVersion = (_local3.result ? (_local3.major) : -1);
}
function getNextLvID() {
return(++lvID);
}
function getALoadVars(label) {
var _local2 = new LoadVars();
_local2.__arrID = getNextLvID();
_local2.__label = label;
_local2.__cb = this;
_local2.onLoad = function (success) {
if (success) {
this.__cb.checkRequest(this);
} else {
this.__cb.badRequest(this);
}
};
lvs[_local2.__arrID] = _local2;
return(_local2);
}
function badRequest(lv) {
output(("request " + lv.__label) + " failed");
delete lvs[lv.__arrID];
}
function checkRequest(lv) {
if (lv.ok == "1") {
output(("request " + lv.__label) + " returned ok");
} else {
output(("request " + lv.__label) + " failed on the server");
}
if (lv.sessionID != undefined) {
sessionID = lv.sessionID;
}
delete lvs[lv.__arrID];
}
function output(str) {
if (debug) {
trace("TRACKER: " + str);
}
}
function checkReady() {
if ((((CID != undefined) && (baseURL != undefined)) && (userID != undefined)) && (projectID != undefined)) {
return(true);
}
output("prerequisits haven't been defined, check you have made calls to setBaseURL() ,setCampaignID(), setProjectID() and initialise() and that they returned correctly");
return(false);
}
function initialise(cbFunction) {
if (typeof(cbFunction) == "function") {
getIDFunc = cbFunction;
var _local2 = com.rubberductions.Utils.readLSO(projectID, "id");
if (_local2 != "") {
userID = _local2;
output("cookie found... letting you know");
getIDFunc(true);
} else {
output("cookie not found...");
requestUserID();
}
} else {
output("check the passed function");
}
}
function requestUserID() {
if (CID != undefined) {
output(("asking the server for a new user id from: " + baseURL) + GETID);
userLV = new LoadVars();
userLV.CID = CID;
userLV.onLoad = mx.utils.Delegate.create(this, userIDRequestResponse);
userLV.sendAndLoad(baseURL + GETID, userLV, "POST");
} else {
output("define the campaign id first before calling requestUserID");
}
}
function userIDRequestResponse(success) {
if (success) {
if (userLV.id != undefined) {
output("server provided a user id: " + userLV.id);
userID = userLV.id;
com.rubberductions.Utils.writeLSO(projectID, "id", userID);
output("wrote the coookie");
getIDFunc(true);
} else {
output("server didn't provide a user id");
getIDFunc(false);
}
} else {
output("request for the user id failed");
getIDFunc(false);
}
delete userLV;
}
function setBaseURL(u) {
if (typeof(u) == "string") {
baseURL = u;
return(true);
}
output("check the URL you passed to setBaseURL()");
return(false);
}
function setProjectID(id) {
if (typeof(id) == "string") {
projectID = id;
output("project id set: " + projectID);
return(true);
}
output("project id was not a string");
return(false);
}
function setCampaignID(id) {
if (typeof(id) == "string") {
CID = id;
output("campaign id set: " + CID);
return(true);
}
output("campaign id was not a number");
return(false);
}
function load() {
if (checkReady()) {
var _local2 = getALoadVars("load");
_local2.CID = CID;
_local2.flversionmajor = flashMajorVersion;
_local2.flversionminor = flashMinorVersion;
_local2.referrer = referrer;
_local2.UID = userID;
_local2.sendAndLoad(baseURL + LOAD, _local2, "POST");
return(true);
}
return(false);
}
function startSession() {
sessionID = "0";
if (checkReady()) {
var _local2 = getALoadVars("start session");
_local2.CID = CID;
_local2.UID = userID;
_local2.currentTime = new Date().getTime();
_local2.sendAndLoad(baseURL + START_SESSION, _local2, "POST");
return(true);
}
return(false);
}
function endSession() {
if (checkReady()) {
var _local2 = getALoadVars("end session");
_local2.CID = CID;
_local2.UID = userID;
_local2.currentTime = new Date().getTime();
_local2.sessionID = sessionID;
_local2.sendAndLoad(baseURL + END_SESSION, _local2, "POST");
return(true);
}
return(false);
}
function exit(link, exitLabel, window) {
if (typeof(link) == "string") {
if (typeof(exitLabel) == "string") {
if (typeof(window) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("exit");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = exitLabel;
_local2.link = link;
_local2.sendAndLoad(baseURL + EXIT, _local2, "POST");
}
(getURL(link, window));// not popped
return(true);
}
output("check the window you passed");
} else {
output("check the exitLabel you passed");
}
} else {
output("check the link you passed");
}
return(false);
}
function conversion(label, type) {
if (typeof(label) == "string") {
if (typeof(type) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("conversion");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = label;
_local2.type = type;
_local2.sendAndLoad(baseURL + CONVERSION, _local2, "POST");
return(true);
}
return(false);
}
output("check the type you passed");
} else {
output("check the label you passed");
}
return(false);
}
function exitPass(toSplit) {
if (checkReady()) {
if (typeof(toSplit) == "string") {
var _local2 = toSplit.split("|");
exit(unescape(_local2[1]), _local2[0]);
return(true);
}
return(false);
}
}
function view(label) {
if (typeof(label) == "string") {
if (checkReady()) {
var _local2 = getALoadVars("view");
_local2.UID = userID;
_local2.CID = CID;
_local2.label = label;
_local2.sendAndLoad(baseURL + VIEW, _local2, "POST");
return(true);
}
} else {
output("check the label you passed");
return(false);
}
}
function custom(path, obj, id) {
if (typeof(path) == "string") {
if (typeof(obj) == "object") {
if (typeof(id) == "string") {
if (checkReady()) {
var _local3 = getALoadVars(id);
_local3.UID = userID;
_local3.CID = CID;
for (var _local4 in obj) {
_local3[_local4] = obj[_local4];
}
_local3.sendAndLoad(baseURL + path, _local3, "POST");
return(true);
}
return(false);
}
// unexpected jump
}
output("check the supplied data obj - doesn't seem to be a Object");
return(false);
}
output("check the supplied path - doesn't seem to be a string");
return(false);
}
function setVerbose(val) {
if (typeof(val) == "boolean") {
debug = val;
output("setVerbose: " + val);
return(true);
}
trace("TRACKER: setVerbose: param is not a boolean");
return(false);
}
static var GETID = "getUID";
static var LOAD = "load";
static var START_SESSION = "startSession";
static var END_SESSION = "endSession";
static var EXIT = "exit";
static var VIEW = "view";
static var CONVERSION = "conversion";
}
Symbol 9 MovieClip [__Packages.com.rubberductions.Utils] Frame 0
class com.rubberductions.Utils
{
function Utils () {
}
static function readLSO(lsoName, prop) {
if (lsoName != undefined) {
var _local1 = SharedObject.getLocal(lsoName);
if (_local1.data[prop] == undefined) {
return("");
}
return(_local1.data[prop]);
}
}
static function writeLSO(lsoName, prop, stuff) {
var _local1 = SharedObject.getLocal(lsoName);
_local1.data[prop] = stuff;
_local1.data.flush();
}
static function getFlashVersion() {
var _local1 = System.capabilities.version;
var _local2 = _local1.indexOf(" ");
if (_local2 != -1) {
_local1 = _local1.substr(_local2 + 1, _local1.length);
_local1 = _local1.split(",");
var _local5 = _local1[0];
var _local4 = _local1[1];
return({major:_local5, minor:_local4, result:true});
}
return({major:-1, minor:-1, result:false});
}
}
Symbol 10 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 57 MovieClip Frame 1
gotoAndStop(_parent.diff + 1);
Symbol 62 MovieClip [hotelsBottom] Frame 1
if (_parent._name == "detector") {
stop();
} else {
gotoAndStop(random(4) + 2);
}
Symbol 62 MovieClip [hotelsBottom] Frame 2
ready();
Symbol 62 MovieClip [hotelsBottom] Frame 3
ready();
Symbol 62 MovieClip [hotelsBottom] Frame 4
ready();
Symbol 62 MovieClip [hotelsBottom] Frame 5
ready();
Symbol 62 MovieClip [hotelsBottom] Frame 6
ready();
Symbol 79 MovieClip Frame 1
stop();
gotoAndStop(random(6) + 2);
Symbol 80 MovieClip [roadsBottom] Frame 1
if (_parent._name == "detector") {
stop();
} else {
gotoAndStop(random(4) + 2);
}
Symbol 80 MovieClip [roadsBottom] Frame 2
ready();
Symbol 80 MovieClip [roadsBottom] Frame 3
ready();
Symbol 80 MovieClip [roadsBottom] Frame 4
ready();
Symbol 80 MovieClip [roadsBottom] Frame 5
ready();
Symbol 80 MovieClip [roadsBottom] Frame 6
ready();
Symbol 86 MovieClip [hotelsTop] Frame 1
if (_parent._name == "detector") {
stop();
} else {
gotoAndStop(random(3) + 2);
}
Symbol 86 MovieClip [hotelsTop] Frame 2
ready();
Symbol 86 MovieClip [hotelsTop] Frame 3
ready();
Symbol 86 MovieClip [hotelsTop] Frame 4
ready();
Symbol 86 MovieClip [hotelsTop] Frame 5
ready();
Symbol 86 MovieClip [hotelsTop] Frame 6
ready();
Symbol 95 MovieClip [roadsTop] Frame 1
if (_parent._name == "detector") {
stop();
} else {
var r = (random(4) + 2);
gotoAndStop(r);
}
Symbol 95 MovieClip [roadsTop] Frame 2
ready();
Symbol 95 MovieClip [roadsTop] Frame 3
ready();
Symbol 95 MovieClip [roadsTop] Frame 4
ready();
Symbol 95 MovieClip [roadsTop] Frame 5
ready();
Symbol 97 MovieClip [heartSendAnim] Frame 5
this.removeMovieClip();
Symbol 120 Button
on (release, releaseOutside) {
gotoAndStop ("screen2");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
G.fadeouOutIntro();
}
}
Symbol 167 Button
on (release, releaseOutside) {
G.gotoAndPlay("fadeInGame");
if (G.soundsw != "off") {
G.sReady.start(0, 0);
G.sReady.setVolume(60);
}
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 10
stop();
Symbol 218 MovieClip Frame 65
G.endgame();
Symbol 218 MovieClip Frame 91
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 42
if (G.soundsw != "off") {
G.sDeath.start(0, 0);
trace("sound at death: " + G.soundsw);
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 13
gotoAndPlay ("warning");
Symbol 242 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 1
if (_parent._currentframe == 1) {
stop();
}
if (G.soundsw != "off") {
G.sHeadlock1.start(0, 0);
}
var cc = 0;
onEnterFrame = function () {
cc--;
if ((random(G.randomSoundFreq) == 0) and (cc <= 0)) {
if (G.soundsw != "off") {
cc = 8;
r = random(3);
if (r == 0) {
G.sYa.setVolume(30);
G.sYa.start(0, 0);
} else if (r == 1) {
G.sHai.setVolume(30);
G.sHai.start(0, 0);
} else if (r == 2) {
G.sWhuaa.setVolume(30);
G.sWhuaa.start(0, 0);
}
}
}
};
Symbol 249 MovieClip Frame 11
if (G.soundsw != "off") {
G.sHeadlock2.start(0, 0);
}
Symbol 249 MovieClip Frame 16
stop();
Symbol 249 MovieClip Frame 17
onEnterFrame = undefined;
Symbol 249 MovieClip Frame 28
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 31
stop();
Symbol 257 MovieClip Frame 6
stop();
Symbol 259 MovieClip Frame 1
if (_parent._currentframe == 1) {
stop();
}
heartcc = 0;
if (G.soundsw != "off") {
G.sCharm1.start();
}
Symbol 259 MovieClip Frame 10
if (G.soundsw != "off") {
G.sCharm2.start(0, 0);
}
heartcc++;
heartHolder.attachMovie("heartSendAnim", "heart_" + heartcc, 100 + heartcc);
Symbol 259 MovieClip Frame 17
stop();
Symbol 259 MovieClip Frame 26
stop();
Symbol 264 MovieClip Frame 1
if (_parent._currentframe == 1) {
stop();
}
if (G.soundsw != "off") {
G.sKarateChop2.start(0, 0);
}
var cc = 0;
onEnterFrame = function () {
cc--;
if ((random(G.randomSoundFreq) == 0) and (cc <= 0)) {
if (G.soundsw != "off") {
cc = 8;
r = random(3);
if (r == 0) {
G.sYa.setVolume(30);
G.sYa.start(0, 0);
} else if (r == 1) {
G.sHai.setVolume(30);
G.sHai.start(0, 0);
} else if (r == 2) {
G.sWhuaa.setVolume(30);
G.sWhuaa.start(0, 0);
}
}
}
};
Symbol 264 MovieClip Frame 8
if (G.soundsw != "off") {
G.sKarateChop1.start(0, 0);
}
Symbol 264 MovieClip Frame 15
stop();
Symbol 264 MovieClip Frame 16
onEnterFrame = undefined;
Symbol 264 MovieClip Frame 28
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
G.sWalk.started = false;
G.sWalk.stop();
scorepoints = 118;
maxprice = 0;
totalprice = 118;
addscore = 118;
presscounter = 0;
mykeydown = false;
var keyListener_obj = new Object();
table.gotoAndStop(G.currenthotel.diff);
keyListener_obj.onKeyDown = function () {
if ((((Key.getCode() != 32) and (mykeydown != true)) and (Key.getCode() != 39)) and (!this.done)) {
this.done = true;
gotoAndPlay ("nobonus");
G.freeze = false;
G.currenthotel.oksymbol._alpha = 40;
G.score = G.score + (Math.round(addscore - totalprice) * G.currenthotel.diff);
mydisc = Math.round((totalprice * G.currenthotel.diff) + (100 * G.currenthotel.diff));
G.currenthotel = undefined;
ani.anim.gotoAndPlay("done");
onEnterFrame = undefined;
this.gotoAndStop(1);
Key.removeListener(keyListener_obj);
delete keyListener_obj;
clearInterval(myInteval);
trace("1 listeners amount: " + Key._listeners.length);
} else if ((Key.getCode() != 39) and (!this.done)) {
if (mykeydown != true) {
ani.anim.gotoAndPlay("loop");
presscounter++;
totalprice = totalprice - Math.round(10 / (0.8 + (timer / 4)));
timer = 0;
if (totalprice <= maxprice) {
bar._height = maxprice;
if (G.soundsw != "off") {
G.sPoints.start(0, 0);
}
G.maxedAnim.play();
G.currenthotel.oksymbol._alpha = 40;
this.done = true;
gotoAndPlay ("bonus");
G.freeze = false;
ani.anim.gotoAndPlay("done");
mydisc = scorepoints * G.currenthotel.diff;
G.score = G.score + (Math.round((addscore - totalprice) * G.currenthotel.diff) * 2);
G.currenthotel = undefined;
this.gotoAndStop(1);
clearInterval(myInteval);
Key.removeListener(keyListener_obj);
delete keyListener_obj;
onEnterFrame = undefined;
trace("2 listeners amount: " + Key._listeners.length);
} else {
bar._height = totalprice;
}
}
mykeydown = true;
}
};
keyListener_obj.onKeyUp = function () {
mykeydown = false;
};
Key.addListener(keyListener_obj);
timer = 1;
intLoop = function () {
timer++;
G.sWalk.started = false;
G.sWalk.stop();
if (((totalprice + (timer * 0.7)) + 1) < 118) {
totalprice = totalprice + ((timer * 0.7) + 1);
bar._height = totalprice;
} else {
totalprice = 118;
}
if (G.gameover == true) {
this.done = true;
_parent.gotoAndPlay("close");
G.freeze = false;
G.currenthotel = undefined;
this.gotoAndStop(1);
Key.removeListener(keyListener_obj);
delete keyListener_obj;
clearInterval(myInteval);
}
mydisc = Math.round((totalprice * G.currenthotel.diff) + (100 * G.currenthotel.diff));
};
ani.gotoAndStop("anim" + Number(random(3) + 1));
myInteval = setInterval(intLoop, 100);
G.sWalk.started = false;
G.sWalk.stop();
stop();
Symbol 276 MovieClip Frame 9
_parent.gotoAndPlay("close");
stop();
Symbol 276 MovieClip Frame 15
_parent.gotoAndPlay("close");
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 4
bu.gotoAndStop("game");
stop();
G.sWalk.started = false;
G.sWalk.stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 15
stop();
Symbol 323 Button
on (release, releaseOutside) {
getURL ("http://game.easyjethotels.com/winner", "_blank");
}
Symbol 326 Button
on (release, releaseOutside) {
getURL ("http://game.easyjethotels.com/terms", "_blank");
}
Symbol 338 MovieClip Frame 1
if (storeRes != undefined) {
G.res = storeRes;
}
if (G.store_Name != undefined) {
inpName.text = G.store_Name;
}
if (G.store_Email != undefined) {
inpEmail.text = G.store_Email;
}
if (String(G.res.rank).charAt(String(G.res.rank).length - 1) == "1") {
var ending = (G.res.rank + "st");
} else if (String(G.res.rank).charAt(String(G.res.rank).length - 1) == "2") {
var ending = (G.res.rank + "nd");
} else if (String(G.res.rank).charAt(String(G.res.rank).length - 1) == "3") {
var ending = (G.res.rank + "rd");
} else {
var ending = (G.res.rank + "th");
}
myrespos.text = ending;
myresscore.text = G.score;
myrestop.text = G.res.top_score;
trace("value returned: " + G.res.value);
vouchertxt.text = G.res.value + "%";
me = this;
store = undefined;
bsend.onRelease = (bsend.onReleaseOutside = function () {
if ((((((inpName.text == "") or (inpEmail.text.indexOf(" ") != -1)) || (inpEmail.text.indexOf("@") == -1)) || (inpEmail.text.indexOf(".") == -1)) || (inpEmail.text.length < 6)) || (inpEmail.text.lastIndexOf(".") < inpEmail.text.indexOf("@"))) {
gotoAndPlay ("fillin");
} else {
G.fsubmitScore(inpName.text, inpEmail.text, G.score, me);
G.store_Name = inpName.text;
G.store_Email = inpEmail.text;
gotoAndStop ("sending");
}
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
storeRes = G.res;
});
bPlayAgain.onRelease = (bPlayAgain.onReleaseOutside = function () {
G.gotoAndPlay("game");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
});
bSendToFriend.onRelease = (bSendToFriend.onReleaseOutside = function () {
G.sendEmailPanel.gotoAndStop("sendToFriend");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
storeRes = G.res;
G.screen.bsend.enabled = false;
G.screen.bSendToFriend.enabled = false;
G.screen.bPlayAgain.enabled = false;
G.screen.bterms.enabled = false;
G.banner.bterms2.enabled = false;
G.splash_mc.exit_btn.enabled = false;
});
stop();
G.screen.bsend.enabled = true;
G.screen.bSendToFriend.enabled = true;
G.screen.bPlayAgain.enabled = true;
G.screen.bterms.enabled = true;
G.banner.bterms2.enabled = true;
G.splash_mc.exit_btn.enabled = true;
Symbol 338 MovieClip Frame 2
G.screen.bsend.enabled = true;
G.screen.bSendToFriend.enabled = true;
G.screen.bPlayAgain.enabled = true;
G.screen.bterms.enabled = true;
G.banner.bterms2.enabled = true;
G.splash_mc.exit_btn.enabled = true;
Symbol 338 MovieClip Frame 11
bPlayAgain.onRelease = (bPlayAgain.onReleaseOutside = function () {
G.gotoAndPlay("game");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
});
bSendToFriend.onRelease = (bSendToFriend.onReleaseOutside = function () {
G.sendEmailPanel.gotoAndStop("sendToFriend");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
G.screen.bsend.enabled = false;
G.screen.bSendToFriend.enabled = false;
G.screen.bPlayAgain.enabled = false;
G.screen.bterms.enabled = false;
G.banner.bterms2.enabled = false;
G.splash_mc.exit_btn.enabled = false;
});
G.screen.bsend.enabled = true;
G.screen.bSendToFriend.enabled = true;
G.screen.bPlayAgain.enabled = true;
G.screen.bterms.enabled = true;
G.banner.bterms2.enabled = true;
G.splash_mc.exit_btn.enabled = true;
Symbol 338 MovieClip Frame 22
stop();
Symbol 338 MovieClip Frame 46
gotoAndStop (1);
Symbol 338 MovieClip Frame 47
bPlayAgain.onRelease = (bPlayAgain.onReleaseOutside = function () {
G.gotoAndPlay("game");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
});
bSendToFriend.onRelease = (bSendToFriend.onReleaseOutside = function () {
G.sendEmailPanel.gotoAndStop("sendToFriend");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
G.screen.bsend.enabled = false;
G.screen.bSendToFriend.enabled = false;
G.screen.bPlayAgain.enabled = false;
G.screen.bterms.enabled = false;
G.banner.bterms2.enabled = false;
G.splash_mc.exit_btn.enabled = false;
});
Symbol 338 MovieClip Frame 100
gotoAndStop (1);
Symbol 338 MovieClip Frame 101
bPlayAgain.onRelease = (bPlayAgain.onReleaseOutside = function () {
G.gotoAndPlay("game");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
});
bSendToFriend.onRelease = (bSendToFriend.onReleaseOutside = function () {
G.sendEmailPanel.gotoAndStop("sendToFriend");
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
G.screen.bsend.enabled = false;
G.screen.bSendToFriend.enabled = false;
G.screen.bPlayAgain.enabled = false;
G.screen.bterms.enabled = false;
G.banner.bterms2.enabled = false;
G.splash_mc.exit_btn.enabled = false;
});
Symbol 338 MovieClip Frame 198
gotoAndStop (1);
Symbol 338 MovieClip Frame 225
gotoAndStop (1);
Symbol 369 MovieClip Frame 1
stop();
tname = "";
temail = "";
tfname = "";
tfemail = "";
Symbol 369 MovieClip Frame 2
if (G.store_Name != undefined) {
inpName.text = G.store_Name;
}
if (G.store_Email != undefined) {
inpEmail.text = G.store_Email;
}
me = this;
bsend.onRelease = (bsend.onReleaseOutside = function () {
if ((((((inpName.text == "") or (inpEmail.text.indexOf(" ") != -1)) || (inpEmail.text.indexOf("@") == -1)) || (inpEmail.text.indexOf(".") == -1)) || (inpEmail.text.length < 6)) || (inpEmail.text.lastIndexOf(".") < inpEmail.text.indexOf("@"))) {
gotoAndPlay ("fillin1");
} else if ((((((inpFriendName.text == "") or (inpFriendEmail.text.indexOf(" ") != -1)) || (inpFriendEmail.text.indexOf("@") == -1)) || (inpFriendEmail.text.indexOf(".") == -1)) || (inpFriendEmail.text.length < 6)) || (inpFriendEmail.text.lastIndexOf(".") < inpFriendEmail.text.indexOf("@"))) {
gotoAndPlay ("fillin1");
} else {
G.fsendToFriend(inpName.text, inpEmail.text, inpFriendName.text, inpFriendEmail.text, G.score, me);
G.store_Name = inpName.text;
G.store_Email = inpEmail.text;
gotoAndPlay ("sending1");
}
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
});
bcancel.onRelease = (bcancel.onReleaseOutside = function () {
gotoAndStop (1);
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
G.screen.bsend.enabled = true;
G.screen.bSendToFriend.enabled = true;
G.screen.bPlayAgain.enabled = true;
G.screen.bterms.enabled = true;
G.banner.bterms2.enabled = true;
G.splash_mc.exit_btn.enabled = true;
});
Symbol 369 MovieClip Frame 40
G.screen.bsend.enabled = true;
G.screen.bSendToFriend.enabled = true;
G.screen.bPlayAgain.enabled = true;
G.screen.bterms.enabled = true;
G.banner.bterms2.enabled = true;
G.splash_mc.exit_btn.enabled = true;
if (G.sendEmailPanel.specialgo != "intro") {
gotoAndStop (1);
} else {
G.gotoAndPlay("intro");
G.sendEmailPanel.specialgo = undefined;
}
Symbol 369 MovieClip Frame 66
gotoAndStop ("sendtofriend");
Symbol 369 MovieClip Frame 92
gotoAndStop ("sendtofriend");
Symbol 369 MovieClip Frame 93
if (G.store_Name != undefined) {
inpName.text = G.store_Name;
}
if (G.store_Email != undefined) {
inpEmail.text = G.store_Email;
}
me = this;
bsend.onRelease = (bsend.onReleaseOutside = function () {
if ((((((inpName.text == "") or (inpEmail.text.indexOf(" ") != -1)) || (inpEmail.text.indexOf("@") == -1)) || (inpEmail.text.indexOf(".") == -1)) || (inpEmail.text.length < 6)) || (inpEmail.text.lastIndexOf(".") < inpEmail.text.indexOf("@"))) {
gotoAndPlay ("fillin2");
} else {
G.fholidayDraw(inpName.text, inpEmail.text, me);
G.store_Name = inpName.text;
G.store_Email = inpEmail.text;
gotoAndPlay ("sending2");
}
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
});
bcancel.onRelease = (bcancel.onReleaseOutside = function () {
gotoAndStop (1);
if (G.soundsw != "off") {
G.sRollover.start(0, 0);
}
G.screen.bsend.enabled = true;
G.screen.bSendToFriend.enabled = true;
G.screen.bPlayAgain.enabled = true;
G.screen.bterms.enabled = true;
G.banner.bterms2.enabled = true;
G.splash_mc.exit_btn.enabled = true;
});
Symbol 369 MovieClip Frame 132
gotoAndStop (1);
G.screen.bsend.enabled = true;
G.screen.bSendToFriend.enabled = true;
G.screen.bPlayAgain.enabled = true;
G.screen.bterms.enabled = true;
G.banner.bterms2.enabled = true;
G.splash_mc.exit_btn.enabled = true;
com.teamrubber.SeqTrackerAdaptor.campaignExit("http://www.easyjethotels.co.uk/home/homepage.jsp?idioma=ING&idioma_etiquetas=ENG&P_PARTNER_ID=101&partner=easyjet&goto=home&creative=campaign", "feedbackscreen", "_blank");
Symbol 369 MovieClip Frame 160
gotoAndStop ("sendemail");
Symbol 369 MovieClip Frame 188
gotoAndStop ("sendemail");