Frame 1
stop();
this.gotoGamezhero = function () {
getURL ("http://www.badsuzy.com/exclusive/?utm_campaign=soccer_strip_quest&utm_source=soccer_strip_quest&utm_medium=context_menu", "_black");
};
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();
}
Frame 2
stop();
Frame 3
stop();
Symbol 10 MovieClip [soundClass] Frame 1
#initclip 8
Object.registerClass("soundClass", FSound);
#endinitclip
Symbol 11 MovieClip [musicClass] Frame 1
#initclip 6
Object.registerClass("musicClass", FMusic);
#endinitclip
Symbol 101 MovieClip [stouns] Frame 1
stop();
Symbol 103 MovieClip [Fmd5] Frame 1
#initclip 7
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;
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 133 Button
on (release) {
getURL ("http://www.badsuzy.com/?utm_campaign=soccer_strip_quest&utm_source=soccer_strip_quest&utm_medium=preloader", "_blank");
}
Symbol 145 MovieClip Frame 35
var proc = Math.round((100 * _root.getBytesLoaded()) / _root.getBytesTotal());
trace(proc);
if (proc >= 100) {
gotoAndPlay (47);
}
Symbol 145 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 145 MovieClip Frame 47
play();
Symbol 145 MovieClip Frame 55
stop();
_root.gotoAndStop(2);
Symbol 150 MovieClip 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 150 MovieClip Frame 2
b.onPress = function () {
getURL ("http://www.badsuzy.com/exclusive/?utm_campaign=soccer_strip_quest&utm_source=soccer_strip_quest&utm_medium=install_flash_player", "_blank");
};
Symbol 253 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);
}
}
function destroy() {
for (var _local2 in this) {
this[_local2].removeMovieClip();
}
}
}
Symbol 254 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 255 MovieClip [__Packages.FSequence] Frame 0
class FSequence
{
var actions_arr, mc, value, startInterval, nextAction;
function FSequence (goal) {
actions_arr = new Array();
if (goal != undefined) {
mc = goal.createEmptyMovieClip("sequence" + new Date().getTime(), goal.getNextHighestDepth());
mc.obj = this;
}
}
function addAction(goal, action, delay, param, typeAction) {
var _local2 = new Object();
_local2.type = ((typeAction == undefined) ? 0 : (typeAction));
_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;
delete mc.onEnterFrame;
if (actions_arr.length != 0) {
if (actions_arr[0].type == 0) {
if (startInterval == undefined) {
clearInterval(startInterval);
startInterval = setInterval(deleteItem, Number(actions_arr[0].delay), this);
}
} else {
nextAction = Number(actions_arr[0].delay);
mc.onEnterFrame = function () {
this.obj.nextAction = this.obj.nextAction - 1;
if (this.obj.nextAction <= 0) {
delete this.mc.onEnterFrame;
this.obj.deleteItem(this.obj);
}
};
}
}
}
}
Symbol 256 MovieClip [__Packages.jewel] Frame 0
class jewel extends MovieClip
{
var bg, z, step, bonus, checkMoveArr, gameActionSequence, _parent, gameActionInterval, flyBlocks, checkBlocks, deleteBlocks, pole, iMax, jMax, amountBoom, helpBlock, notMoveFunc, dyBlock, dxBlock, activeBlock1, addTopScoreFunc, activeBlock2, getNextHighestDepth, attachMovie, amountTypes, amountAdds, tTime;
function jewel () {
super();
bg._visible = false;
z = 0;
step = 8;
bonus = 0;
checkMoveArr = new Array();
checkMoveArr[0] = {i:[-1, -1], j:[-1, 1]};
checkMoveArr[1] = {i:[-1, 1], j:[1, 1]};
checkMoveArr[2] = {i:[1, 1], j:[-1, 1]};
checkMoveArr[3] = {i:[-1, 1], j:[1, 1]};
checkMoveArr[4] = {i:[0, 0], j:[-3, -2]};
checkMoveArr[5] = {i:[-3, -2], j:[0, 0]};
checkMoveArr[6] = {i:[0, 0], j:[3, 2]};
checkMoveArr[7] = {i:[3, 2], j:[0, 0]};
checkMoveArr[8] = {i:[1, 2], j:[1, 1]};
checkMoveArr[9] = {i:[1, 1], j:[-1, -2]};
checkMoveArr[10] = {i:[-1, -2], j:[-1, -1]};
checkMoveArr[11] = {i:[-1, -1], j:[1, 2]};
checkMoveArr[12] = {i:[1, 2], j:[-1, -1]};
checkMoveArr[13] = {i:[-1, -1], j:[-1, -2]};
checkMoveArr[14] = {i:[-1, -2], j:[1, 1]};
checkMoveArr[15] = {i:[1, 1], j:[1, 2]};
gameActionSequence = new FSequence(_parent);
gameActionInterval = new FInterval();
flyBlocks = new Array();
checkBlocks = new Array();
deleteBlocks = new Array();
pole = new Array();
}
function checkMove() {
var _local3 = iMax - 1;
var _local2 = 0;
var _local8 = false;
while ((_local3 < iMax) && (_local8 == false)) {
_local2 = 0;
while ((_local2 < jMax) && (_local8 == false)) {
var _local7 = pole[_local3][_local2].blockType;
for (var _local10 in checkMoveArr) {
var _local4 = 0;
for (var _local9 in checkMoveArr[_local10].i) {
var _local5 = Number(checkMoveArr[_local10].i[_local9]) + _local3;
var _local6 = Number(checkMoveArr[_local10].j[_local9]) + _local2;
if (pole[_local5][_local6].blockType == _local7) {
_local4++;
}
}
if (_local4 == (amountBoom - 1)) {
helpBlock._x = pole[_local3][_local2]._x;
helpBlock._y = pole[_local3][_local2]._y;
_local8 = true;
break;
}
}
_local2++;
}
_local3--;
}
if (_local8 == false) {
_parent[notMoveFunc].call(this);
}
}
function getLengthArr(arr) {
var _local1 = 0;
for (var _local3 in arr) {
_local1++;
}
return(_local1);
}
function getYPos(i) {
return(i * dyBlock);
}
function getXPos(j) {
return(j * dxBlock);
}
function enableBlocks(how) {
for (var _local3 in this) {
this[_local3].select._visible = false;
this[_local3].enabled = how;
this[_local3].b.b.stop();
}
}
function clearActive() {
activeBlock1 = undefined;
enableBlocks(true);
}
function deleteRec(g) {
var _local2;
var _local3;
var _local6 = g.blockType;
var _local4 = new Array();
var _local5 = new Array();
var _local7 = new Array();
_local2 = g.i;
_local3 = g.j;
while ((((_local2 >= 0) || (_local2 < iMax)) && (pole[_local2][_local3] != undefined)) && (pole[_local2][_local3].blockType == _local6)) {
_local5[pole[_local2][_local3].index] = pole[_local2][_local3];
_local2 = _local2 + 1;
}
_local2 = g.i;
_local3 = g.j;
while ((((_local2 >= 0) || (_local2 < iMax)) && (pole[_local2][_local3] != undefined)) && (pole[_local2][_local3].blockType == _local6)) {
_local5[pole[_local2][_local3].index] = pole[_local2][_local3];
_local2 = _local2 - 1;
}
_local2 = g.i;
_local3 = g.j;
while ((((_local3 >= 0) || (_local3 < jMax)) && (pole[_local2][_local3] != undefined)) && (pole[_local2][_local3].blockType == _local6)) {
_local4[pole[_local2][_local3].index] = pole[_local2][_local3];
_local3 = _local3 + 1;
}
_local2 = g.i;
_local3 = g.j;
while ((((_local3 >= 0) || (_local3 < jMax)) && (pole[_local2][_local3] != undefined)) && (pole[_local2][_local3].blockType == _local6)) {
_local4[pole[_local2][_local3].index] = pole[_local2][_local3];
_local3 = _local3 - 1;
}
if (getLengthArr(_local4) >= amountBoom) {
for (var _local9 in _local4) {
_local7[_local4[_local9].index] = _local4[_local9];
}
}
if (getLengthArr(_local5) >= amountBoom) {
for (var _local9 in _local5) {
_local7[_local5[_local9].index] = _local5[_local9];
}
}
return(_local7);
}
function deleteUpdate(g) {
this=g;//parameter overwritten
if (deleteBlocks.length > 0) {
var _local2 = 0;
while (_local2 < deleteBlocks.length) {
deleteBlocks[_local2]._xscale = deleteBlocks[_local2]._xscale - 10;
deleteBlocks[_local2]._yscale = deleteBlocks[_local2]._yscale - 10;
deleteBlocks[_local2]._x = (getXPos(deleteBlocks[_local2].j) + (dxBlock / 2)) - (deleteBlocks[_local2]._width / 2);
deleteBlocks[_local2]._y = (getYPos(deleteBlocks[_local2].i) + (dyBlock / 2)) - (deleteBlocks[_local2]._height / 2);
if (deleteBlocks[_local2]._xscale <= 0) {
pole[deleteBlocks[_local2].i][deleteBlocks[_local2].j] = undefined;
deleteBlocks[_local2].removeMovieClip();
deleteBlocks.splice(_local2, 1);
_local2--;
}
_local2++;
}
} else {
gameActionInterval.stopInterval("delete");
addLines(100);
}
updateAfterEvent();
}
function checkDelete(arr) {
deleteBlocks = new Array();
var _local3 = new Array();
for (var _local5 in arr) {
var _local2 = new Array();
_local2 = deleteRec(arr[_local5]);
for (var _local5 in _local2) {
_local3[_local2[_local5].index] = _local2[_local5];
}
}
for (var _local5 in _local3) {
deleteBlocks.push(_local3[_local5]);
}
if (deleteBlocks.length >= amountBoom) {
_parent[addTopScoreFunc].call(this, deleteBlocks.length, bonus);
bonus++;
gameActionInterval.interval("delete", this, "deleteUpdate", 10);
return(true);
}
bonus = 0;
return(false);
}
function zamenaUpdate(g) {
this=g;//parameter overwritten
var _local4 = activeBlock1._x - getXPos(activeBlock2.j);
var _local3 = activeBlock1._y - getYPos(activeBlock2.i);
activeBlock1._x = activeBlock1._x - ((3 * _local4) / Math.abs(_local4));
activeBlock1._y = activeBlock1._y - ((3 * _local3) / Math.abs(_local3));
var _local6 = activeBlock2._x - getXPos(activeBlock1.j);
var _local5 = activeBlock2._y - getYPos(activeBlock1.i);
activeBlock2._x = activeBlock2._x - ((3 * _local6) / Math.abs(_local6));
activeBlock2._y = activeBlock2._y - ((3 * _local5) / Math.abs(_local5));
if ((Math.abs(_local4) <= 1) && (Math.abs(_local3) <= 1)) {
activeBlock1._x = activeBlock1.xNeed;
activeBlock2._x = activeBlock2.xNeed;
pole[activeBlock1.i][activeBlock1.j] = activeBlock2;
pole[activeBlock2.i][activeBlock2.j] = activeBlock1;
var _local7 = activeBlock2.i;
var _local8 = activeBlock2.j;
activeBlock2.i = activeBlock1.i;
activeBlock2.j = activeBlock1.j;
activeBlock1.i = _local7;
activeBlock1.j = _local8;
gameActionInterval.stopInterval("zamena");
if ((checkDelete([activeBlock1, activeBlock2]) == false) && (returnFlag == false)) {
activeBlock1.xNeed = getXPos(activeBlock2.j);
activeBlock2.xNeed = getXPos(activeBlock1.j);
returnFlag = true;
_root.sounds.playSound("action", 0);
gameActionInterval.interval("zamena", this, "zamenaUpdate", 10);
} else {
activeBlock1 = undefined;
activeBlock2 = undefined;
enableBlocks(true);
checkMove();
}
}
updateAfterEvent();
}
function getBlock(i, j) {
var _local4 = false;
var _local2 = i - 1;
while (_local2 >= 0) {
if (pole[_local2][j] != undefined) {
_local4 = true;
var g = pole[_local2][j];
pole[_local2][j] = undefined;
break;
}
_local2--;
}
if (_local4 == false) {
var _local6 = getNextHighestDepth();
z++;
var g = attachMovie("stouns", "stone" + z, _local6);
g._visible = false;
g.select._visible = false;
g.blockType = random(amountTypes) + 1;
g.gotoAndStop(g.blockType);
g.b.b.gotoAndStop(1 + random(40));
g.index = z;
g._x = getXPos(j);
g._y = -dyBlock;
g.onRollOver = function () {
g.b.b.play();
};
g.onRollOut = function () {
g.b.b.stop();
};
g.onPress = function () {
this=this._parent;//parameter overwritten
this._parent;
this.tTime = new Date().getTime();
if (this.activeBlock1 == undefined) {
this.activeBlock1 = g;
g.select._visible = true;
} else if (((Math.abs(g.i - this.activeBlock1.i) < 1) && (Math.abs(g.j - this.activeBlock1.j) <= 1)) || ((Math.abs(g.i - this.activeBlock1.i) <= 1) && (Math.abs(g.j - this.activeBlock1.j) < 1))) {
if (this.activeBlock1 == g) {
this.clearActive();
} else {
this.activeBlock2 = g;
this.activeBlock1.xNeed = this.getXPos(this.activeBlock2.j);
this.activeBlock2.xNeed = this.getXPos(this.activeBlock1.j);
this.returnFlag = false;
this.gameActionInterval.interval("zamena", this, "zamenaUpdate", 10);
this.enableBlocks(false);
}
} else {
this.clearActive();
this.activeBlock1 = g;
g.select._visible = true;
}
};
g.enabled = false;
}
pole[i][j] = g;
g.i = i;
g.j = j;
g.yNeed = getYPos(i);
return(g);
}
function flyUpdate(g) {
this=g;//parameter overwritten
if (flyBlocks.length > 0) {
var _local5 = false;
var _local3 = 0;
while (_local3 < flyBlocks.length) {
flyBlocks[_local3]._y = flyBlocks[_local3]._y + step;
var _local4 = flyBlocks[_local3]._y - flyBlocks[_local3].yNeed;
if ((Math.abs(_local4) < Math.abs(step)) || (flyBlocks[_local3]._y > flyBlocks[_local3].yNeed)) {
_local5 = true;
flyBlocks[_local3]._y = flyBlocks[_local3].yNeed;
checkBlocks.push(flyBlocks[_local3]);
flyBlocks.splice(_local3, 1);
_local3--;
}
_local3++;
}
if (_local5) {
_root.sounds.playSound("s_ballStop", 0);
}
} else if (amountAdds == 0) {
gameActionInterval.stopInterval("fly");
trace("STOP FLYA " + _root.sounds);
if (checkDelete(checkBlocks) == false) {
enableBlocks(true);
checkMove();
}
}
updateAfterEvent();
}
function addToFly(arr) {
amountAdds--;
for (var _local3 in arr) {
flyBlocks.push(arr[_local3]);
arr[_local3]._visible = true;
}
gameActionInterval.interval("fly", this, "flyUpdate", 10, [this]);
}
function addLines(val, typeAction) {
tTime = new Date().getTime();
enableBlocks(false);
var _local5 = 0;
amountAdds = 0;
var _local3 = iMax - 1;
while (_local3 >= 0) {
var _local4 = new Array();
var _local2 = 0;
while (_local2 < jMax) {
if (pole[_local3][_local2] == undefined) {
_local4.push(getBlock(_local3, _local2));
}
_local2++;
}
if (_local4.length > 0) {
amountAdds++;
gameActionSequence.addAction(this, "addToFly", _local5, [_local4], typeAction);
_local5 = val;
}
_local3--;
}
}
function clearPole() {
pole = new Array();
flyBlocks = new Array();
var _local2 = 0;
while (_local2 < iMax) {
pole[_local2] = new Array();
_local2++;
}
for (_local2 in this) {
this[_local2].removeMovieClip();
}
}
function checkHelp(g) {
this=g;//parameter overwritten
var _local2 = new Date().getTime();
if ((_local2 - tTime) > 12000) {
tTime = _local2;
helpBlock.swapDepths(getNextHighestDepth());
helpBlock.gotoAndPlay(2);
}
}
function startGame() {
tTime = new Date().getTime();
bg._visible = true;
bonus = 0;
clearPole();
addLines(5, 1);
gameActionInterval.interval("fly", this, "flyUpdate", 10, [this]);
gameActionInterval.interval("help", this, "checkHelp", 3000, [this]);
}
function stopGame() {
for (var _local2 in this) {
if (this[_local2] != bg) {
this[_local2].removeMovieClip();
}
}
bg._visible = false;
gameActionInterval.stopAllInterval();
gameActionSequence.clearSequence();
}
function pauseGame(how) {
enableBlocks(!how);
gameActionInterval.pauseInterval(how);
gameActionSequence.pauseSequence(how);
}
var returnFlag = false;
}
Symbol 257 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 171 MovieClip Frame 70
_root.gotoAndPlay(3);
Symbol 191 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 201 MovieClip [jewel] Frame 1
#initclip 9
Object.registerClass("jewel", jewel);
#endinitclip
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 6
stop();
Symbol 229 MovieClip Frame 1
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
Symbol 232 MovieClip Frame 1
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
score.loadMovie("http://files.badsuzy.com/files/soccerStripQuest/score.swf");
cancelGameBtn.onPress = function () {
this._parent._parent.play();
Key.removeListener(obj);
score.unloadMovie();
};
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 74
stop();
Symbol 233 MovieClip Frame 77
_parent.iniGame();
Symbol 236 MovieClip Frame 1
step = 100;
images.setMask(mask);
var url = "http://files.badsuzy.com/files/soccerStripQuest/";
var imagesUrl;
formirArr = function () {
imagesUrl = new Array();
var _local2 = 0;
while (_local2 < 58) {
var _local1 = new Object();
_local1.name = String(md.makeSig(_local2 + "huy")).substring(0, 10);
_local1.url = (url + _local1.name) + ".xyz";
_local1.t = random(100);
imagesUrl.push(_local1);
_local2++;
}
imagesUrl.sortOn("t");
};
setSizeForm = function (dx, dy) {
mask._width = dx;
mask._height = dy;
};
showImage = function (iname, howAlpha) {
var _local2 = unescape(imagesUrl[iname].name);
var g = images[_local2];
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) {
var _local2 = unescape(imagesUrl[iname].name);
if (images[_local2] == undefined) {
var img = images.createEmptyMovieClip(_local2, images.getNextHighestDepth());
img.imageLoader = new MovieClipLoader();
img.imageObject = new Object();
img.imageObject._parent = this;
img.imageObject.onLoadComplete = function () {
img._alpha = 0;
if (currentImageID == iname) {
showImage(currentImageID);
}
};
img.imageObject.onLoadInit = function (g) {
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);
}
};
iniGallery = function (currentGalleryID) {
formirArr();
currentImageID = 0;
loadingImage(currentImageID);
this._visible = false;
};
nextImage = function (num) {
trace("NEXT IMAGE " + num);
if (num != undefined) {
currentImageID = num;
} else {
currentImageID++;
}
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 103 MovieClip [Fmd5] "md" in Symbol 236 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
securetyURL = "http://www.gamezhero.com";
}
Symbol 241 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
helpMc._x = 82;
Symbol 246 MovieClip Frame 2
play();
Symbol 246 MovieClip Frame 4
stop();
Symbol 246 MovieClip Frame 5
play();
Symbol 246 MovieClip Frame 7
stop();
helpMc._x = -1000;
Symbol 250 MovieClip Frame 13
_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;
_level0.topScoreValue = 0;
moreFreeGamesBtn.onPress = function () {
getURL ("http://www.badsuzy.com/exclusive/?utm_campaign=soccer_strip_quest&utm_source=soccer_strip_quest&utm_medium=more_free_games", "_blank");
};
scorenBtn.onPress = function () {
getURL ("http://www.badsuzy.com/top_score/soccer_strip_quest/?utm_campaign=soccer_strip_quest&utm_source=soccer_strip_quest&utm_medium=top_score", "_blank");
};
startGameBtn.onPress = function () {
pauseGameBtn._visible = true;
this._visible = false;
pauseMc.gotoAndStop(1);
if (_level0.gameAction == "stop") {
_level0.beginGameTime = new Date().getTime();
game.startGame();
imageRotator.nextImage(0);
helpMc.gotoAndPlay(5);
helpMc.help.help.stop();
_level0.gameAction = "play";
} else {
_level0.beginGameTime = _level0.beginGameTime + Number(new Date().getTime() - _level0.beginPauseTime);
_level0.gameAction = "play";
game.pauseGame(false);
setEnabledStyle(game, true);
}
};
pauseGameBtn.onPress = function () {
_level0.gameAction = "pause";
pauseMc.gotoAndPlay(2);
startGameBtn._visible = true;
this._visible = false;
game.pauseGame(true);
setEnabledStyle(game, false);
_level0.beginPauseTime = new Date().getTime();
};
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);
};
gameOver = function (how) {
_level0.gameAction = "stop";
gameOverMc.gotoAndPlay(2);
game.stopGame();
_root.sounds.playSound("s_gameover", 0);
pauseGameBtn.enabled = false;
startGameBtn.enabled = false;
};
iniGame = function () {
trace("INI NGAME");
_level0.stepLevel = 500;
_level0.rImage = 1;
pauseGameBtn._visible = false;
startGameBtn._visible = true;
pauseGameBtn.enabled = true;
startGameBtn.enabled = true;
_level0.gameAction = "stop";
howMc.gotoAndStop(1);
_level0.topScoreValue = 0;
helpMc.gotoAndPlay(2);
helpMc.help.help.play();
game.clearGame();
_root.sounds.destroy();
imageRotator.clearGallery();
gameOverChecker.gotoAndStop(1);
};
iniGame();
stop();
_level0.t1 = new Date().getTime();
_level0.t2 = t1;
updateFlash = function (goal) {
if (_level0.gameAction == "play") {
this=goal;//parameter overwritten
updateAfterEvent();
_level0.t2 = new Date().getTime();
var _local2 = _level0.t2 - _level0.t1;
if (_local2 > _level0.stepLevel) {
_level0.t1 = _level0.t2;
_local2 = Number(new Date().getTime() - _level0.beginGameTime);
_level0.stepLevel = 500 - (450 * (_local2 / 600000));
checkGameOver();
}
}
};
updateInterval = setInterval(updateFlash, 0, this);
checkGameOver = function () {
var _local1 = gameOverChecker._currentframe + 1;
if (_local1 >= gameOverChecker._totalframes) {
_local1 = gameOverChecker._totalframes;
gameOver(true);
}
gameOverChecker.gotoAndStop(_local1);
};
noMove = function () {
gameOver(true);
};
del = function (count, bonus) {
var _local2 = gameOverChecker._currentframe - (count * 2);
_local2 = _local2 - (bonus * count);
_local2 = ((_local2 < 1) ? 1 : (_local2));
gameOverChecker.gotoAndStop(_local2);
_level0.topScoreValue = _level0.topScoreValue + (count * 10);
_level0.topScoreValue = _level0.topScoreValue + ((bonus * count) * 10);
var _local3 = Math.ceil(_level0.topScoreValue / 1000);
if (_local3 > _level0.rImage) {
_level0.rImage = _local3;
imageRotator.nextImage();
}
_root.sounds.playSound("s_bonus", 0);
if (bonus > 0) {
_root.sounds.playSound("s_bonus2", 0);
}
};
stop();
Instance of Symbol 201 MovieClip [jewel] "game" in Symbol 250 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
iMax = 8;
amountTypes = 5;
jMax = 8;
amountBoom = 3;
dxBlock = 42;
dyBlock = 42;
notMoveFunc = "noMove";
addTopScoreFunc = "del";
stounsGalleryName = "stouns";
}