Frame 1
stop();
this.gotoGamezhero = function () {
};
this.gamezheroMenu = new ContextMenu();
this.gamezheroMenu.builtInItems.forward_back = false;
this.gamezheroMenu.builtInItems.loop = false;
this.gamezheroMenu.builtInItems.play = false;
this.gamezheroMenu.builtInItems.print = false;
this.gamezheroMenu.builtInItems.rewind = false;
this.gamezheroMenu.builtInItems.zoom = false;
this.gamezheroMenu.builtInItems.save = false;
this.gamezheroMenu._parent = this;
this.cm = new ContextMenuItem("More Free Games - badSuzy.com", this.gotoGamezhero);
this.cm._parent = this;
this.gamezheroMenu.customItems.push(this.cm);
_root.menu = this.gamezheroMenu;
this.flashBtn._visible = false;
var st = System.capabilities.version;
var ver = st.substring(st.indexOf(" "), st.indexOf(","));
if (ver < 8) {
trace("VER " + ver);
this.flashBtn._visible = true;
preloader.unloadMovie();
}
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local3 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local2 = _local6;
var _local7 = String(_local4).length;
while (_local2 < String(_local4).length) {
_local3 = _local4.charAt(_local2);
if (_local3 == ".") {
break;
}
_local5 = _local5 + _local3;
_local2++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 2
stop();
_quality = "BEST";
Frame 3
stop();
Symbol 200 MovieClip [Fmd5] Frame 1
#initclip 1
function Fmd5Class() {
this.count0 = 0;
this.count1 = 0;
this.state = new Array(4);
this.buffer = new Array(64);
this.transformBuffer = new Array(16);
this.digestBits = new Array(16);
}
Fmd5Class.prototype = new MovieClip();
Fmd5Class.prototype.rol = function (a, n) {
return((a << n) | (a >>> (32 - n)));
};
Fmd5Class.prototype.FF = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b & c) | ((b ^ 4294967000) & d))) + x) + ac, s) + b);
};
Fmd5Class.prototype.GG = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b & d) | (c & (d ^ 4294967000)))) + x) + ac, s) + b);
};
Fmd5Class.prototype.HH = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b ^ c) ^ d)) + x) + ac, s) + b);
};
Fmd5Class.prototype.II = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + (c ^ (b | (d ^ 4294967000)))) + x) + ac, s) + b);
};
Fmd5Class.prototype.transformMD5 = function (buf, offset) {
var _local3;
var _local4;
var _local5;
var _local6;
var _local2 = this.transformBuffer;
_local3 = this.state[0];
_local4 = this.state[1];
_local5 = this.state[2];
_local6 = this.state[3];
i = 0;
while (i < 16) {
_local2[i] = buf[(i * 4) + offset] & 255;
j = 1;
while (j < 4) {
_local2[i] = _local2[i] | ((buf[((i * 4) + j) + offset] & 255) << (j * 8));
j++;
}
i++;
}
_local3 = this.FF(_local3, _local4, _local5, _local6, _local2[0], 7, 3614090000);
_local6 = this.FF(_local6, _local3, _local4, _local5, _local2[1], 12, 3905403000);
_local5 = this.FF(_local5, _local6, _local3, _local4, _local2[2], 17, 606105819);
_local4 = this.FF(_local4, _local5, _local6, _local3, _local2[3], 22, 3250442000);
_local3 = this.FF(_local3, _local4, _local5, _local6, _local2[4], 7, 4118548000);
_local6 = this.FF(_local6, _local3, _local4, _local5, _local2[5], 12, 1200080426);
_local5 = this.FF(_local5, _local6, _local3, _local4, _local2[6], 17, 2821736000);
_local4 = this.FF(_local4, _local5, _local6, _local3, _local2[7], 22, 4249261000);
_local3 = this.FF(_local3, _local4, _local5, _local6, _local2[8], 7, 1770035416);
_local6 = this.FF(_local6, _local3, _local4, _local5, _local2[9], 12, 2336553000);
_local5 = this.FF(_local5, _local6, _local3, _local4, _local2[10], 17, 4294925000);
_local4 = this.FF(_local4, _local5, _local6, _local3, _local2[11], 22, 2304563000);
_local3 = this.FF(_local3, _local4, _local5, _local6, _local2[12], 7, 1804603682);
_local6 = this.FF(_local6, _local3, _local4, _local5, _local2[13], 12, 4254626000);
_local5 = this.FF(_local5, _local6, _local3, _local4, _local2[14], 17, 2792965000);
_local4 = this.FF(_local4, _local5, _local6, _local3, _local2[15], 22, 1236535329);
_local3 = this.GG(_local3, _local4, _local5, _local6, _local2[1], 5, 4129171000);
_local6 = this.GG(_local6, _local3, _local4, _local5, _local2[6], 9, 3225466000);
_local5 = this.GG(_local5, _local6, _local3, _local4, _local2[11], 14, 643717713);
_local4 = this.GG(_local4, _local5, _local6, _local3, _local2[0], 20, 3921070000);
_local3 = this.GG(_local3, _local4, _local5, _local6, _local2[5], 5, 3593409000);
_local6 = this.GG(_local6, _local3, _local4, _local5, _local2[10], 9, 38016083);
_local5 = this.GG(_local5, _local6, _local3, _local4, _local2[15], 14, 3634489000);
_local4 = this.GG(_local4, _local5, _local6, _local3, _local2[4], 20, 3889429000);
_local3 = this.GG(_local3, _local4, _local5, _local6, _local2[9], 5, 568446438);
_local6 = this.GG(_local6, _local3, _local4, _local5, _local2[14], 9, 3275164000);
_local5 = this.GG(_local5, _local6, _local3, _local4, _local2[3], 14, 4107603000);
_local4 = this.GG(_local4, _local5, _local6, _local3, _local2[8], 20, 1163531501);
_local3 = this.GG(_local3, _local4, _local5, _local6, _local2[13], 5, 2850286000);
_local6 = this.GG(_local6, _local3, _local4, _local5, _local2[2], 9, 4243564000);
_local5 = this.GG(_local5, _local6, _local3, _local4, _local2[7], 14, 1735328473);
_local4 = this.GG(_local4, _local5, _local6, _local3, _local2[12], 20, 2368360000);
_local3 = this.HH(_local3, _local4, _local5, _local6, _local2[5], 4, 4294589000);
_local6 = this.HH(_local6, _local3, _local4, _local5, _local2[8], 11, 2272393000);
_local5 = this.HH(_local5, _local6, _local3, _local4, _local2[11], 16, 1839030562);
_local4 = this.HH(_local4, _local5, _local6, _local3, _local2[14], 23, 4259658000);
_local3 = this.HH(_local3, _local4, _local5, _local6, _local2[1], 4, 2763975000);
_local6 = this.HH(_local6, _local3, _local4, _local5, _local2[4], 11, 1272893353);
_local5 = this.HH(_local5, _local6, _local3, _local4, _local2[7], 16, 4139470000);
_local4 = this.HH(_local4, _local5, _local6, _local3, _local2[10], 23, 3200237000);
_local3 = this.HH(_local3, _local4, _local5, _local6, _local2[13], 4, 681279174);
_local6 = this.HH(_local6, _local3, _local4, _local5, _local2[0], 11, 3936430000);
_local5 = this.HH(_local5, _local6, _local3, _local4, _local2[3], 16, 3572445000);
_local4 = this.HH(_local4, _local5, _local6, _local3, _local2[6], 23, 76029189);
_local3 = this.HH(_local3, _local4, _local5, _local6, _local2[9], 4, 3654603000);
_local6 = this.HH(_local6, _local3, _local4, _local5, _local2[12], 11, 3873151000);
_local5 = this.HH(_local5, _local6, _local3, _local4, _local2[15], 16, 530742520);
_local4 = this.HH(_local4, _local5, _local6, _local3, _local2[2], 23, 3299629000);
_local3 = this.II(_local3, _local4, _local5, _local6, _local2[0], 6, 4096336000);
_local6 = this.II(_local6, _local3, _local4, _local5, _local2[7], 10, 1126891415);
_local5 = this.II(_local5, _local6, _local3, _local4, _local2[14], 15, 2878612000);
_local4 = this.II(_local4, _local5, _local6, _local3, _local2[5], 21, 4237533000);
_local3 = this.II(_local3, _local4, _local5, _local6, _local2[12], 6, 1700485571);
_local6 = this.II(_local6, _local3, _local4, _local5, _local2[3], 10, 2399981000);
_local5 = this.II(_local5, _local6, _local3, _local4, _local2[10], 15, 4293916000);
_local4 = this.II(_local4, _local5, _local6, _local3, _local2[1], 21, 2240044000);
_local3 = this.II(_local3, _local4, _local5, _local6, _local2[8], 6, 1873313359);
_local6 = this.II(_local6, _local3, _local4, _local5, _local2[15], 10, 4264356000);
_local5 = this.II(_local5, _local6, _local3, _local4, _local2[6], 15, 2734769000);
_local4 = this.II(_local4, _local5, _local6, _local3, _local2[13], 21, 1309151649);
_local3 = this.II(_local3, _local4, _local5, _local6, _local2[4], 6, 4149444000);
_local6 = this.II(_local6, _local3, _local4, _local5, _local2[11], 10, 3174757000);
_local5 = this.II(_local5, _local6, _local3, _local4, _local2[2], 15, 718787259);
_local4 = this.II(_local4, _local5, _local6, _local3, _local2[9], 21, 3951482000);
this.state[0] = this.state[0] + _local3;
this.state[1] = this.state[1] + _local4;
this.state[2] = this.state[2] + _local5;
this.state[3] = this.state[3] + _local6;
};
Fmd5Class.prototype.MD5Init = function () {
this.count0 = (this.count1 = 0);
this.state[0] = 1732584193 /* 0x67452301 */;
this.state[1] = 4023233000;
this.state[2] = 2562383000;
this.state[3] = 271733878 /* 0x10325476 */;
i = 0;
while (i < this.digestBits.length) {
this.digestBits[i] = 0;
i++;
}
};
Fmd5Class.prototype.MD5Update = function (b) {
var _local2 = (this.count0 >>> 3) & 63;
if (this.count0 >= 4294967000) {
this.count1++;
this.count0 = this.count0 - 4294967000;
}
this.count0 = this.count0 + 8;
this.buffer[_local2] = b & 255;
trace(_local2);
if (_local2 >= 63) {
this.transformMD5(this.buffer, 0);
}
};
Fmd5Class.prototype.MD5Final = function () {
var _local4 = new Array(8);
var _local3;
var _local2;
_local3 = 0;
while (_local3 < 4) {
_local4[_local3] = (this.count0 >>> (_local3 * 8)) & 255;
_local4[_local3 + 4] = (this.count1 >>> (_local3 * 8)) & 255;
_local3++;
}
var _local6 = (this.count0 >>> 3) & 63;
var _local5 = ((_local6 < 56) ? (56 - _local6) : (120 - _local6));
this.MD5Update(128);
_local3 = 1;
while (_local3 < _local5) {
this.MD5Update(0);
_local3++;
}
_local3 = 0;
while (_local3 < 8) {
this.MD5Update(_local4[_local3]);
_local3++;
}
_local3 = 0;
while (_local3 < 4) {
_local2 = 0;
while (_local2 < 4) {
this.digestBits[(_local3 * 4) + _local2] = (this.state[_local3] >>> (_local2 * 8)) & 255;
_local2++;
}
_local3++;
}
};
Fmd5Class.prototype.byteToStr = function (bt) {
var _local1 = "0123456789abcdef";
var _local2 = _local1.charAt(bt >> 4) + _local1.charAt(bt & 15);
return(_local2);
};
Fmd5Class.prototype.md5 = function (m) {
var _local3 = "";
this.MD5Init();
var _local2 = 0;
while (_local2 < m.length) {
this.MD5Update(m.charCodeAt(_local2));
_local2++;
}
this.MD5Final();
_local2 = 0;
while (_local2 < 16) {
_local3 = _local3 + this.byteToStr(this.digestBits[_local2]);
_local2++;
}
return(_local3);
};
Fmd5Class.prototype.verifytext = function (d, m) {
return(this.md5(m) == d);
};
Fmd5Class.prototype.makeSig = function (input) {
return(this.md5(input));
};
Object.registerClass("Fmd5", Fmd5Class);
#endinitclip
Symbol 86 Button
on (release) {
getURL ("http://www.gametic.eu/forum/index.php?autocom=arcade", "_blank");
}
Symbol 87 MovieClip Frame 35
var proc = Math.round((100 * _root.getBytesLoaded()) / _root.getBytesTotal());
trace(proc);
if (proc >= 100) {
gotoAndPlay (47);
}
Symbol 87 MovieClip Frame 43
stop();
this.onEnterFrame = function () {
var _local3 = Math.round((100 * _root.getBytesLoaded()) / _root.getBytesTotal());
trace(_local3);
preloader.gotoAndStop(_local3);
if (_local3 >= 100) {
delete this.onEnterFrame;
play();
}
};
Symbol 87 MovieClip Frame 47
play();
Symbol 87 MovieClip Frame 55
stop();
_root.gotoAndStop(2);
Symbol 45 MovieClip [flashBtn] Frame 1
stop();
b.onPress = function () {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash?Lang=English&P5_Language=English", "_blank");
gotoAndStop (2);
};
Symbol 45 MovieClip [flashBtn] Frame 2
b.onPress = function () {
};
Symbol 190 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 13 MovieClip [soundClass] Frame 1
#initclip 9
Object.registerClass("soundClass", FSound);
#endinitclip
Symbol 14 MovieClip [musicClass] Frame 1
#initclip 7
Object.registerClass("musicClass", FMusic);
#endinitclip
Symbol 17 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 1
play();
Symbol 38 MovieClip [blocks] Frame 1
stop();
Symbol 40 MovieClip [Fmd5] Frame 1
#initclip 8
function Fmd5Class() {
this.count0 = 0;
this.count1 = 0;
this.state = new Array(4);
this.buffer = new Array(64);
this.transformBuffer = new Array(16);
this.digestBits = new Array(16);
}
Fmd5Class.prototype = new MovieClip();
Fmd5Class.prototype.rol = function (a, n) {
return((a << n) | (a >>> (32 - n)));
};
Fmd5Class.prototype.FF = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b & c) | ((~b) & d))) + x) + ac, s) + b);
};
Fmd5Class.prototype.GG = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b & d) | (c & (~d)))) + x) + ac, s) + b);
};
Fmd5Class.prototype.HH = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b ^ c) ^ d)) + x) + ac, s) + b);
};
Fmd5Class.prototype.II = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + (c ^ (b | (~d)))) + x) + ac, s) + b);
};
Fmd5Class.prototype.transformMD5 = function (buf, offset) {
var _local6;
var _local5;
var _local4;
var _local3;
var _local2 = this.transformBuffer;
_local6 = this.state[0];
_local5 = this.state[1];
_local4 = this.state[2];
_local3 = this.state[3];
i = 0;
while (i < 16) {
_local2[i] = buf[(i * 4) + offset] & 255;
j = 1;
while (j < 4) {
_local2[i] = _local2[i] | ((buf[((i * 4) + j) + offset] & 255) << (j * 8));
j++;
}
i++;
}
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[0], 7, 3614090360);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[1], 12, 3905402710);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[2], 17, 606105819);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[3], 22, 3250441966);
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[4], 7, 4118548399);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[5], 12, 1200080426);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[6], 17, 2821735955);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[7], 22, 4249261313);
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[8], 7, 1770035416);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[9], 12, 2336552879);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[10], 17, 4294925233);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[11], 22, 2304563134);
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[12], 7, 1804603682);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[13], 12, 4254626195);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[14], 17, 2792965006);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[15], 22, 1236535329);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[1], 5, 4129170786);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[6], 9, 3225465664);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[11], 14, 643717713);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[0], 20, 3921069994);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[5], 5, 3593408605);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[10], 9, 38016083);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[15], 14, 3634488961);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[4], 20, 3889429448);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[9], 5, 568446438);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[14], 9, 3275163606);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[3], 14, 4107603335);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[8], 20, 1163531501);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[13], 5, 2850285829);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[2], 9, 4243563512);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[7], 14, 1735328473);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[12], 20, 2368359562);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[5], 4, 4294588738);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[8], 11, 2272392833);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[11], 16, 1839030562);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[14], 23, 4259657740);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[1], 4, 2763975236);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[4], 11, 1272893353);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[7], 16, 4139469664);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[10], 23, 3200236656);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[13], 4, 681279174);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[0], 11, 3936430074);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[3], 16, 3572445317);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[6], 23, 76029189);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[9], 4, 3654602809);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[12], 11, 3873151461);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[15], 16, 530742520);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[2], 23, 3299628645);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[0], 6, 4096336452);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[7], 10, 1126891415);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[14], 15, 2878612391);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[5], 21, 4237533241);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[12], 6, 1700485571);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[3], 10, 2399980690);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[10], 15, 4293915773);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[1], 21, 2240044497);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[8], 6, 1873313359);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[15], 10, 4264355552);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[6], 15, 2734768916);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[13], 21, 1309151649);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[4], 6, 4149444226);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[11], 10, 3174756917);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[2], 15, 718787259);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[9], 21, 3951481745);
this.state[0] = this.state[0] + _local6;
this.state[1] = this.state[1] + _local5;
this.state[2] = this.state[2] + _local4;
this.state[3] = this.state[3] + _local3;
};
Fmd5Class.prototype.MD5Init = function () {
this.count0 = (this.count1 = 0);
this.state[0] = 1732584193 /* 0x67452301 */;
this.state[1] = 4023233417;
this.state[2] = 2562383102;
this.state[3] = 271733878 /* 0x10325476 */;
i = 0;
while (i < this.digestBits.length) {
this.digestBits[i] = 0;
i++;
}
};
Fmd5Class.prototype.MD5Update = function (b) {
var _local2 = (this.count0 >>> 3) & 63;
if (4294967288 <= this.count0) {
this.count1++;
this.count0 = this.count0 - 4294967296;
}
this.count0 = this.count0 + 8;
this.buffer[_local2] = b & 255;
trace(_local2);
if (_local2 >= 63) {
this.transformMD5(this.buffer, 0);
}
};
Fmd5Class.prototype.MD5Final = function () {
var _local4 = new Array(8);
var _local2;
var _local3;
_local2 = 0;
while (_local2 < 4) {
_local4[_local2] = (this.count0 >>> (_local2 * 8)) & 255;
_local4[_local2 + 4] = (this.count1 >>> (_local2 * 8)) & 255;
_local2++;
}
var _local6 = (this.count0 >>> 3) & 63;
var _local5 = ((_local6 < 56) ? (56 - _local6) : (120 - _local6));
this.MD5Update(128);
_local2 = 1;
while (_local2 < _local5) {
this.MD5Update(0);
_local2++;
}
_local2 = 0;
while (_local2 < 8) {
this.MD5Update(_local4[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < 4) {
_local3 = 0;
while (_local3 < 4) {
this.digestBits[(_local2 * 4) + _local3] = (this.state[_local2] >>> (_local3 * 8)) & 255;
_local3++;
}
_local2++;
}
};
Fmd5Class.prototype.byteToStr = function (bt) {
var _local1 = "0123456789abcdef";
var _local2 = _local1.charAt(bt >> 4) + _local1.charAt(bt & 15);
return(_local2);
};
Fmd5Class.prototype.md5 = function (m) {
var _local4 = "";
this.MD5Init();
var _local2 = 0;
while (_local2 < m.length) {
this.MD5Update(m.charCodeAt(_local2));
_local2++;
}
this.MD5Final();
_local2 = 0;
while (_local2 < 16) {
_local4 = _local4 + this.byteToStr(this.digestBits[_local2]);
_local2++;
}
return(_local4);
};
Fmd5Class.prototype.verifytext = function (d, m) {
return(this.md5(m) == d);
};
Fmd5Class.prototype.makeSig = function (input) {
return(this.md5(input));
};
Object.registerClass("Fmd5", Fmd5Class);
#endinitclip
Symbol 185 MovieClip [__Packages.FMusic] Frame 0
class FMusic extends MovieClip
{
var music_arr, activeMusic, valume, countLoop, indexSound, getNextHighestDepth, createEmptyMovieClip, currentLoop, lastMusic, onEnterFrame, v0;
function FMusic () {
super();
music_arr = new Array();
activeMusic = null;
valume = 50;
countLoop = 1000000 /* 0x0F4240 */;
indexSound = 0;
}
function setLoop(loop) {
countLoop = loop;
}
function addMusic(links) {
for (var _local5 in links) {
var _local2 = getNextHighestDepth();
createEmptyMovieClip("mc" + _local2, _local2);
var _local3 = new Sound(this["mc" + _local2]);
_local3.attachSound(links[_local5]);
music_arr.push(_local3);
}
}
function setValume(val) {
valume = val;
for (var _local3 in music_arr) {
music_arr[_local3].setVolume(val);
}
}
function playMusic(index) {
if (activeMusic != index) {
if (((index >= music_arr.length) || (index < 0)) || (index == undefined)) {
index = 0;
}
currentLoop = countLoop;
lastMusic = activeMusic;
activeMusic = index;
var v0 = valume;
onEnterFrame = function () {
v0--;
if (v0 <= 0) {
v0 = 0;
this.onEnterFrame = function () {
v0++;
if (v0 >= this.valume) {
v0 = this.valume;
this.onEnterFrame = null;
}
this.music_arr[this.activeMusic].setVolume(v0);
};
this.music_arr[this.lastMusic].stop();
}
this.music_arr[this.lastMusic].setVolume(v0);
};
music_arr[activeMusic].setVolume(0);
music_arr[activeMusic].start(0, currentLoop);
music_arr[activeMusic]._parent = this;
music_arr[activeMusic].onSoundComplete = function () {
this=this._parent;//parameter overwritten
this._parent;
this.music_arr[this.activeMusic].start();
v0 = this.valume;
this.onEnterFrame = function () {
v0--;
this.music_arr[this.activeMusic].setVolume(v0);
if (v0 <= 0) {
this.music_arr[this.activeMusic].stop();
this.onEnterFrame = null;
this.playMusic(this.activeMusic + 1);
}
};
this.music_arr[this.activeMusic].onSoundComplete = null;
};
}
}
function stopMusic() {
v0 = valume;
onEnterFrame = function () {
this.v0 = this.v0 - 5;
this.music_arr[this.activeMusic].setVolume(this.v0);
if (this.v0 <= 0) {
this.music_arr[this.activeMusic].stop();
this.activeMusic = null;
this.onEnterFrame = null;
}
};
}
function pauseMusic(how) {
if (how) {
v0 = valume;
onEnterFrame = function () {
this.v0 = this.v0 - 5;
this.music_arr[this.activeMusic].setVolume(this.v0);
if (this.v0 <= 0) {
this.music_arr[this.activeMusic].stop();
this.onEnterFrame = null;
}
};
} else {
playMusic(activeMusic);
}
}
}
Symbol 186 MovieClip [__Packages.FSound] Frame 0
class FSound extends MovieClip
{
var valume, indexSound, createEmptyMovieClip, getNextHighestDepth;
function FSound () {
super();
valume = 50;
indexSound = 0;
}
function setValume(val) {
valume = val;
for (var _local3 in this) {
this[_local3].sn.setVolume(val);
}
}
function stopAllSound() {
for (var _local2 in this) {
trace(_local2 + " >>> deleted");
this[_local2].sn.stop();
this[_local2].removeMovieClip();
}
}
function playSound(sound, pan, loop) {
pan = ((pan == undefined) ? 50 : (pan));
if (valume > 0) {
indexSound++;
var mc = createEmptyMovieClip("mc" + indexSound, getNextHighestDepth());
mc.sn = new Sound(mc);
mc.sn.attachSound(sound);
mc.sn.setVolume(valume);
mc.sn.setPan(pan);
mc.sn._parent = this;
mc.sn._parent2 = mc;
mc.loop = loop;
mc.sn.mc = mc;
mc.sn.indexSound = indexSound;
if (loop == true) {
mc.sn.start(0, 1000000);
} else {
mc.sn.onSoundComplete = function () {
this.mc.removeMovieClip();
};
mc.sn.start();
}
if (this["mc" + (indexSound - 100)].loop != true) {
delete this["mc" + (indexSound - 100)].sn;
this["mc" + (indexSound - 100)].removeMovieClip();
}
return(mc.sn);
}
}
}
Symbol 187 MovieClip [__Packages.FSequence] Frame 0
class FSequence
{
var actions_arr, value, startInterval;
function FSequence () {
actions_arr = new Array();
}
function addAction(goal, action, delay, param) {
var _local2 = new Object();
_local2.goal = goal;
_local2.action = action;
_local2.delay = delay;
_local2.param = new Array();
_local2.param = param;
actions_arr.push(_local2);
if (actions_arr.length == 1) {
startActions();
}
}
function addPause(delay) {
var _local2 = new Object();
_local2.delay = delay;
actions_arr.push(_local2);
if (actions_arr.length == 1) {
startActions();
}
}
function setValue(val) {
value = val;
}
function getValue() {
return(actions_arr.length);
}
function pauseSequence(how) {
if (how) {
clearInterval(startInterval);
delete startInterval;
} else {
startActions();
}
}
function clearSequence() {
clearInterval(startInterval);
delete startInterval;
while (actions_arr.length > 0) {
actions_arr.shift();
}
}
function deleteItem(who) {
this = who;
eval ((actions_arr[0].goal + ".") + actions_arr[0].action).apply(actions_arr[0].goal, actions_arr[0].param);
actions_arr.shift();
startActions();
}
function startActions() {
clearInterval(startInterval);
delete startInterval;
if (actions_arr.length != 0) {
if (startInterval == undefined) {
clearInterval(startInterval);
startInterval = setInterval(deleteItem, Number(actions_arr[0].delay), this);
}
}
}
}
Symbol 188 MovieClip [__Packages.jtblocks] Frame 0
class jtblocks extends MovieClip
{
var nextBtn, gameInterval, gameSequence, ijRefreshArr, scoreNeedArr, scoreGame, scoreFunc, _parent, onRelease, useHandCursor, how, onEnterFrame, blocksAmountI, blocksAmountJ, pole, hotBlocks, blockAmountType, nextScore, level, getNextHighestDepth, moveLeftGroup, blockWidth, game_x, inLeftDx, speed, moveGroup, blockHeight, game_y, selectGroup, rotationGroup, _ymouse, _xmouse, z, attachMovie, blockSkin, levelFunc;
function jtblocks () {
super();
nextBtn._visible = false;
nextBtn.enabled = false;
nextBtn.onRelease = function () {
this._parent.nextLevel();
};
gameInterval = new FInterval();
gameSequence = new FSequence();
ijRefreshArr = new Array([-2, -2], [-2, -1], [-2, 0], [-2, 1], [-2, 2], [-1, -2], [-1, -1], [-1, 0], [-1, 1], [-1, 2], [0, -2], [0, -1], [0, 0], [0, 1], [0, 2], [1, -2], [1, -1], [1, 0], [1, 1], [1, 2], [2, -2], [2, -1], [2, 0], [2, 1], [2, 2]);
scoreNeedArr = new Array(1000, 3000, 6000, 18000, 36000, 72000, 144000, 288000, 5760000);
}
function allEnabled() {
for (var _local2 in this) {
if (typeof(this[_local2] == "movieclip")) {
this[_local2].enabled = false;
}
}
}
function addScoreIn(score) {
scoreGame = scoreGame + score;
_parent[scoreFunc].call(this, score);
}
function pauseGameFunc(how) {
if (how) {
onRelease = function () {
};
useHandCursor = false;
gameSequence.pauseSequence(true);
gameInterval.pauseInterval(true);
} else {
delete onRelease;
gameSequence.pauseSequence(false);
gameInterval.pauseInterval(false);
}
}
function gameOver() {
how = "stop";
trace("GAME OVER IN");
var i = 30;
_root.sounds.playSound("s_gameover", 0);
onEnterFrame = function () {
i--;
if (i < 0) {
delete this.onEnterFrame;
this._parent[this.gameOverFunc].call(this);
this.allEnabled();
}
};
}
function checkGameOver() {
trace("\u0421HECK GME OVER");
var _local7 = true;
var _local8 = blocksAmountI - 1;
while (_local8 >= 0) {
var _local6 = null;
var _local3 = blocksAmountJ - 1;
while (_local3 >= 0) {
if (pole[_local8][_local3] != null) {
if (_local6 == null) {
_local6 = pole[_local8][_local3].info.type;
} else if (_local6 == pole[_local8][_local3].info.type) {
_local7 = false;
} else {
_local6 = pole[_local8][_local3].info.type;
}
} else {
_local6 = null;
}
if (_local7 == true) {
var _local5 = null;
var _local4 = blocksAmountI - 1;
while (_local4 >= 0) {
if (pole[_local4][_local3] != null) {
if (_local5 == null) {
_local5 = pole[_local4][_local3].info.type;
} else if (_local5 == pole[_local4][_local3].info.type) {
_local7 = false;
} else {
_local5 = pole[_local4][_local3].info.type;
}
} else {
_local5 = null;
}
_local4--;
}
} else {
break;
}
_local3--;
}
if (_local7 == false) {
break;
}
_local8--;
}
if (_local7 == true) {
for (_local8 in hotBlocks) {
if ((hotBlocks[_local8] != undefined) && (hotBlocks[_local8].info.type == blockAmountType)) {
_local7 = false;
break;
}
}
}
if (_local7 == true) {
if (scoreGame > nextScore) {
level++;
nextBtn._visible = true;
nextBtn.gotoAndPlay(2);
nextBtn.enabled = true;
nextBtn.swapDepths(getNextHighestDepth());
_root.sounds.playSound("s_nextlevel", 0);
} else {
gameOver();
}
} else {
enabledAllBlocks(true);
}
}
function selectLeftMoveBlock() {
moveLeftGroup = new Array();
var _local4 = 0;
var _local3 = blocksAmountJ - 1;
while (_local3 >= 0) {
if (pole[blocksAmountI - 1][_local3] == null) {
_local4++;
}
if (_local4 > 0) {
var _local2 = 0;
while (_local2 < blocksAmountI) {
pole[_local2][_local3].info.j = pole[_local2][_local3].info.j + _local4;
pole[_local2][_local3].info.xNeed = game_x + (pole[_local2][_local3].info.j * blockWidth);
moveLeftGroup.push(pole[_local2][_local3]);
pole[_local2][_local3] = null;
_local2++;
}
}
_local3--;
}
if (moveLeftGroup.length > 0) {
inLeftDx = 0;
gameInterval.interval("leftMoveInterval", this, "leftMoveBlockUpdate", speed);
} else {
checkGameOver();
}
}
function selectMoveBlock() {
moveGroup = new Array();
var _local3 = 0;
while (_local3 < blocksAmountJ) {
var _local4 = 0;
var _local2 = blocksAmountI - 1;
while (_local2 >= 0) {
if (pole[_local2][_local3] == null) {
_local4++;
} else if (_local4 > 0) {
pole[_local2][_local3].info.i = pole[_local2][_local3].info.i + _local4;
pole[_local2][_local3].info.yNeed = game_y + (pole[_local2][_local3].info.i * blockHeight);
moveGroup.push(pole[_local2][_local3]);
pole[_local2][_local3] = null;
}
_local2--;
}
_local3++;
}
if (moveGroup.length > 0) {
gameInterval.interval("moveInterval", this, "moveBlockUpdate", speed);
} else {
selectLeftMoveBlock();
}
}
function selectGroupBlock(i, j, t) {
if (((((((i >= 0) && (i <= blocksAmountI)) && (j >= 0)) && (j <= blocksAmountJ)) && (pole[i][j] != null)) && (pole[i][j].was != true)) && (pole[i][j].info.type == t)) {
pole[i][j].was = true;
selectGroup.push(pole[i][j]);
selectGroupBlock(i + 1, j, t);
selectGroupBlock(i - 1, j, t);
selectGroupBlock(i, j + 1, t);
selectGroupBlock(i, j - 1, t);
}
return(selectGroup);
}
function enabledAllBlocks(how) {
for (var _local3 in this) {
if (typeof(this[_local3]) == "movieclip") {
this[_local3].enabled = how;
}
}
}
function rotationBlockUpdate(g) {
this=g;//parameter overwritten
for (var _local2 in rotationGroup) {
rotationGroup[_local2].r._rotation = rotationGroup[_local2].r._rotation + rotationGroup[_local2].alphaStep;
rotationGroup[_local2].alphaStep = rotationGroup[_local2].alphaStep / 1.05;
if ((Math.abs(rotationGroup[_local2].alphaStep) < 0.5) || (!(rotationGroup[_local2] instanceof MovieClip))) {
rotationGroup[_local2].alphaStep = 0;
rotationGroup.splice(Number(_local2), 1);
}
}
if (rotationGroup.length == 0) {
gameInterval.stopInterval("rotationInterval");
rotationGroup = new Array();
}
}
function iniRotation(g, val) {
if (rotationGroup.length < 20) {
if (g.alphaStep == undefined) {
g.alphaStep = 0;
}
if (val == undefined) {
val = 30 - ((30 * Math.sqrt(Math.pow(g._x - _xmouse, 2) + Math.pow(g._y - _ymouse, 2))) / 100);
}
g.alphaStep = (random(2) ? -1 : 1) * val;
g.swapDepths(getNextHighestDepth());
rotationGroup.push(g);
}
}
function selectB(how) {
if (how) {
for (var _local2 in selectGroup) {
selectGroup[_local2].block.gotoAndStop(2);
iniRotation(selectGroup[_local2]);
}
gameInterval.interval("rotationInterval", this, "rotationBlockUpdate", speed);
} else {
for (var _local2 in selectGroup) {
selectGroup[_local2].block.gotoAndStop(1);
selectGroup[_local2].was = false;
selectGroup[_local2].alphaStep = selectGroup[_local2].alphaStep / 3;
}
}
}
function leftMoveBlockUpdate(g) {
this=g;//parameter overwritten
for (var _local3 in moveLeftGroup) {
moveLeftGroup[_local3]._x = moveLeftGroup[_local3]._x + stepMove;
if (Math.abs(moveLeftGroup[_local3].info.xNeed - moveLeftGroup[_local3]._x) <= stepMove) {
moveLeftGroup[_local3]._x = moveLeftGroup[_local3].info.xNeed;
delete moveLeftGroup[_local3].info.xNeed;
pole[moveLeftGroup[_local3].info.i][moveLeftGroup[_local3].info.j] = moveLeftGroup[_local3];
iniRotation(moveLeftGroup[_local3], 5);
gameInterval.interval("rotationInterval", this, "rotationBlockUpdate", speed);
moveLeftGroup.splice(Number(_local3), 1);
} else {
inLeftDx = inLeftDx + stepMove;
}
}
if (moveLeftGroup.length == 0) {
if (inLeftDx != 0) {
_root.sounds.playSound("s_stop", 0);
}
moveLeftGroup = new Array();
gameInterval.stopInterval("leftMoveInterval");
checkGameOver();
}
}
function moveBlockUpdate(g) {
this=g;//parameter overwritten
for (var _local3 in moveGroup) {
moveGroup[_local3]._y = moveGroup[_local3]._y + stepMove;
if (Math.abs(moveGroup[_local3].info.yNeed - moveGroup[_local3]._y) <= Math.abs(stepMove)) {
moveGroup[_local3]._y = moveGroup[_local3].info.yNeed;
delete moveGroup[_local3].info.yNeed;
pole[moveGroup[_local3].info.i][moveGroup[_local3].info.j] = moveGroup[_local3];
iniRotation(moveGroup[_local3], 5);
gameInterval.interval("rotationInterval", this, "rotationBlockUpdate", speed);
moveGroup.splice(Number(_local3), 1);
}
}
if (moveGroup.length == 0) {
moveGroup = new Array();
gameInterval.stopInterval("moveInterval");
_root.sounds.playSound("s_stop", 0);
selectLeftMoveBlock();
}
}
function deleteBlockUpdate(g) {
this=g;//parameter overwritten
for (var _local3 in selectGroup) {
selectGroup[_local3]._alpha = selectGroup[_local3]._alpha - 15;
}
if (selectGroup[_local3]._alpha <= 0) {
gameInterval.stopInterval("deleteInterval");
for (var _local4 in selectGroup) {
var _local3 = selectGroup[_local4].info.i;
var _local2 = selectGroup[_local4].info.j;
selectGroup[_local4].removeMovieClip();
pole[_local3][_local2] = null;
}
selectMoveBlock();
}
}
function deleteB() {
if (selectGroup.length >= 2) {
enabledAllBlocks(false);
for (var _local4 in selectGroup) {
var _local3 = selectGroup.length * 5;
selectGroup[_local4].txt.text = _local3;
addScoreIn(_local3);
}
gameInterval.interval("deleteInterval", this, "deleteBlockUpdate", speed);
_root.sounds.playSound("s_bonus", 0);
trace(_root.sounds + " >>>>>>>>>>>>>>>>>>>>>>>>>>>>");
gameInterval.stopInterval("rotationInterval");
rotationGroup = new Array();
}
}
function refreshB(i, j) {
for (var _local7 in ijRefreshArr) {
var _local4 = i + ijRefreshArr[_local7][0];
var _local3 = j + ijRefreshArr[_local7][1];
if (pole[_local4][_local3] != null) {
pole[_local4][_local3].info.type = random(blockAmountType - 1) + 1;
pole[_local4][_local3].update();
}
}
_root.sounds.playSound("stop", 0);
}
function setAction(g, obj) {
g.onRollOver = function () {
this=this._parent;//parameter overwritten
this._parent;
this.selectB(false);
this.selectGroup = new Array();
this.selectGroup = this.selectGroupBlock(g.info.i, g.info.j, g.info.type);
this.selectB(true);
};
g.onRollOut = function () {
this=this._parent;//parameter overwritten
this._parent;
this.selectB(false);
};
g.onRelease = function () {
this=this._parent;//parameter overwritten
this._parent;
this.deleteB();
_root.sounds.playSound("newLine", 0);
};
g.update = function () {
this=this._parent;//parameter overwritten
this._parent;
g._x = this.game_x + (this.blockWidth * g.info.j);
g._y = this.game_y + (this.blockHeight * g.info.i);
g.gotoAndStop(obj.type);
};
g.info = new Object();
g.info = obj;
g.update();
g.r._rotation = random(360);
g.enabled = false;
}
function clearGame() {
rotationGroup = new Array();
nextBtn._visible = false;
nextBtn.gotoAndStop(2);
nextBtn.enabled = false;
for (var _local3 in this) {
if (typeof(this[_local3] == "movieclip") && (_local3 != "nextBtn")) {
delete this[_local3].onEnterFrame;
this[_local3].removeMovieClip();
}
}
pole = new Array();
var _local3 = 0;
while (_local3 < blocksAmountI) {
pole[_local3] = new Array();
var _local2 = 0;
while (_local2 < blocksAmountJ) {
pole[_local3][_local2] = null;
_local2++;
}
_local3++;
}
}
function addLine(i) {
trace("add line");
var _local3 = 0;
while (_local3 < blocksAmountJ) {
z++;
var _local4 = attachMovie(blockSkin, "block" + z, getNextHighestDepth());
var _local2 = new Object();
_local2.i = i;
_local2.j = _local3;
_local2.type = random(blockAmountType) + 1;
setAction(_local4, _local2);
pole[i][_local3] = _local4;
_local3++;
}
}
function nextLevel() {
clearGame();
nextScore = (3000 * (level - 1)) + 1000;
_parent[levelFunc].call(this, level, nextScore);
z = 0;
gameSequence.addPause(800);
gameSequence.addAction(_root.sounds, "playSound", 10, ["s_ini", 0]);
var _local3 = blocksAmountI - 1;
while (_local3 >= 0) {
gameSequence.addAction(this, "addLine", 40, [_local3]);
_local3--;
}
hotBlocks = new Array();
gameSequence.addAction(this, "enabledAllBlocks", 40, [true]);
}
function newGame() {
how = "play";
level = 1;
scoreGame = 0;
nextLevel();
}
var stepMove = 5;
}
Symbol 189 MovieClip [__Packages.FInterval] Frame 0
class FInterval
{
var funcInterval, msecInterval, intervalArr, properyArr;
function FInterval () {
funcInterval = undefined;
msecInterval = undefined;
intervalArr = new Array();
properyArr = new Array();
}
function interval(nameInterval, goal, func, msec) {
clearInterval(intervalArr[nameInterval]);
properyArr[nameInterval] = new Object();
properyArr[nameInterval].funcInterval = func;
properyArr[nameInterval].msecInterval = msec;
properyArr[nameInterval].goal = goal;
properyArr[nameInterval].how = true;
intervalArr[nameInterval] = setInterval(properyArr[nameInterval].goal[properyArr[nameInterval].funcInterval], properyArr[nameInterval].msecInterval, properyArr[nameInterval].goal);
}
function pauseIntervalName(maneInterval, how) {
if (how) {
clearInterval(intervalArr[maneInterval]);
} else if (properyArr[maneInterval].how) {
clearInterval(intervalArr[maneInterval]);
intervalArr[maneInterval] = setInterval(properyArr[maneInterval].goal[properyArr[maneInterval].funcInterval], properyArr[maneInterval].msecInterval, properyArr[maneInterval].goal);
}
}
function pauseInterval(how, msec) {
for (var _local4 in intervalArr) {
if (how) {
clearInterval(intervalArr[_local4]);
} else if (properyArr[_local4].how) {
clearInterval(intervalArr[_local4]);
if (msec != undefined) {
properyArr[_local4].msecInterval = msec;
}
intervalArr[_local4] = setInterval(properyArr[_local4].goal[properyArr[_local4].funcInterval], properyArr[_local4].msecInterval, properyArr[_local4].goal);
}
}
}
function stopInterval(nameInterval) {
properyArr[nameInterval].how = false;
clearInterval(intervalArr[nameInterval]);
delete intervalArr[nameInterval];
}
function stopAllInterval() {
for (var _local2 in intervalArr) {
clearInterval(intervalArr[_local2]);
delete intervalArr[_local2];
}
}
}
Symbol 109 MovieClip Frame 65
_root.gotoAndPlay(3);
Symbol 121 MovieClip Frame 9
stop();
Symbol 125 MovieClip Frame 1
step = 100;
images.setMask(mask);
var url = "arcade/gamedata/condomBlocksv1Th/";
var imagesUrl;
formirArr = function () {
imagesUrl = new Array();
var _local1 = 0;
while (_local1 < 40) {
var _local2 = new Object();
_local2.url = (((url + _local1) + "_") + String(md.makeSig(_local1 + "huy")).substring(0, 10)) + ".xyz";
_local2.t = random(100);
imagesUrl.push(_local2);
_local1++;
}
imagesUrl.sortOn("t");
};
setSizeForm = function (dx, dy) {
mask._width = dx;
mask._height = dy;
};
showImage = function (iname, howAlpha) {
var g = images[iname];
g._x = (mask._width - g._width) / 2;
g._y = (mask._height - g._height) / 2;
g.swapDepths(images.getNextHighestDepth());
g._alpha = 0;
this.onEnterFrame = function () {
g._alpha = g._alpha + 10;
if (g._alpha >= 100) {
g._alpha = 100;
delete this.onEnterFrame;
}
};
};
loadingImage = function (iname) {
trace(iname);
if (images[iname] == undefined) {
var img = images.createEmptyMovieClip(iname, images.getNextHighestDepth());
img.imageLoader = new MovieClipLoader();
img.imageObject = new Object();
img.imageObject._parent = this;
img.imageObject.onLoadComplete = function () {
trace("COMPLITE>>>>>>>>>>>>>>");
img._alpha = 0;
if (currentImageID == iname) {
showImage(currentImageID);
}
};
img.imageObject.onLoadInit = function (g) {
trace("INI>>>>>>>>>>>>>>");
this=this._parent;//parameter overwritten
this._parent;
img._x = (mask._width - img._width) / 2;
img._y = (mask._height - img._height) / 2;
};
img.imageLoader.addListener(img.imageObject);
img.imageLoader.loadClip(imagesUrl[iname].url, img);
trace(((">>>>>>>>>> " + imagesUrl[iname].url) + " ") + iname);
}
};
iniGallery = function (currentGalleryID) {
formirArr();
currentImageID = 0;
loadingImage(currentImageID);
this._visible = false;
};
nextImage = function (num) {
if (num != undefined) {
currentImageID = num;
} else {
currentImageID++;
}
trace("NEXT IMAGE " + num);
if (currentImageID >= imagesUrl.length) {
currentImageID = 0;
}
var _local2 = currentImageID + 1;
if (_local2 >= imagesUrl.length) {
_local2 = 0;
}
val1 = currentGalleryID;
val2 = currentImageID;
val3 = _local2;
loadingImage(_local2);
showImage(currentImageID, true);
this._visible = true;
};
clearGallery = function () {
iniGallery();
currentImageID = 0;
this._visible = false;
};
iniGallery();
Instance of Symbol 40 MovieClip [Fmd5] "md" in Symbol 125 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
securetyURL = "";
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 10
stop();
Symbol 133 MovieClip [jtblocks] Frame 1
#initclip 10
Object.registerClass("jtblocks", jtblocks);
#endinitclip
Symbol 171 MovieClip Frame 1
submit = function () {
var _local2 = new LoadVars();
this["????? ??????? ?????"] = unescape("Condom%20Blocks%2E%20Playboy%20Edition%2E%20Super%20Key");
var _local3 = (String(_level0.topScoreValue) + String(txtIn.text)) + String(this["????? ??????? ?????"]);
_local2.code = md.makeSig(_local3);
_local2.score = _level0.topScoreValue;
_local2.key = _local3;
_local2.name = txtIn.text;
_local2._parent = this;
_local2.send(_level0.topScoreUrl, "_blank", "POST");
};
scoreGameBtn.onPress = function () {
_global.ipbSend(_level0.topScoreValue);
};
cancelGameBtn.onPress = function () {
this._parent._parent.play();
Key.removeListener(obj);
};
obj = new Object();
obj._parent = this;
obj.onKeyDown = function () {
this=this._parent;//parameter overwritten
this._parent;
if (Key.isDown(13)) {
scoreGameBtn.onPress();
}
};
Key.addListener(obj);
Instance of Symbol 200 MovieClip [Fmd5] "md" in Symbol 171 MovieClip Frame 1
//component parameters
onClipEvent/on (load, unload, mouseDown, keyUp, initialize, press, keyPress "/", construct ?08080000?) {
}
onClipEvent/on ( ?26000000?) {
}
//component parameters
onClipEvent/on (load, enterFrame, unload, mouseMove, mouseUp, data, release, rollOver, construct ?AB380000?) {
}
//component parameters
onClipEvent/on (keyDown, data, press, rollOver, dragOver, keyPress "<PgDn>", construct ?0AF80000?) {
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 74
stop();
Symbol 172 MovieClip Frame 77
_parent.iniGame();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 6
stop();
Symbol 183 MovieClip Frame 1
stop();
helpMc._x = 82;
Symbol 183 MovieClip Frame 2
play();
Symbol 183 MovieClip Frame 4
stop();
Symbol 183 MovieClip Frame 5
play();
Symbol 183 MovieClip Frame 7
stop();
helpMc._x = -1000;
Symbol 184 MovieClip Frame 12
_root.attachMovie("musicClass", "musics", _root.getNextHighestDepth());
_root.attachMovie("soundClass", "sounds", _root.getNextHighestDepth());
_global.musicValue = 40;
_global.effectValue = 40;
_root.musics.setValume(_global.musicValue);
_root.musics.addMusic(["track1"]);
_root.musics.playMusic(1);
_root.sounds.setValume(_global.effectValue);
trace(_root.sounds + " <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
musicOffBtn.onPress = function () {
musicOffBtn._visible = false;
musicOnBtn._visible = true;
_root.musics.stopMusic(1);
};
musicOnBtn.onPress = function () {
musicOffBtn._visible = true;
musicOnBtn._visible = false;
_root.musics.playMusic(1);
};
musicOnBtn._visible = false;
function setScore(score) {
_level0.topScoreValue = _level0.topScoreValue + score;
}
function setLevel(level, needScore) {
_level0.levelGame = level;
_level0.topScoreNeed = needScore;
imageRotator.nextImage();
}
stop();
_level0.topScoreValue = 0;
_level0.topScoreUrl = "";
setEnabledStyle = function (goal, how, val) {
if (val == undefined) {
val = 50;
}
var _local3 = new Color(goal);
if (how == true) {
val = 100;
}
var _local2 = {ra:val, rb:"0", ga:val, gb:"0", ba:val, bb:"0", aa:goal._alpha, ab:"0"};
_local3.setTransform(_local2);
};
startGameBtn.onPress = function () {
pauseGameBtn._visible = true;
this._visible = false;
pauseMc.gotoAndStop(1);
if (_level0.gameAction == "stop") {
game.newGame();
imageRotator.nextImage(0);
helpMc.gotoAndPlay(5);
helpMc.help.help.stop();
_level0.gameAction = "play";
} else {
_level0.gameAction = "play";
game.pauseGameFunc(false);
setEnabledStyle(game, true);
}
};
pauseGameBtn.onPress = function () {
_level0.gameAction = "pause";
pauseMc.gotoAndPlay(2);
startGameBtn._visible = true;
this._visible = false;
game.pauseGameFunc(true);
setEnabledStyle(game, false);
};
moreFreeGamesBtn.onPress = function () {
};
scorenBtn.onPress = function () {
};
addBonus = function (bonus) {
trace(">>> " + this);
var _local2 = howMc._currentframe + Math.round(bonus / 10);
_level0.topScoreValue = _level0.topScoreValue + bonus;
if (_local2 >= howMc._totalframes) {
_local2 = 1;
imageRotator.nextImage();
}
howMc.gotoAndStop(_local2);
};
gameOver = function (how) {
trace("GAME OVER");
_level0.gameAction = "stop";
gameOverMc.gotoAndPlay(2);
game.gameOverFunc();
pauseGameBtn.enabled = false;
startGameBtn.enabled = false;
};
iniGame = function () {
pauseGameBtn._visible = false;
startGameBtn._visible = true;
pauseGameBtn.enabled = true;
startGameBtn.enabled = true;
_level0.gameAction = "stop";
howMc.gotoAndStop(1);
_level0.topScoreValue = 0;
_level0.levelGame = 1;
_level0.topScoreNeed = "";
helpMc.gotoAndPlay(2);
helpMc.help.help.play();
game.clearGame();
imageRotator.clearGallery();
};
iniGame();
stop();
updateFlash = function (goal) {
this=goal;//parameter overwritten
updateAfterEvent();
_level0.t2 = new Date().getTime();
var _local2 = _level0.t2 - _level0.t1;
if (_local2 != 0) {
fps.text = Math.round(1000 / _local2);
}
_level0.t1 = _level0.t2;
mouseDx = _xmouse - last_xmouse;
last_xmouse = _xmouse;
};
updateInterval = setInterval(updateFlash, 0, this);
Instance of Symbol 133 MovieClip [jtblocks] "game" in Symbol 184 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
blockAmountType = 5;
blockHeight = 34;
blockSkin = "blocks";
blockWidth = 34;
blocksAmountJ = 13;
blocksAmountI = 11;
gameOverFunc = "gameOver";
game_x = 0;
game_y = 0;
levelFunc = "setLevel";
scoreFunc = "setScore";
speed = 10;
}