Frame 1
stop();
gamename = "rainbowbubble";
url = "www.gamesonly.com.cn";
onEnterFrame = function () {
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
loadper = Math.round((loadsize / totalsize) * 100) + "%";
if (((loadsize >= 1) && (totalsize >= 1)) && (loadsize == totalsize)) {
load_Mc.nextFrame();
delete onEnterFrame;
}
};
Frame 6
stop();
Frame 21
stop();
Frame 41
stop();
var main = new Main();
Frame 58
stop();
score = ControllCenter.score;
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local2 = Array();
var _local4 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local4) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(_local2);
}
function binl2hex(binarray) {
if (hexcase) {
}
var _local4 = "0123456789abcdef";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function submitScore() {
hash = md5(((url + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
var hexcase = 0;
var strsize = 8;
Symbol 25 MovieClip Frame 80
stop();
Symbol 29 MovieClip Frame 107
stop();
Symbol 52 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 65 MovieClip Frame 174
stopAllSounds();
_root.gotoAndStop("menu");
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 228 MovieClip [__Packages.Main] Frame 0
class Main
{
var screen, controllCenter;
function Main () {
newGame();
screen = new Screen();
}
function newGame() {
controllCenter = new ControllCenter();
ControllCenter.run();
}
}
Symbol 229 MovieClip [__Packages.ControllCenter] Frame 0
class ControllCenter
{
static var intervalTime, intervalTime_addBall, pause, ballArray, hitBallColorArray, tools_timer_bubble, tools_timer_shooter, current_level_time, level, score, hitBallCounter, hitBallTarget, setIntervalId, setIntervalId_addBall, shooter;
function ControllCenter () {
intervalTime = 1000;
intervalTime_addBall = 1000;
pause = true;
ballArray = new Array();
hitBallColorArray = new Array();
tools_timer_bubble = 0;
tools_timer_shooter = 0;
current_level_time = LEVEL_TIME;
level = 1;
score = 0;
hitBallCounter = 0;
hitBallTarget = 20;
initShooter();
loadEvent();
}
function loadEvent() {
setIntervalId = setInterval(this, "process", intervalTime);
setIntervalId_addBall = setInterval(this, "addBall", intervalTime_addBall);
}
function addBall() {
if (pause) {
return(undefined);
}
if (level > 9) {
ballArray.push(new Bubble());
}
ballArray.push(new Bubble());
}
function initShooter() {
shooter = new Shooter();
}
static function removeAll() {
shooter.unloadMc();
var _local1 = ballArray.length - 1;
while (_local1 >= 0) {
if (ballArray[_local1] != null) {
ballArray[_local1].unloadMc();
ballArray.pop();
}
_local1--;
}
clearInterval(setIntervalId_addBall);
clearInterval(setIntervalId);
}
static function run() {
pause = false;
Bubble.pause = false;
Shooter.pause = false;
Bullet.pause = false;
}
static function Pause() {
pause = true;
Bubble.pause = true;
Shooter.pause = true;
Bullet.pause = true;
}
function levelUp() {
if (LEVEL_TIME < LEVEL_TIME_MAX) {
LEVEL_TIME = LEVEL_TIME + 8;
}
current_level_time = LEVEL_TIME;
level++;
clearInterval(setIntervalId_addBall);
if (((intervalTime_addBall = intervalTime_addBall - INTERVAL_TIME_ADD_BALL_INCREMENT)) < INTERVAL_TIME_ADD_BALL_MIN) {
intervalTime_addBall = INTERVAL_TIME_ADD_BALL_MIN;
}
setIntervalId_addBall = setInterval(this, "addBall", intervalTime_addBall);
if (level > 6) {
Bubble.speedUpNormalSpeed();
}
hitBallCounter = 0;
if (hitBallTarget < MAX_TARGET) {
hitBallTarget = hitBallTarget + 10;
}
Screen.updateTarget();
Screen.updateHitBallCounter();
}
function gameover() {
removeAll();
Screen.gotoGameover();
}
function process() {
if (pause) {
return(undefined);
}
if ((current_level_time--) < 0) {
gameover();
} else if (hitBallCounter >= hitBallTarget) {
trace("get time bonus");
Bullet.addScore(current_level_time);
levelUp();
Screen.updateLevel();
Screen.showNextLevel();
Pause();
}
Screen.updateLevelTime();
if ((--tools_timer_bubble) <= 0) {
Bubble.restoreSpeed();
}
if ((--tools_timer_shooter) <= 0) {
Shooter.restoreBullets();
}
}
static function bubbleSpeedUp() {
tools_timer_bubble = TOOLS_TIMER;
Bubble.speedUp();
}
static function bubbleSpeedDown() {
tools_timer_bubble = TOOLS_TIMER;
Bubble.speedDown();
}
static function shootMoreBullets() {
tools_timer_shooter = TOOLS_TIMER;
Shooter.moreBullets();
}
static var INTERVAL_TIME_ADD_BALL_INCREMENT = 200;
static var INTERVAL_TIME_ADD_BALL_MIN = 200;
static var TOOLS_TIMER = 10;
static var LEVEL_TIME = 60;
static var LEVEL_TIME_MAX = 100;
static var MAX_TARGET = 200;
}
Symbol 230 MovieClip [__Packages.McLoader] Frame 0
class McLoader
{
var srcName, orgWidth, direction;
function McLoader (parentMc, _srcName, posX, posY, newName) {
if (Utils.isNull(parentMc)) {
trace("McLoader: parentMc is null");
return;
}
if (Utils.isNull(_srcName)) {
trace("McLoader: srcName is null");
return;
}
if (Utils.isNull(posX)) {
posX = 0;
}
if (Utils.isNull(posY)) {
posY = 0;
}
if (Utils.isNull(newName)) {
newName = _srcName + (defaultNewNameCounter++);
}
srcName = _srcName;
loadMc(parentMc, srcName, posX, posY, newName);
}
function unloadMc() {
removeMovieClip(mc);
mc = null;
}
function loadMc(parentMc, srcName, posX, posY, newName) {
parentMc.attachMovie(srcName, newName, parentMc.getNextHighestDepth(), {_x:posX, _y:posY});
mc = parentMc[newName];
orgWidth = mc._width;
}
function setX(__x) {
if (Utils.isNull(__x)) {
trace("McLoader: __x is null");
__x = 0;
}
mc._x = __x;
}
function setY(__y) {
if (Utils.isNull(__y)) {
trace("McLoader: __y is null");
__y = 0;
}
mc._y = __y;
}
function getX() {
return(mc._x);
}
function getY() {
return(mc._y);
}
function setWidth(_w) {
if (Utils.isNull(_w)) {
trace("McLoader: _w is null");
_w = 0;
}
mc._width = _w;
}
function setHeight(_h) {
if (Utils.isNull(_h)) {
trace("McLoader: _h is null");
_h = 0;
}
mc._height = _h;
}
function getWidth() {
return(mc._width);
}
function getOrgWidth() {
return(orgWidth);
}
function getHeight() {
return(mc._height);
}
function getDirection() {
return(direction);
}
function reverseMc() {
mc._xscale = mc._xscale * -1;
direction = direction * -1;
}
function getState() {
return(mc.state);
}
function setGlobalPoint(_p) {
mc._parent.globalToLocal(_p);
mc._x = _p.x;
mc._y = _p.y;
}
function getGlobalPoint() {
var _local2 = new flash.geom.Point(mc._x, mc._y);
mc._parent.localToGlobal(_local2);
return(_local2);
}
function setGlobalX(__x) {
var _local2 = new flash.geom.Point(__x, 0);
mc._parent.globalToLocal(_local2);
mc._x = _local2.x;
}
function getGlobalX() {
var _local2 = new flash.geom.Point(mc._x, mc._y);
mc._parent.localToGlobal(_local2);
return(_local2.x);
}
var mc = null;
static var DIRECTION_RIGHT = 1;
static var DIRECTION_LEFT = -1;
static var defaultNewNameCounter = 0;
}
Symbol 231 MovieClip [__Packages.Utils] Frame 0
class Utils
{
function Utils () {
}
static function isNull(obj) {
if ((typeof(obj) == "undefined") || (obj == null)) {
return(true);
}
return(false);
}
static function getRandom(max) {
return(Math.round(((max * Math.random()) * 100) / 100));
}
static function submitScore(_score) {
if (_root.username == undefined) {
_root.username = "Guest";
}
sendScore(_score);
}
static function sendScore(_score) {
if (_score < 0) {
_score = 0;
}
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.user_id = _root.user_id;
_local2.game_id = _root.game_id;
_local2.score = _score;
_local3.onLoad = function (success) {
if (success) {
}
};
if (_root.username == undefined) {
_local2.sendAndLoad((("addscore.php?username=Guset&game_id=" + _root.game_id) + "&score=") + _score, _local3);
} else {
_local2.sendAndLoad((((("addscore.php?username=" + _root.username) + "&game_id=") + _root.game_id) + "&score=") + _score, _local3);
}
}
}
Symbol 232 MovieClip [__Packages.Shooter] Frame 0
class Shooter extends McLoader
{
static var pause, bulletArray, curBullets;
var mc;
function Shooter () {
super(_root.Container, "Shooter");
mc._x = (_root.Container._width - mc._width) / 2;
mc._y = _root.Container._height - mc._height;
pause = true;
bulletArray = new Array();
if (Utils.isNull(curBullets)) {
curBullets = BULLETS_NORMAL;
}
loadEvent();
}
function loadEvent() {
var ins = this;
mc.onMouseMove = function () {
if (!Shooter.pause) {
ins.mouseControl();
}
};
mc.onMouseDown = function () {
if (!Shooter.pause) {
ins.shoot();
}
};
}
function mouseControl() {
var _local2 = mc._parent._xmouse;
if ((_local2 > (mc._width / 2)) && (_local2 < (mc._parent._width - (mc._width / 2)))) {
mc._x = _local2 - (mc._width / 2);
}
}
function shoot() {
var _local2 = 0;
while (_local2 < bulletArray.length) {
if (bulletArray[_local2].mc == null) {
bulletArray.splice(_local2, 1);
}
_local2++;
}
if (bulletArray.length < curBullets) {
bulletArray.push(new Bullet(mc._x + (mc._width / 2), mc._y - 18));
}
}
static function moreBullets() {
if (curBullets == BULLETS_MORE) {
curBullets = BULLETS_MAX;
} else {
curBullets = BULLETS_MORE;
}
}
static function restoreBullets() {
curBullets = BULLETS_NORMAL;
}
static var BULLETS_MAX = 3;
static var BULLETS_NORMAL = 1;
static var BULLETS_MORE = 2;
}
Symbol 233 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends McLoader
{
static var pause;
var intervalTime, intervalTime_hitTest, enable, speed, mc, setIntervalId, setIntervalId_hitTest, unloadMc;
function Bullet (xx, yy) {
super(_root.Container, "Bullet");
intervalTime = 50;
intervalTime_hitTest = 10;
pause = false;
enable = true;
speed = mc._height;
mc._x = xx - (mc._width / 2);
mc._y = yy;
setColor(1);
loadEvent();
}
function loadEvent() {
setIntervalId = setInterval(this, "moveUp", intervalTime);
setIntervalId_hitTest = setInterval(this, "hitTesting", intervalTime_hitTest);
}
static function addScore(bonus) {
ControllCenter.score = ControllCenter.score + 100;
var _local1 = 0;
while (_local1 < bonus) {
ControllCenter.score = ControllCenter.score + 100;
_local1++;
}
Screen.updateScore();
}
function hitTesting() {
if (pause) {
return(undefined);
}
var _local5 = ControllCenter.ballArray;
var _local2 = 0;
while (_local2 < _local5.length) {
if (_local5[_local2].mc == null) {
ControllCenter.ballArray.splice(_local2, 1);
_local2--;
} else if (enable && (_local5[_local2].enable)) {
if (mc.hitTest(_local5[_local2].mc)) {
_local5[_local2].blast();
blast();
addScore(0);
ControllCenter.hitBallCounter++;
Screen.updateHitBallCounter();
var _local4 = _local5[_local2].getColor();
if (_local4 <= Bubble.MAX_COLOR) {
var _local6 = false;
var _local3 = 0;
while (_local3 < ControllCenter.hitBallColorArray.length) {
if (ControllCenter.hitBallColorArray[_local3] == _local4) {
_local6 = true;
}
_local3++;
}
if (!_local6) {
ControllCenter.hitBallColorArray.push(_local4);
Screen.updateHitBallColor();
trace(ControllCenter.hitBallColorArray);
if (ControllCenter.hitBallColorArray.length == Bubble.MAX_COLOR) {
trace("get rainbow bonus");
addScore(Bubble.MAX_COLOR);
showRainbow();
Screen.hideAllHitBallColor();
ControllCenter.hitBallColorArray = new Array();
}
}
} else {
switch (_local4) {
case Bubble.MAX_COLOR + 1 :
trace("speedUp");
Screen.playSpeedUp();
ControllCenter.bubbleSpeedUp();
break;
case Bubble.MAX_COLOR + 2 :
trace("speedDown");
Screen.playSpeedDown();
ControllCenter.bubbleSpeedDown();
break;
case Bubble.MAX_COLOR + 3 :
trace("moreBullets");
Screen.playMultiShoot();
ControllCenter.shootMoreBullets();
}
}
}
}
_local2++;
}
}
function showRainbow() {
_root.Container.Rainbow._visible = true;
_root.Container.Rainbow.gotoAndPlay(1);
var _local2 = new Sound();
_local2.attachSound("rainbow.mp3");
_local2.start();
}
function moveUp() {
if (pause) {
return(undefined);
}
mc._y = mc._y - speed;
if ((mc._y < 0) || (mc._currentframe == mc._totalframes)) {
unloadMc();
clearInterval(setIntervalId);
clearInterval(setIntervalId_hitTest);
}
}
function blast() {
mc.gotoAndPlay("blast");
enable = false;
}
function setColor(_color) {
mc.gotoAndStop(_color);
}
}
Symbol 234 MovieClip [__Packages.Screen] Frame 0
class Screen
{
function Screen () {
init();
}
function init() {
_root.screen_pause._visible = false;
_root.screen_nextLevel._visible = false;
_root.Container.Rainbow._visible = false;
updateTarget();
updateLevel();
updateLevelTime();
hideAllHitBallColor();
loadEvent();
}
function loadEvent() {
var _local4 = this;
_root.btn_pause.onRelease = function () {
if (_root.screen_pause._visible) {
_root.screen_pause._visible = false;
ControllCenter.run();
} else {
_root.screen_pause._visible = true;
ControllCenter.Pause();
}
};
_root.screen_pause.btn_continue.onRelease = function () {
_root.screen_pause._visible = false;
ControllCenter.run();
};
_root.screen_nextLevel.btn_nextLevel.onRelease = function () {
_root.screen_nextLevel._visible = false;
ControllCenter.run();
};
_root.btn_menu.onRelease = function () {
ControllCenter.removeAll();
_root.gotoAndStop("menu");
};
_root.btn_sound.onRelease = function () {
var _local2 = new Sound();
if (this._currentframe == 1) {
this.gotoAndStop(2);
_local2.setVolume(0);
} else {
this.gotoAndStop(1);
_local2.setVolume(100);
}
};
}
static function hideAllHitBallColor() {
var _local2 = 1;
while (_local2 <= Bubble.MAX_COLOR) {
_root.hitBallColorArrayMc["ball" + _local2].gotoAndStop(_root.hitBallColorArrayMc["ball" + _local2]._totalframes);
_local2++;
}
}
static function updateHitBallColor() {
var _local2 = 0;
while (_local2 < ControllCenter.hitBallColorArray.length) {
_root.hitBallColorArrayMc["ball" + ControllCenter.hitBallColorArray[_local2]].gotoAndStop(ControllCenter.hitBallColorArray[_local2]);
_local2++;
}
}
static function gotoGameover() {
_root.gotoAndStop("gameover");
}
static function showNextLevel() {
_root.screen_nextLevel._visible = true;
_root.screen_nextLevel.text_level = ControllCenter.level - 1;
}
static function updateLevel() {
_root.text_level = ControllCenter.level;
}
static function updateLevelTime() {
_root.text_levelTime = ControllCenter.current_level_time;
}
static function updateScore() {
_root.text_score = ControllCenter.score;
}
static function updateTarget() {
_root.text_target = ControllCenter.hitBallTarget;
}
static function updateHitBallCounter() {
_root.text_hitBallCounter = ControllCenter.hitBallCounter;
}
static function playMultiShoot() {
var _local1 = new Sound();
_local1.attachSound("multishoot.mp3");
_local1.start();
}
static function playSpeedUp() {
var _local1 = new Sound();
_local1.attachSound("speedupshootspeed.mp3");
_local1.start();
}
static function playSpeedDown() {
var _local1 = new Sound();
_local1.attachSound("slowdownshootspeed.mp3");
_local1.start();
}
}
Symbol 235 MovieClip [__Packages.Bubble] Frame 0
class Bubble extends McLoader
{
static var normalSpeed, speed, pause;
var mc, enable, unloadMc, color;
function Bubble () {
super(_root.Container, "Bubble");
setColor(Utils.getRandom((MAX_COLOR - 1) + MAX_TOOLS) + 1);
mc._x = Math.round(Math.random() * (_root.Container._width - mc._width));
mc._y = _root.Container._height;
if (Utils.isNull(normalSpeed)) {
normalSpeed = SPEED_INIT;
}
if (Utils.isNull(speed)) {
speed = normalSpeed;
}
pause = false;
enable = true;
loadEvent();
}
function loadEvent() {
var ins = this;
mc.onEnterFrame = function () {
if (!Bubble.pause) {
ins.moveUp();
}
};
}
function moveUp() {
mc._y = mc._y - speed;
if ((mc._y < 0) || (mc._currentframe == mc._totalframes)) {
mc.onEnterFrame = null;
unloadMc();
}
}
function blast() {
mc.gotoAndPlay("blast");
enable = false;
}
static function speedUp() {
speed = SPEED_FAST;
}
static function speedDown() {
speed = SPEED_SLOW;
}
static function restoreSpeed() {
speed = normalSpeed;
}
static function speedUpNormalSpeed() {
normalSpeed = normalSpeed + 1;
if (normalSpeed >= SPEED_FAST) {
normalSpeed = SPEED_FAST - 1;
}
}
function setColor(_color) {
color = _color;
mc.gotoAndStop(_color);
}
function getColor() {
return(color);
}
static var SPEED_INCREMENT = 1;
static var SPEED_FAST = 10;
static var SPEED_SLOW = 2;
static var SPEED_INIT = 4;
static var MAX_COLOR = 6;
static var MAX_TOOLS = 3;
}
Symbol 87 MovieClip Frame 40
this._visible = false;
stop();
Symbol 102 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 106 Button
on (release) {
_root.gotoAndStop("howTo");
}
Symbol 110 Button
on (release) {
getURL (("http://" + _root.url) + "/highscore.php", "_blank");
}
Symbol 114 Button
on (release) {
getURL ("http://" + _root.url, "_blank");
}
Symbol 116 MovieClip Frame 95
stop();
Instance of Symbol 82 MovieClip in Symbol 118 MovieClip Frame 1
/* no clip actions */
Symbol 143 MovieClip [Bubble] Frame 1
stop();
Symbol 143 MovieClip [Bubble] Frame 15
stop();
Symbol 151 MovieClip [Bullet] Frame 1
stop();
Symbol 151 MovieClip [Bullet] Frame 5
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 221 Button
on (release) {
submitScore();
}
Symbol 225 Button
on (release) {
_root.gotoAndPlay("menu");
}