Frame 1
stop();
this.gotoGamezhero = function () {
getURL ("http://www.badsuzy.com/games/", "_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;
Frame 2
stop();
_quality = "BEST";
Frame 3
stop();
Symbol 9 MovieClip [soundClass] Frame 1
#initclip 8
Object.registerClass("soundClass", FSound);
#endinitclip
Symbol 10 MovieClip [musicClass] Frame 1
#initclip 5
Object.registerClass("musicClass", FMusic);
#endinitclip
Symbol 12 MovieClip [Fmd5] Frame 1
#initclip 6
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 19 MovieClip Frame 1
stop();
Symbol 20 MovieClip [FBonus] Frame 1
#initclip 7
function FBonusClass() {
this.stop();
this._visible = false;
}
FBonusClass.prototype = new MovieClip();
Object.registerClass("FBonus", FBonusClass);
FBonusClass.prototype.activate = function (x, y, bonus) {
if (x < 70) {
x = 70;
}
this._x = x;
this._y = y;
this.play();
trace("COOL");
this._visible = true;
this.bon.gotoAndStop("b" + String(bonus));
};
#endinitclip
Symbol 20 MovieClip [FBonus] Frame 25
removeMovieClip(this);
Symbol 61 Button
on (release) {
getURL ("http://www.badsuzy.com/?from=boobsbubbles", "_blank");
}
Symbol 62 MovieClip Frame 35
var proc = Math.round((100 * _root.getBytesLoaded()) / _root.getBytesTotal());
trace(proc);
if (proc >= 100) {
gotoAndPlay (47);
}
Symbol 62 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 62 MovieClip Frame 47
play();
Symbol 62 MovieClip Frame 55
stop();
_root.gotoAndStop(2);
Symbol 166 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 167 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;
}
function playSound(sound, pan) {
pan = ((pan == undefined) ? 50 : (pan));
if (valume > 0) {
indexSound++;
if (this["mc" + sound] == undefined) {
var _local2 = createEmptyMovieClip("mc" + sound, getNextHighestDepth());
_local2.sn = new Sound(_local2);
_local2.sn.attachSound(sound);
} else {
var _local2 = this["mc" + sound];
}
_local2.sn.setVolume(valume);
_local2.sn.setPan(pan);
_local2.sn.start(0, 1);
}
}
}
Symbol 168 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 169 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 71 MovieClip Frame 55
_root.gotoAndPlay(3);
Symbol 83 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 101 MovieClip [FBooble] Frame 1
#initclip 10
function FBoobleClass() {
this.kof = 0.7;
this.step2 = 10;
this.alpha = 0;
this.s = 0;
this.a = 0;
this.dxSp = 0;
this.howSpeedy = true;
this.stop();
this.iArr = new Array(0, -1, -1, 0);
this.jArrChet = new Array(-1, -1, 0, 1);
this.jArrNechet = new Array(-1, 0, 1, 1);
this.createBubble(this.how);
this.bonusFlag = new Array();
this.maySpeak = ((random(10) == 0) ? true : false);
var _local2 = Math.round(random(4) * 90);
this.bubble._rotation = _local2;
}
FBoobleClass.prototype = new MovieClip();
Object.registerClass("FBooble", FBoobleClass);
FBoobleClass.prototype.clearAllIntervals = function () {
clearInterval(this.nextLineInterval);
delete this.nextLineInterval;
clearInterval(this.colebInterval);
delete this.colebInterval;
};
FBoobleClass.prototype.setBonus = function (typeBonus) {
this.bonusFlag.push(typeBonus);
};
FBoobleClass.prototype.setPause = function (how) {
this._parent.intervalGame.pauseIntervalName("svinInterval", how);
if (how) {
this.bubble.gotoAndStop("pause");
} else {
this.bubble.gotoAndStop((("sk" + String(this.bubbleSkin)) + "_") + String(this.bubbleType));
}
};
FBoobleClass.prototype.bonus = function () {
var _local3 = 0;
while (_local3 < this.bonusFlag.length) {
index = this._parent.getNextHighestDepth();
this._parent.attachMovie("FBonus", "bonus" + index, index);
this._parent["bonus" + index].activate(this._x, this._y, this.bonusFlag[_local3]);
this._parent._parent.addBonus(this.bonusFlag[_local3]);
_root.sounds.playSound("bonus", this.getPanFunc());
_local3++;
}
};
FBoobleClass.prototype.nextLine2 = function (arr) {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if ((Math.abs(this._x - this.x) <= 1) && (Math.abs(this._y - this.y) <= 1)) {
this._x = this.x;
this._y = this.y;
arr.nextLine = false;
}
};
FBoobleClass.prototype.nextLine = function (how) {
this.clearAllIntervals();
if (how) {
_root.sounds.playSound("newLine", this.getPanFunc());
}
clearInterval(this.colebInterval);
delete this.colebInterval;
this.iPos = this.iPos + 1;
this.x = this.getX();
this.y = this.getY();
if (_level0.allObject[this.iPos][this.jPos] == undefined) {
_level0.allObject[this.iPos][this.jPos] = new Object();
}
_level0.allObject[this.iPos][this.jPos].name = this._name;
_level0.allObject[this.iPos][this.jPos].deleteID = _level0.allObject[this.iPos - 1][this.jPos].deleteID;
_level0.allObject[this.iPos - 1][this.jPos].name = undefined;
_level0.allObject[this.iPos - 1][this.jPos].deleteID = 0;
this.dx = Number(this.x - this._x) / 3;
this.dy = Number(this.y - this._y) / 3;
FBoobleClass.prototype.nextLineNow = function () {
clearInterval(this.colebInterval);
delete this.colebInterval;
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if ((Math.abs(this._x - this.x) <= 1) && (Math.abs(this._y - this.y) <= 1)) {
this._x = this.x;
this._y = this.y;
clearInterval(this.nextLineInterval);
delete this.nextLineInterval;
}
};
};
FBoobleClass.prototype.setType = function (skin, typeObj, id) {
this.bubbleType = typeObj.typeBubble;
this.subTypeBubble = typeObj.subTypeBubble;
this.bubbleSkin = skin;
this.bubbleID = id;
this.bubble.gotoAndStop(this.bubbleType);
this.bubble.tt.text = typeObj.typeBubble;
this.bubble.bType.gotoAndStop(this.subTypeBubble);
};
FBoobleClass.prototype.getX = function () {
if (Math.round(this.iPos / 2) == (this.iPos / 2)) {
return((((_level0.boobleDx * 3) / 4) + (_level0.boobleDx * this.jPos)) - (_level0.boobleDx / 4));
}
return((((_level0.boobleDx * 3) / 4) + (_level0.boobleDx * this.jPos)) + (_level0.boobleDx / 4));
};
FBoobleClass.prototype.getY = function () {
return((_level0.boobleDy * this.iPos) + (_level0.boobleDx / 2));
};
FBoobleClass.prototype.setPos = function (i, j) {
this.iPos = i;
this.jPos = j;
this.x = this.getX();
this.y = this.getY();
this._x = this.x;
this._y = this.y;
this.x = this._x;
this.y = this._y;
if (_level0.allObject[this.iPos][this.jPos] == undefined) {
_level0.allObject[this.iPos][this.jPos] = new Object();
}
_level0.allObject[this.iPos][this.jPos].name = this._name;
_level0.allObject[this.iPos][this.jPos].deleteID = -1;
};
FBoobleClass.prototype.setImpuls = function (s, a) {
if (this.s < s) {
this.s = s;
this.a = a;
this._x = this.x + ((this.s * Math.cos((this.a * Math.PI) / 180)) / 3);
this._y = this.y - ((this.s * Math.sin((this.a * Math.PI) / 180)) / 3);
this.startColeb();
}
if (this.s == s) {
this.a = (a + this.a) / 2;
this._x = this.x + ((this.s * Math.cos((this.a * Math.PI) / 180)) / 3);
this._y = this.y - ((this.s * Math.sin((this.a * Math.PI) / 180)) / 3);
this.startColeb();
}
};
FBoobleClass.prototype.startColeb = function () {
clearInterval(this.colebInterval);
delete this.colebInterval;
if ((this._x == this.x) && (this._y == this.y)) {
clearInterval(this.colebInterval);
delete this.colebInterval;
} else {
this.alpha = 0;
this.opredGoal();
FBoobleClass.prototype.colebNow = function () {
if ((this.alpha == 0) && (this.s > 3)) {
this.impuls(this.s - 3);
}
k = Math.sin((this.alpha * Math.PI) / 180);
d_x = (this._x - this.x_goal) * k;
d_y = (this._y - this.y_goal) * k;
this._x = this._x - d_x;
this._y = this._y - d_y;
if ((Math.abs(this._x - this.x_goal) < 0.5) && (Math.abs(this._y - this.y_goal) < 0.5)) {
this._x = this.x_goal;
this._y = this.y_goal;
this.onEnterFrame = null;
this.startColeb();
}
this.alpha = this.alpha + this.step2;
var _local3 = this.getX();
var _local2 = this.getY();
if ((Math.abs(dneedx - this._x) > 10) || (Math.abs(dneedy - this._y) > 10)) {
clearInterval(this.colebInterval);
delete this.colebInterval;
this._x = _local3;
this._y = _local2;
}
};
this.colebInterval = setInterval(this, "colebNow", 30);
}
};
FBoobleClass.prototype.angel = function (x1, y1, x2, y2) {
return(Math.round((180 * Math.atan2(y1 - y2, x2 - x1)) / Math.PI));
};
FBoobleClass.prototype.impuls = function (imp) {
var _local3 = new FSequence();
if (Math.round(this.iPos / 2) == (this.iPos / 2)) {
g = this._parent[_level0.allObject[this.iPos - 1][this.jPos].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos][this.jPos + 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos + 1][this.jPos].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos + 1][this.jPos - 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos][this.jPos - 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos - 1][this.jPos - 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
} else {
g = this._parent[_level0.allObject[this.iPos - 1][this.jPos + 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos][this.jPos + 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos + 1][this.jPos + 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos + 1][this.jPos].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos][this.jPos - 1].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
g = this._parent[_level0.allObject[this.iPos - 1][this.jPos].name];
g.setImpuls(imp, this.angel(this._x, this._y, g._x, g._y), 1);
}
};
FBoobleClass.prototype.opredGoal = function () {
this.s = this.s * this.kof;
this.a = this.a + 180;
this.x_goal = this.x + (this.s * Math.cos((this.a * Math.PI) / 180));
this.y_goal = this.y - (this.s * Math.sin((this.a * Math.PI) / 180));
if ((Math.abs(this.x - this.x_goal) < 0.5) && (Math.abs(this.y - this.y_goal) < 0.5)) {
this.x_goal = this.x;
this.y_goal = this.y;
}
};
FBoobleClass.prototype.createBubble = function (how) {
_root.sounds.playSound("begin", this.getPanFunc());
this.clearAllIntervals();
this._alpha = 0;
this._xscale = 0;
this._yscale = 0;
this._rotation = 0;
FBoobleClass.prototype.createNow = function () {
this._alpha = this._alpha + 34;
this._xscale = this._xscale + 34;
this._yscale = this._yscale + 34;
if (this._alpha >= 100) {
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
clearInterval(this.createInterval);
delete this.createInterval;
this.svinStep = ((random(2) == 1) ? 2 : -2);
this.ySvin = this._y;
}
};
this.createInterval = setInterval(this, "createNow", 40);
};
FBoobleClass.prototype.down = function () {
trace("DOWN>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+" + this);
_root.sounds.playSound("down", this.getPanFunc());
this.clearAllIntervals();
_level0.allObject[this.iPos][this.jPos].name = undefined;
_level0.allObject[this.iPos][this.jPos].deleteID = 0;
trace("DOWN " + this.bubbleType);
this.bonus();
this.xDown = this._x;
FBoobleClass.prototype.downNow = function () {
this._alpha = this._alpha - 10;
this._y = this._y + 15;
if (this._alpha <= 0) {
this._parent._parent.addBonus(_level0.scoreForDown);
clearInterval(this.downInterval);
delete this.downInterval;
this.removeMovieClip();
}
};
this.onEnterFrame = null;
this.downInterval = setInterval(this, "downNow", 35);
};
FBoobleClass.prototype.gameOverBubble = function () {
this.clearAllIntervals();
_level0.allObject[this.iPos][this.jPos].name = undefined;
_level0.allObject[this.iPos][this.jPos].deleteID = 0;
FBoobleClass.prototype.gameOverNow = function () {
this._alpha = this._alpha - 20;
this._y = this._y + (-10 + random(20));
this._x = this._x + (-10 + random(20));
if (this._alpha <= 0) {
clearInterval(this.gameOverInterval);
delete this.gameOverInterval;
this.removeMovieClip();
}
};
this.onEnterFrame = null;
this.gameOverInterval = setInterval(this, "gameOverNow", _level0.speedGame + 20);
};
FBoobleClass.prototype.metkaBoom = function () {
_level0.allObject[this.iPos][this.jPos].name = undefined;
_level0.allObject[this.iPos][this.jPos].deleteID = 0;
};
FBoobleClass.prototype.metkaExist = function (i, j) {
if (_level0.allObject[i][j] == undefined) {
_level0.allObject[this.iPos][this.jPos] = new Object();
}
_level0.allObject[i][j].name = this._name;
_level0.allObject[i][j].deleteID = -1;
};
FBoobleClass.prototype.getPanFunc = function () {
dx = 495;
p = -100 + Math.round((this._x * 200) / 495);
return(p);
};
FBoobleClass.prototype.boom = function (imp) {
_root.sounds.playSound("boom", this.getPanFunc());
this.clearAllIntervals();
this.s = imp;
_level0.allObject[this.iPos][this.jPos].name = undefined;
_level0.allObject[this.iPos][this.jPos].deleteID = 0;
this.bonus();
this.xDown = this._x;
FBoobleClass.prototype.boomNow = function () {
this._alpha = this._alpha - 10;
this._y = this._y + 15;
if (this._alpha <= 0) {
this._parent._parent.addBonus(_level0.scoreForDown);
clearInterval(this.downInterval);
delete this.boomInterval;
this.removeMovieClip();
}
};
this.boomInterval = setInterval(this, "boomNow", 35);
};
FBoobleClass.prototype.checkPos = function (alpha, g_mc) {
angelFromObject = Math.abs(this.angel(this._x, this._y, g_mc._x, g_mc._y) - alpha);
sFromObject = Math.sqrt(Math.pow(this._x - g_mc._x, 2) + Math.pow(this._y - g_mc._y, 2));
dopusk = Math.abs(sFromObject * Math.sin((angelFromObject * Math.PI) / 180));
if (Math.round(dopusk) <= 20) {
return(false);
}
return(true);
};
FBoobleClass.prototype.setPos2 = function () {
this.iPos = Math.round((this._y - (_level0.boobleDx / 2)) / _level0.boobleDy);
if (Math.round(this.iPos / 2) == (this.iPos / 2)) {
chet = 1;
this.jPos = Math.round(((this._x + (_level0.boobleDx / 4)) - ((_level0.boobleDx * 3) / 4)) / _level0.boobleDx);
} else {
chet = 0;
this.jPos = Math.round(((this._x - (_level0.boobleDx / 4)) - ((_level0.boobleDx * 3) / 4)) / _level0.boobleDx);
}
if (this.jPos < 0) {
this.jPos = 0;
} else if (this.jPos >= _level0.boobleJ_max) {
this.jPos = _level0.boobleJ_max - 1;
}
if ((_level0.allObject[this.iPos][this.jPos].name != undefined) && (_level0.allObject[this.iPos][this.jPos].name != this._name)) {
this.iPos = this.iOld;
this.jPos = this.jOld;
chet = -1;
}
if (this.iPos == 0) {
return(-1);
}
return(chet);
};
FBoobleClass.prototype.setPos3 = function () {
this.iPos = Math.round((this._y - (_level0.boobleDx / 2)) / _level0.boobleDy);
if (Math.round(this.iPos / 2) == (this.iPos / 2)) {
this.jPos = Math.ceil(((this._x + (_level0.boobleDx / 4)) - ((_level0.boobleDx * 3) / 4)) / _level0.boobleDx);
} else {
this.jPos = Math.ceil(((this._x - (_level0.boobleDx / 4)) - ((_level0.boobleDx * 3) / 4)) / _level0.boobleDx);
}
};
FBoobleClass.prototype.polet = function (who) {
this._x = this._x + this.dxPolet;
this._y = this._y + this.dyPolet;
if (this._x <= 16) {
_root.sounds.playSound("boing", this.getPanFunc());
this.angelPolet = 180 - this.angelPolet;
this.dxPolet = -this.dxPolet;
}
if (this._x >= ((_level0.boobleJ_max * _level0.boobleDx) - 3)) {
_root.sounds.playSound("boing", this.getPanFunc());
this.angelPolet = 180 - this.angelPolet;
this.dxPolet = -this.dxPolet;
}
if ((this.iOld != this.iPos) || (this.jOld != this.jPos)) {
this.iOld = this.iPos;
this.jOld = this.jPos;
}
chet = this.setPos2();
if (chet != -1) {
var _local3 = 0;
while (_local3 < 4) {
i = this.iPos + this.iArr[_local3];
j = this.jPos + (chet ? (this.jArrChet[_local3]) : (this.jArrNechet[_local3]));
g_mc = this._parent[_level0.allObject[i][j].name];
if ((g_mc != undefined) && (g_mc != this)) {
if (this.checkPos(this.angelPolet, g_mc) == false) {
this.impuls(_level0.kofKoleb);
clearInterval(this.poletInterval);
delete this.poletInterval;
this.setPos(this.iPos, this.jPos);
_root.sounds.playSound("boing", this.getPanFunc());
this._parent.deleteBubbles(this.iPos, this.jPos);
break;
}
}
_local3++;
}
} else {
clearInterval(this.poletInterval);
delete this.poletInterval;
this.setPos(this.iPos, this.jPos);
_root.sounds.playSound("boing", this.getPanFunc());
this._parent.deleteBubbles(this.iPos, this.jPos);
}
updateAfterEvent();
};
FBoobleClass.prototype.polet7 = function (who) {
this._x = this._x + (this.dxPolet / 2);
this._y = this._y + (this.dyPolet / 2);
this.setPos3();
g_mc1 = this._parent[_level0.allObject[this.iPos][this.jPos].name];
g_mc2 = this._parent[_level0.allObject[this.iPos][this.jPos - 1].name];
if (g_mc2 != this) {
g_mc2.down();
}
if (g_mc1 != this) {
g_mc1.down();
}
if (this._y < -50) {
this._parent.noDeleteBubbles();
clearInterval(this.poletInterval);
delete this.poletInterval;
this.removeMovieClip();
}
updateAfterEvent();
};
FBoobleClass.prototype.startPolet = function (x, y) {
if (this.bubbleType == 7) {
x = this._x;
}
_root.sounds.playSound("fire", this.getPanFunc());
this.angelPolet = this.angel(this._x, this._y, x, y);
step = _level0.boobleDx / 2;
this.dyPolet = (-step) * Math.sin((this.angelPolet * Math.PI) / 180);
this.dxPolet = step * Math.cos((this.angelPolet * Math.PI) / 180);
if (this.dyPolet > 0) {
this.dyPolet = -0.1;
}
this.dxSp = 0;
clearInterval(this.speedyInterval);
delete this.speedyInterval;
this.how = false;
this._parent.intervalGame.stopInterval("svinInterval");
delete this.svinInterval;
this.poletInterval = setInterval(this, "polet", _level0.speedGame - 5);
_level0.allObject[this.iPos][this.jPos].name = undefined;
_level0.allObject[this.iPos][this.jPos].deleteID = 0;
};
FBoobleClass.prototype.goSpeedy = function () {
this._x = this._x + this.dxSp;
if (this._x <= 16) {
this._x = 16;
}
if (this._x >= ((_level0.boobleJ_max * _level0.boobleDx) - 3)) {
this._x = (_level0.boobleJ_max * _level0.boobleDx) - 3;
}
if (Math.abs(this.dxSp) <= 0.1) {
this.dxSp = 0;
clearInterval(this.speedyInterval);
delete this.speedyInterval;
this.howSpeedy = true;
} else {
this.dxSp = this.dxSp - (this.dxSp / 20);
}
updateAfterEvent();
};
FBoobleClass.prototype.setSpeedy = function (dx) {
if (dx > 0) {
this.dxSp = (this.dxSp + Math.abs(this.dxSp * 2)) + 1;
if (this.dxSp > 5) {
this.dxSp = 5;
}
} else {
this.dxSp = (this.dxSp - Math.abs(this.dxSp * 2)) - 1;
if (this.dxSp < -5) {
this.dxSp = -5;
}
}
if (this.howSpeedy) {
this.speedyInterval = setInterval(this, "goSpeedy", _level0.speedGame - 5);
this.howSpeedy = false;
}
};
#endinitclip
Symbol 104 MovieClip Frame 1
stop();
Symbol 105 MovieClip [FNextBubble] Frame 1
#initclip 9
function FNextBubbleClass() {
this.types = 5;
this.newBubbles = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
this.visibleBubbles = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
this.kidkovMax = 10;
this.kidkov = 0;
this.clearAll();
this.action = "stop";
}
FNextBubbleClass.prototype = new MovieClip();
FNextBubbleClass.prototype.clearAll = function () {
this.it0._visible = false;
this.it1._visible = false;
this.it2._visible = false;
this.it3._visible = false;
this.it4._visible = false;
i = 0;
while (i < 5) {
this["it" + i]._visible = true;
this["it" + i]._xscale = 90;
this["it" + i]._yscale = 90;
this["it" + i].gotoAndStop(8);
this["item" + i]._visible = true;
this["item" + i].gotoAndStop(8);
i++;
}
this.beginArcadeGame(false);
this.action = "stop";
};
FNextBubbleClass.prototype.setCount = function (count) {
this.count = count;
i = 0;
while (i < 5) {
if (i >= count) {
this.visibleBubbles[i] = 0;
} else {
this.visibleBubbles[i] = 1;
}
i++;
}
this.previewNewBubbles();
};
FNextBubbleClass.prototype.previewNewBubbles = function () {
i = 0;
while (i < 5) {
if (this.newBubbles[i] == 0) {
if (_global.speedyGame) {
this.newBubbles[i] = random(this.types) + 1;
} else {
this.newBubbles[i] = random(this.types) + 1;
}
}
if (this.visibleBubbles[i] != 0) {
this["item" + i].gotoAndStop(this.newBubbles[i]);
} else {
this["item" + i].gotoAndStop(8);
}
i++;
}
};
FNextBubbleClass.prototype.randomBubble = function (n) {
if (n == 7) {
return(7);
}
return(random(5) + 1);
};
FNextBubbleClass.prototype.getNewBubble2 = function () {
var _local3 = random(this.types);
var _local4 = random(30);
var _local2 = new Object();
_local2.subTypeBubble = 1;
_local2.typeBubble = _local3 + 1;
return(_local2);
};
FNextBubbleClass.prototype.getNewBubble = function (how) {
num = this.newBubbles[0];
i = 0;
while (i < 4) {
this.newBubbles[i] = this.newBubbles[i + 1];
i++;
}
var _local3 = random(this.types) + 1;
this.newBubbles[4] = _local3;
this.previewNewBubbles();
_local3 = num;
var _local2 = new Object();
_local2.typeBubble = _local3;
_local2.subTypeBubble = 1;
return(_local2);
};
FNextBubbleClass.prototype.beginArcadeGame = function (how) {
if (this.action == "play") {
if (how) {
if (this.updateArcadeInterval == undefined) {
this.updateArcadeInterval = setInterval(this, "addArcadeBubble", 2200);
}
} else {
clearInterval(this.updateArcadeInterval);
delete this.updateArcadeInterval;
this.onEnterFrame = null;
}
}
};
FNextBubbleClass.prototype.newArcadeGame = function (level) {
this.action = "play";
this.level = level;
this.setCount(level);
this.countShoot = 3;
this.currentLevelGame = level;
this.kidkovMax = this.countShoot * this.currentLevelGame;
this.kidkov = 0;
this.updateArcadeGame();
this.beginArcadeGame(true);
};
FNextBubbleClass.prototype.addArcadeBubble = function () {
this.kidkov++;
this.newArcadeLine();
};
FNextBubbleClass.prototype.updateArcadeGame = function () {
kof = this.currentLevelGame - (this.kidkov / this.countShoot);
i = 0;
while (i < 5) {
this["it" + i]._visible = false;
if (i < Math.ceil(kof)) {
this["it" + i]._visible = true;
this["it" + i]._xscale = 90;
this["it" + i]._yscale = 90;
ii1 = i;
}
i++;
}
ii = ii1 + 1;
proc = (90 * (this.countShoot - (Number(ii * this.countShoot) - Number(Number(this.kidkovMax - this.kidkov))))) / this.countShoot;
this["it" + ii1]._yscale = proc;
this["it" + ii1]._xscale = proc;
};
FNextBubbleClass.prototype.newArcadeLine = function (level) {
if (this.kidkov >= this.kidkovMax) {
this.kidkov = 0;
this.currentLevelGame--;
if (this.currentLevelGame < 1) {
this.currentLevelGame = this.level;
}
this.kidkovMax = this.countShoot * this.currentLevelGame;
this.onEnterFrame = function () {
if (_global.gameAction != "lock") {
this._parent.bubbleShooter.nextLines();
this.onEnterFrame = null;
}
};
}
this.updateArcadeGame();
};
FNextBubbleClass.prototype.newStrategyGame = function (level) {
this.level = level;
this.setCount(this.level);
this.countShoot = 3;
this.currentLevelGame = this.level;
this.kidkovMax = this.countShoot * this.currentLevelGame;
this.kidkov = 0;
this.updateSrategyGame();
};
FNextBubbleClass.prototype.addStrategyBubble = function () {
this.kidkov++;
this.updateSrategyGame();
};
FNextBubbleClass.prototype.updateSrategyGame = function () {
kof = this.currentLevelGame - (this.kidkov / this.countShoot);
i = 0;
while (i < 5) {
this["it" + i]._visible = false;
if (i < Math.ceil(kof)) {
this["it" + i]._visible = true;
this["it" + i]._xscale = 90;
this["it" + i]._yscale = 90;
ii1 = i;
}
i++;
}
ii = ii1 + 1;
proc = (90 * (this.countShoot - (Number(ii * this.countShoot) - Number(Number(this.kidkovMax - this.kidkov))))) / this.countShoot;
this["it" + ii1]._yscale = proc;
this["it" + ii1]._xscale = proc;
};
FNextBubbleClass.prototype.newStrategyLine = function () {
if (this.kidkov >= this.kidkovMax) {
this.kidkov = 0;
this.currentLevelGame--;
if (this.currentLevelGame < 1) {
this.currentLevelGame = this.level;
}
this.kidkovMax = this.countShoot * this.currentLevelGame;
this.updateSrategyGame();
return(true);
}
return(false);
};
Object.registerClass("FNextBubble", FNextBubbleClass);
#endinitclip
Symbol 106 MovieClip Frame 1
addToNextLine = function (mcName, cc) {
this[mcName].nextLine(cc);
var _local2 = new Object();
_local2.name = mcName;
_local2.nextLine = true;
_level0.nextLineObjects.push(_local2);
};
nextLineBubbles = function (target) {
this=target;//parameter overwritten
var _local3 = true;
var _local2 = 0;
while (_local2 < _level0.nextLineObjects.length) {
if (_level0.nextLineObjects[_local2].nextLine && (this[_level0.nextLineObjects[_local2].name] != undefined)) {
_local3 = false;
this[_level0.nextLineObjects[_local2].name].nextLine2(_level0.nextLineObjects[_local2]);
} else {
_level0.nextLineObjects.splice(_local2, 1);
_local2--;
_level0.countNext--;
}
_local2++;
}
if (_local3 && (_level0.countNext == 0)) {
intervalGame.stopInterval("nextLine");
_level0.nextLineObjects = new Array();
}
};
pauseAllSequence = function (how) {
sequence.pauseSequence(how);
boomSquence.pauseSequence(how);
boomRec.pauseSequence(how);
deleteRec.pauseSequence(how);
deleteRec2.pauseSequence(how);
sequenceNextLine.pauseSequence(how);
sequenceGameOver.pauseSequence(how);
};
clearAllSequence = function (how) {
sequence.clearSequence();
boomSquence.clearSequence();
boomRec.clearSequence();
deleteRec.clearSequence();
deleteRec2.clearSequence();
sequenceNextLine.clearSequence();
sequenceGameOver.clearSequence();
};
checkGameOver = function () {
cc = false;
var _local3 = 0;
while (_local3 < _level0.boobleJ_max) {
if ((this[_level0.allObject[_level0.boobleI_max - 1][_local3].name] != undefined) && (_level0.nextBubble != this[_level0.allObject[_level0.boobleI_max - 1][_local3].name])) {
cc = true;
}
_local3++;
}
if (cc) {
_parent.gameOver();
}
return(!cc);
};
deleteAllObj = function () {
this.intervalGame.stopInterval("svinInterval");
for (var _local2 in this) {
if (_local2 != "item") {
this[_local2].removeMovieClip();
}
}
};
pauseBubbleFunc = function (how) {
for (var _local3 in this) {
this[_local3].setPause(how);
}
};
pauseGameFunc = function (how) {
_level0.pauseGameVar = how;
pauseBubbleFunc(how);
pauseAllSequence(how);
this._parent.pauseBtn.gotoAndStop((how ? 2 : 1));
if (how) {
_level0.action = "pause";
if (this.pauseMsg == undefined) {
index = this.getNextHighestDepth();
this.attachMovie("pauseMsg", "pauseMsg", index);
this.pauseMsg._alpha = 0;
}
} else {
_level0.action = "game";
this.pauseMsg.remove();
}
if (_level0.typeGame == "arcade") {
nextBubbleMc.beginArcadeGame(!how);
}
};
gameOverFastFunc = function () {
_root.sounds.playSound("gover", 0);
clearAllSequence();
this._parent.playInGame.gotoAndStop(1);
this._parent.pauseBtn._visible = false;
_level0.action = "gameover";
nextBubbleMc.clearAll();
deleteAllObj();
};
gameOverFunc = function () {
_root.sounds.playSound("gover", 0);
clearAllSequence();
this._parent.playInGame.gotoAndStop(1);
this._parent.pauseBtn._visible = false;
_level0.action = "stop";
_level0.nextBubble = null;
index = this.getNextHighestDepth();
this.attachMovie("gameOver", "gameOver" + index, index);
this["gameOver" + index]._alpha = 0;
if (_level0.action != "gameover") {
_level0.action = "gameover";
var _local4 = _level0.boobleI_max - 1;
while (_local4 >= 0) {
var _local3 = 0;
while (_local3 < _level0.boobleJ_max) {
if (this[_level0.allObject[_local4][_local3].name] != undefined) {
sequenceGameOver.addAction(this[_level0.allObject[_local4][_local3].name], "gameOverBubble", _level0.speedGame);
}
_local3++;
}
_local4--;
}
}
nextBubbleMc.clearAll();
sequenceGameOver.addAction(this["gameOver" + index], "remove", 50);
sequenceGameOver.addAction(this, "deleteAllObj", 100);
};
Set("newLine", function (i, how) {
var _local3 = 0;
while (_local3 < _level0.boobleJ_max) {
sequence.addAction(this, "createBubble", _level0.speedGame + 15, [i, _local3, false]);
_local3++;
}
if (how == true) {
_root.sounds.playSound("nextLine", 0);
sequence.addAction(this, "deleteDown", 150);
}
});
nextLine = function (i) {
if (_level0.typeGame == "strategy") {
nextBubbleMc.minusStrategyLine();
}
var _local2 = 0;
while (_local2 < _level0.boobleJ_max) {
if (this[_level0.allObject[i][_local2].name] != undefined) {
g = this[_level0.allObject[i][_local2].name];
g.nextLine(false);
}
_local2++;
}
};
nextLines = function () {
gameLock(true);
_level0.countNext = 0;
firs = true;
var _local3 = _level0.boobleI_max - 2;
while (_local3 >= 0) {
var _local4 = true;
var _local2 = 0;
while (_local2 < 5) {
cc = 10;
if (this[_level0.allObject[_local3][_local2].name] != undefined) {
sequenceNextLine.addAction(this, "addToNextLine", cc, [_level0.allObject[_local3][_local2].name, _local4]);
cc = 0;
_local4 = false;
_level0.countNext++;
}
if (this[_level0.allObject[_local3][5 + _local2].name] != undefined) {
sequenceNextLine.addAction(this, "addToNextLine", cc, [_level0.allObject[_local3][5 + _local2].name, _local4]);
cc = 0;
_local4 = false;
_level0.countNext++;
}
if (this[_level0.allObject[_local3][10 + _local2].name] != undefined) {
sequenceNextLine.addAction(this, "addToNextLine", cc, [_level0.allObject[_local3][10 + _local2].name, _local4]);
cc = 0;
_local4 = false;
_level0.countNext++;
}
if (this[_level0.allObject[_local3][15 + _local2].name] != undefined) {
sequenceNextLine.addAction(this, "addToNextLine", cc, [_level0.allObject[_local3][15 + _local2].name, _local4]);
cc = 0;
_local4 = false;
_level0.countNext++;
}
_local2++;
}
_local3--;
}
intervalGame.interval("nextLine", this, "nextLineBubbles", 15);
sequenceNextLine.addAction(this, "newLine", 250, [0, true]);
};
newBubble = function () {
if (_level0.action == "pause") {
pauseGameFunc(true);
} else {
_level0.action = "game";
}
if (checkGameOver()) {
if ((_level0.nextBubble == null) || (String(_level0.nextBubble) == "")) {
_level0.nextBubble = createBubble(_level0.boobleI_max - 1, 5, true);
}
gameLock(false);
}
};
createBubble = function (i, j, how) {
z++;
var _local4 = this.getNextHighestDepth();
item.duplicateMovieClip("b" + z, z, {how:how});
this["b" + z].setPos(i, j);
var _local2 = new Object();
_local2 = ((how == true) ? (nextBubbleMc.getNewBubble()) : (nextBubbleMc.getNewBubble2()));
this["b" + z].setType(1, _local2, z);
this["b" + z].deleteID = deleteID;
return(this["b" + z]);
};
newGame = function (typeg) {
typeg = 3;
_level0.demoTime = 1;
_level0.continueNumber = 4;
pauseBubbleFunc(true);
_root.sounds.playSound("newGame", 0);
this._parent.topScoreArea.clearScore();
this._parent.playInGame.gotoAndStop(typeg + 1);
this._parent.skillGameForm.setSkill(_level0.levelGame);
this._parent.pauseBtn._visible = true;
this.level = _level0.levelGame;
_level0.action = "game";
this.typeg = typeg;
if (typeg == 1) {
_level0.speedyGame = false;
_level0.typeGame = "strategy";
}
if (typeg == 2) {
_level0.speedyGame = false;
_level0.typeGame = "arcade";
}
if (typeg == 3) {
_level0.speedyGame = true;
_level0.typeGame = "strategy";
}
if (typeg == 4) {
_level0.speedyGame = true;
_level0.typeGame = "arcade";
}
deleteID = 1;
_level0.allObject = new Array();
var _local3 = 0;
while (_local3 < _level0.boobleI_max) {
_level0.allObject[_local3] = new Array();
_local3++;
}
_local3 = 0;
while (_local3 < _level0.boobleI_max) {
if (_local3 < ((3 + Math.round(this.level / 2)) - 1)) {
this.newLine(_local3);
}
_local3++;
}
if (_level0.typeGame == "strategy") {
sequence.addAction(nextBubbleMc, "newStrategyGame", 50, [_level0.levelGame]);
}
if (_level0.typeGame == "arcade") {
sequence.addAction(nextBubbleMc, "newArcadeGame", 50, [_level0.levelGame]);
}
sequence.addAction(this, "newBubble", 150);
pauseBubbleFunc(false);
};
gameLock = function (how) {
gameBg.enabled = !how;
if (how) {
_level0.gameAction = "lock";
} else {
_level0.gameAction = "unlock";
}
};
gameBg.onPress = function () {
this=this._parent;//parameter overwritten
this._parent;
if (_level0.action == "game") {
gameLock(true);
_level0.nextBubble.startPolet(this._xmouse, this._ymouse);
_level0.nextBubble.onEnterFrame = null;
_level0.nextBubble = null;
if (_level0.typeGame == "strategy") {
nextBubbleMc.addStrategyBubble();
}
}
};
keyDownObj = new Object();
stepSpeedy = 0;
keyDownObj.onKeyDown = function () {
if ((_level0.action == "game") && (_level0.speedyGame)) {
if ((_level0.nextBubble != null) && (_level0.nextBubble.bubbleType == 3)) {
if (Key.getCode() == 39) {
_level0.nextBubble.onEnterFrame = function () {
_level0.nextBubble.setSpeedy(1);
};
} else if (Key.getCode() == 37) {
_level0.nextBubble.onEnterFrame = function () {
_level0.nextBubble.setSpeedy(-1);
};
}
}
}
if ((_level0.action == "game") || (_level0.action == "pause")) {
if (Key.getCode() == 80) {
_level0.pauseGameVar = !_level0.pauseGameVar;
pauseGameFunc(_level0.pauseGameVar);
}
}
if (Key.getCode() == 13) {
if (_root.topScoreForm == undefined) {
if (_level0.action == "game") {
pauseGameFunc(true);
}
}
}
};
keyDownObj.onKeyUp = function () {
_level0.nextBubble.onEnterFrame = null;
};
gameBg._focusrect = false;
gameBg.useHandCursor = false;
recurseBoom = function (i, j, bubbleType, bubbleID, how) {
countElements++;
_level0.allObject[i][j].bubbleID = bubbleID;
g_mc = this[_level0.allObject[i][j].name];
boomArr.push(_level0.allObject[i][j].name);
if (g_mc.subTypeBubble == 2) {
superBubble = true;
}
if (opredChet(i)) {
i_temp = i - 1;
j_temp = j;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i;
j_temp = j + 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i + 1;
j_temp = j;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i + 1;
j_temp = j - 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i;
j_temp = j - 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i - 1;
j_temp = j - 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
} else {
i_temp = i - 1;
j_temp = j + 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i;
j_temp = j + 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i + 1;
j_temp = j + 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i + 1;
j_temp = j;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i;
j_temp = j - 1;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
i_temp = i - 1;
j_temp = j;
g_mc = this[_level0.allObject[i_temp][j_temp].name];
if ((g_mc.bubbleType == bubbleType) && (bubbleID != _level0.allObject[i_temp][j_temp].bubbleID)) {
recurseBoom(i_temp, j_temp, bubbleType, bubbleID);
}
}
};
recurseDown = function (i, j, delID, rec) {
this[_level0.allObject[i][j].name].tt.text = delID;
_level0.allObject[i][j].deleteID = delID;
if (opredChet(i)) {
i_temp = i;
j_temp = j + 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i + 1;
j_temp = j;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i + 1;
j_temp = j - 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i;
j_temp = j - 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i - 1;
j_temp = j - 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i - 1;
j_temp = j;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
} else {
i_temp = i;
j_temp = j + 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i + 1;
j_temp = j + 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i + 1;
j_temp = j;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i;
j_temp = j - 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i - 1;
j_temp = j;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
i_temp = i - 1;
j_temp = j + 1;
if (((_level0.allObject[i_temp][j_temp].name != undefined) && (_level0.allObject[i_temp][j_temp].deleteID != delID)) && (_level0.allObject[i_temp][j_temp].deleteID != 0)) {
recurseDown(i_temp, j_temp, delID, rec);
}
}
};
deleteLineFree = function (i, delID) {
var _local2 = 0;
while (_local2 < _level0.boobleJ_max) {
if (((_level0.allObject[i][_local2].deleteID != delID) && (_level0.allObject[i][_local2].name != undefined)) && (this[_level0.allObject[i][_local2].name] != _level0.nextBubble)) {
downArr.push(_level0.allObject[i][_local2].name);
}
_local2++;
}
};
deleteAllFree = function (delID) {
var _local2 = _level0.boobleI_max - 1;
while (_local2 >= 0) {
deleteRec.addAction(this, "deleteLineFree", 0, [_local2, delID]);
_local2--;
}
deleteRec.addAction(this, "deleteAllBoom", 0);
};
deleteDown = function () {
deleteID++;
countElements = 0;
rec = 0;
var _local2 = 0;
while (_local2 < _level0.boobleJ_max) {
if ((_level0.allObject[0][_local2].deleteID != deleteID) && (_level0.allObject[0][_local2].name != undefined)) {
recurseDown(0, _local2, deleteID, rec);
}
_local2++;
}
deleteRec.addAction(this, "deleteAllFree", 10, [deleteID]);
};
addToSuperBoom = function (typeBubble) {
var _local3 = _level0.boobleI_max - 2;
while (_local3 >= 0) {
var _local2 = 0;
while (_local2 < _level0.boobleJ_max) {
if (this[_level0.allObject[_local3][_local2].name].bubbleType == typeBubble) {
boomArr.push(_level0.allObject[_local3][_local2].name);
}
_local2++;
}
_local3--;
}
};
addToBoom = function (how) {
if ((boomArr.length >= 3) || (how)) {
boomSquence.addAction(this[boomArr[0]], "boom", 0, [_level0.kofKoleb]);
var _local2 = 1;
while (_local2 < boomArr.length) {
this[boomArr[_local2]].metkaBoom(_level0.kofKoleb);
_local2++;
}
boomSquence.addAction(this, "deleteDown", 25);
} else {
boomArr = new Array();
if (nextBubbleMc.newStrategyLine()) {
boomSquence.addAction(this, "nextLines", 0);
} else {
boomSquence.addAction(this, "newBubble", 150);
}
}
};
deleteAllBoom = function () {
var _local2 = 1;
while (_local2 < boomArr.length) {
boomSquence.addAction(this[boomArr[_local2]], "boom", 55 + (_level0.speedGame * 2), [_level0.kofKoleb]);
_local2++;
}
goBonus(boomArr);
_local2 = 0;
while (_local2 < downArr.length) {
boomSquence.addAction(this[downArr[_local2]], "down", 55 + (_level0.speedGame * 2));
_local2++;
}
goBonus(downArr);
boomArr = boomArr.concat(downArr);
goBonus(boomArr);
lengArr = boomArr.length;
boomArr = new Array();
downArr = new Array();
if (_level0.typeGame == "strategy") {
if (nextBubbleMc.newStrategyLine()) {
boomSquence.addAction(this, "nextLines", lengArr * (30 + (_level0.speedGame * 2)));
} else {
boomSquence.addAction(this, "newBubble", 150);
}
}
if (_level0.typeGame == "arcade") {
boomSquence.addAction(this, "newBubble", 150);
}
};
opredChet = function (i) {
if (Math.round(i / 2) == (i / 2)) {
return(true);
}
return(false);
};
noDeleteBubbles = function () {
boomArr = new Array();
downArr = new Array();
countElements = 0;
addToBoom(true);
};
deleteSpeeduBubbles = function (i, j) {
boomArr = new Array();
downArr = new Array();
countElements = 0;
downArr.push(_level0.allObject[i][j].name);
if (opredChet(i)) {
if (_level0.allObject[i - 1][j].name != undefined) {
boomArr.push(_level0.allObject[i - 1][j].name);
}
if (_level0.allObject[i][j + 1].name != undefined) {
boomArr.push(_level0.allObject[i][j + 1].name);
}
if (_level0.allObject[i + 1][j].name != undefined) {
boomArr.push(_level0.allObject[i + 1][j].name);
}
if (_level0.allObject[i + 1][j - 1].name != undefined) {
boomArr.push(_level0.allObject[i + 1][j - 1].name);
}
if (_level0.allObject[i][j - 1].name != undefined) {
boomArr.push(_level0.allObject[i][j - 1].name);
}
if (_level0.allObject[i - 1][j - 1].name != undefined) {
boomArr.push(_level0.allObject[i - 1][j - 1].name);
}
} else {
if (_level0.allObject[i - 1][j + 1].name != undefined) {
boomArr.push(_level0.allObject[i - 1][j + 1].name);
}
if (_level0.allObject[i][j + 1].name != undefined) {
boomArr.push(_level0.allObject[i][j + 1].name);
}
if (_level0.allObject[i + 1][j + 1].name != undefined) {
boomArr.push(_level0.allObject[i + 1][j + 1].name);
}
if (_level0.allObject[i + 1][j].name != undefined) {
boomArr.push(_level0.allObject[i + 1][j].name);
}
if (_level0.allObject[i][j - 1].name != undefined) {
boomArr.push(_level0.allObject[i][j - 1].name);
}
if (_level0.allObject[i - 1][j].name != undefined) {
boomArr.push(_level0.allObject[i - 1][j].name);
}
}
addToBoom(true);
};
deleteBubbles = function (i, j) {
boomArr = new Array();
downArr = new Array();
countElements = 0;
superBubble = false;
recurseBoom(i, j, this[_level0.allObject[i][j].name].bubbleType, this[_level0.allObject[i][j].name].bubbleID, true);
if ((superBubble == true) && (boomArr.length >= 3)) {
boomArr = new Array();
addToSuperBoom(this[_level0.allObject[i][j].name].bubbleType);
}
addToBoom();
};
goBonus = function (arr) {
i = arr.length;
if (i >= 45) {
g = this[arr[i - 1]];
g.setBonus(50000);
} else if (i >= 40) {
g = this[arr[i - 1]];
g.setBonus(25);
g = this[arr[(i - 1) - 5]];
g.setBonus(25000);
} else if (i >= 35) {
g = this[arr[i - 1]];
g.setBonus(25000);
} else if (i >= 30) {
g = this[arr[i - 1]];
g.setBonus(25);
g = this[arr[(i - 1) - 5]];
g.setBonus(2500);
} else if (i >= 25) {
g = this[arr[i - 1]];
g.setBonus(2500);
} else if (i >= 20) {
g = this[arr[i - 1]];
g.setBonus(25);
g = this[arr[(i - 1) - 5]];
g.setBonus(250);
} else if (i >= 15) {
g = this[arr[i - 1]];
g.setBonus(250);
} else if (i >= 10) {
g = this[arr[i - 1]];
g.setBonus(25);
g = this[arr[(i - 1) - 5]];
g.setBonus(25);
} else if (i >= 5) {
g = this[arr[i - 5]];
g.setBonus(25);
}
};
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;
};
updateInterval = setInterval(updateFlash, 0, this);
item._visible = false;
_level0.scoreForBoom = 10;
_level0.scoreForDown = 15;
_level0.action = "stop";
_level0.pauseGameVar = false;
_level0.nextBubble = null;
_level0.speedyGame = false;
sequence = new FSequence();
boomSquence = new FSequence();
boomRec = new FSequence();
deleteRec = new FSequence();
deleteRec2 = new FSequence();
sequenceNextLine = new FSequence();
sequenceGameOver = new FSequence();
intervalGame = new FInterval();
_level0.nextLineObjects = new Array();
z = 0;
_level0.levelGame = 3;
_level0.speedGame = 10;
_level0.boobleI_max = 10;
_level0.boobleJ_max = 11;
_level0.boobleDx = 34;
_level0.boobleDy = Math.round(_level0.boobleDx * 0.866025403784439) + 5.1;
_level0.kofKoleb = 10;
Symbol 110 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 5
stop();
Symbol 151 MovieClip Frame 1
submit = function () {
var _local2 = new LoadVars();
this["\u0441\u043B\u043E\u0432\u043E \u0442\u0440\u0443\u0434\u043D\u043E\u0435 \u0442\u0430\u043A\u043E\u0435"] = unescape("Boobs%20Bubbles%20Sec%20Key%20aaaa");
var _local3 = (String(_level0.topScoreValue) + String(txtIn.text)) + String(this["\u0441\u043B\u043E\u0432\u043E \u0442\u0440\u0443\u0434\u043D\u043E\u0435 \u0442\u0430\u043A\u043E\u0435"]);
_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 () {
submit();
this._parent._parent.play();
Key.removeListener(obj);
};
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)) {
submit();
trace("ENTER");
this._parent.play();
Key.removeListener(obj);
}
};
Key.addListener(obj);
Instance of Symbol 12 MovieClip [Fmd5] "md" in Symbol 151 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
securetyURL = "http://www.badsuzy.com";
}
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 74
stop();
Symbol 152 MovieClip Frame 77
_parent.iniGame();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 6
stop();
Symbol 161 MovieClip Frame 1
stop();
helpMc._x = 82;
Symbol 161 MovieClip Frame 2
play();
Symbol 161 MovieClip Frame 4
stop();
Symbol 161 MovieClip Frame 5
play();
Symbol 161 MovieClip Frame 7
stop();
helpMc._x = -1000;
Symbol 164 MovieClip Frame 1
step = 100;
images.setMask(mask);
imagesUrl = new Array();
var url = "http://files.badsuzy.com/files/boobsBubbles/";
imagesUrl.push(url + "01.jpg");
imagesUrl.push(url + "02.jpg");
imagesUrl.push(url + "03.jpg");
imagesUrl.push(url + "04.jpg");
imagesUrl.push(url + "05.jpg");
imagesUrl.push(url + "06.jpg");
imagesUrl.push(url + "07.jpg");
imagesUrl.push(url + "08.jpg");
imagesUrl.push(url + "09.jpg");
imagesUrl.push(url + "10.jpg");
imagesUrl.push(url + "11.jpg");
imagesUrl.push(url + "12.jpg");
imagesUrl.push(url + "13.jpg");
imagesUrl.push(url + "14.jpg");
imagesUrl.push(url + "15.jpg");
imagesUrl.push(url + "16.jpg");
imagesUrl.push(url + "17.jpg");
imagesUrl.push(url + "18.jpg");
imagesUrl.push(url + "19.jpg");
imagesUrl.push(url + "20.jpg");
imagesUrl.push(url + "21.jpg");
imagesUrl.push(url + "22.jpg");
imagesUrl.push(url + "23.jpg");
imagesUrl.push(url + "24.jpg");
imagesUrl.push(url + "25.jpg");
imagesUrl.push(url + "27.jpg");
imagesUrl.push(url + "28.jpg");
imagesUrl.push(url + "29.jpg");
imagesUrl.push(url + "30.jpg");
imagesUrl.push(url + "31.jpg");
imagesUrl.push(url + "32.jpg");
imagesUrl.push(url + "33.jpg");
imagesUrl.push(url + "34.jpg");
imagesUrl.push(url + "35.jpg");
imagesUrl.push(url + "36.jpg");
imagesUrl.push(url + "37.jpg");
imagesUrl.push(url + "38.jpg");
imagesUrl.push(url + "39.jpg");
imagesUrl.push(url + "40.jpg");
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], img);
trace(((">>>>>>>>>> " + imagesUrl[iname]) + " ") + iname);
}
};
iniGallery = function (currentGalleryID) {
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 () {
currentImageID = 0;
this._visible = false;
};
iniGallery();
Symbol 165 MovieClip Frame 15
_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.sounds.setValume(_global.effectValue);
_root.musics.playMusic(1);
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.topScoreUrl = "http://www.badsuzy.com/top_score/boobs_bubbles/add.php";
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);
};
_quality = "BEST";
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 () {
getURL ("http://www.badsuzy.com/?from=boobs_bubbles", "_black");
};
scorenBtn.onPress = function () {
getURL ("http://www.badsuzy.com/top_score/boobs_bubbles/", "_black");
};
_level0.topScoreValue = 0;
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;
helpMc.gotoAndPlay(2);
helpMc.help.help.play();
imageRotator.clearGallery();
};
iniGame();
stop();