Frame 1
_global.openSite = function () {
getURL ("http://www.gametop.com/?utm_source=BallCrush&utm_medium=flashGame", "_blank");
};
Instance of Symbol 6 MovieClip "bar" in Frame 1
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
l = _root.getBytesLoaded();
t = _root.getBytesTotal();
_xscale = ((l / t) * 100);
_root.tf_loader.text = Math.round((l / t) * 100) + " %";
if ((l == t) && (t > 50)) {
_root.gotoAndPlay("lang");
}
}
Instance of Symbol 10 MovieClip in Frame 2
on (press) {
openSite();
}
Frame 3
stop();
Instance of Symbol 13 MovieClip in Frame 3
on (press) {
openSite();
}
Frame 5
_global.language_pre = "en";
_root.nextFrame();
Frame 6
function globalStart() {
initTimer();
_global.levelNum = 1;
_global.gamePaused = false;
_root.gameFrame.depth = 0;
if (_global.globalSettings.debug != 1) {
_root.bonusDebugBar._visible = false;
}
_global.inGame = true;
_global.gameOver = false;
_global.currLevel = new Object();
_global.nextColor = -100;
delete _global.lastBalls;
_global.lastBalls = new Array();
_global.gf_w = gameFrame._width;
_global.gf_h = gameFrame._height;
_global.sound.width = _global.gf_w;
_root.endGameWindow.gotoAndStop(1);
_root.newLevelWindow.gotoAndStop(1);
_root.messageWindow.gotoAndStop(1);
_root.gameCompleteWindow.gotoAndStop(1);
_root.pauseWindow._visible = false;
_root.pauseWindow._x = _root.gameFrame._x + (_global.gf_w / 2);
_root.pauseWindow._y = _root.gameFrame._y + (_global.gf_h / 2);
_global.balls = new Array();
_global.bonusTimeStart = myGetTimer();
_global.bonusTimes = 0;
_root.attachMovie("cursor", "cursor", _root.getNextHighestDepth(), {_x:_root._xmouse, _y:_root._ymouse});
_root.cursor.xMax = -100000;
_root.cursor.xMin = 100000 /* 0x0186A0 */;
_root.cursor.yMax = -100000;
_root.cursor.yMin = 100000 /* 0x0186A0 */;
var _local4 = 1;
while (_local4 <= 6) {
var _local3 = _root.cursor["p" + _local4];
_root.cursor.xMax = Math.max(_local3._x, _root.cursor.xMax);
_root.cursor.yMax = Math.max(_local3._y, _root.cursor.yMax);
_root.cursor.xMin = Math.min(_local3._x, _root.cursor.xMin);
_root.cursor.yMin = Math.min(_local3._y, _root.cursor.yMin);
_local4++;
}
_root.onEnterFrame = _global.mainGameLoop;
_global.money = 0;
_global.lifeMoney = 0;
startNewLevel();
setNewTarget();
}
_global.isChild = function (arr, item) {
var _local2 = false;
for (var _local3 in arr) {
if (arr[_local3] == item) {
_local2 = _local3;
break;
}
}
return(_local2);
};
_global.changeDebugText = function () {
debug();
};
_global.debug = function (str) {
if (str == undefined) {
str = "";
}
clearInterval(_root.debugInt);
_root.tf_debug.text = str;
if (str != "") {
if (_global.envS.debug == 1) {
trace(str);
}
_root.debugInt = setInterval(changeDebugText, 5000);
_global.debugLog = _global.debugLog + (str + newline);
}
};
_global.debugLog = "";
debug();
_global.drawRect = function (target, x1, y1, x2, y2) {
target.moveTo(x1, y1);
target.lineTo(x2, y1);
target.lineTo(x2, y2);
target.lineTo(x1, y2);
target.lineTo(x1, y1);
};
_global.trim = function (str) {
str = String(str);
var _local2 = -1;
do {
_local2++;
var a = str.charAt(_local2);
} while ((((a == " ") || (a == newline)) || (a == "\r")) || (a == "\t"));
var _local3 = str.length;
do {
_local3--;
var a = str.charAt(_local3);
} while ((((a == " ") || (a == newline)) || (a == "\r")) || (a == "\t"));
str = str.substring(_local2, _local3 + 1);
if (String(parseFloat(str)) == str) {
str = parseFloat(str);
}
return(str);
};
_global.alphaIn = function () {
if (_global.gamePaused) {
return(undefined);
}
this._alpha = this._alpha + _global.globalSettings.deltaAlpha;
if (this._alpha > 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
_global.alphaOut = function () {
if (_global.gamePaused) {
return(undefined);
}
if (this.step == undefined) {
this.step = 0;
}
if (this.maxStep == undefined) {
this.maxStep = 0;
}
this.step++;
this.oEF();
if (this.step > this.maxStep) {
this.speed.mult(0.95);
this._alpha = this._alpha - _global.globalSettings.deltaAlpha;
if (this._alpha < 0) {
this._alpha = 0;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
_global.noSet = function (a) {
if (a == undefined) {
return(true);
}
if (a == null) {
return(true);
}
if (String(a) == "") {
return(true);
}
if (a == "undefined") {
return(true);
}
if ((typeof(a) == "number") && (isNaN(a))) {
return(true);
}
return(false);
};
_root.gameFrame.frame._visible = (_root.gameFrameShadow.frame._visible = false);
_global.MAXmoney = 0;
_global.MAXlevel = 0;
XML.prototype.ignoreWhite = true;
_global.settingsLoaded = false;
fscommand ("trapallkeys", true);
_focusrect = false;
fscommand ("showmenu", false);
createXML = function () {
var _local3 = new XML(str);
_global.settingsLoaded = true;
debug("Settings loaded; parsing...");
var _local2 = 0;
while (_local2 < _local3.firstChild.childNodes.length) {
foo = _local3.firstChild.childNodes[_local2];
parseXMLtoVars(foo, _global);
_local2++;
}
};
_global.xmlErrors = new Array("A CDATA section was not properly terminated.", "The XML declaration was not properly terminated.", "The DOCTYPE declaration was not properly terminated.", "A comment was not properly terminated.", "An XML element was malformed.", "Out of memory.", "An attribute value was not properly terminated.", "A start-tag was not matched with an end-tag.", "An end-tag was encountered without a matching start-tag.");
parseXMLtoVars = function (xml, target) {
if (xml.nodeName == "var") {
var _local5 = xml.attributes.value;
if (_global.noSet(_local5) && (xml.nodeValue == null)) {
if (xml.childNodes.length == 1) {
_local5 = xml.firstChild.nodeValue;
} else {
_local5 = xml.childNodes.join("");
}
}
if (String(parseFloat(_local5)) == _local5) {
_local5 = parseFloat(_local5);
}
if (xml.attributes.name != null) {
target[xml.attributes.name] = _local5;
// unexpected jump
}
return(_local5);
}
if (xml.nodeName == "array") {
target[xml.attributes.name] = new Array();
var _local4 = target[xml.attributes.name];
var _local3 = 0;
while (_local3 < xml.childNodes.length) {
_local4.push(parseXMLtoVars(xml.childNodes[_local3]));
_local3++;
}
} else if (xml.nodeName == "object") {
var _local4 = new Object();
for (var _local3 in xml.attributes) {
if (_local3 != "name") {
parseXMLtoVars(new XML(((("<var name=\"" + _local3) + "\"\tvalue=\"") + xml.attributes[_local3]) + "\" />").firstChild, _local4);
}
}
var _local3 = 0;
while (_local3 < xml.childNodes.length) {
parseXMLtoVars(xml.childNodes[_local3], _local4);
_local3++;
}
if (xml.attributes.name != null) {
target[xml.attributes.name] = _local4;
} else {
return(_local4);
}
}
};
str = "";
str = str + "<?xml version=\"1.0\" encoding=\"windows-1251\"?>";
str = str + "<settings>";
str = str + "<object name=\"globalSettings\">";
str = str + "<var name=\"debug\" value=\"0\" />";
str = str + "<var name=\"debugShadow\" value=\"0\" />";
str = str + "<var name=\"deltaAlpha\" value=\"5\" />";
str = str + "<var name=\"noRepeatBalls\" value=\"2\" />";
str = str + "<var name=\"minDistance\" value=\"50\" />";
str = str + "<var name=\"maxDistanceExamine\" value=\"300\" />";
str = str + "<var name=\"blinkTime\" value=\"7\" />";
str = str + "<var name=\"respCanBeTaken\" value=\"1\" />";
str = str + "<var name=\"cursorRespTime\" value=\"3000\" />";
str = str + "<var name=\"cursorBlinkTime\" value=\"5\" />";
str = str + "<var name=\"respCanTake\" value=\"1\" />";
str = str + "<var name=\"progressRespTime\" value=\"2000\" />";
str = str + "<var name=\"progressBlinkTime\" value=\"2\" />";
str = str + "<var name=\"movingAfterDeath\" value=\"1\" />";
str = str + "<var name=\"totalSpeedControl\" value=\"1\" />";
str = str + "<var name=\"newLifeMoney\" value=\"50000\" />";
str = str + "</object>";
str = str + "<object name=\"allLevels\">";
str = str + "<var name=\"cursorRatio\" value=\"1\" />";
str = str + "<var name=\"ballNames\" value=\"ball_b,ball_db,ball_g,ball_o,ball_p,ball_r,ball_y\" />";
str = str + "<var name=\"respawnTime\" value=\"6000\" /> ";
str = str + "<var name=\"respTime\" value=\"600\" /> ";
str = str + "<var name=\"levelMaxProgress\" value=\"10\" />";
str = str + "<var name=\"levelLives\" value=\"3\" />";
str = str + "<var name=\"winScore\" value=\"10\" />";
str = str + "<var name=\"looseScore\" value=\"10\" />";
str = str + "<var name=\"bonusTime\" value=\"2000\" />";
str = str + "<var name=\"bonusCount\" value=\"10\" />";
str = str + "<var name=\"bonusScore\" value=\"5000\" />";
str = str + "<var name=\"respAtStart\" value=\"1\" />";
str = str + "<var name=\"bonusOffTime\" value=\"1000\" />";
str = str + "<var name=\"bonusBlinkTime\" value=\"4\" />";
str = str + "<var name=\"bonusMoneyScore\" value=\"5000\" />";
str = str + "<var name=\"bonusTime\" value=\"3000\" />";
str = str + "<var name=\"slowSpeedMult\" value=\"20\" />";
str = str + "<var name=\"bombRadius\" value=\"150\" />";
str = str + "<var name=\"lightRandom\" value=\"50\" /> ";
str = str + "<var name=\"gameOverString\" value=\"GAME OVER\" />";
str = str + "</object>";
str = str + "<object name=\"levels\">";
str = str + "<object name=\"level_1\">";
str = str + "<var name=\"levelMaxProgress\" value=\"11\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"6\" />";
str = str + "<var name=\"string1\" value=\"LEVEL 1\" />";
str = str + "<var name=\"string2\" value=\"GET READY\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g\" />";
str = str + "<var name=\"respawnTime\" value=\"950\" />";
str = str + "</object>";
str = str + "<object name=\"level_2\">";
str = str + "<var name=\"levelMaxProgress\" value=\"21\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"6\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 2\" />";
str = str + "<var name=\"string2\" value=\"5% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g\" />";
str = str + "<var name=\"respawnTime\" value=\"900\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_3\">";
str = str + "<var name=\"levelMaxProgress\" value=\"25\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"6\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 3\" />";
str = str + "<var name=\"string2\" value=\"10% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g\" />";
str = str + "<var name=\"respawnTime\" value=\"850\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_4\">";
str = str + "<var name=\"levelMaxProgress\" value=\"31\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 4\" />";
str = str + "<var name=\"string2\" value=\"15% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g\" />";
str = str + "<var name=\"respawnTime\" value=\"830\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_5\">";
str = str + "<var name=\"levelMaxProgress\" value=\"25\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 5\" />";
str = str + "<var name=\"string2\" value=\"20% SPEEDING-UP; +1 BALL\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y\" />";
str = str + "<var name=\"respawnTime\" value=\"810\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_6\">";
str = str + "<var name=\"levelMaxProgress\" value=\"41\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 6\" />";
str = str + "<var name=\"string2\" value=\"25% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y\" />";
str = str + "<var name=\"respawnTime\" value=\"790\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_7\">";
str = str + "<var name=\"levelMaxProgress\" value=\"45\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 7\" />";
str = str + "<var name=\"string2\" value=\"30% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y\" />";
str = str + "<var name=\"respawnTime\" value=\"770\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_8\">";
str = str + "<var name=\"levelMaxProgress\" value=\"51\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 8\" />";
str = str + "<var name=\"string2\" value=\"35% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y\" />";
str = str + "<var name=\"respawnTime\" value=\"750\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_9\">";
str = str + "<var name=\"levelMaxProgress\" value=\"55\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 9\" />";
str = str + "<var name=\"string2\" value=\"40% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y\" />";
str = str + "<var name=\"respawnTime\" value=\"730\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_10\">";
str = str + "<var name=\"levelMaxProgress\" value=\"61\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 10\" />";
str = str + "<var name=\"string2\" value=\"45% SPEEDING-UP; +1 BALL\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b\" />";
str = str + "<var name=\"respawnTime\" value=\"710\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_11\">";
str = str + "<var name=\"levelMaxProgress\" value=\"65\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 11\" />";
str = str + "<var name=\"string2\" value=\"50% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, star, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_12\">";
str = str + "<var name=\"levelMaxProgress\" value=\"71\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 12\" />";
str = str + "<var name=\"string2\" value=\"55% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life, star\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_13\">";
str = str + "<var name=\"levelMaxProgress\" value=\"75\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 13\" />";
str = str + "<var name=\"string2\" value=\"60% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life, star\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_14\">";
str = str + "<var name=\"levelMaxProgress\" value=\"81\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 14\" />";
str = str + "<var name=\"string2\" value=\"65% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life, star\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_15\">";
str = str + "<var name=\"levelMaxProgress\" value=\"85\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 15\" />";
str = str + "<var name=\"string2\" value=\"70% SPEEDING-UP; +1 BALL\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life, star\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_16\">";
str = str + "<var name=\"levelMaxProgress\" value=\"91\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 16\" />";
str = str + "<var name=\"string2\" value=\"75% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, life, star\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_17\">";
str = str + "<var name=\"levelMaxProgress\" value=\"95\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 17\" />";
str = str + "<var name=\"string2\" value=\"80% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_18\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 18\" />";
str = str + "<var name=\"string2\" value=\"85% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_19\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"7\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 19\" />";
str = str + "<var name=\"string2\" value=\"90% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" /> ";
str = str + "</object>";
str = str + "<object name=\"level_20\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"8\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 20\" />";
str = str + "<var name=\"string2\" value=\"95% SPEEDING-UP; +1 BALL\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_21\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"8\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 21\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_22\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"8\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 22\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_23\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"8\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 23\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_24\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"8\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 24\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_25\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"9\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 25\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_26\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"9\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 26\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_27\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"9\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 27\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_28\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"9\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 28\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_29\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"9\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 29\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "<object name=\"level_30\">";
str = str + "<var name=\"levelMaxProgress\" value=\"101\" />";
str = str + "<var name=\"minSpeed\" value=\"3\" />";
str = str + "<var name=\"maxSpeed\" value=\"9\" /> ";
str = str + "<var name=\"string1\" value=\"LEVEL 30\" />";
str = str + "<var name=\"string2\" value=\"100% SPEEDING-UP\" />";
str = str + "<var name=\"ballNames\" value=\"ball_r,ball_db,ball_g,ball_y,ball_b,ball_p,ball_o\" />";
str = str + "<var name=\"respawnTime\" value=\"690\" /> ";
str = str + "<var name=\"bonusRandom\" value=\"0.007\" />";
str = str + "<var name=\"bonusez\" value=\"bomb, money, light, clock, star, life\" />";
str = str + "</object>";
str = str + "</object>";
str = str + "</settings>";
debug("Loading main settings XML file...");
createXML();
_global.mouseListener = new Object();
_global.mouseListener.onMouseDown = function () {
if (_global.inGame) {
if (_global.gamePaused) {
return(undefined);
}
mouseHider();
_root.cursor.gotoAndStop(2);
}
};
_global.mouseListener.onMouseUp = function () {
if (_global.inGame) {
if (_global.gamePaused) {
return(undefined);
}
_root.cursor.gotoAndStop(1);
}
};
_global.mouseListener.onKeyDown = function () {
if (_global.inGame) {
if (Key.isDown(32)) {
_global.gamePaused = !_global.gamePaused;
}
if (_global.gamePaused) {
_root.pauseWindow._visible = true;
} else {
_root.pauseWindow._visible = false;
}
}
};
Mouse.addListener(_global.mouseListener);
Key.addListener(_global.mouseListener);
_global.startNewLevel = function () {
for (var _local5 in _global.allLevels) {
_global.currLevel[_local5] = _global.allLevels[_local5];
}
var _local4 = _global.levels["level_" + _global.levelNum];
for (var _local5 in _local4) {
_global.currLevel[_local5] = _local4[_local5];
}
_global.currLevel.ballNames = _global.currLevel.ballNames.split(",");
_root.tf1.text = _global.levelNum;
if (_global.levelNum == 1) {
_global.lives = _global.currLevel.levelLives;
}
_global.progress = 0;
_root.newLevelWindow.gotoAndPlay(1);
_root.newLevelWindow.tt.tf1.text = _global.currLevel.string1;
_root.newLevelWindow.tt.tf2.text = _global.currLevel.string2;
_root.newLevelWindow._visible = true;
_root.newLevelWindow._x = _root.gameFrame._x + (_global.gf_w / 2);
_root.newLevelWindow._y = _root.gameFrame._y + (_global.gf_h / 2);
refreshScore();
delete _root.onMouseMove;
if (_global.currLevel.cursorRatio == 1) {
_root.onMouseMove = _global.mainMouseMover;
}
_root.onMouseDown = _global.mainMouseClicker;
_root.inter = setInterval(addBall, _global.currLevel.respawnTime);
_global.mouseHider();
_global.currLevel.bonusez = _global.currLevel.bonusez.split(",");
var _local3 = 0;
while (_local3 < _global.currLevel.bonusez.length) {
_global.currLevel.bonusez[_local3] = trim(_global.currLevel.bonusez[_local3]);
_local3++;
}
_local3 = 0;
while (_local3 < _global.currLevel.respAtStart) {
addBall();
_local3++;
}
};
_global.mouseHider = function () {
Mouse.hide();
};
_global.mainGameLoop = function () {
refreshTimer();
_root.mainEngine();
};
_global.mainMouseMover = function () {
if (_global.gamePaused) {
return(undefined);
}
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
_global.checkCursor(false);
updateAfterEvent();
};
_global.mainMouseClicker = function () {
if (_global.gamePaused) {
return(undefined);
}
_global.checkCursor(true);
};
_global.mainMouseRatioMover = function () {
if (_global.gamePaused) {
return(undefined);
}
_root.cursor._x = _root.cursor._x + ((_root._xmouse - _root.cursor._x) / _global.currLevel.cursorRatio);
_root.cursor._y = _root.cursor._y + ((_root._ymouse - _root.cursor._y) / _global.currLevel.cursorRatio);
};
mainEngine = function () {
if (_global.gamePaused) {
return(undefined);
}
if (_global.currLevel.cursorRatio != 1) {
_global.mainMouseRatioMover();
_global.checkCursor(false);
}
if (balls.length > 0) {
if (Math.random() < _global.currLevel.bonusRandom) {
var _local19 = new Array();
var _local10 = 0;
while (_local10 < balls.length) {
if ((balls[_local10].mode == 1) && (balls[_local10].str != "bonus")) {
_local19.push(balls[_local10]);
}
_local10++;
}
if (_local19.length > 0) {
var _local20 = Math.floor(Math.random() * _global.currLevel.bonusez.length);
var _local18 = _local19[Math.floor(Math.random() * _local19.length)];
_local18.ballMC._visible = false;
_local18.bnz._visible = true;
_local18.bnz.gotoAndStop(_global.currLevel.bonusez[_local20]);
_local18.oldStr = _local18.str;
_local18.str = "bonus";
_local18.bnz.onEnterFrame = bonusTimer;
_local18.bnz.timeStart = myGetTimer();
_local18.str2 = _global.currLevel.bonusez[_local20];
_global.sound.play("bn_appear", _local18._x);
}
}
}
_root.cursor.oEF();
var _local10 = 0;
while (_local10 < balls.length) {
balls[_local10].oEF();
if ((_global.globalSettings.debug == 1) && (_global.globalSettings.debugShadow)) {
makeShadow(balls[_local10]);
}
_local10++;
}
_global.checkCursor();
var _local11 = new Array();
_local10 = 0;
while (_local10 < balls.length) {
var _local3 = _local10 + 1;
while (_local3 < balls.length) {
if (_local10 == _local3) {
} else {
var _local7 = balls[_local10]._x - balls[_local3]._x;
var _local6 = balls[_local10]._y - balls[_local3]._y;
var _local5 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
if (_local5 <= (2 * balls[_local10].r)) {
var _local9 = (balls[_local10]._x + balls[_local3]._x) / 2;
var _local8 = (balls[_local10]._y + balls[_local3]._y) / 2;
balls[_local10]._x = _local9 + (balls[_local10].r * (_local7 / _local5));
balls[_local10]._y = _local8 + (balls[_local10].r * (_local6 / _local5));
balls[_local3]._x = _local9 - (balls[_local3].r * (_local7 / _local5));
balls[_local3]._y = _local8 - (balls[_local3].r * (_local6 / _local5));
_local11.push({a:balls[_local10], b:balls[_local3]});
}
}
_local3++;
}
_local10++;
}
_local10 = 0;
while (_local10 < _local11.length) {
ball1 = _local11[_local10].a;
ball2 = _local11[_local10].b;
if (_local10 == 0) {
_global.sound.play("ball_clap", ball1._x);
}
sp1 = ball1.speed;
sp2 = ball2.speed;
var _local4 = Math.atan2(ball2._y - ball1._y, ball2._x - ball1._x);
var _local15 = (sp1.x * Math.cos(-_local4)) - (sp1.y * Math.sin(-_local4));
var _local13 = (sp1.x * Math.sin(-_local4)) + (sp1.y * Math.cos(-_local4));
var _local14 = (sp2.x * Math.cos(-_local4)) - (sp2.y * Math.sin(-_local4));
var _local12 = (sp2.x * Math.sin(-_local4)) + (sp2.y * Math.cos(-_local4));
sp1.define((_local14 * Math.cos(_local4)) - (_local13 * Math.sin(_local4)), (_local14 * Math.sin(_local4)) + (_local13 * Math.cos(_local4)));
sp2.define((_local15 * Math.cos(_local4)) - (_local12 * Math.sin(_local4)), (_local15 * Math.sin(_local4)) + (_local12 * Math.cos(_local4)));
if (_global.globalSettings.totalSpeedControl == 1) {
if (sp1.length > _global.currLevel.maxSpeed) {
sp1.length = _global.currLevel.maxSpeed;
}
if (sp2.length > _global.currLevel.maxSpeed) {
sp2.length = _global.currLevel.maxSpeed;
}
if (sp1.length < _global.currLevel.minSpeed) {
sp1.length = _global.currLevel.minSpeed;
}
if (sp2.length < _global.currLevel.minSpeed) {
sp2.length = _global.currLevel.minSpeed;
}
}
_local10++;
}
if ((myGetTimer() - bonusTimeStart) > _global.currLevel.bonusTime) {
if (_global.bonusTimes > 0) {
_global.sound.play("bn_down");
}
_global.bonusTimes = 0;
_global.bonusTimeStart = myGetTimer();
refreshScore();
}
if (_global.globalSettings.debug == 1) {
_root.bonusDebugBar.bar._xscale = (100 * (myGetTimer() - bonusTimeStart)) / _global.currLevel.bonusTime;
}
};
_global.bonusTimer = function () {
if (_global.gamePaused) {
return(undefined);
}
if (this.counter == undefined) {
this.counter = 0;
}
this.counter++;
if ((myGetTimer() - this.timeStart) > _global.currLevel.bonusTime) {
var _local3 = this.counter / (2 * _global.currLevel.bonusBlinkTime);
if ((_local3 - Math.floor(_local3)) < 0.5) {
this._visible = false;
this._parent.ballMC._visible = true;
} else {
this._visible = true;
this._parent.ballMC._visible = false;
}
}
if ((myGetTimer() - this.timeStart) > (_global.currLevel.bonusTime + _global.currLevel.bonusOffTime)) {
this._parent.str = this._parent.oldStr;
this._visible = false;
this._parent.ballMC._visible = true;
delete this.onEnterFrame;
}
};
_global.addBall = function () {
if (_global.gamePaused) {
return(undefined);
}
_root.gameFrame.depth++;
do {
var _local4 = Math.floor(Math.random() * _global.currLevel.ballNames.length);
var flag = false;
var _local3 = 0;
while (_local3 < lastBalls.length) {
if (lastBalls[_local3] == _local4) {
flag = true;
}
_local3++;
}
} while (flag);
if (_global.nextColor != -100) {
_local4 = _global.nextColor;
_global.nextColor = -100;
}
_global.lastBalls.push(_local4);
while (_global.lastBalls.length > _global.globalSettings.noRepeatBalls) {
_global.lastBalls.shift();
}
var _local5 = _root.gameFrame.attachMovie(_global.currLevel.ballNames[_local4], "ball_" + _root.gameFrame.depth, _root.gameFrame.depth);
var _local6 = (Math.random() * (_global.currLevel.maxSpeed - _global.currLevel.minSpeed)) + _global.currLevel.minSpeed;
_local5.speed.length = _local6;
_global.balls.push(_local5);
_local5._alpha = 0;
_local5.onEnterFrame = _global.alphaIn;
_local5.str = _global.currLevel.ballNames[_local4];
};
_global.removeBall = function (target, label) {
if (_global.gamePaused) {
return(undefined);
}
var _local4 = false;
var _local2 = 0;
while (_local2 < _global.balls.length) {
if (target == _global.balls[_local2]) {
_local4 = true;
break;
}
_local2++;
}
if (!_local4) {
return(false);
}
_global.balls.splice(_local2, 1);
target.shadow._visible = false;
if (label != undefined) {
target.gotoAndStop(label);
}
if (target.str == "bonus") {
obj.ballMC._visible = false;
obj.bnz._visible = true;
} else {
obj.ballMC._visible = true;
obj.bnz._visible = false;
}
delete target.bnz.onEnterFrame;
delete target.onEnterFrame;
target._alpha = 100;
new Color(target.ballMC).setTransform({rb:100, gb:100, bb:100});
target.mode = 1;
if (_global.globalSettings.movingAfterDeath) {
target.onEnterFrame = dieBallOEF;
}
return(true);
};
_global.dieBallOEF = function () {
if (_global.gamePaused) {
return(undefined);
}
this.speed.mult(0.9);
this.oEF();
};
_global.makeShadow = function (obj) {
var _local2 = _root.gameFrameShadow.getNextHighestDepth();
var _local3 = _root.gameFrameShadow.attachMovie("ballShadow", "ball_" + _local2, _local2, {_x:obj._x, _y:obj._y, s:0});
_local3.onEnterFrame = shadowBallFunction;
};
_global.shadowBallFunction = function () {
this.s++;
if (this.s > 10) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_global.checkCursor = function (mouseFire) {
if (_global.gamePaused) {
return(undefined);
}
if (_root.cursor._x < (_root.gameFrame._x - _root.cursor.xMin)) {
_root.cursor._x = _root.gameFrame._x - _root.cursor.xMin;
}
if (_root.cursor._x > ((_root.gameFrame._x + gf_w) - _root.cursor.xMax)) {
_root.cursor._x = (_root.gameFrame._x + gf_w) - _root.cursor.xMax;
}
if (_root.cursor._y < (_root.gameFrame._y - _root.cursor.yMin)) {
_root.cursor._y = _root.gameFrame._y - _root.cursor.yMin;
}
if (_root.cursor._y > ((_root.gameFrame._y + gf_h) - _root.cursor.yMax)) {
_root.cursor._y = (_root.gameFrame._y + gf_h) - _root.cursor.yMax;
}
var _local11 = new Array();
var _local4 = 1;
while (_local4 <= 6) {
var _local17 = _root.cursor["p" + _local4];
var _local19 = _root.cursor._x + _local17._x;
var _local18 = _root.cursor._y + _local17._y;
_local11.push({x:_local19, y:_local18});
_local4++;
}
var _local26 = false;
var _local6 = 0;
for ( ; _local6 < balls.length ; _local6++) {
obj = balls[_local6];
obj.shadow._visible = false;
if (obj.hitTest(_root.cursor)) {
var _local12 = false;
_local4 = 0;
while (_local4 <= 4) {
if (obj.hitTest(_local11[_local4].x, _local11[_local4].y, true)) {
_local12 = true;
break;
}
_local4++;
}
if (_local12) {
if ((obj.str == _root.cursor.str) || (obj.str == "bonus")) {
obj.shadow._visible = true;
if ((_global.globalSettings.respCanBeTaken == 0) && (obj.mode == 0)) {
continue;
}
if ((_global.globalSettings.respCanTake == 0) && (_root.cursor.mode == 0)) {
} else {
if (mouseFire) {
if (obj.str == "bonus") {
if (obj.str2 == "bomb") {
var _local14 = obj._x;
var _local13 = obj._y;
var _local16 = _global.currLevel.bombRadius * 2;
var _local9 = _root.gameFrame.attachMovie("blow", "blow", 0, {_x:_local14, _y:_local13, _xscale:_local16, _yscale:_local16});
var _local3 = 0;
while (_local3 < balls.length) {
var _local5 = balls[_local3];
var _local8 = _local5._x - _local14;
var _local7 = _local5._y - _local13;
var _local10 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
if (_local10 < _global.currLevel.bombRadius) {
if (removeBall(_local5, "black")) {
_local3--;
}
}
_local3++;
}
_global.sound.play("bmb_use", obj._x);
obj.removeMovieClip();
} else if (obj.str2 == "life") {
_global.lives++;
_global.sound.play("life_up", obj._x);
removeBall(obj, "eat");
} else if (obj.str2 == "money") {
_global.money = _global.money + _global.currLevel.bonusMoneyScore;
_global.sound.play("money_use", obj._x);
removeBall(obj, "eat");
} else if (obj.str2 == "star") {
var _local9 = new Array();
var _local3 = 0;
while (_local3 < balls.length) {
if (balls[_local3].str != "bonus") {
_local9.push(balls[_local3]);
}
_local3++;
}
if (_local9.length > 0) {
var _local15 = _local9[Math.floor(Math.random() * _local9.length)].str;
_local3 = 0;
while (_local3 < balls.length) {
if ((balls[_local3] != obj) && (balls[_local3].str == _local15)) {
removeBall(balls[_local3], "eat");
}
_local3++;
}
_global.sound.play("str_use", obj._x);
removeBall(obj, "eat");
_local6 = 0;
}
} else if (obj.str2 == "clock") {
var _local3 = 0;
while (_local3 < balls.length) {
balls[_local3].speed.mult(_global.currLevel.slowSpeedMult / 100);
_local3++;
}
_global.sound.play("time_use", obj._x);
removeBall(obj, "eat");
} else if (obj.str2 == "light") {
var _local3 = 0;
while (_local3 < balls.length) {
if ((balls[_local3] != obj) && (Math.random() < (_global.currLevel.lightRandom / 100))) {
if (removeBall(balls[_local3], "light")) {
_local3--;
}
}
_local3++;
}
_global.sound.play("light_use", obj._x);
removeBall(obj, "light");
_local6 = 0;
}
} else {
_global.sound.play("right_ball", obj._x);
removeBall(obj, "eat");
_global.money = _global.money + _global.currLevel.winScore;
}
_global.progress++;
_global.bonusTimes++;
_global.bonusTimeStart = myGetTimer();
refreshScore();
_local26 = true;
_local6--;
}
continue;
if (obj.mode == 0) {
} else if (_root.cursor.mode == 0) {
} else {
_root.cursor.kill();
_global.lives--;
if (_global.lives > 0) {
_root.messageWindow.gotoAndPlay(1);
if (_global.lives == 1) {
_root.messageWindow.tt.tf1.text = "last life";
} else {
_root.messageWindow.tt.tf1.text = _global.lives + " lives left";
}
_root.messageWindow._visible = true;
_root.messageWindow._x = _root.gameFrame._x + (_global.gf_w / 2);
_root.messageWindow._y = _root.gameFrame._y + (_global.gf_h / 2);
}
_global.bonusTimes = 0;
_global.bonusTimeStart = myGetTimer();
refreshScore();
_global.sound.play("wrong_ball", obj._x);
removeBall(obj, "explode");
if (_global.lives == 0) {
_global.sound.play("game_over", obj._x);
_root.messageWindow._visible = false;
_root.endGameWindow.gotoAndPlay(1);
_root.endGameWindow.tt.tf1.text = _global.currLevel.gameOverString;
_root.endGameWindow._visible = true;
_root.endGameWindow._x = _root.gameFrame._x + (_global.gf_w / 2);
_root.endGameWindow._y = _root.gameFrame._y + (_global.gf_h / 2);
if (_global.MAXmoney < _global.money) {
_global.MAXmoney = _global.money;
}
if (_global.MAXlevel < _global.levelNum) {
_global.MAXlevel = _global.levelNum;
}
clearInterval(_root.inter);
while (_global.balls.length > 0) {
removeBall(_global.balls[0], "explode");
}
delete _global.lastBalls;
_global.lastBalls = new Array();
delete _global.balls;
_global.balls = new Array();
_global.bonusTimes = 0;
_global.bonusTimeStart = myGetTimer();
_global.gameOver = true;
_global.inGame = false;
}
_local6--;
}
}
} else if (obj.mode == 0) {
} else if (_root.cursor.mode == 0) {
} else {
_root.cursor.kill();
_global.lives--;
if (_global.lives > 0) {
_root.messageWindow.gotoAndPlay(1);
if (_global.lives == 1) {
_root.messageWindow.tt.tf1.text = "last life";
} else {
_root.messageWindow.tt.tf1.text = _global.lives + " lives left";
}
_root.messageWindow._visible = true;
_root.messageWindow._x = _root.gameFrame._x + (_global.gf_w / 2);
_root.messageWindow._y = _root.gameFrame._y + (_global.gf_h / 2);
}
_global.bonusTimes = 0;
_global.bonusTimeStart = myGetTimer();
refreshScore();
_global.sound.play("wrong_ball", obj._x);
removeBall(obj, "explode");
if (_global.lives == 0) {
_global.sound.play("game_over", obj._x);
_root.messageWindow._visible = false;
_root.endGameWindow.gotoAndPlay(1);
_root.endGameWindow.tt.tf1.text = _global.currLevel.gameOverString;
_root.endGameWindow._visible = true;
_root.endGameWindow._x = _root.gameFrame._x + (_global.gf_w / 2);
_root.endGameWindow._y = _root.gameFrame._y + (_global.gf_h / 2);
if (_global.MAXmoney < _global.money) {
_global.MAXmoney = _global.money;
}
if (_global.MAXlevel < _global.levelNum) {
_global.MAXlevel = _global.levelNum;
}
clearInterval(_root.inter);
while (_global.balls.length > 0) {
removeBall(_global.balls[0], "explode");
}
delete _global.lastBalls;
_global.lastBalls = new Array();
delete _global.balls;
_global.balls = new Array();
_global.bonusTimes = 0;
_global.bonusTimeStart = myGetTimer();
_global.gameOver = true;
_global.inGame = false;
}
_local6--;
}
}
}
}
if (_local26) {
setNewTarget();
}
};
_global.setNewTarget = function () {
if (_global.gamePaused) {
return(undefined);
}
if (_global.balls.length == 0) {
var _local4 = Math.floor(Math.random() * _global.currLevel.ballNames.length);
do {
_local4 = Math.floor(Math.random() * _global.currLevel.ballNames.length);
var flag = false;
var _local3 = 0;
while (_local3 < lastBalls.length) {
if (lastBalls[_local3] == _local4) {
flag = true;
}
_local3++;
}
} while (flag);
_global.nextColor = _local4;
_root.cursor.str = _global.currLevel.ballNames[_local4];
} else {
var _local4 = Math.floor(Math.random() * _global.balls.length);
_root.cursor.str = _global.balls[_local4].str;
if (_root.cursor.str == "bonus") {
_root.cursor.str = _global.balls[_local4].oldStr;
}
}
_root.cursor.viewer.gotoAndPlay(2);
_root.cursor.viewer.view2.gotoAndStop(_root.cursor.str);
};
_global.refreshScore = function () {
if (_global.gamePaused) {
return(undefined);
}
if (_global.progress == _global.currLevel.levelMaxProgress) {
_global.sound.play("progressbar");
clearInterval(_root.inter);
while (_global.balls.length > 0) {
removeBall(_global.balls[0], "explode");
}
delete _global.lastBalls;
_global.lastBalls = new Array();
delete _global.balls;
_global.balls = new Array();
_global.bonusTimes = 0;
_global.bonusTimeStart = myGetTimer();
startProgressBarBlink();
}
if (_global.bonusTimes == _global.currLevel.bonusCount) {
_global.bonusTimes = 0;
trace("\u0411\u041E\u041D\u0423\u0417\u0417\u0417");
_global.sound.play("bn_score", undefined, undefined, undefined, 50);
_global.money = _global.money + _global.currLevel.bonusScore;
_root.bonusHead.gotoAndPlay(2);
}
if ((_global.money - _global.lifeMoney) >= _global.globalSettings.newLifeMoney) {
_global.sound.play("life_up");
_global.lives++;
_global.lifeMoney = _global.lifeMoney + _global.globalSettings.newLifeMoney;
}
_root.tf2.text = _global.lives;
_root.tf3.text = _global.money;
_root.progressBar.bar._xscale = 100 * (_global.progress / _global.currLevel.levelMaxProgress);
_root.bonusMainBar.bar.targety = 100 * (_global.bonusTimes / _global.currLevel.bonusCount);
};
_global.startProgressBarBlink = function () {
if (_global.gamePaused) {
return(undefined);
}
_global.betweenLevels = true;
_root.progressBar.respTime = myGetTimer();
_root.progressBar.counter = 0;
_root.progressBar.onEnterFrame = progressBarBlink;
};
_global.progressBarBlink = function () {
if (_global.gamePaused) {
return(undefined);
}
this.counter++;
var _local4 = this.counter / (2 * _global.globalSettings.progressBlinkTime);
if ((_local4 - Math.floor(_local4)) < 0.5) {
new Color(this).setTransform({rb:0, gb:0, bb:0});
} else {
new Color(this).setTransform({rb:100, gb:100, bb:100});
}
if ((myGetTimer() - this.respTime) > _global.globalSettings.progressRespTime) {
new Color(this).setTransform({rb:0, gb:0, bb:0});
delete this.onEnterFrame;
_global.levelNum++;
if (_global.levels["level_" + _global.levelNum] == undefined) {
_root.messageWindow._visible = false;
_root.gameCompleteWindow.gotoAndPlay(1);
_root.gameCompleteWindow._visible = true;
_root.gameCompleteWindow._x = _root.gameFrame._x + (_global.gf_w / 2);
_root.gameCompleteWindow._y = _root.gameFrame._y + (_global.gf_h / 2);
if (_global.MAXmoney < _global.money) {
_global.MAXmoney = _global.money;
}
if (_global.MAXlevel < (_global.levelNum - 1)) {
_global.MAXlevel = _global.levelNum - 1;
}
delete _root.onEnterFrame;
_global.inGame = false;
} else {
startNewLevel();
}
}
};
_global.initTimer = function () {
_global.myTimer = 0;
_global.oldMyTimer = getTimer();
};
_global.refreshTimer = function () {
if (!_global.gamePaused) {
_global.myTimer = _global.myTimer + (getTimer() - _global.oldMyTimer);
}
_global.oldMyTimer = getTimer();
};
_global.myGetTimer = function () {
return(_global.myTimer);
};
nextFrame();
Frame 7
stop();
Mouse.show();
_root.cursor.removeMovieClip();
_root.tf_title.text = (("YOUR BEST RESULTS: LEVEL " + _global.MAXlevel) + " SCORE ") + _global.MAXmoney;
Instance of Symbol 161 MovieClip "btn_sound" in Frame 7
onClipEvent (load) {
if (!sound.enable) {
gotoAndStop (2);
}
}
Frame 8
stop();
Frame 9
globalStart();
Symbol 232 MovieClip [__Packages.ball] Frame 0
class ball extends MovieClip
{
var counter, respTime, shadow, bnz, speed, r, gf_w, gf_h, _x, _y, ballMC;
function ball () {
super();
counter = 0;
respTime = _global.myGetTimer();
shadow._visible = false;
bnz._visible = false;
speed = new Vector(0, 0);
speed.defineAGr(10, Math.floor(Math.random() * 360));
r = 12.5;
gf_w = _global.gf_w;
gf_h = _global.gf_h;
var counter = 0;
do {
counter++;
var _local10 = (Math.random() * (gf_w - 100)) + 50;
var _local9 = (Math.random() * (gf_h - 100)) + 50;
var _local5 = _global.balls;
var mm = 1000000;
var _local4 = 0;
while (_local4 < _local5.length) {
var _local7 = _local5[_local4]._x - _local10;
var _local6 = _local5[_local4]._y - _local9;
var _local8 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
mm = Math.min(_local8, mm);
_local4++;
}
} while ((mm < _global.globalSettings.minDistance) && (counter < _global.globalSettings.maxDistanceExamine));
_x = _local10;
_y = _local9;
}
function oEF() {
counter++;
if (mode == 0) {
var _local3 = counter / (2 * _global.globalSettings.blinkTime);
if ((_local3 - Math.floor(_local3)) < 0.5) {
new Color(ballMC).setTransform({rb:0, gb:0, bb:0});
} else {
new Color(ballMC).setTransform({rb:100, gb:100, bb:100});
}
if ((_global.myGetTimer() - respTime) > _global.currLevel.respTime) {
mode = 1;
new Color(ballMC).setTransform({rb:0, gb:0, bb:0});
}
}
_x = _x + speed.x;
_y = _y + speed.y;
checkWalls();
}
function checkWalls() {
if (_x < r) {
_x = r;
speed.__set__x(-speed.__get__x());
}
if (_x > (gf_w - r)) {
_x = gf_w - r;
speed.__set__x(-speed.__get__x());
}
if (_y < r) {
_y = r;
speed.__set__y(-speed.__get__y());
}
if (_y > (gf_h - r)) {
_y = gf_h - r;
speed.__set__y(-speed.__get__y());
}
}
var mode = 0;
}
Symbol 233 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var PI2, sin__, cos__, length__, angle__;
function Vector (nx, ny, bd) {
PI2 = (_global.noSet(_global.PI2) ? 57.2957795130823 : (_global.PI2));
if (!_global.noSet(bd)) {
debug = (Boolean(bd));
}
init = true;
if (_global.noSet(nx)) {
nx = 0;
}
if (_global.noSet(ny)) {
ny = 0;
}
define(nx, ny);
}
function set x(nx) {
if (_global.noSet(nx)) {
return;
}
define(nx, y__);
//return(x);
}
function get x() {
return(x__);
}
function set y(ny) {
if (_global.noSet(ny)) {
return;
}
define(x__, ny);
//return(y);
}
function get y() {
return(y__);
}
function get sin() {
if (!init) {
return(undefined);
}
if (_global.noSet(sin__)) {
debugFunction("counting sin");
sin__ = y__ / length;
}
debugFunction(" sending sin");
return(sin__);
}
function get cos() {
if (!init) {
return(undefined);
}
if (_global.noSet(cos__)) {
debugFunction("counting cos");
cos__ = x__ / length;
}
debugFunction(" sending cos");
return(cos__);
}
function get length() {
if (!init) {
return(undefined);
}
if (_global.noSet(length__)) {
debugFunction("counting length");
length__ = Math.sqrt((x__ * x__) + (y__ * y__));
}
debugFunction(" sending length");
return(length__);
}
function set length(newlength) {
if (!init) {
return;
}
if ((x__ == 0) && (y__ == 0)) {
return;
}
if (newlength < 0) {
return;
}
debugFunction("setting new length");
var _local2 = newlength / length;
define(_local2 * x__, _local2 * y__);
//return(length);
}
function get angle() {
if (!init) {
return(undefined);
}
if (_global.noSet(angle__)) {
debugFunction("counting angle");
angle__ = Math.atan2(y__, x__);
}
debugFunction(" sending angle");
return(angle__);
}
function set angle(newangle) {
if (!init) {
return;
}
if ((x__ == 0) && (y__ == 0)) {
return;
}
debugFunction("setting new angle");
define(length * Math.cos(newangle), length * Math.sin(newangle));
//return(angle);
}
function get angleGr() {
var _local3 = angle;
debugFunction("sending angleGr");
if (_global.noSet(_local3)) {
return(undefined);
}
return(_local3 * PI2);
}
function set angleGr(newangle) {
debugFunction("setting new angleGr");
angle = (newangle / PI2);
//return(angleGr);
}
function set debug(a) {
debug__ = a;
//return(debug);
}
function get debug() {
return(debug__);
}
function set color(col) {
if (col > 0) {
debugFunction(" getting color " + col);
color__ = col;
} else {
debugFunction(" wrong color " + col);
}
//return(color);
}
function get color() {
debugFunction(" sending color");
return(color__);
}
function set thick(th) {
if (th > 0) {
debugFunction(" getting thick " + th);
thick__ = th;
} else {
debugFunction(" wrong thick " + th);
}
//return(thick);
}
function get thick() {
debugFunction(" sending thick");
return(thick__);
}
function define(nx, ny) {
debugFunction((("define " + nx) + "\t") + ny);
if ((!_global.noSet(nx)) && (!_global.noSet(ny))) {
if ((x__ != nx) || (y__ != ny)) {
debugFunction(" nulling sin-cos-al");
sin__ = undefined;
cos__ = undefined;
length__ = undefined;
angle__ = undefined;
x__ = nx;
y__ = ny;
init = true;
} else {
debugFunction(" the same values, no redefine");
}
}
}
function defineA(len, al) {
if (_global.noSet(len)) {
len = 0;
}
if (_global.noSet(al)) {
al = 0;
}
debugFunction((("define by angle " + len) + "\t") + al);
if ((angle__ != al) || (length__ != len)) {
debugFunction(" nulling sin-cos-al");
sin__ = Math.sin(al);
cos__ = Math.cos(al);
length__ = len;
angle__ = al;
x__ = len * cos__;
y__ = len * sin__;
init = true;
} else {
debugFunction(" the same values, no redefine");
}
}
function defineAGr(len, al) {
defineA(len, al / PI2);
}
function add() {
var _local5 = 0;
var _local7 = 0;
var _local6 = 0;
while (_local5 < arguments.length) {
var _local4 = arguments[_local5++];
if (_global.noSet(_local4.x)) {
continue;
}
if (_global.noSet(_local4.y)) {
continue;
}
_local7 = _local7 + _local4.x;
_local6 = _local6 + _local4.y;
}
if ((_local7 != 0) || (_local6 != 0)) {
define(x__ + _local7, y__ + _local6);
}
}
function mult(k1, k2) {
if (_global.noSet(k1)) {
return(undefined);
}
if (_global.noSet(k2)) {
k2 = k1;
}
define(x__ * k1, y__ * k2);
}
function multX(k) {
define(x__ * k, y__);
}
function multY(k) {
define(x__, y__ * k);
}
function rotate(a) {
if (_global.noSet(a)) {
return(undefined);
}
if (a == 0) {
return(undefined);
}
angle = (angle + a);
}
function rotateGr(a) {
if (_global.noSet(a)) {
return(undefined);
}
if (a == 0) {
return(undefined);
}
angleGr = (angleGr + a);
}
function checkZero(a1, a2) {
if (_global.noSet(a1)) {
return(undefined);
}
if (_global.noSet(a2)) {
a2 = a1;
}
var _local4 = x__;
var _local3 = y__;
if (Math.abs(_local4) <= a1) {
_local4 = 0;
}
if (Math.abs(_local3) <= a2) {
_local3 = 0;
}
define(_local4, _local3);
}
function checkX(max, d) {
if (_global.noSet(max)) {
return(undefined);
}
if (_global.noSet(d)) {
return(undefined);
}
if (Math.abs(x__ - max) <= d) {
define(max, y__);
}
}
function checkY(max, d) {
if (_global.noSet(max)) {
return(undefined);
}
if (_global.noSet(d)) {
return(undefined);
}
if (Math.abs(y__ - max) <= d) {
define(x__, max);
}
}
function projection(al) {
var _local3 = length * Math.cos(angle + al);
var _local2 = length * Math.sin(angle + al);
define(_local3, _local2);
return(undefined);
}
function projectionGr(al) {
return(projection(al / PI2));
}
function toString() {
if (!init) {
return("Vector not defined");
}
return(((("Vector: x=" + (Math.round(10000 * x__) / 10000)) + ", y=") + (Math.round(10000 * y__) / 10000)) + ((!_global.noSet(angle)) ? ((((", angle=" + (Math.round(angleGr * 1000) / 1000)) + " (") + (Math.round(angle * 1000) / 1000)) + ")") : ""));
}
function debugFunction(a) {
if (debug__) {
trace(a);
}
}
function view(mc, sx, sy) {
if (!init) {
return(undefined);
}
if (_global.noSet(mc)) {
debugFunction("Cannot view vector: no target");
return(undefined);
}
if (_global.noSet(sx)) {
sx = 0;
}
if (_global.noSet(sy)) {
sy = 0;
}
var _local3 = length / 2;
angle;
if (_local3 > 10) {
_local3 = 10;
}
mc.lineStyle(thick__, color__);
mc.moveTo(sx, sy);
mc.lineTo(sx + x__, sy + y__);
mc.lineTo((sx + x__) + (_local3 * Math.cos((angle__ - Math.PI) - (20 / PI2))), (sy + y__) + (_local3 * Math.sin((angle__ - Math.PI) - (20 / PI2))));
mc.moveTo(sx + x__, sy + y__);
mc.lineTo((sx + x__) + (_local3 * Math.cos((angle__ - Math.PI) + (20 / PI2))), (sy + y__) + (_local3 * Math.sin((angle__ - Math.PI) + (20 / PI2))));
}
var x__ = 0;
var y__ = 0;
var init = false;
var debug__ = false;
var color__ = 0;
var thick__ = 0;
}
Symbol 234 MovieClip [__Packages.Cursor] Frame 0
class Cursor extends MovieClip
{
var counter, respTime, _alpha;
function Cursor () {
super();
counter = 0;
respTime = _global.myGetTimer() - 1000000;
}
function oEF() {
counter++;
if (mode == 0) {
var _local3 = counter / (2 * _global.globalSettings.cursorBlinkTime);
if ((_local3 - Math.floor(_local3)) < 0.5) {
_alpha = 100;
} else {
_alpha = 50;
}
if ((_global.myGetTimer() - respTime) > _global.globalSettings.cursorRespTime) {
mode = 1;
_alpha = 100;
}
}
}
function kill() {
mode = 0;
respTime = _global.myGetTimer();
}
var mode = 1;
}
Symbol 235 MovieClip [__Packages.soundCollector] Frame 0
class soundCollector extends MovieClip
{
var col, getNextHighestDepth, createEmptyMovieClip;
function soundCollector () {
super();
col = new Array();
var _local8 = 0;
while (_local8 < arrayLength) {
var _local5 = getNextHighestDepth();
var _local6 = createEmptyMovieClip("mc_" + _local5, _local5);
var _local4 = new Sound(_local6);
_local4.onSoundComplete = scomplete;
var _local7 = {mc:_local6, snd:_local4, free:true, cont:false, pri:false};
_local4.link = _local7;
col.push(_local7);
_local8++;
}
_global.sound = this;
}
function set width(w) {
if (w >= 0) {
__width = w;
}
//return(width);
}
function get width() {
return(__width);
}
function set volume(v) {
if (v >= 0) {
__volume = v;
}
//return(volume);
}
function get volume() {
return(__volume);
}
function set enable(e) {
__enable = e;
if (!__enable) {
var _local2 = 0;
while (_local2 < arrayLength) {
col[_local2].snd.stop();
_local2++;
}
}
//return(enable);
}
function get enable() {
return(__enable);
}
function play(linkage, xpos, priority, num, vol) {
if (!__enable) {
return(undefined);
}
if (_global.noSet(priority)) {
priority = false;
}
if (_global.noSet(num)) {
num = 1;
}
if (num == -1) {
num = 1000000000 /* 0x3B9ACA00 */;
}
var _local13 = false;
var _local6 = -1;
var _local5 = 0;
var _local7 = -1;
var _local3 = 0;
while (_local3 < arrayLength) {
if (col[_local3].free || (_global.noSet(col[_local3].snd.position))) {
col[_local3].free = true;
_local6 = _local3;
break;
}
if (!col[_local3].pri) {
var _local4 = col[_local3].snd.position / col[_local3].snd.duration;
if (_local4 > _local5) {
_local5 = _local4;
_local7 = _local3;
}
}
_local3++;
}
if (_local6 == -1) {
if (priority) {
if (_global.envS.debug && (_global.envS.soundDebug)) {
_global.debug(((((("Sound collector: all slots busy, using slot " + _local7) + " (") + col[_local7].linkage) + ": ") + (col[_local7].snd.position / col[_local7].snd.duration)) + ")");
}
_local6 = _local7;
col[_local6].snd.stop();
} else if (_global.envS.debug && (_global.envS.soundDebug)) {
_global.debug("Sound collector: all slots busy, this sound skipping because of their low priority");
}
}
if (_local6 != -1) {
var _local8 = col[_local6];
_local8.snd.attachSound(linkage);
if (_global.noSet(vol)) {
vol = volume;
}
_local8.snd.setVolume(vol);
_local8.target = undefined;
if (!_global.noSet(xpos)) {
if (typeof(xpos) == "number") {
_local8.snd.setPan(calcPan(xpos));
}
if (typeof(xpos) == "movieclip") {
_local8.target = xpos;
}
} else {
_local8.snd.setPan(0);
}
_local8.snd.start(0, num);
_local8.free = false;
_local8.linkage = linkage;
_local8.pri = priority;
}
}
function stop(linkage) {
var _local2 = 0;
while (_local2 < arrayLength) {
if (col[_local2].linkage == linkage) {
col[_local2].snd.stop();
col[_local2].free = true;
}
_local2++;
}
}
function scomplete() {
var _local2 = this;
_local2.link.free = true;
}
function oEF() {
var _local3 = 0;
while (_local3 < arrayLength) {
if (!_global.noSet(col[_local3].target)) {
col[_local3].snd.setPan(calcPan(col[_local3].target._x));
}
_local3++;
}
}
function calcPan(xpos) {
return((((100 * xpos) / __width) * 2) - 100);
}
var arrayLength = 8;
var __volume = 100;
var __width = 100;
var __enable = true;
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 4
_parent.ballMC._visible = false;
_parent.bnz._visible = false;
Symbol 45 MovieClip Frame 26
this._parent.removeMovieClip();
Symbol 46 MovieClip Frame 1
this.onEnterFrame = function () {
this._parent._xscale = this._parent._xscale - 10;
this._parent._yscale = this._parent._xscale;
if (this._parent._xscale < 2) {
this._parent.removeMovieClip();
}
};
Symbol 50 MovieClip Frame 7
_parent.ballMC._visible = false;
_parent.bnz._visible = false;
Symbol 50 MovieClip Frame 21
this._parent.removeMovieClip();
Symbol 57 MovieClip Frame 11
stop();
Symbol 64 MovieClip Frame 11
stop();
Symbol 65 MovieClip Frame 11
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 67 MovieClip [ball_b] Frame 1
#initclip 12
Object.registerClass("ball_b", ball);
#endinitclip
stop();
Symbol 67 MovieClip [ball_b] Frame 2
stop();
Symbol 67 MovieClip [ball_b] Frame 3
stop();
Symbol 67 MovieClip [ball_b] Frame 4
stop();
Symbol 67 MovieClip [ball_b] Frame 5
stop();
Symbol 67 MovieClip [ball_b] Frame 6
stop();
Instance of Symbol 66 MovieClip "fx" in Symbol 67 MovieClip [ball_b] Frame 6
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
Symbol 71 MovieClip [ball_db] Frame 1
#initclip 5
Object.registerClass("ball_db", ball);
#endinitclip
stop();
Symbol 71 MovieClip [ball_db] Frame 2
stop();
Symbol 71 MovieClip [ball_db] Frame 3
stop();
Symbol 71 MovieClip [ball_db] Frame 4
stop();
Symbol 71 MovieClip [ball_db] Frame 5
stop();
Symbol 71 MovieClip [ball_db] Frame 6
stop();
Instance of Symbol 66 MovieClip "fx" in Symbol 71 MovieClip [ball_db] Frame 6
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
Symbol 75 MovieClip [ball_g] Frame 1
#initclip 6
Object.registerClass("ball_g", ball);
#endinitclip
stop();
Symbol 75 MovieClip [ball_g] Frame 2
stop();
Symbol 75 MovieClip [ball_g] Frame 3
stop();
Symbol 75 MovieClip [ball_g] Frame 4
stop();
Symbol 75 MovieClip [ball_g] Frame 5
stop();
Symbol 75 MovieClip [ball_g] Frame 6
stop();
Instance of Symbol 66 MovieClip "fx" in Symbol 75 MovieClip [ball_g] Frame 6
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
Symbol 79 MovieClip [ball_o] Frame 1
#initclip 7
Object.registerClass("ball_o", ball);
#endinitclip
stop();
Symbol 79 MovieClip [ball_o] Frame 2
stop();
Symbol 79 MovieClip [ball_o] Frame 3
stop();
Symbol 79 MovieClip [ball_o] Frame 4
stop();
Symbol 79 MovieClip [ball_o] Frame 5
stop();
Symbol 79 MovieClip [ball_o] Frame 6
stop();
Instance of Symbol 66 MovieClip "fx" in Symbol 79 MovieClip [ball_o] Frame 6
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
Symbol 83 MovieClip [ball_p] Frame 1
#initclip 8
Object.registerClass("ball_p", ball);
#endinitclip
stop();
Symbol 83 MovieClip [ball_p] Frame 2
stop();
Symbol 83 MovieClip [ball_p] Frame 3
stop();
Symbol 83 MovieClip [ball_p] Frame 4
stop();
Symbol 83 MovieClip [ball_p] Frame 5
stop();
Symbol 83 MovieClip [ball_p] Frame 6
stop();
Instance of Symbol 66 MovieClip "fx" in Symbol 83 MovieClip [ball_p] Frame 6
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
Symbol 87 MovieClip [ball_r] Frame 1
#initclip 9
Object.registerClass("ball_r", ball);
#endinitclip
stop();
Symbol 87 MovieClip [ball_r] Frame 2
stop();
Symbol 87 MovieClip [ball_r] Frame 3
stop();
Symbol 87 MovieClip [ball_r] Frame 4
stop();
Symbol 87 MovieClip [ball_r] Frame 5
stop();
Symbol 87 MovieClip [ball_r] Frame 6
stop();
Instance of Symbol 66 MovieClip "fx" in Symbol 87 MovieClip [ball_r] Frame 6
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
Symbol 91 MovieClip [ball_y] Frame 1
#initclip 10
Object.registerClass("ball_y", ball);
#endinitclip
stop();
Symbol 91 MovieClip [ball_y] Frame 2
stop();
Symbol 91 MovieClip [ball_y] Frame 3
stop();
Symbol 91 MovieClip [ball_y] Frame 4
stop();
Symbol 91 MovieClip [ball_y] Frame 5
stop();
Symbol 91 MovieClip [ball_y] Frame 6
stop();
Instance of Symbol 66 MovieClip "fx" in Symbol 91 MovieClip [ball_y] Frame 6
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 101 MovieClip Frame 4
view.gotoAndStop(_parent.str);
gotoAndStop (1);
Symbol 103 MovieClip Frame 1
if (!((_global.envS.debug == 1) && (_global.envS.markerDebug == 1))) {
_visible = false;
}
Symbol 108 MovieClip [cursor] Frame 1
#initclip 11
Object.registerClass("cursor", Cursor);
#endinitclip
stop();
Symbol 108 MovieClip [cursor] Frame 2
stop();
Symbol 118 MovieClip Frame 15
stop();
this.removeMovieClip();
Symbol 121 MovieClip Frame 1
_visible = false;
Symbol 142 Button
on (press) {
_global.language_pre = "pt";
_root.nextFrame();
}
Symbol 144 Button
on (press) {
_global.language_pre = "ru";
_root.nextFrame();
}
Symbol 146 Button
on (press) {
_global.language_pre = "de";
_root.nextFrame();
}
Symbol 148 Button
on (press) {
_global.language_pre = "fr";
_root.nextFrame();
}
Symbol 150 Button
on (press) {
_global.language_pre = "es";
_root.nextFrame();
}
Symbol 152 Button
on (press) {
_global.language_pre = "en";
_root.nextFrame();
}
Symbol 154 MovieClip [#soundz] Frame 1
#initclip 13
Object.registerClass("#soundz", soundCollector);
#endinitclip
Symbol 158 Button
on (press) {
this._parent.soundOff();
this.gotoAndStop(2);
}
Symbol 160 Button
on (press) {
this._parent.soundOn();
this.gotoAndStop(1);
}
Symbol 161 MovieClip Frame 1
this.stop();
_root.soundStarter.gotoAndPlay("start");
sound.enable = true;
Symbol 161 MovieClip Frame 2
this.stop();
_root.soundStarter.gotoAndPlay("stop");
sound.enable = false;
Symbol 164 MovieClip Frame 1
_visible = false;
Symbol 164 MovieClip Frame 3
if (!sound.enable) {
gotoAndStop (1);
}
Symbol 164 MovieClip Frame 7
gotoAndStop (1);
Symbol 164 MovieClip Frame 12
gotoAndStop (1);
Symbol 169 Button
on (press) {
_global.sound.play("menu");
gotoAndStop ("game");
}
Symbol 174 Button
on (press) {
_global.sound.play("menu");
openSite();
}
Symbol 179 Button
on (press) {
_global.sound.play("menu");
gotoAndStop ("help");
}
Symbol 191 Button
on (press) {
_global.sound.play("menu");
gotoAndStop ("menu");
}
Instance of Symbol 208 MovieClip "bar" in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_yscale = (_yscale + ((targety - _yscale) / 6));
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 76
stop();
_visible = false;
_global.betweenLevels = false;
Symbol 223 MovieClip Frame 61
stop();
_visible = false;
Symbol 226 MovieClip Frame 131
stop();
_visible = false;
_global.betweenLevels = false;
if (_global.gameOver) {
_root.gotoAndStop("menu");
}
Symbol 229 MovieClip Frame 131
stop();
_visible = false;
_global.openSite();
_root.gotoAndStop("menu");