Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 325) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 2;
if (tgprel <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 175
_global.sunet = 1;
gotoAndStop ("game");
Instance of Symbol 283 MovieClip in Frame 175
onClipEvent (load) {
this.swapDepths(100000);
}
Frame 181
stop();
_global.gigi = 2;
var game_mc = _root.createEmptyMovieClip("game_mc", 1);
var game = new BubbleGame(game_mc, init_level);
onEnterFrame = function () {
if (_global.sunet == 0) {
stopAllSounds();
_global.gigi = 1;
} else if (_global.gigi == 1) {
_global.gigi = 2;
loop_sound = new Sound();
loop_sound.attachSound("loop_snd");
loop_sound.setVolume(100);
loop_sound.start(0, 999);
}
};
Frame 188
_root.removeMovieClip("loop_snd_mc");
stopAllSounds();
_root.game_mc.removeMovieClip();
_root.gotoAndPlay("submitScore");
Frame 189
stopAllSounds();
Frame 190
_root.menu.removeMovieClip();
_root.gameid = "BubbleBobbleRevival";
_root.best = _root.scorBubble;
_root.scorBubble = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 192
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 193
if (false) {
}
Frame 200
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 204
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 205
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 11 MovieClip [FUIComponentSymbol] Frame 1
#initclip 12
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 42 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 43 MovieClip [UpArrow] Frame 1
stop();
Symbol 43 MovieClip [UpArrow] Frame 2
stop();
Symbol 43 MovieClip [UpArrow] Frame 3
stop();
Symbol 49 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 58 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 63 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 64 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 72 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 80 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 88 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 89 MovieClip [DownArrow] Frame 1
stop();
Symbol 89 MovieClip [DownArrow] Frame 2
stop();
Symbol 89 MovieClip [DownArrow] Frame 3
stop();
Symbol 102 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 110 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 110 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 110 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 111 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 118 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 118 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 118 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 119 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 122 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 122 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 122 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 127 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 131 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 132 MovieClip Frame 1
stop();
Symbol 133 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 140 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 140 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 140 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 141 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
function instructionsFunction() {
_parent.instructions_mc._visible = true;
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 146 Button
on (release) {
_root.xdada = 0;
stopAllSounds();
loop_sound.stop();
_root.gotoAndPlay("frameHelp");
_root.game_mc.removeMovieClip();
}
Symbol 149 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?BubbleBobbleTheRevival", "_blank");
}
Symbol 150 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 154 MovieClip [game_end_anim_win] Frame 35
stopAllSounds();
stop();
Instance of Symbol 143 MovieClip in Symbol 154 MovieClip [game_end_anim_win] Frame 35
//component parameters
onClipEvent (construct) {
wynume = "BubbleBobbleTheRevival";
wyculoare = 8662561 /* 0x842E21 */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 158 MovieClip [ghost_warning_mc] Frame 53
this.removeMovieClip();
Symbol 162 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 177 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 178 MovieClip [FScrollBarSymbol] Frame 1
#initclip 13
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 184 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 185 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 186 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 187 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 188 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 189 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 200 Button
on (release, keyPress "p") {
_parent.soundFunction();
}
Symbol 201 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 201 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 201 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 201 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 201 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 201 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 201 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 201 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 206 Button
on (press) {
_parent.play();
}
Symbol 209 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 209 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 209 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 209 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 209 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 209 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 209 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 209 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 209 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 209 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 227 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
};
if (_parent._parent.wxbutno == 5) {
this.gotoAndStop(2);
}
if (_parent._parent.wxbutno == 4) {
this.gotoAndStop(3);
}
if (_parent._parent.wxbutno == 3) {
this.gotoAndStop(4);
}
Symbol 228 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 229 MovieClip Frame 1
function pauseFunction() {
}
function soundFunction() {
if (_global.sunet != 1) {
_global.sunet = 1;
} else {
_global.sunet = 0;
}
}
function mainMenuFunction() {
stopAllSounds();
_root.gotoAndStop("coperta");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 229 MovieClip Frame 10
stop();
Symbol 232 MovieClip [top_bg_mc] Frame 1
Instance of Symbol 229 MovieClip "butoaneM" in Symbol 232 MovieClip [top_bg_mc] Frame 1
//component parameters
onClipEvent (construct) {
wxnume = "BubbleBobbleRevival";
wxaliniere = "Dreapta-Jos";
wxculoare = 10040064 /* 0x993300 */;
wxdownload = true;
wxpause = false;
wxsound = true;
}
Instance of Symbol 229 MovieClip in Symbol 232 MovieClip [top_bg_mc] Frame 1
//component parameters
onClipEvent (construct) {
wxnume = "joc";
wxaliniere = "Dreapta-Jos";
wxculoare = 6710988 /* 0x6666CC */;
wxdownload = true;
wxpause = false;
wxsound = true;
}
Symbol 234 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?BubbleBobbleTheRevival", "_blank");
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 955 MovieClip [__Packages.BubbleGame] Frame 0
class BubbleGame
{
var root, init_level, loop_sound, life_sound, start_anim_mc, current_level, lives, score, num_of_levels, lco, last_hero_x, last_hero_y, paused, pause_mc, lives_mc, score_mc, top_powers_mc, level_num_mc, game_level;
function BubbleGame (r, il) {
root = r;
playStartAnim();
if (il == undefined) {
init_level = 1;
} else {
init_level = il;
}
}
function initGame() {
startGame();
}
function playStartAnim() {
removeAllAssets();
var temp = this;
loop_sound.stop();
var _local3 = _root.createEmptyMovieClip("loop_snd_mc", 2000);
loop_sound = new Sound(_local3);
loop_sound.attachSound("loop_snd");
loop_sound.setVolume(30);
loop_sound.onSoundComplete = function () {
temp.playLoopSound();
};
playLoopSound();
life_sound = new Sound();
life_sound.attachSound("life_snd");
start_anim_mc = root.attachMovie("start_anim", "start_anim", start_anim_dep);
start_anim_mc.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
this.start_btn.onRelease = function () {
temp.initGame();
};
this.onKeyDown = function () {
if (Key.isDown(32)) {
temp.initGame();
}
};
Key.addListener(this);
}
};
}
function startGame() {
start_anim_mc.removeMovieClip();
current_level = init_level;
lives = 5;
score = 0;
num_of_levels = 25;
lco = getLevelConfigs(current_level);
last_hero_x = 255;
last_hero_y = 170;
playInterLevelAnim();
paused = false;
pause_mc = root.attachMovie("pause_mc", "pause_mc", pause_dep);
pause_mc._visible = paused;
Key.addListener(this);
}
function onKeyDown() {
if (Key.getCode() == 80) {
if (paused) {
paused = false;
} else {
paused = true;
}
}
pause_mc._visible = paused;
}
function playLevel() {
if (current_level == init_level) {
root.attachMovie("top_bg_mc", "top_bg_mc", top_dep);
lives_mc = root.attachMovie("lives_mc", "lives_mc", lives_dep);
lives_mc.gotoAndStop(lives);
lives_mc._x = -30;
lives_mc._y = 2;
lives_mc._xscale = 90;
lives_mc._yscale = 90;
score_mc = root.attachMovie("score_mc", "score_mc", scores_dep);
score_mc.score_txt.text = score.toString();
score_mc._x = 370;
score_mc._y = 7;
setScore(0);
top_powers_mc = root.attachMovie("top_powers_mc", "top_powers_mc", top_powers_dep);
top_powers_mc._x = 20;
top_powers_mc._y = 30;
showPowers();
level_num_mc = root.attachMovie("level_num_mc", "level_num_mc", level_num_dep);
level_num_mc._x = 0;
level_num_mc._y = 60;
}
game_level = new BubbleLevel(this, lco);
level_num_mc.level_txt.text = current_level.toString();
level_num_mc.level_shadow_txt.text = current_level.toString();
}
function levelFinished() {
if (current_level < num_of_levels) {
last_hero_x = game_level.getHero().getClip()._x;
last_hero_y = game_level.getHero().getClip()._y;
game_level.removeLevel();
delete game_level;
current_level++;
lco = getLevelConfigs(current_level);
playInterLevelAnim();
} else {
trace("you won the game");
root.attachMovie("game_end_anim_win", "game_end_anim_win", start_anim_dep);
}
}
function playInterLevelAnim() {
var _local6 = root.getNextHighestDepth();
var _local3 = root.createEmptyMovieClip("inter_anim", inter_anim_dep);
_local3._y = 50;
var _local5 = _local3.attachMovie(("level_" + (current_level - 1)) + "_bg", "former_mc", 100);
var _local4 = _local3.attachMovie(("level_" + current_level) + "_bg", "curr_mc", 200);
var hero_trans_mc = _local3.attachMovie("hero_trans_mc", "hero_trans_mc", 300);
hero_trans_mc._x = last_hero_x;
hero_trans_mc._y = last_hero_y;
_local4._y = 450;
var temp = this;
_local3.onEnterFrame = function () {
if (temp.getPaused()) {
hero_trans_mc.hero_dance.stop();
return(undefined);
}
hero_trans_mc.hero_dance.play();
var _local2 = 10;
if ((this.curr_mc._y - _local2) > 0) {
this.curr_mc._y = this.curr_mc._y - _local2;
this.former_mc._y = this.former_mc._y - _local2;
} else {
this.curr_mc._y = 0;
this.former_mc.removeMovieClip();
if ((this.hero_trans_mc._y + _local2) < temp.hero_final_y) {
this.hero_trans_mc._y = this.hero_trans_mc._y + _local2;
} else {
this.hero_trans_mc._y = temp.hero_final_y;
if ((this.hero_trans_mc._x - _local2) > temp.hero_final_x) {
this.hero_trans_mc._x = this.hero_trans_mc._x - _local2;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
temp.finishInterAnim();
}
}
}
};
}
function finishInterAnim() {
playLevel();
}
function getRoot() {
return(root);
}
function getScore() {
return(score);
}
function getLives() {
return(lives);
}
function getPaused() {
return(paused);
}
function setScore(s) {
if (Math.floor(score / live_add_score) < Math.floor(s / live_add_score)) {
addLive();
}
score = s;
var _local3 = "";
var _local5 = score.toString();
if (_local5.length < 6) {
var _local4 = 6 - _local5.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3 = _local3 + "0";
_local2++;
}
}
_local3 = _local3 + _local5;
score_mc.score_txt.text = _local3;
score_mc.score_shadow_txt.text = _local3;
}
function addLive() {
setLives(lives + 1);
life_sound.start(0, 1);
root.attachMovie("new_life_mc", "new_life_mc", life_anim_dep);
}
function setLives(l) {
lives = l;
if (lives == 0) {
trace("you've lost the game");
game_level.stopLevel();
root.attachMovie("game_end_anim", "game_end_anim", start_anim_dep);
} else {
lives_mc.lives_shadow_txt.text = lives.toString();
lives_mc.lives_txt.text = lives.toString();
}
}
function addPowerUp(p_up) {
if (p_up == "speed_up") {
speed_power = true;
}
if (p_up == "long_up") {
long_power = true;
}
if (p_up == "fast_up") {
fast_power = true;
}
showPowers();
}
function removePowers() {
speed_power = false;
long_power = false;
fast_power = false;
showPowers();
}
function showPowers() {
top_powers_mc.speed_up._visible = speed_power;
top_powers_mc.long_up._visible = long_power;
top_powers_mc.fast_up._visible = fast_power;
}
function getSpeedPower() {
return(speed_power);
}
function getLongPower() {
return(long_power);
}
function getFastPower() {
return(fast_power);
}
function playLoopSound() {
loop_sound.start(0, 1);
}
function removeAllAssets() {
game_level.removeLevel();
lives_mc.removeMovieClip();
score_mc.removeMovieClip();
root.top_bg_mc.removeMovieClip();
}
function getLevelConfigs(lev) {
var _local1 = new Object();
_local1.lev_bg = ("level_" + lev) + "_bg";
_local1.lev_wall = ("wall_" + lev) + "_mc";
_local1.enemies_array = new Array();
if (lev == 1) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 150;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 250;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 350;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
} else if (lev == 2) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 170;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 220;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 270;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 320;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local1.power_up = "speed_up";
_local1.power_up_x = 180;
_local1.power_up_y = 210;
} else if (lev == 3) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 120;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 170;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 320;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 370;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
} else if (lev == 4) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 100;
_local3.start_y = 140;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 130;
_local3.start_y = 210;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 160;
_local3.start_y = 380;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 340;
_local3.start_y = 380;
_local1.enemies_array.push(_local3);
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 370;
_local3.start_y = 210;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 400;
_local3.start_y = 140;
_local1.enemies_array.push(_local3);
_local1.power_up = "long_up";
_local1.power_up_x = 240;
_local1.power_up_y = 380;
} else if (lev == 5) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 150;
_local3.start_y = 155;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 190;
_local3.start_y = 260;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 230;
_local3.start_y = 365;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 270;
_local3.start_y = 365;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 310;
_local3.start_y = 260;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 350;
_local3.start_y = 155;
_local1.enemies_array.push(_local3);
} else if (lev == 6) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 175;
_local3.start_y = 380;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 225;
_local3.start_y = 295;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 275;
_local3.start_y = 210;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 325;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local1.power_up = "fast_up";
_local1.power_up_x = 250;
_local1.power_up_y = 295;
} else if (lev == 7) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 50;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 100;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 400;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 450;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
} else if (lev == 8) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 140;
_local3.start_y = 240;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 140;
_local3.start_y = 160;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 360;
_local3.start_y = 160;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 360;
_local3.start_y = 240;
_local1.enemies_array.push(_local3);
_local1.power_up = "long_up";
_local1.power_up_x = 405;
_local1.power_up_y = 90;
} else if (lev == 9) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 90;
_local3.start_y = 185;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 120;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 185;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 380;
_local3.start_y = 120;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 410;
_local3.start_y = 185;
_local1.enemies_array.push(_local3);
} else if (lev == 10) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 110;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 230;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 220;
_local3.start_y = 230;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 250;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 280;
_local3.start_y = 230;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 270;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 390;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local1.power_up = "fast_up";
_local1.power_up_x = 440;
_local1.power_up_y = 245;
} else if (lev == 11) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 220;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 250;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 280;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 120;
_local3.start_y = 160;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 150;
_local3.start_y = 130;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 350;
_local3.start_y = 130;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 380;
_local3.start_y = 160;
_local1.enemies_array.push(_local3);
} else if (lev == 12) {
var _local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 60;
_local3.start_y = 350;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 60;
_local3.start_y = 320;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 60;
_local3.start_y = 290;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 440;
_local3.start_y = 350;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 440;
_local3.start_y = 320;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 440;
_local3.start_y = 290;
_local1.enemies_array.push(_local3);
_local1.power_up = "fast_up";
_local1.power_up_x = 80;
_local1.power_up_y = 90;
} else if (lev == 13) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 170;
_local3.start_y = 135;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 200;
_local3.start_y = 135;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 300;
_local3.start_y = 135;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 330;
_local3.start_y = 135;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 250;
_local3.start_y = 320;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 120;
_local3.start_y = 320;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 380;
_local3.start_y = 320;
_local1.enemies_array.push(_local3);
} else if (lev == 14) {
var _local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 55;
_local3.start_y = 155;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 155;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 210;
_local3.start_y = 140;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 250;
_local3.start_y = 300;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 290;
_local3.start_y = 140;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 345;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 445;
_local3.start_y = 155;
_local1.enemies_array.push(_local3);
_local1.power_up = "speed_up";
_local1.power_up_x = 240;
_local1.power_up_y = 175;
} else if (lev == 15) {
var _local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 170;
_local3.start_y = 340;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 210;
_local3.start_y = 340;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 250;
_local3.start_y = 340;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 290;
_local3.start_y = 340;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 330;
_local3.start_y = 340;
_local1.enemies_array.push(_local3);
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 190;
_local3.start_y = 290;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 310;
_local3.start_y = 290;
_local1.enemies_array.push(_local3);
} else if (lev == 16) {
var _local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 250;
_local3.start_y = 325;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 190;
_local3.start_y = 325;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 310;
_local3.start_y = 325;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 140;
_local3.start_y = 325;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 90;
_local3.start_y = 325;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 360;
_local3.start_y = 325;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 410;
_local3.start_y = 325;
_local1.enemies_array.push(_local3);
_local1.power_up = "speed_up";
_local1.power_up_x = 240;
_local1.power_up_y = 330;
} else if (lev == 17) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 120;
_local3.start_y = 130;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 380;
_local3.start_y = 130;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 150;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 350;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 250;
_local3.start_y = 260;
_local1.enemies_array.push(_local3);
} else if (lev == 18) {
var _local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 110;
_local3.start_y = 180;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 180;
_local3.start_y = 140;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 250;
_local3.start_y = 100;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 320;
_local3.start_y = 140;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 390;
_local3.start_y = 180;
_local1.enemies_array.push(_local3);
_local1.power_up = "long_up";
_local1.power_up_x = 400;
_local1.power_up_y = 85;
} else if (lev == 19) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 50;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 50;
_local3.start_y = 135;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 135;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 185;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 450;
_local3.start_y = 85;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 450;
_local3.start_y = 135;
_local1.enemies_array.push(_local3);
} else if (lev == 20) {
var _local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 250;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 200;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 160;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 120;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 300;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 340;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 380;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local1.power_up = "long_up";
_local1.power_up_x = 420;
_local1.power_up_y = 190;
} else if (lev == 21) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 150;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 180;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 210;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 240;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 270;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 300;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 330;
_local1.enemies_array.push(_local3);
} else if (lev == 22) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 80;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 100;
_local3.start_y = 260;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 200;
_local3.start_y = 320;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 240;
_local3.start_y = 200;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 300;
_local3.start_y = 260;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 300;
_local3.start_y = 360;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 2;
_local3.start_x = 400;
_local3.start_y = 140;
_local1.enemies_array.push(_local3);
_local1.power_up = "speed_up";
_local1.power_up_x = 350;
_local1.power_up_y = 190;
} else if (lev == 23) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 50;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 110;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 170;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 235;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 300;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 360;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 420;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
} else if (lev == 24) {
var _local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 80;
_local3.start_y = 210;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 80;
_local3.start_y = 380;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 210;
_local3.start_y = 295;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 250;
_local3.start_y = 170;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 290;
_local3.start_y = 295;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 420;
_local3.start_y = 210;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 3;
_local3.start_x = 420;
_local3.start_y = 380;
_local1.enemies_array.push(_local3);
_local1.power_up = "fast_up";
_local1.power_up_x = 410;
_local1.power_up_y = 120;
} else if (lev == 25) {
var _local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 90;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 160;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 190;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 250;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 310;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 340;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
_local3 = new Object();
_local3.en_type = 1;
_local3.start_x = 410;
_local3.start_y = 460;
_local1.enemies_array.push(_local3);
}
return(_local1);
}
var hero_final_y = 420;
var hero_final_x = 50;
var start_anim_dep = 1000;
var top_dep = 200;
var scores_dep = 300;
var lives_dep = 400;
var top_powers_dep = 500;
var level_num_dep = 600;
var inter_anim_dep = 150;
var life_anim_dep = 2500;
var pause_dep = 3000;
var live_add_score = 10000;
var speed_power = false;
var long_power = false;
var fast_power = false;
}
Symbol 956 MovieClip [__Packages.BubbleLevel] Frame 0
class BubbleLevel
{
var game, ghost_warning_interval, ghost_appearance_interval, finishPeriod, finished, level_mc, level_bg, wall_mc, power_up_mc, hero, enemy_counter, enemies_array, bubbles_array, bullets_array, bonuses_array, ghost_counter, level_state, finish_counter, ghost_sound, ghost, ghost_sound_interval_id;
function BubbleLevel (g, lco) {
game = g;
loadLevelAssets(lco);
}
function loadLevelAssets(lco) {
ghost_warning_interval = 50 * fps;
ghost_appearance_interval = 4 * fps;
finishPeriod = 4 * fps;
finished = false;
level_mc = game.getRoot().createEmptyMovieClip("level_mc", 100);
level_bg = level_mc.attachMovie(lco.lev_bg, "level_bg", getNextDep());
level_bg._y = 50;
wall_mc = level_mc.attachMovie(lco.lev_wall, "wall_mc", getNextDep());
wall_mc._alpha = 0;
wall_mc._y = 50;
if (lco.power_up != undefined) {
power_up_mc = level_mc.attachMovie(lco.power_up, lco.power_up, getNextDep());
power_up_mc._x = lco.power_up_x;
power_up_mc._y = lco.power_up_y;
}
hero = new Hero(this);
enemy_counter = 0;
enemies_array = new Array();
var _local2 = 0;
while (_local2 < lco.enemies_array.length) {
if (lco.enemies_array[_local2].en_type == 1) {
this["enemy_" + _local2] = new Enemy1(this, lco.enemies_array[_local2].start_x, lco.enemies_array[_local2].start_y, getNextDep(), true);
} else if (lco.enemies_array[_local2].en_type == 2) {
this["enemy_" + _local2] = new Enemy2(this, lco.enemies_array[_local2].start_x, lco.enemies_array[_local2].start_y, getNextDep(), true);
} else if (lco.enemies_array[_local2].en_type == 3) {
this["enemy_" + _local2] = new Enemy3(this, lco.enemies_array[_local2].start_x, lco.enemies_array[_local2].start_y, getNextDep(), true);
}
enemies_array.push(this["enemy_" + _local2]);
enemy_counter++;
_local2++;
}
bubbles_array = new Array();
bullets_array = new Array();
bonuses_array = new Array();
ghost_counter = 0;
level_state = "start";
var temp = this;
level_mc.onEnterFrame = function () {
temp.moveCharacters();
};
}
function moveCharacters() {
if (!game.getPaused()) {
if (ghost_counter == ghost_warning_interval) {
showGhostWarning();
}
if (ghost_counter == (ghost_warning_interval + ghost_appearance_interval)) {
showGhost();
}
ghost_counter++;
if (finished) {
finish_counter++;
if (finish_counter == finishPeriod) {
finishLevel();
}
}
} else {
ghost_sound.stop();
}
if (level_state == "over") {
return(undefined);
}
if (level_state == "start") {
if (checkIfAllEnemiesReady()) {
launcheAllEnemies();
hero.setState("play");
level_state = "play";
}
}
hero.move();
var _local2 = 0;
while (_local2 < enemies_array.length) {
enemies_array[_local2].move();
_local2++;
}
_local2 = 0;
while (_local2 < bubbles_array.length) {
bubbles_array[_local2].move();
_local2++;
}
_local2 = 0;
while (_local2 < bullets_array.length) {
bullets_array[_local2].move();
_local2++;
}
_local2 = 0;
while (_local2 < bonuses_array.length) {
bonuses_array[_local2].move();
_local2++;
}
if (ghost != undefined) {
ghost.move();
}
}
function addBubble(b) {
bubbles_array.push(b);
}
function addBullet(b) {
bullets_array.push(b);
}
function addBonus(bon) {
bonuses_array.push(bon);
}
function removeEnemy(en) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < enemies_array.length) {
if (enemies_array[_local2] == en) {
_local3 = _local2;
break;
}
_local2++;
}
enemies_array.splice(_local3, 1);
}
function removeBubble(bub) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < bubbles_array.length) {
if (bubbles_array[_local2] == bub) {
_local3 = _local2;
break;
}
_local2++;
}
bubbles_array.splice(_local3, 1);
}
function removeBullet(bul) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < bullets_array.length) {
if (bullets_array[_local2] == bul) {
_local3 = _local2;
break;
}
_local2++;
}
bullets_array.splice(_local3, 1);
}
function removeBonus(bon) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < bonuses_array.length) {
if (bonuses_array[_local2] == bon) {
_local3 = _local2;
break;
}
_local2++;
}
bonuses_array.splice(_local3, 1);
}
function burnNewEnemy(et, x, y) {
if (et == 1) {
this["enemy_" + enemy_counter] = new Enemy1(this, x, y, getNextDep());
} else if (et == 2) {
this["enemy_" + enemy_counter] = new Enemy2(this, x, y, getNextDep());
} else if (et == 3) {
this["enemy_" + enemy_counter] = new Enemy3(this, x, y, getNextDep());
}
enemies_array.push(this["enemy_" + enemy_counter]);
enemy_counter++;
}
function checkIfLevelFinished() {
if (enemies_array.length == 0) {
var _local2 = 0;
while (_local2 < bubbles_array.length) {
if (bubbles_array[_local2].getCapture() != 0) {
return(undefined);
}
_local2++;
}
startFinishingLevel();
}
}
function startFinishingLevel() {
finished = true;
finish_counter = 0;
clearInterval(ghost_sound_interval_id);
ghost_counter = (ghost_warning_interval + ghost_appearance_interval) + 1;
var _local2 = 0;
while (_local2 < bubbles_array.length) {
bubbles_array[_local2].turnToCherry();
bubbles_array[_local2].removeBubble();
_local2++;
}
ghost.removeGhost();
delete ghost;
}
function addScore(s, x, y) {
var _local2 = level_mc.attachMovie("score_anim_mc", "score_anim_mc" + scores_count, getNextDep());
_local2._x = x;
_local2._y = y;
_local2.score_move_mc.score_txt.text = s.toString();
scores_count++;
game.setScore(game.getScore() + s);
}
function finishLevel() {
clearInterval(ghost_sound_interval_id);
level_state = "over";
game.levelFinished();
}
function stopLevel() {
clearInterval(ghost_sound_interval_id);
level_state = "over";
}
function removeLevel() {
clearInterval(ghost_sound_interval_id);
level_mc.removeMovieClip();
level_bg.removeMovieClip();
wall_mc.removeMovieClip();
hero.getClip().removeMovieClip();
}
function showGhostWarning() {
var _local2 = level_mc.attachMovie("ghost_warning_mc", "ghost_warning_mc", getNextDep());
}
function showGhost() {
ghost = new Ghost(this, getNextDep());
playGhostSound();
ghost_sound_interval_id = setInterval(this, "playGhostSound", 4000);
}
function playGhostSound() {
ghost_sound = new Sound();
ghost_sound.attachSound("ghost_snd");
ghost_sound.start(0, 1);
}
function checkIfAllEnemiesReady() {
var _local3 = true;
var _local2 = 0;
while (_local2 < enemies_array.length) {
if (enemies_array[_local2].getState() != "ready") {
_local3 = false;
break;
}
_local2++;
}
return(_local3);
}
function launcheAllEnemies() {
var _local2 = 0;
while (_local2 < enemies_array.length) {
enemies_array[_local2].setState("play");
_local2++;
}
}
function playLoopSound() {
}
function getLevelClip() {
return(level_mc);
}
function getWall() {
return(wall_mc);
}
function getEnemies() {
return(enemies_array);
}
function getBubbles() {
return(bubbles_array);
}
function getBullets() {
return(bullets_array);
}
function getHero() {
return(hero);
}
function getGame() {
return(game);
}
function getLevelState() {
return(level_state);
}
function getGhost() {
return(ghost);
}
function getNextDep() {
return(level_mc.getNextHighestDepth());
}
function getTopPos() {
return(top_pos);
}
function getBottomPos() {
return(bottom_pos);
}
function getPowerUp() {
return(power_up_mc);
}
var scores_count = 13000;
var top_pos = 50;
var bottom_pos = 500;
var fps = 24;
}
Symbol 957 MovieClip [__Packages.Hero] Frame 0
class Hero
{
var bubble_level, init_x, init_y, fall_speed, dead_fall_speed, jump_speed, friction, hor_speed, fast_speed, curr_hor_speed, onfly, invinsible, invisible_period, shooting_active, state, clip_state, dir, level_mc, char_mc, curr_ver_speed, invinsible_interval, hero_snd;
function Hero (bl) {
bubble_level = bl;
initCharacter();
}
function initCharacter() {
init_x = 60;
init_y = 470;
fall_speed = 6;
dead_fall_speed = 10;
jump_speed = 30;
friction = 1.3;
hor_speed = 7;
fast_speed = 10;
curr_hor_speed = 0;
onfly = false;
invinsible = false;
invisible_period = 3000;
shooting_active = true;
state = "ready";
clip_state = "stand";
dir = "Right";
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("hero_mc", "hero_mc", bubble_level.getNextDep());
char_mc._x = init_x;
char_mc._y = init_y;
}
function move() {
if (bubble_level.getGame().getPaused()) {
char_mc.hero_states.gotoAndStop("stand");
return(undefined);
}
if (state == "ready") {
return(undefined);
}
if (state == "dead") {
char_mc.hero_states.gotoAndStop("die");
char_mc._alpha = 50;
if (curr_ver_speed < 0) {
curr_ver_speed = curr_ver_speed / friction;
if (Math.abs(curr_ver_speed) < 0.2) {
curr_ver_speed = 0;
}
} else {
curr_ver_speed = dead_fall_speed;
}
char_mc._y = char_mc._y + curr_ver_speed;
if (char_mc._y > bubble_level.getBottomPos()) {
bubble_level.getGame().setLives(bubble_level.getGame().getLives() - 1);
burnNewHero();
}
return(undefined);
}
var _local4 = bubble_level.getWall();
var _local3 = new HitTestClass();
if (Key.isDown(38)) {
if (!onfly) {
onfly = true;
curr_ver_speed = -jump_speed;
playJumpSound();
}
}
if (curr_ver_speed < 0) {
if (char_mc._y < bubble_level.getTopPos()) {
curr_ver_speed = 0;
}
curr_ver_speed = curr_ver_speed / friction;
if (Math.abs(curr_ver_speed) < 0.2) {
curr_ver_speed = 0;
}
} else {
var _local5 = _local3.checkUnder(_local4, char_mc.hit_area_mc, level_mc, fall_speed);
curr_ver_speed = _local5;
if (_local5 > 0) {
onfly = true;
} else {
onfly = false;
}
if (curr_ver_speed > 0) {
if (char_mc._y > bubble_level.getBottomPos()) {
char_mc._y = bubble_level.getTopPos();
return(undefined);
}
}
}
char_mc._y = char_mc._y + curr_ver_speed;
curr_hor_speed = 0;
var _local2 = 0;
if (bubble_level.getGame().getSpeedPower()) {
_local2 = fast_speed;
} else {
_local2 = hor_speed;
}
if (Key.isDown(37)) {
dir = "Left";
curr_hor_speed = -_local2;
}
if (Key.isDown(39)) {
dir = "Right";
curr_hor_speed = _local2;
}
var _local6 = _local3.checkLeftRight(_local4, char_mc.hit_area_mc, level_mc, curr_hor_speed);
if (curr_hor_speed > 0) {
char_mc._xscale = 100;
} else if (curr_hor_speed < 0) {
char_mc._xscale = -100;
}
char_mc._x = char_mc._x + _local6;
if (invinsible) {
if (char_mc._alpha != 0) {
char_mc._alpha = 0;
} else {
char_mc._alpha = 50;
}
} else {
char_mc._alpha = 100;
checkCollisions();
}
if (char_mc.hit_area_mc.hitTest(bubble_level.getPowerUp())) {
bubble_level.getGame().addPowerUp(bubble_level.getPowerUp()._name);
bubble_level.getPowerUp().removeMovieClip();
}
if (shooting_active) {
if (Key.isDown(32)) {
new Bubble(bubble_level, char_mc._x, char_mc._y, bubble_level.getNextDep(), dir);
shooting_active = false;
playShootSound();
}
}
if (!shooting_active) {
clip_state = "shoot";
} else if (curr_ver_speed < 0) {
clip_state = "jump";
} else if (curr_ver_speed > 0) {
clip_state = "fly";
} else if (Math.abs(curr_hor_speed) > 0) {
clip_state = "run";
} else {
clip_state = "stand";
}
char_mc.hero_states.gotoAndPlay(clip_state);
}
function checkBounce(b) {
if (Key.isDown(38)) {
if (onfly) {
if (curr_ver_speed >= 0) {
onfly = true;
curr_ver_speed = -jump_speed;
playJumpSound();
return(true);
}
}
}
}
function checkCollisions() {
var _local3 = bubble_level.getEnemies();
var _local2 = 0;
while (_local2 < _local3.length) {
if (char_mc.hit_area_mc.hitTest(_local3[_local2].getClip().hit_area_mc)) {
die();
return(undefined);
}
_local2++;
}
var _local4 = bubble_level.getBullets();
_local2 = 0;
while (_local2 < _local4.length) {
if (char_mc.hit_area_mc.hitTest(_local4[_local2].getClip())) {
die();
return(undefined);
}
_local2++;
}
if (char_mc.hit_area_mc.hitTest(bubble_level.getGhost().getClip())) {
die();
return(undefined);
}
}
function die() {
state = "dead";
curr_ver_speed = -jump_speed;
playDieSound();
bubble_level.getGame().removePowers();
}
function burnNewHero() {
char_mc.hero_states.gotoAndStop("stand");
char_mc._x = init_x;
char_mc._y = init_y;
clearInterval(invinsible_interval);
invinsible = true;
invinsible_interval = setInterval(this, "removeInvinsible", invisible_period);
state = "play";
}
function removeInvinsible() {
invinsible = false;
}
function activateShooting() {
shooting_active = true;
}
function playShootSound() {
if (_global.sunet == 1) {
hero_snd = new Sound(char_mc);
hero_snd.attachSound("shoot_snd");
hero_snd.start(0, 1);
}
}
function playJumpSound() {
if (_global.sunet == 1) {
hero_snd = new Sound(char_mc);
hero_snd.attachSound("jump_snd");
hero_snd.start(0, 1);
}
}
function playDieSound() {
if (_global.sunet == 1) {
hero_snd = new Sound(char_mc);
hero_snd.attachSound("die_snd");
hero_snd.start(0, 1);
}
}
function playBubbleHitSound() {
if (_global.sunet == 1) {
hero_snd = new Sound(char_mc);
hero_snd.attachSound("bubble_hit_snd");
hero_snd.start(0, 1);
}
}
function getClip() {
return(char_mc);
}
function setState(s) {
state = s;
}
function getState() {
return(state);
}
var bubble_dep = 5001;
}
Symbol 958 MovieClip [__Packages.HitTestClass] Frame 0
class HitTestClass
{
function HitTestClass () {
}
function checkUnder(wall_mc, char_mc, holder_mc, speed) {
var _local4 = speed;
var _local2 = char_mc.getBounds(holder_mc);
var _local3 = Math.round((_local2.xMin + _local2.xMax) / 2);
if (!wall_mc.hitTest(_local3, _local2.yMax - 1, true)) {
var _local1 = 0;
while (_local1 < speed) {
if (wall_mc.hitTest(_local3, _local2.yMax + _local1, true)) {
_local4 = _local1;
break;
}
_local1++;
}
}
return(_local4);
}
function checkLeftRight(wall_mc, char_mc, holder_mc, speed) {
var _local4 = speed;
var _local2 = char_mc.getBounds(holder_mc);
var _local6 = Math.round((_local2.xMin + _local2.xMax) / 2);
if (speed == 0) {
} else if (speed > 0) {
var _local1 = 0;
while (_local1 < speed) {
if (wall_mc.hitTest(_local2.xMax + _local1, _local2.yMax - 1, true)) {
_local4 = _local1;
break;
}
_local1++;
}
} else {
var _local1 = 0;
while (_local1 > speed) {
if (wall_mc.hitTest(_local2.xMin + _local1, _local2.yMax - 1, true)) {
_local4 = _local1;
break;
}
_local1--;
}
}
return(_local4);
}
}
Symbol 959 MovieClip [__Packages.Bubble] Frame 0
class Bubble
{
var bubble_level, bubble_dep, captured_enemy, hor_speed, killing_distance, flyer_hor_speed, dir, init_x, init_y, state, final_hor_pos, final_top_pos, curr_ver_speed, ver_speed, curr_hor_speed, level_mc, char_mc, flyer_state, breeding_count, bubble_snd;
function Bubble (bl, x, y, dep, d) {
bubble_level = bl;
initCharacter(x, y, dep, d);
}
function initCharacter(x, y, dep, d) {
bubble_dep = dep;
captured_enemy = 0;
if (bubble_level.getGame().getFastPower()) {
hor_speed = 22;
} else {
hor_speed = 14;
}
if (bubble_level.getGame().getLongPower()) {
killing_distance = 300;
} else {
killing_distance = 100;
}
flyer_hor_speed = 5;
dir = d;
init_x = x;
init_y = y;
state = "Killer";
final_hor_pos = Math.floor(Math.random() * 100) + 200;
final_top_pos = (Math.floor(Math.random() * 35) + 15) + bubble_level.getTopPos();
curr_ver_speed = 0;
ver_speed = -3;
if (dir == "Left") {
curr_hor_speed = -hor_speed;
} else {
curr_hor_speed = hor_speed;
}
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("bubble_mc", "bubble_mc" + dep, dep);
char_mc._x = init_x;
char_mc._y = init_y - 3;
bubble_level.addBubble(this);
}
function move() {
if (bubble_level.getGame().getPaused()) {
return(undefined);
}
if (state == "Killer") {
char_mc.gotoAndStop("killer");
var _local4 = Math.abs(char_mc._x - init_x) / 100;
if (_local4 > 1) {
_local4 = 1;
}
char_mc._xscale = (70 * _local4) + 30;
char_mc._yscale = (70 * _local4) + 30;
if (Math.abs(char_mc._x - init_x) > killing_distance) {
turnToFlyer();
}
if (checkWallHit()) {
turnToFlyer();
}
var _local3 = bubble_level.getEnemies();
var _local2 = 0;
while (_local2 < _local3.length) {
if (char_mc.hitTest(_local3[_local2].getClip())) {
captured_enemy = _local3[_local2].getEnemyType();
_local3[_local2].die();
turnToFlyer();
return(undefined);
}
_local2++;
}
char_mc._x = char_mc._x + curr_hor_speed;
return(undefined);
}
if (state == "Flyer") {
if (checkHitHero()) {
if (bubble_level.getHero().checkBounce(this)) {
} else {
state = "Burst";
bonusBurst();
if (captured_enemy != 0) {
bubble_level.checkIfLevelFinished();
}
}
return(undefined);
}
if (flyer_state == "Rising") {
char_mc._y = char_mc._y + curr_ver_speed;
if (char_mc._y < final_top_pos) {
flyer_state = "Drifting";
if (final_hor_pos > char_mc._x) {
curr_hor_speed = flyer_hor_speed;
} else {
curr_hor_speed = -flyer_hor_speed;
}
}
} else if (flyer_state == "Drifting") {
char_mc._x = char_mc._x + curr_hor_speed;
if (curr_hor_speed > 0) {
if (final_hor_pos < char_mc._x) {
flyer_state = "Breeding";
breeding_count = 0;
}
} else if (final_hor_pos > char_mc._x) {
flyer_state = "Breeding";
breeding_count = 0;
}
} else {
breeding_count++;
if (breeding_count > breeding_interval) {
finishBreeding();
} else if (breeding_count > breeding_red) {
char_mc.gotoAndStop("breeding");
char_mc.bubble_breed.gotoAndStop("f_" + captured_enemy);
}
}
}
}
function turnToFlyer() {
state = "Flyer";
flyer_state = "Rising";
char_mc.gotoAndStop("flyer");
char_mc.bubble_flyer.gotoAndStop("f_" + captured_enemy);
char_mc._xscale = 100;
char_mc._yscale = 100;
curr_hor_speed = 0;
curr_ver_speed = ver_speed;
bubble_level.getHero().activateShooting();
}
function checkWallHit() {
var _local2 = bubble_level.getWall();
var _local3 = char_mc.getBounds(level_mc);
if (_local2.hitTest(_local3.xMin, char_mc._y, true) || (_local2.hitTest(_local3.xMax, char_mc._y, true))) {
return(true);
}
return(false);
}
function checkHitHero() {
var _local2 = bubble_level.getHero().getClip();
if (char_mc.hitTest(_local2.hit_area_mc)) {
if (bubble_level.getHero().getState() != "dead") {
return(true);
}
} else {
return(false);
}
}
function bonusBurst() {
if (captured_enemy != 0) {
var _local5 = new Bonus(bubble_level, captured_enemy, char_mc._x, char_mc._y, bubble_level.getNextDep());
playBubbleHitSound();
char_mc.removeMovieClip();
bubble_level.removeBubble(this);
} else if (flyer_state == "Breeding") {
var _local5 = new Bonus(bubble_level, captured_enemy, char_mc._x, char_mc._y, bubble_level.getNextDep());
playBubbleHitSound();
char_mc.removeMovieClip();
bubble_level.removeBubble(this);
} else {
bubble_level.addScore(10, char_mc._x, char_mc._y);
var _local4 = char_mc._x;
var _local3 = char_mc._y;
char_mc.removeMovieClip();
var _local2 = level_mc.attachMovie("bubble_burst", "bubble_burst" + bubble_dep, bubble_dep);
_local2._x = _local4;
_local2._y = _local3;
playBubbleHitSound();
bubble_level.removeBubble(this);
}
}
function finishBreeding() {
if (captured_enemy > 0) {
bubble_level.burnNewEnemy(captured_enemy, char_mc._x, char_mc._y);
char_mc.removeMovieClip();
bubble_level.removeBubble(this);
} else {
simpleBurst();
}
}
function removeBubble() {
char_mc.removeMovieClip();
}
function simpleBurst() {
var _local4 = char_mc._x;
var _local3 = char_mc._y;
char_mc.removeMovieClip();
var _local2 = level_mc.attachMovie("bubble_burst", "bubble_burst" + bubble_dep, bubble_dep);
_local2._x = _local4;
_local2._y = _local3;
bubble_level.removeBubble(this);
playBubbleHitSound();
}
function turnToCherry() {
var _local2 = new Bonus(bubble_level, 0, char_mc._x, char_mc._y, char_mc.getDepth() + 2000);
}
function getClip() {
return(char_mc);
}
function getCapture() {
return(captured_enemy);
}
function playBubbleHitSound() {
bubble_snd = new Sound(char_mc);
bubble_snd.attachSound("bubble_hit_snd");
bubble_snd.start(0, 1);
}
var breeding_red = 100;
var breeding_interval = 200;
}
Symbol 960 MovieClip [__Packages.Bonus] Frame 0
class Bonus
{
var bubble_level, bonus_type, bonus_dep, hor_speed, ver_speed, state, bonus_live_interval, level_mc, char_mc, transform_y, bonus_live_counter, bonus_snd;
function Bonus (bl, t, x, y, dep) {
bubble_level = bl;
bubble_level.addBonus(this);
bonus_type = t;
initBonus(x, y, dep);
}
function initBonus(x, y, dep) {
bonus_dep = dep;
hor_speed = -Math.floor(Math.random() * 8);
ver_speed = -6;
state = "penetrate";
bonus_live_interval = 96;
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("bonus_mc", "bonus_mc" + dep, dep);
char_mc._x = x;
char_mc._y = y - 30;
char_mc.gotoAndStop(("t_" + bonus_type) + "_p");
transform_y = y;
}
function move() {
if (bubble_level.getGame().getPaused()) {
char_mc.gotoAndStop(("t_" + bonus_type) + "_f");
return(undefined);
}
if (char_mc.hitTest(bubble_level.getHero().getClip().hit_area_mc)) {
if (bubble_level.getHero().getState() != "dead") {
playBonusSound();
if (bonus_type == 0) {
bubble_level.addScore(10, char_mc._x, char_mc._y);
} else if (bonus_type == 1) {
bubble_level.addScore(100, char_mc._x, char_mc._y);
} else if (bonus_type == 2) {
bubble_level.addScore(300, char_mc._x, char_mc._y);
} else if (bonus_type == 3) {
bubble_level.addScore(700, char_mc._x, char_mc._y);
}
removeBonus();
}
}
if (state == "stop") {
if (bonus_live_counter == bonus_live_interval) {
removeBonus();
}
bonus_live_counter++;
return(undefined);
}
char_mc._x = char_mc._x + hor_speed;
char_mc._y = char_mc._y + ver_speed;
if (char_mc._y > bubble_level.getBottomPos()) {
char_mc._y = bubble_level.getTopPos();
return(undefined);
}
ver_speed = ver_speed + 0.5;
var _local4 = bubble_level.getLevelClip();
var _local3 = bubble_level.getWall();
var _local2 = char_mc.getBounds(_local4);
if (_local3.hitTest(_local2.xMax, _local2.yMax, true) && (_local3.hitTest(_local2.xMax, _local2.yMin, true))) {
hor_speed = 0;
}
if (_local3.hitTest(_local2.xMin, _local2.yMax, true) && (_local3.hitTest(_local2.xMin, _local2.yMin, true))) {
hor_speed = 0;
}
if (char_mc._y > transform_y) {
state = "hit";
char_mc.gotoAndStop(("t_" + bonus_type) + "_f");
}
if (state == "hit") {
if (char_mc._y > bubble_level.getTopPos()) {
if (_local3.hitTest(char_mc._x, _local2.yMax + 2, true)) {
state = "stop";
bonus_live_counter = 0;
}
}
}
}
function removeBonus() {
char_mc.removeMovieClip();
bubble_level.removeBonus(this);
}
function playBonusSound() {
if (_global.sunt == 1) {
bonus_snd.stop();
bonus_snd = new Sound(char_mc);
bonus_snd.attachSound("bonus_snd");
bonus_snd.start(0, 1);
}
}
}
Symbol 961 MovieClip [__Packages.Ghost] Frame 0
class Ghost
{
var bubble_level, level_mc, char_mc;
function Ghost (bl, dep) {
bubble_level = bl;
initGhost(dep);
}
function initGhost(dep) {
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("ghost_mc", "ghost_mc" + dep, dep);
char_mc._x = -10;
char_mc._y = -10;
}
function move() {
if (bubble_level.getGame().getPaused()) {
char_mc.ghost_anim.stop();
return(undefined);
}
char_mc.ghost_anim.play();
var _local2 = bubble_level.getHero().getClip();
if (Math.abs(char_mc._x - _local2._x) < (hor_speed + 1)) {
var _local3 = 0;
} else if (char_mc._x < _local2._x) {
var _local3 = hor_speed;
} else {
var _local3 = -hor_speed;
}
if (Math.abs(char_mc._y - _local2._y) < (ver_speed + 1)) {
var _local4 = 0;
} else if (char_mc._y < _local2._y) {
var _local4 = ver_speed;
} else {
var _local4 = -ver_speed;
}
if (_local3 > 0) {
char_mc._xscale = 100;
} else {
char_mc._xscale = -100;
}
char_mc._x = char_mc._x + _local3;
char_mc._y = char_mc._y + _local4;
}
function removeGhost() {
char_mc.removeMovieClip();
}
function getClip() {
return(char_mc);
}
var hor_speed = 2;
var ver_speed = 2;
}
Symbol 962 MovieClip [__Packages.Enemy1] Frame 0
class Enemy1
{
var bubble_level, enemy_type, furious_interval, init_x, init_y, fall_speed, jump_speed, friction, hor_speed, onfly, state, level_mc, char_mc, furious_interval_id, curr_hor_speed, decision_interval, curr_ver_speed;
function Enemy1 (bl, i_x, i_y, dep, onstart) {
bubble_level = bl;
initCharacter(i_x, i_y, dep, onstart);
}
function initCharacter(i_x, i_y, dep, onstart) {
enemy_type = 1;
furious_interval = 5000;
init_x = i_x;
init_y = i_y;
fall_speed = 5;
jump_speed = 30;
friction = 1.3;
hor_speed = 3;
onfly = false;
if (onstart) {
state = "taking_position";
} else {
state = "play";
}
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("enemy1_mc", "enemy_mc" + dep, dep);
char_mc._x = init_x;
if (onstart) {
char_mc._y = 0;
char_mc.gotoAndStop("normal");
} else {
char_mc._y = init_y;
char_mc.gotoAndStop("furious");
furious_interval_id = setInterval(this, "turnToNormal", furious_interval);
hor_speed = 6;
}
var _local3 = Math.floor(Math.random() * 2);
if (_local3 < 1) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
var _local2 = Math.floor(Math.random() * 3000) + 1000;
decision_interval = setInterval(this, "takeDecision", _local2);
}
function turnToNormal() {
char_mc.gotoAndStop("normal");
hor_speed = 3;
if (curr_hor_speed > 0) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
}
function takeDecision() {
var _local3 = Math.floor(Math.random() * 6);
if (_local3 < 3) {
turnAround();
} else if (bubble_level.getHero().getClip()._y < char_mc._y) {
jump();
}
clearInterval(decision_interval);
var _local2 = Math.floor(Math.random() * 3000) + 1000;
decision_interval = setInterval(this, "takeDecision", _local2);
}
function move() {
if (bubble_level.getGame().getPaused()) {
char_mc.enemy_anim_mc.stop();
return(undefined);
}
char_mc.enemy_anim_mc.play();
if (state == "ready") {
char_mc.enemy_anim_mc.stop();
return(undefined);
}
if (state == "taking_position") {
char_mc.enemy_anim_mc.stop();
if ((char_mc._y + fall_speed) >= init_y) {
char_mc._y = init_y;
state = "ready";
} else {
char_mc._y = char_mc._y + fall_speed;
}
return(undefined);
}
var _local4 = bubble_level.getWall();
var _local3 = new HitTestClass();
if (curr_ver_speed < 0) {
if (char_mc._y < bubble_level.getTopPos()) {
curr_ver_speed = 0;
}
char_mc.enemy_anim_mc.stop();
curr_ver_speed = curr_ver_speed / friction;
if (Math.abs(curr_ver_speed) < 0.2) {
curr_ver_speed = 0;
}
} else {
var _local5 = _local3.checkUnder(_local4, char_mc.hit_area_mc, level_mc, fall_speed);
if (_local5 > 0) {
if ((curr_ver_speed == 0) && (!onfly)) {
if (bubble_level.getHero().getClip()._y < char_mc._y) {
if (Math.random() > 0.5) {
jump();
_local5 = -jump_speed;
}
}
} else {
onfly = true;
char_mc.enemy_anim_mc.stop();
}
} else {
if (onfly) {
var _local7 = Math.floor(Math.random() * 2);
if (_local7 < 1) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
}
onfly = false;
char_mc.enemy_anim_mc.play();
}
curr_ver_speed = _local5;
}
if (curr_ver_speed > 0) {
if (char_mc._y > bubble_level.getBottomPos()) {
char_mc._y = bubble_level.getTopPos();
return(undefined);
}
}
char_mc._y = char_mc._y + curr_ver_speed;
var _local2 = _local3.checkLeftRight(_local4, char_mc.hit_area_mc, level_mc, curr_hor_speed);
var _local6 = _local3.checkLeftRight(_local4, char_mc.hit_area_mc, level_mc, -curr_hor_speed);
if ((_local2 == 0) && (_local6 == 0)) {
} else if (curr_hor_speed > 0) {
char_mc._xscale = 100;
if (_local2 < curr_hor_speed) {
turnAround();
}
} else if (curr_hor_speed < 0) {
char_mc._xscale = -100;
if (_local2 > curr_hor_speed) {
turnAround();
}
}
char_mc._x = char_mc._x + _local2;
}
function turnAround() {
curr_hor_speed = curr_hor_speed * -1;
}
function jump() {
if (!onfly) {
onfly = true;
if (Math.random() > 0.7) {
curr_hor_speed = 0;
}
curr_ver_speed = -jump_speed;
}
}
function die() {
char_mc.removeMovieClip();
bubble_level.removeEnemy(this);
}
function getClip() {
return(char_mc);
}
function getEnemyType() {
return(enemy_type);
}
function getState() {
return(state);
}
function setState(s) {
state = s;
}
}
Symbol 963 MovieClip [__Packages.Enemy2] Frame 0
class Enemy2
{
var bubble_level, enemy_type, furious_interval, init_x, init_y, fall_speed, jump_speed, friction, hor_speed, ver_speed, onfly, state, level_mc, char_mc, furious_interval_id, curr_hor_speed, curr_ver_speed, decision_interval;
function Enemy2 (bl, i_x, i_y, dep, onstart) {
bubble_level = bl;
initCharacter(i_x, i_y, dep, onstart);
}
function initCharacter(i_x, i_y, dep, onstart) {
enemy_type = 2;
furious_interval = 5000;
init_x = i_x;
init_y = i_y;
fall_speed = 5;
jump_speed = 25;
friction = 1.3;
hor_speed = 4;
ver_speed = 4;
onfly = false;
if (onstart) {
state = "taking_position";
} else {
state = "play";
}
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("enemy2_mc", "enemy_mc" + dep, dep);
char_mc._x = init_x;
if (onstart) {
char_mc._y = 0;
char_mc.gotoAndStop("normal");
} else {
char_mc._y = init_y;
char_mc.gotoAndStop("furious");
furious_interval_id = setInterval(this, "turnToNormal", furious_interval);
hor_speed = 5;
}
var _local2 = Math.floor(Math.random() * 2);
if (_local2 < 1) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
_local2 = Math.floor(Math.random() * 2);
if (_local2 < 1) {
curr_ver_speed = ver_speed;
} else {
curr_ver_speed = -ver_speed;
}
var _local3 = Math.floor(Math.random() * 3000) + 1000;
}
function turnToNormal() {
char_mc.gotoAndStop("normal");
hor_speed = 3;
if (curr_hor_speed > 0) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
}
function takeDecision() {
var _local3 = Math.floor(Math.random() * 6);
if (_local3 < 3) {
turnAround();
} else {
jump();
}
clearInterval(decision_interval);
var _local2 = Math.floor(Math.random() * 3000) + 1000;
decision_interval = setInterval(this, "takeDecision", _local2);
}
function move() {
if (bubble_level.getGame().getPaused()) {
char_mc.enemy_anim_mc.stop();
return(undefined);
}
char_mc.enemy_anim_mc.play();
if (state == "ready") {
char_mc.enemy_anim_mc.stop();
return(undefined);
}
if (state == "taking_position") {
if ((char_mc._y + fall_speed) >= init_y) {
char_mc._y = init_y;
state = "ready";
} else {
char_mc._y = char_mc._y + fall_speed;
}
return(undefined);
}
var _local3 = bubble_level.getWall();
var _local2 = char_mc.hit_area_mc.getBounds(level_mc);
var _local4 = Math.round((_local2.xMin + _local2.xMax) / 2);
var _local5 = Math.round((_local2.yMin + _local2.yMax) / 2);
if (curr_ver_speed > 0) {
if (_local3.hitTest(_local4, _local2.yMax, true)) {
curr_ver_speed = curr_ver_speed * -1;
}
if (char_mc._y > bubble_level.getBottomPos()) {
char_mc._y = bubble_level.getTopPos();
}
} else {
if (_local3.hitTest(_local4, _local2.yMin, true)) {
curr_ver_speed = curr_ver_speed * -1;
}
if (char_mc._y < bubble_level.getTopPos()) {
char_mc._y = bubble_level.getBottomPos();
}
}
if (curr_hor_speed > 0) {
if (_local3.hitTest(_local2.xMax, _local5, true)) {
curr_hor_speed = curr_hor_speed * -1;
}
} else if (_local3.hitTest(_local2.xMin, _local5, true)) {
curr_hor_speed = curr_hor_speed * -1;
}
if (curr_hor_speed > 0) {
char_mc._xscale = 100;
} else {
char_mc._xscale = -100;
}
char_mc._x = char_mc._x + curr_hor_speed;
char_mc._y = char_mc._y + curr_ver_speed;
}
function turnAround() {
curr_hor_speed = curr_hor_speed * -1;
}
function jump() {
if (!onfly) {
onfly = true;
if (Math.random() > 0.7) {
curr_hor_speed = 0;
}
curr_ver_speed = -jump_speed;
}
}
function die() {
char_mc.removeMovieClip();
bubble_level.removeEnemy(this);
}
function getClip() {
return(char_mc);
}
function getEnemyType() {
return(enemy_type);
}
function getState() {
return(state);
}
function setState(s) {
state = s;
}
var top_wall = 30;
}
Symbol 964 MovieClip [__Packages.Enemy3] Frame 0
class Enemy3
{
var bubble_level, enemy_type, furious_interval, init_x, init_y, fall_speed, jump_speed, friction, hor_speed, onfly, state, shooting_on, level_mc, char_mc, furious_interval_id, curr_hor_speed, decision_interval, curr_ver_speed;
function Enemy3 (bl, i_x, i_y, dep, onstart) {
bubble_level = bl;
initCharacter(i_x, i_y, dep, onstart);
}
function initCharacter(i_x, i_y, dep, onstart) {
enemy_type = 3;
furious_interval = 5000;
init_x = i_x;
init_y = i_y;
fall_speed = 5;
jump_speed = 30;
friction = 1.3;
hor_speed = 3;
onfly = false;
if (onstart) {
state = "taking_position";
} else {
state = "play";
}
shooting_on = true;
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("enemy3_mc", "enemy_mc" + dep, dep);
char_mc._x = init_x;
if (onstart) {
char_mc._y = 0;
char_mc.gotoAndStop("normal");
} else {
char_mc._y = init_y;
char_mc.gotoAndStop("furious");
furious_interval_id = setInterval(this, "turnToNormal", furious_interval);
hor_speed = 5;
}
var _local3 = Math.floor(Math.random() * 2);
if (_local3 < 1) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
var _local2 = Math.floor(Math.random() * 3000) + 1000;
decision_interval = setInterval(this, "takeDecision", _local2);
}
function turnToNormal() {
char_mc.gotoAndStop("normal");
hor_speed = 3;
if (curr_hor_speed > 0) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
}
function takeDecision() {
var _local3 = Math.floor(Math.random() * 6);
if (_local3 < 3) {
turnAround();
} else {
jump();
}
clearInterval(decision_interval);
var _local2 = Math.floor(Math.random() * 3000) + 1000;
decision_interval = setInterval(this, "takeDecision", _local2);
}
function move() {
if (bubble_level.getGame().getPaused()) {
char_mc.enemy_anim_mc.stop();
return(undefined);
}
char_mc.enemy_anim_mc.play();
if (state == "ready") {
char_mc.enemy_anim_mc.stop();
return(undefined);
}
if (state == "taking_position") {
char_mc.enemy_anim_mc.stop();
if ((char_mc._y + fall_speed) >= init_y) {
char_mc._y = init_y;
state = "ready";
} else {
char_mc._y = char_mc._y + fall_speed;
}
return(undefined);
}
var _local4 = bubble_level.getWall();
var _local3 = new HitTestClass();
if (curr_ver_speed < 0) {
if (char_mc._y < bubble_level.getTopPos()) {
curr_ver_speed = 0;
}
char_mc.enemy_anim_mc.stop();
curr_ver_speed = curr_ver_speed / friction;
if (Math.abs(curr_ver_speed) < 0.2) {
curr_ver_speed = 0;
}
} else {
var _local5 = _local3.checkUnder(_local4, char_mc.hit_area_mc, level_mc, fall_speed);
if (_local5 > 0) {
if ((curr_ver_speed == 0) && (!onfly)) {
if (Math.random() > 0.5) {
jump();
_local5 = -jump_speed;
}
} else {
onfly = true;
char_mc.enemy_anim_mc.stop();
}
} else {
if (onfly) {
var _local7 = Math.floor(Math.random() * 2);
if (_local7 < 1) {
curr_hor_speed = hor_speed;
} else {
curr_hor_speed = -hor_speed;
}
}
onfly = false;
char_mc.enemy_anim_mc.play();
}
curr_ver_speed = _local5;
}
if (curr_ver_speed > 0) {
if (char_mc._y > bubble_level.getBottomPos()) {
char_mc._y = bubble_level.getTopPos();
return(undefined);
}
}
char_mc._y = char_mc._y + curr_ver_speed;
if (!onfly) {
checkIfHeroInShootingDistance();
}
var _local2 = _local3.checkLeftRight(_local4, char_mc.hit_area_mc, level_mc, curr_hor_speed);
var _local6 = _local3.checkLeftRight(_local4, char_mc.hit_area_mc, level_mc, -curr_hor_speed);
if ((_local2 == 0) && (_local6 == 0)) {
} else if (curr_hor_speed > 0) {
char_mc._xscale = 100;
if (_local2 < curr_hor_speed) {
turnAround();
}
} else if (curr_hor_speed < 0) {
char_mc._xscale = -100;
if (_local2 > curr_hor_speed) {
turnAround();
}
}
char_mc._x = char_mc._x + _local2;
}
function checkIfHeroInShootingDistance() {
var _local2 = bubble_level.getHero().getClip();
if (Math.abs(char_mc._y - _local2._y) < 10) {
if ((curr_hor_speed > 0) && ((char_mc._x - _local2._x) < 0)) {
decideToShoot("right");
}
if ((curr_hor_speed < 0) && ((char_mc._x - _local2._x) > 0)) {
decideToShoot("left");
}
}
}
function decideToShoot(dir) {
if (Math.random() > 0.6) {
if (shooting_on) {
shooting_on = false;
var _local2 = bubble_level.getNextDep();
new Bullet(bubble_level, char_mc._x, char_mc._y, _local2, dir, this);
}
}
}
function resetShooting() {
shooting_on = true;
}
function turnAround() {
curr_hor_speed = curr_hor_speed * -1;
}
function jump() {
if (!onfly) {
onfly = true;
if (Math.random() > 0.7) {
curr_hor_speed = 0;
}
curr_ver_speed = -jump_speed;
}
}
function die() {
char_mc.removeMovieClip();
bubble_level.removeEnemy(this);
}
function getClip() {
return(char_mc);
}
function getEnemyType() {
return(enemy_type);
}
function getState() {
return(state);
}
function setState(s) {
state = s;
}
}
Symbol 965 MovieClip [__Packages.Bullet] Frame 0
class Bullet
{
var bubble_level, shooter, bullet_dep, hor_speed, dir, init_x, init_y, curr_hor_speed, level_mc, char_mc;
function Bullet (bl, x, y, dep, d, sh) {
bubble_level = bl;
initCharacter(x, y, dep, d, sh);
}
function initCharacter(x, y, dep, d, sh) {
shooter = sh;
bullet_dep = dep;
hor_speed = 15;
dir = d;
init_x = x;
init_y = y;
if (dir == "left") {
curr_hor_speed = -hor_speed;
} else {
curr_hor_speed = hor_speed;
}
level_mc = bubble_level.getLevelClip();
char_mc = level_mc.attachMovie("bullet_mc", "bullet_mc" + dep, dep);
char_mc._x = init_x;
char_mc._y = init_y;
bubble_level.addBullet(this);
}
function move() {
if (bubble_level.getGame().getPaused()) {
return(undefined);
}
char_mc._x = char_mc._x + curr_hor_speed;
if ((char_mc._x > (Stage.width + 20)) || (char_mc._x < -20)) {
die();
}
}
function die() {
shooter.resetShooting();
removeBullet();
bubble_level.removeBullet(this);
}
function removeBullet() {
char_mc.removeMovieClip();
}
function getClip() {
return(char_mc);
}
}
Symbol 249 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 50
stop();
_parent.play();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 314 MovieClip [bubble_mc] Frame 1
stop();
Symbol 348 MovieClip [game_end_anim] Frame 35
stopAllSounds();
stop();
Instance of Symbol 143 MovieClip in Symbol 348 MovieClip [game_end_anim] Frame 35
//component parameters
onClipEvent (construct) {
wynume = "BubbleBobbleTheRevival";
wyculoare = 8662561 /* 0x842E21 */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 367 MovieClip [score_anim_mc] Frame 14
this.removeMovieClip();
Symbol 370 MovieClip [score_mc] Frame 1
this.onEnterFrame = function () {
_root.scorBubble = this.scorJoc;
trace(_root.scorBubble);
};
Instance of Symbol 143 MovieClip in Symbol 401 MovieClip [start_anim] Frame 1
//component parameters
onClipEvent (construct) {
wynume = "BubbleBobbleTheRevival";
wyculoare = 8662561 /* 0x842E21 */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Instance of Symbol 400 MovieClip "instructions_mc" in Symbol 401 MovieClip [start_anim] Frame 1
onClipEvent (load) {
_visible = false;
}
on (press) {
if (_visible) {
_visible = false;
}
}
on (rollOver) {
this.useHandCursor = false;
}
Symbol 401 MovieClip [start_anim] Frame 19
stop();
Symbol 429 MovieClip Frame 3
stop();
Symbol 434 MovieClip Frame 4
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 19
stop();
Symbol 599 MovieClip [new_life_mc] Frame 35
this.removeMovieClip();
Symbol 610 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 617 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 922 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 178 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 922 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 928 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 944 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 950 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 954 MovieClip Frame 1
stop();
Symbol 954 MovieClip Frame 9
stop();
Symbol 954 MovieClip Frame 22
stop();
Symbol 954 MovieClip Frame 34
var my_date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 954 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}