Frame 1
function createStattooz(thisSkin, thisDomain, thisHosted) {
_root.Stattooz = new stattooz(myGameName, myDeveloper, myGenre, myGameType, thisSkin, myPlayer, myThreshold, thisDomain);
_root.Stattooz.reportEvent("load");
}
function createBranditz() {
_root.Branditz = new branditz(myGameName, myGameType, myGameWidth, myGameHeight, createStattooz);
}
function initialize() {
var _local1 = new expressinstall();
if (!_local1.init()) {
createBranditz();
}
}
stop();
var myGameName = "giggly_pops";
var myDeveloper = "3RDsense";
var myGenre = 2;
var myGameType = 1;
var myGameWidth = 640;
var myGameHeight = 420;
var myThreshold = 20000;
_root.score = 0;
_root.startGame = function () {
_root.gotoAndStop("splash");
};
_root.playAgain = function () {
_root.gotoAndStop("splash");
};
System.security.allowDomain("*");
_root.checkPirate = function () {
_root.Branditz.pHosted = ((_root.Branditz.pHosted == undefined) ? (_root.Stattooz.isDomainAllowed()) : (_root.Branditz.pHosted));
if ((System.capabilities.playerType == "External") || (_root.Stattooz.isDomainAllowed())) {
_root.Branditz.pHosted = true;
} else {
((myGameType != 1) ? (getURL ("javascript:if (top.location != location) top.location.href ='http://www.fizzy.com/';")) : null);
}
_root.Branditz.pLinkWindow = (_root.Branditz.pHosted ? "_self" : "_blank");
var _local2 = false;
if (myGameType == 1) {
_local2 = true;
} else {
_local2 = _root.Branditz.pHosted;
}
if (_local2) {
_root.startGame();
} else {
_root.reportEvent("pirate");
_root.gotoAndStop("pirate");
}
};
_root.loadComplete = function () {
_root.gotoAndStop("splash");
};
var myPlayer = System.capabilities.playerType;
initialize();
Frame 9
stop();
Frame 20
stop();
Frame 56
playButton.onPress = function () {
_root.Stattooz.reportEvent("play");
gotoAndStop ("game");
};
instructionsButton.onPress = function () {
gotoAndStop ("instructions");
};
stop();
Frame 65
playButton.onPress = function () {
gotoAndStop ("game");
};
Instance of Symbol 798 MovieClip in Frame 95
onClipEvent (load) {
this.swapDepths(25000);
}
Frame 96
oddNumber = function (number) {
var _local1 = number / 2;
_local1 = _local1.toString();
_local1 = _local1.indexOf(".");
if (_local1 == -1) {
return(false);
}
return(true);
};
distBetween = function (object1, object2) {
var _local2 = object1.xTemp;
var _local1 = object1.yTemp;
var _local4 = object2._x;
var _local3 = object2._y;
var _local5 = Math.sqrt(((_local2 - _local4) * (_local2 - _local4)) + ((_local1 - _local3) * (_local1 - _local3)));
return(_local5);
};
initDepthManager = function () {
depthManager = {};
depthManager.bubblesDepth = 10000;
depthManager.bubblesPopAnimeDepth = 20000;
depthManager.bubblesPopDepth = 30000;
depthManager.bonusDepth = 40000;
depthManager.bubblesTop = 1000;
depthManager.gridDepth = 500;
};
_root.createEmptyMovieClip("soundFX", -50000);
_root.createEmptyMovieClip("musicFX", -50001);
gigglyPopsSong = new Sound(musicFX);
gigglyPopsSong.attachSound("gigglypops");
gigglyPopsSong.setVolume(50);
gigglyPopsSong.start(0, 99999);
shootBubbleSound = new Sound(soundFX);
shootBubbleSound.attachSound("shootBubble");
pop = new Sound(soundFX);
pop.attachSound("pop");
noPop = new Sound(soundFX);
noPop.attachSound("noPop");
levelComplete = new Sound(soundFX);
levelComplete.attachSound("levelComplete");
chingSound = new Sound(soundFX);
chingSound.attachSound("KACHING");
i = 1;
while (i <= 12) {
_root["giggleSound" + i] = new Sound(soundFX);
if (i < 10) {
_root["giggleSound" + i].attachSound("giggle0" + i);
} else {
_root["giggleSound" + i].attachSound("giggle" + i);
}
i++;
}
playGiggle = function () {
var _local2 = random(12) + 1;
_root["giggleSound" + _local2].start();
};
getRowPoint = function (point) {
var _local1 = Math.floor((point - game.yOffSet) / game.rowSpace);
return(_local1);
};
getColumnPoint = function (point) {
var _local1 = Math.floor(point / game.columnSpace);
return(_local1);
};
getColumnPointOffset = function (point) {
var _local1 = Math.floor((point - (game.columnSpace / 2)) / game.columnSpace);
return(_local1);
};
levelProg = new Array([2, 2], [2, 3], [3, 3], [3, 4], [4, 4], [5, 4], [5, 5], [6, 5], [6, 6], [6, 7], [6, 8], [6, 9]);
buildArray = function () {
gameGrid = new Array();
i = 0;
while (i < game.rows) {
gameGrid[i] = new Array();
j = 0;
while (j < game.columns) {
gameGrid[i][j] = new Array();
gameGrid[i][j].type = 0;
gameGrid[i][j].id = -1;
gameGrid[i][j].colour = 0;
gameGrid[i][j].tagged = 0;
j++;
}
i++;
}
};
levelProg = new Array([3, 3, 6], [4, 4, 5], [4, 5, 4], [5, 5, 4], [5, 5, 4], [6, 5, 4], [6, 6, 4], [7, 6, 4], [7, 7, 4], [8, 7, 4], [8, 8, 4], [8, 9, 4], [8, 10, 4], [8, 10, 3], [8, 7, 2], [8, 8, 2], [8, 9, 2], [8, 10, 2]);
loadLevel = function () {
buildArray();
game.coinScore = 1000;
game.totalBubbles = 0;
game.explodeDepth = 0;
game.bonusCount = 0;
game.shotsTaken = 0;
game.yOffSet = 0;
game.path.basket._xscale = 100;
game.path.basket._yscale = 100;
if (game.colours >= game.maxColours) {
game.colours = game.maxColours;
}
game.level = game.level + 1;
game.colours = levelProg[game.level - 1][0];
var _local5 = levelProg[game.level - 1][1];
game.movesLeft = levelProg[game.level - 1][2];
game.startingMoves = levelProg[game.level - 1][2];
game.path.roof._y = game.yOffSet;
movesLeft = "MOVES " + game.movesLeft;
levelType = "LEVEL " + game.level;
i = 0;
while (i < _local5) {
var _local3 = oddNumber(i);
j = 0;
while (j < game.columns) {
var _local4 = random(3) + 1;
var _local2 = "bubble" + game.totalBubbles;
game.path.attachMovie("bubble", _local2, depthManager.bubblesDepth + game.totalBubbles);
var _local1 = game.path[_local2];
_local3 = oddNumber(i);
if (_local3 == true) {
_local1._x = (j * game.columnSpace) + game.columnSpace;
} else {
_local1._x = (j * game.columnSpace) + (game.columnSpace / 2);
}
_local1._y = (i * game.rowSpace) + (game.rowSpace / 2);
_local1.id = game.totalBubbles;
_local1.isReal = true;
_local1.colour = pickColour();
_local1.gotoAndStop(_local1.colour);
game.nextBubble = pickColour();
gameGrid[i][j].type = 1;
gameGrid[i][j].id = game.totalBubbles;
gameGrid[i][j].colour = _local1.colour;
gameGrid[i][j].tagged = 0;
game.totalBubbles = game.totalBubbles + 1;
j++;
}
i++;
}
createBubble();
levelTrans.gotoAndPlay("startLevel");
};
buildGrid = function () {
var _local3 = 0;
i = 0;
while (i < game.rows) {
var _local4 = oddNumber(i);
j = 0;
while (j < game.columns) {
var _local2 = "grid" + _local3;
game.path.attachMovie("gridSq", _local2, _local3 + depthManager.gridDepth);
var _local1 = game.path[_local2];
_local1._x = j * game.columnSpace;
if (_local4 == true) {
_local1._x = _local1._x + (_local1._width / 2);
}
_local1._y = i * game.rowSpace;
_local3 = _local3 + 1;
j++;
}
i++;
}
};
resetTags = function () {
i = 0;
while (i < game.rows) {
j = 0;
while (j < game.columns) {
gameGrid[i][j].tagged = 0;
j++;
}
i++;
}
};
pickColour = function () {
var _local2 = random(game.colours);
var _local1;
switch (_local2) {
case 0 :
_local1 = "green";
break;
case 1 :
_local1 = "red";
break;
case 2 :
_local1 = "blue";
break;
case 3 :
_local1 = "pink";
break;
case 4 :
_local1 = "white";
break;
case 5 :
_local1 = "orange";
break;
case 6 :
_local1 = "purple";
break;
case 7 :
_local1 = "yellow";
}
return(_local1);
};
checkGrid = function (row, column, colour) {
game.sameTypeCount = 1;
game.nextMoveCount = 0;
game.colourCheck = colour;
game.moveScore = 0;
game.bubbles2Check = new Array();
game.bubbles2Check[0] = new Array();
game.bubbles2Check[0][0] = row;
game.bubbles2Check[0][1] = column;
checkBubbles();
};
checkBubbles = function () {
if (game.colourCheck != "multi") {
i = 0;
while (i <= game.bubbles2Check.length) {
var _local7 = game.bubbles2Check[i][0];
var _local8 = game.bubbles2Check[i][1];
var _local9 = oddNumber(_local7);
if (_local9 == false) {
sqsToCheck = new Array([0, 1], [0, -1], [1, 0], [1, -1], [-1, 0], [-1, -1]);
} else {
sqsToCheck = new Array([0, 1], [0, -1], [1, 0], [1, 1], [-1, 0], [-1, 1]);
}
j = 0;
while (j <= 5) {
var _local5 = _local7 + sqsToCheck[j][0];
var _local4 = _local8 + sqsToCheck[j][1];
var _local1 = gameGrid[_local5][_local4];
if ((_local1.colour == game.colourCheck) && (_local1.tagged == 0)) {
game.sameTypeCount = game.sameTypeCount + 1;
_local1.tagged = 1;
game.bubbles2Check.push([_local5, _local4]);
}
j++;
}
i++;
}
} else {
game.multiArray = new Array();
var _local7 = game.bubbles2Check[0][0];
var _local8 = game.bubbles2Check[0][1];
var _local9 = oddNumber(_local7);
if (_local9 == false) {
sqsToCheck = new Array([0, 1], [0, -1], [1, 0], [1, -1], [-1, 0], [-1, -1]);
} else {
sqsToCheck = new Array([0, 1], [0, -1], [1, 0], [1, 1], [-1, 0], [-1, 1]);
}
j = 0;
while (j <= 5) {
var _local5 = _local7 + sqsToCheck[j][0];
var _local4 = _local8 + sqsToCheck[j][1];
var _local1 = gameGrid[_local5][_local4];
if (_local1.colour != 0) {
var _local3 = false;
i = 0;
while (i < game.multiArray.length) {
if (game.multiArray[i] == _local1.colour) {
_local3 = true;
}
i++;
}
if (_local3 == false) {
game.multiArray.push(_local1.colour);
}
}
j++;
}
i = 0;
while (i < game.rows) {
j = 0;
while (j < game.columns) {
var _local1 = gameGrid[i][j];
var _local2 = false;
k = 0;
while (k < game.multiArray.length) {
if (_local1.colour == game.multiArray[k]) {
_local2 = true;
}
k++;
}
if (_local2 == true) {
game.bubbles2Check.push([i, j]);
}
j++;
}
i++;
}
}
if ((game.sameTypeCount >= 3) || (game.colourCheck == "multi")) {
pop.start();
game.nextMoveCount = game.nextMoveCount + game.sameTypeCount;
game.moveScore = game.sameTypeCount * 10;
var _local10 = 0;
i = 0;
while (i < game.bubbles2Check.length) {
var _local1 = gameGrid[game.bubbles2Check[i][0]][game.bubbles2Check[i][1]];
var _local6 = random(100);
if (_local6 <= 30) {
createBonus(game.path["bubble" + _local1.id]._x, game.path["bubble" + _local1.id]._y);
}
game.path["bubble" + _local1.id].ymov = -1 - random(3);
game.path["bubble" + _local1.id].xmov = random(3) - random(3);
game.path["bubble" + _local1.id].swapDepths(game.path["bubble" + _local1.id].id + depthManager.bubblesPopDepth);
game.path["bubble" + _local1.id].critter.gotoAndPlay("pop");
_local1.type = 0;
_local1.id = -1;
_local1.colour = 0;
_local1.tagged = 0;
i++;
}
resetTags();
check4Float();
} else {
noPop.start();
checkMoves();
createBubble();
}
resetTags();
};
check4Float = function () {
i = 0;
while (i < game.columns) {
checkAndTag(0, i);
i++;
}
popDisconnected();
};
checkAndTag = function (row, column) {
var _local4 = new Array();
_local4[0] = new Array();
_local4[0][0] = row;
_local4[0][1] = column;
gameGrid[row][column].tagged = 1;
if (gameGrid[row][column].type == 0) {
return(undefined);
}
k = 0;
while (k <= _local4.length) {
row = _local4[k][0];
column = _local4[k][1];
var _local7 = oddNumber(row);
if (_local7 == false) {
sqsToCheck = new Array([0, 1], [0, -1], [1, 0], [1, -1], [-1, 0], [-1, -1]);
} else {
sqsToCheck = new Array([0, 1], [0, -1], [1, 0], [1, 1], [-1, 0], [-1, 1]);
}
j = 0;
while (j <= 5) {
var _local3 = row + sqsToCheck[j][0];
var _local2 = column + sqsToCheck[j][1];
var _local1 = gameGrid[_local3][_local2];
if ((_local1.type == 1) && (_local1.tagged == 0)) {
_local1.tagged = 1;
_local4.push([_local3, _local2]);
}
j++;
}
k++;
}
};
popDisconnected = function () {
i = 0;
while (i < game.rows) {
j = 0;
while (j < game.columns) {
var _local1 = gameGrid[i][j];
if ((_local1.type == 1) && (_local1.tagged == 0)) {
game.nextMoveCount = game.nextMoveCount + 1;
game.path["bubble" + _local1.id].ymov = -1 - random(3);
game.path["bubble" + _local1.id].xmov = random(4) - random(4);
game.path["bubble" + _local1.id].swapDepths(game.path["bubble" + _local1.id].id + depthManager.bubblesPopDepth);
game.path["bubble" + _local1.id].critter.gotoAndPlay("fall");
game.path["bubble" + _local1.id].onEnterFrame = popBubble;
game.path["bubble" + _local1.id].popped = true;
_local1.type = 0;
_local1.id = -1;
_local1.colour = 0;
_local1.tagged = 0;
}
j++;
}
i++;
}
game.moveScore = game.moveScore * ((game.nextMoveCount - game.sameTypeCount) + 1);
addScore(game.moveScore);
};
popBubble = function () {
this._x = this._x + this.xmov;
this._y = this._y + this.ymov;
this.xmov = this.xmov * 0.95;
this.ymov = this.ymov + game.gravity;
if (this._y > 400) {
game.nextMoveCount = game.nextMoveCount - 1;
if (game.nextMoveCount == 0) {
checkLevelCleared();
}
this.removeMovieClip();
}
};
checkLevelCleared = function () {
var _local2 = 0;
i = 0;
while (i < game.rows) {
j = 0;
while (j < game.columns) {
var _local1 = gameGrid[i][j];
if (_local1.type == 1) {
_local2 = _local2 + 1;
}
j++;
}
i++;
}
if (_local2 > 0) {
if (game.path.basket._currentframe != 1) {
game.path.basket.gotoAndPlay("close");
}
checkMoves();
createBubble();
} else {
levelComplete.start();
levelTrans.gotoAndPlay("levelCleared");
}
};
checkMoves = function () {
if (game.movesLeft == 0) {
moveDown();
}
};
moveDown = function () {
game.yOffSet = game.yOffSet + game.rowSpace;
game.movesLeft = game.startingMoves;
var _local1 = false;
i = 0;
while (i < game.totalBubbles) {
game.path["bubble" + i]._y = game.path["bubble" + i]._y + game.rowSpace;
if ((game.path["bubble" + i]._y > 312) && (game.path["bubble" + i].popped == false)) {
_local1 = true;
}
game.path.roof._y = game.yOffSet;
i++;
}
if (_local1 == true) {
gameOver();
}
};
moveUp = function () {
if (game.yOffSet <= 0) {
return(undefined);
}
game.yOffSet = game.yOffSet - game.rowSpace;
game.movesLeft = game.startingMoves;
var _local1 = false;
i = 0;
while (i < game.totalBubbles) {
game.path["bubble" + i]._y = game.path["bubble" + i]._y - game.rowSpace;
game.path.roof._y = game.yOffSet;
i++;
}
};
createBonus = function (xpos, ypos) {
var _local5 = 0;
if (game.yOffSet > 0) {
_local5 = 10;
}
var _local3 = Math.random() * (100 + _local5);
var _local2 = null;
if (_local3 <= 90) {
_local2 = "coin";
} else if (_local3 < 95) {
_local2 = "bigBasket";
} else if (_local3 <= 100) {
_local2 = "moves";
} else if (_local3 <= 110) {
_local2 = "reverse";
}
var _local4 = "bonus" + game.bonusCount;
game.path.attachMovie("bonus", _local4, game.bonusCount + depthManager.bonusDepth);
var _local1 = game.path[_local4];
_local1.bonusType = _local2;
_local1.bonus.gotoAndStop(_local2);
_local1._x = xpos;
_local1._y = ypos;
_local1.xmove = random(13) - random(13);
_local1.ymove = Math.random() * 6;
_local1.onEnterFrame = bonusLoop;
game.bonusCount = game.bonusCount + 1;
game.nextMoveCount = game.nextMoveCount + 1;
game.path.basket.gotoAndPlay("open");
};
bonusLoop = function () {
this._x = this._x + this.xmove;
this._y = this._y - this.ymove;
this.xmove = this.xmove * 0.99;
this.ymove = this.ymove - 0.3;
var _local3 = (game.columnSpace * game.columns) + (this._width / 2);
if ((this._x - (this._width / 2)) < 0) {
this._x = 0 + (this._width / 2);
this.xmove = -this.xmove;
} else if ((this._x + (this._width / 2)) > _local3) {
this._x = _local3 - (this._width / 2);
this.xmove = -this.xmove;
}
if (this.hitTest(game.path.basket.hitZone)) {
this.xmove = 0;
this.ymove = 0;
this.gotoAndPlay("showScore");
this.onEnterFrame = null;
}
if (this._y > 400) {
game.nextMoveCount = game.nextMoveCount - 1;
if (game.nextMoveCount == 0) {
checkLevelCleared();
}
if (this.bonusType == "coin") {
_root.game.coinScore = 1000;
}
this.removeMovieClip();
this.onEnterFrame = null;
}
};
basketTimer = function () {
this.counter = this.counter - 1;
if (this.counter <= 0) {
this._xscale = 100;
this._yscale = 100;
delete this.onEnterFrame;
}
};
addCoin = function () {
_root.jar.coins = _root.jar.coins + 1;
var _local5 = "coin" + _root.jar.coins;
jar.attachMovie("goldCoin", _local5, 100000 - _root.jar.coins);
var _local4 = _root.jar[_local5];
_local4._yscale = 100 - random(30);
_local4.id = _root.jar.coins;
_local4.rotVal = random(45) - random(45);
_local4.gravity = 0.2;
_local4.ymov = random(5);
_local4.xmov = (Math.random() * 6) - (Math.random() * 6);
_local4.onEnterFrame = function () {
this.ymov = this.ymov + this.gravity;
this._x = this._x + this.xmov;
this._y = this._y + this.ymov;
this._rotation = this._rotation + this.rotVal;
this.xmov = this.xmov * 0.99;
if (this._x > 30) {
this._x = 30;
this.xmov = -this.xmov;
} else if (this._x < -30) {
this._x = -30;
this.xmov = Math.abs(this.xmov);
}
if (this._y > 115) {
this.ymov = -(this.ymov / 4);
this._y = 115;
if ((this.ymov < 0.1) && (this.ymov > -0.1)) {
this.xmov = 0;
this.ymov = 0;
this.onEnterFrame = null;
}
}
i = 1;
while (i <= _root.jar.coins) {
if (i != this.id) {
var _local3 = Math.random() * 100;
if ((((this.hitTest(_root.jar["coin" + i].hitZone) == true) && (_root.jar["coin" + i].xmov == 0)) && (_root.jar["coin" + i].ymov == 0)) && (_local3 <= 5)) {
this.ymov = -(this.ymov / 4);
if ((this.ymov < 0.1) && (this.ymov > -0.1)) {
this.xmov = 0;
this.ymov = 0;
this.onEnterFrame = null;
}
}
}
i++;
}
};
};
moveBubble = function () {
this.xTemp = this.xTemp + this.xv;
this.yTemp = this.yTemp + this.yv;
var _local14 = this.xTemp - 15;
var _local13 = this.xTemp;
var _local12 = (game.columnSpace * game.columns) + 15;
if (_local14 < 0) {
this.xTemp = 15;
this.xv = -this.xv;
}
if (_local13 > _local12) {
this.xTemp = _local12 - 15;
this.xv = -this.xv;
}
i = 0;
while (i <= game.totalBubbles) {
if ((i != this.id) && (game.path["bubble" + i].isReal == true)) {
var _local8 = distBetween(this, game.path["bubble" + i]);
if (_local8 < 25) {
var _local3 = getRowPoint(this._y);
var _local2 = getColumnPointOffset(this._x);
var _local7 = getRowPoint(game.path["bubble" + i]._y);
var _local6 = getColumnPoint(game.path["bubble" + i]._x);
var _local4 = oddNumber(_local3);
if (_local4 == true) {
_local2 = getColumnPointOffset(this._x);
} else {
_local2 = getColumnPoint(this._x);
if (_local2 == 10) {
_local2 = 9;
}
}
var _local5 = _local2 - _local6;
var _local9 = _local3 - _local7;
if (_local5 == -2) {
_local2 = _local2 + 1;
}
if (_local5 == 2) {
_local2 = _local2 - 1;
}
if (_local9 == 2) {
_local3 = _local3 - 1;
}
if (gameGrid[_local3][_local2].type == 1) {
checkMoves();
createBubble();
resetTags();
this.removeMovieClip();
return(undefined);
}
this.yTemp = ((_local3 * game.rowSpace) + (game.rowSpace / 2)) + game.yOffSet;
if (_local4 == true) {
this.xTemp = (_local2 * game.columnSpace) + game.columnSpace;
} else {
this.xTemp = (_local2 * game.columnSpace) + (game.columnSpace / 2);
}
gameGrid[_local3][_local2].type = 1;
gameGrid[_local3][_local2].colour = this.colour;
gameGrid[_local3][_local2].id = this.id;
gameGrid[_local3][_local2].tagged = 1;
delete this.onEnterFrame;
this._x = this.xTemp;
this._y = this.yTemp;
if (this._y > 312) {
gameOver();
return(undefined);
}
checkGrid(_local3, _local2, this.colour);
return(undefined);
}
}
i++;
}
var _local15 = this.yTemp - 14;
if (_local15 <= (0 + game.yOffSet)) {
this.yTemp = (0 + game.yOffSet) + 14;
var _local10 = getColumnPoint(this.xTemp);
var _local11 = getRowPoint(this.yTemp);
this.xTemp = (_local10 * game.columnSpace) + 15;
gameGrid[_local11][_local10].type = 1;
gameGrid[_local11][_local10].colour = this.colour;
gameGrid[_local11][_local10].id = this.id;
gameGrid[_local11][_local10].tagged = 1;
delete this.onEnterFrame;
this._x = this.xTemp;
this._y = this.yTemp;
checkGrid(_local11, _local10, this.colour);
return(undefined);
}
this._x = this.xTemp;
this._y = this.yTemp;
};
createBubble = function () {
var _local2 = "bubble" + game.totalBubbles;
game.path.attachMovie("bubble", _local2, depthManager.bubblesDepth + game.totalBubbles);
var _local1 = game.path[_local2];
game.activeBubble = game.totalBubbles;
_local1._x = 157.5;
_local1._y = 500;
_local1.xTemp = _local1._x;
_local1.yTemp = _local1._y;
game.path.arrow.nextBub = game.nextBubble;
_local1.id = game.totalBubbles;
_local1.isReal = true;
_local1.popped = false;
game.totalBubbles = game.totalBubbles + 1;
if (game.totalBubbles > depthManager.bubblesTop) {
game.totalBubbles = 0;
}
_local1.colour = game.nextBubble;
game.actColour = _local1.colour;
_local1.gotoAndStop(_local1.colour);
createNextBubble();
mouseMover = new Object();
mouseMover.onMouseMove = positionAimer;
Mouse.addListener(mouseMover);
if (game.shotsTaken > 0) {
vine.spew.gotoAndPlay("suck");
}
};
createNextBubble = function () {
var _local3 = new Array();
i = 0;
while (i < game.rows) {
j = 0;
while (j < game.columns) {
var _local4 = gameGrid[i][j];
if (_local4.type == 1) {
var _local2 = _local4.colour;
var _local1 = false;
k = 0;
while (k < _local3.length) {
if (_local3[k] == _local2) {
_local1 = true;
}
k++;
}
if (_local1 == false) {
_local3.push(_local2);
}
}
j++;
}
i++;
}
game.nextBubble = _local3[random(_local3.length)];
var _local5 = Math.floor(Math.random() * 100);
if ((_local5 <= 3) && (game.shotsTaken > 0)) {
game.nextBubble = "multi";
}
};
shootingEnabled = function () {
mouseListener = new Object();
mouseListener.onMouseDown = shootBubble;
Mouse.addListener(mouseListener);
};
shootingDisabled = function () {
Mouse.removeListener(mouseListener);
};
function bounceitem(whichitem) {
var _local2 = game.path[whichitem];
_local2.xspeed = -10 + random(10);
_local2.dy = -10 + random(10);
_local2.onEnterFrame = function () {
this._rotation = this._rotation + (this.xspeed * 10);
this._y = this._y + this.dy;
this._x = this._x + this.xspeed;
if (this.xspeed > 0) {
this.xspeed = this.xspeed - 0.1;
}
if (this.xspeed < 0) {
this.xspeed = this.xspeed + 0.1;
}
this.dy = this.dy + 2;
if (this._y > 440) {
this.removeMovieClip(this);
this.onEnterFrame = null;
}
};
}
createPop = function (colour, xpos, ypos) {
i = 0;
while (i <= 1) {
var _local1 = "explode" + game.explodeDepth;
game.explodeDepth = game.explodeDepth + 1;
game.path.attachMovie("explode", _local1, depthManager.bubblesPopAnimeDepth + game.explodeDepth);
game.path[_local1]._x = xpos;
game.path[_local1]._y = ypos;
game.path[_local1].gotoAndStop(colour);
game.explodeDepth = game.explodeDepth + 1;
if (game.explodeDepth >= (depthManager.bubblesPopAnimeDepth + 1000)) {
game.explodeDepth = depthManager.bubblesPopAnimeDepth;
}
bounceitem(_local1);
i++;
}
};
timeDelay = function (_mc) {
_mc.stop();
_mc.createEmptyMovieClip("codeRun", -2000);
_mc.codeRun.counter = random(820);
_mc.codeRun.onEnterFrame = function () {
this.counter = this.counter - 1;
if (this.counter <= 0) {
this._parent.play();
this.onEnterFrame = null;
}
};
};
positionAimer = function () {
var _local4 = game.path._xmouse - game.path.arrow._x;
var _local3 = game.path._ymouse - game.path.arrow._y;
var _local2 = Math.atan2(_local3, _local4);
_root.circTarget._y = _root._ymouse;
_root.circTarget._x = _root._xmouse;
_local2 = (_local2 * 180) / Math.PI;
game.shootAngle = _local2;
if (_local2 > -25) {
_local2 = -25;
}
if (_local2 < -150) {
_local2 = -150;
}
game.path.arrow._rotation = _local2;
game.angle = (_local2 * Math.PI) / 180;
updateAfterEvent();
};
shootBubble = function () {
_root.shootBubbleSound.start();
game.shotsTaken = game.shotsTaken + 1;
game.movesLeft = game.movesLeft - 1;
movesLeft = "MOVES " + game.movesLeft;
game.path["bubble" + game.activeBubble].xTemp = game.path.arrow._x + (42.5 * Math.cos(game.angle));
game.path["bubble" + game.activeBubble].yTemp = game.path.arrow._y + (42.5 * Math.sin(game.angle));
game.path["bubble" + game.activeBubble].xv = game.power * Math.cos(game.angle);
game.path["bubble" + game.activeBubble].yv = game.power * Math.sin(game.angle);
game.path["bubble" + game.activeBubble].onEnterFrame = moveBubble;
game.path.arrow.gotoAndPlay("fire");
shootingDisabled();
};
addScore = function (amount) {
game.score = game.score + amount;
_root.score = game.score;
};
gameOver = function () {
i = 0;
while (i < game.rows) {
j = 0;
while (j < game.columns) {
var _local1 = gameGrid[i][j];
game.path["bubble" + _local1.id].critter.gotoAndPlay("pop");
j++;
}
i++;
}
levelTrans.gotoAndPlay("gameOver");
};
startGame = function () {
game = {};
game.path = _root.world;
initDepthManager();
game.score = 0;
addScore(0);
game.columns = 10;
game.rows = 13;
game.columnSpace = 30;
game.rowSpace = 26;
game.gravity = 1;
game.level = 0;
game.colours = 2;
game.maxColours = 6;
game.power = 10;
game.totalBubbles = 0;
loadLevel();
};
Mouse.hide();
startGame();
Instance of Symbol 848 MovieClip "jar" in Frame 96
onClipEvent (load) {
this.coins = 0;
}
Frame 105
Mouse.show();
Frame 134
stop();
Symbol 75 MovieClip [explode] Frame 1
stop();
gotoRandom = function () {
var _local1 = random(3) + 1;
blob.gotoAndStop(_local1);
};
gotoRandom();
Symbol 75 MovieClip [explode] Frame 2
gotoRandom();
Symbol 75 MovieClip [explode] Frame 3
gotoRandom();
Symbol 75 MovieClip [explode] Frame 4
gotoRandom();
Symbol 75 MovieClip [explode] Frame 5
gotoRandom();
Symbol 75 MovieClip [explode] Frame 6
gotoRandom();
Symbol 75 MovieClip [explode] Frame 7
gotoRandom();
Symbol 75 MovieClip [explode] Frame 8
gotoRandom();
Symbol 85 MovieClip [goldCoin] Frame 1
if (this._name == "bonus") {
_root.timeDelay(this);
}
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 96 MovieClip [bonus] Frame 1
stop();
Symbol 96 MovieClip [bonus] Frame 2
switch (bonusType) {
case "coin" :
_root.chingSound.start();
_root.addScore(_root.game.coinScore);
bonusText.score = _root.game.coinScore;
_root.game.coinScore = _root.game.coinScore + 1000;
break;
case "bigBasket" :
_root.game.path.basket._xscale = 175;
_root.game.path.basket._yscale = 175;
_root.game.path.basket.counter = 1000;
_root.game.path.basket.onEnterFrame = _root.basketTimer;
bonusText.score = "BIG MOUTH!";
break;
case "moves" :
bonusText.score = "+1 Move";
_root.game.movesLeft = _root.game.movesLeft + 1;
_root.movesLeft = "MOVES " + _root.game.movesLeft;
break;
case "reverse" :
_root.moveUp();
bonusText.score = "PUSH UP!";
}
Symbol 96 MovieClip [bonus] Frame 25
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkLevelCleared();
}
if (!(bonusType === "coin")) {
} else {
_root.addCoin();
}
stop();
Symbol 104 MovieClip Frame 1
_root.timeDelay(this);
Symbol 104 MovieClip Frame 2
_root.playGiggle();
Symbol 124 MovieClip Frame 1
_root.timeDelay(this);
Symbol 124 MovieClip Frame 31
_root.timeDelay(this);
Symbol 124 MovieClip Frame 37
_root.playGiggle();
Symbol 124 MovieClip Frame 71
_root.timeDelay(this);
Symbol 134 MovieClip Frame 1
_root.timeDelay(this);
Symbol 134 MovieClip Frame 35
_root.timeDelay(this);
Symbol 134 MovieClip Frame 47
_root.timeDelay(this);
Symbol 134 MovieClip Frame 73
_root.timeDelay(this);
Symbol 134 MovieClip Frame 110
_root.timeDelay(this);
Symbol 142 MovieClip Frame 1
_root.timeDelay(this);
Symbol 142 MovieClip Frame 116
_root.timeDelay(this);
Symbol 142 MovieClip Frame 120
_root.playGiggle();
Symbol 142 MovieClip Frame 236
_root.timeDelay(this);
Symbol 149 MovieClip Frame 1
_root.timeDelay(this);
Symbol 149 MovieClip Frame 33
_root.timeDelay(this);
Symbol 161 MovieClip Frame 1
_root.timeDelay(this);
Symbol 161 MovieClip Frame 2
_root.playGiggle();
Symbol 161 MovieClip Frame 31
_root.timeDelay(this);
Symbol 167 MovieClip Frame 1
this.gotoAndStop(random(6) + 1);
Symbol 167 MovieClip Frame 41
gotoAndPlay (1);
Symbol 167 MovieClip Frame 70
Symbol 167 MovieClip Frame 71
_root.createPop("green", _parent._x, _parent._y);
Symbol 167 MovieClip Frame 125
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 184 MovieClip Frame 1
_root.timeDelay(this);
Symbol 184 MovieClip Frame 145
_root.timeDelay(this);
Symbol 192 MovieClip Frame 1
_root.timeDelay(this);
Symbol 192 MovieClip Frame 104
_root.timeDelay(this);
_root.playGiggle();
Symbol 211 MovieClip Frame 1
_root.timeDelay(this);
Symbol 211 MovieClip Frame 45
_root.timeDelay(this);
Symbol 211 MovieClip Frame 51
_root.playGiggle();
Symbol 211 MovieClip Frame 128
_root.timeDelay(this);
Symbol 211 MovieClip Frame 189
_root.timeDelay(this);
Symbol 220 MovieClip Frame 1
_root.timeDelay(this);
Symbol 223 MovieClip Frame 1
this.gotoAndStop(random(5) + 1);
Symbol 223 MovieClip Frame 90
_root.createPop("red", _parent._x, _parent._y);
Symbol 223 MovieClip Frame 135
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 240 MovieClip Frame 46
_root.timeDelay(this);
Symbol 240 MovieClip Frame 47
_root.playGiggle();
Symbol 240 MovieClip Frame 146
_root.timeDelay(this);
Symbol 263 MovieClip Frame 1
_root.timeDelay(this);
Symbol 263 MovieClip Frame 85
_root.timeDelay(this);
Symbol 263 MovieClip Frame 91
_root.playGiggle();
Symbol 263 MovieClip Frame 152
_root.timeDelay(this);
Symbol 267 MovieClip Frame 1
_root.timeDelay(this);
Symbol 267 MovieClip Frame 87
_root.playGiggle();
Symbol 271 MovieClip Frame 1
_root.timeDelay(this);
Symbol 279 MovieClip Frame 1
_root.timeDelay(this);
Symbol 279 MovieClip Frame 2
_root.playGiggle();
Symbol 279 MovieClip Frame 50
_root.timeDelay(this);
Symbol 279 MovieClip Frame 129
_root.timeDelay(this);
Symbol 282 MovieClip Frame 1
this.gotoAndStop(random(5) + 1);
Symbol 282 MovieClip Frame 80
_root.createPop("blue", _parent._x, _parent._y);
Symbol 282 MovieClip Frame 114
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 302 MovieClip Frame 1
_root.timeDelay(this);
Symbol 302 MovieClip Frame 88
_root.timeDelay(this);
Symbol 306 MovieClip Frame 1
_root.timeDelay(this);
Symbol 323 MovieClip Frame 1
_root.timeDelay(this);
Symbol 331 MovieClip Frame 1
_root.timeDelay(this);
Symbol 337 MovieClip Frame 1
_root.timeDelay(this);
Symbol 337 MovieClip Frame 2
_root.playGiggle();
Symbol 356 MovieClip Frame 13
this.re;
stop();
Symbol 357 MovieClip Frame 1
this.gotoAndStop(random(5) + 1);
Symbol 357 MovieClip Frame 40
gotoAndPlay (1);
Symbol 357 MovieClip Frame 71
_root.createPop("pink", _parent._x, _parent._y);
Symbol 357 MovieClip Frame 115
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 365 MovieClip Frame 1
_root.timeDelay(this);
Symbol 365 MovieClip Frame 26
_root.playGiggle();
Symbol 381 MovieClip Frame 1
_root.timeDelay(this);
Symbol 381 MovieClip Frame 4
_root.playGiggle();
Symbol 381 MovieClip Frame 52
_root.timeDelay(this);
Symbol 408 MovieClip Frame 28
_root.timeDelay(this);
Symbol 408 MovieClip Frame 29
_root.timeDelay(this);
Symbol 408 MovieClip Frame 159
_root.playGiggle();
Symbol 413 MovieClip Frame 1
_root.timeDelay(this);
Symbol 413 MovieClip Frame 2
_root.playGiggle();
Symbol 413 MovieClip Frame 103
_root.timeDelay(this);
Symbol 431 MovieClip Frame 11
stop();
Symbol 432 MovieClip Frame 1
this.gotoAndStop(random(4) + 1);
Symbol 432 MovieClip Frame 76
stop();
Symbol 432 MovieClip Frame 77
_root.createPop("white", _parent._x, _parent._y);
Symbol 432 MovieClip Frame 115
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 441 MovieClip Frame 1
_root.timeDelay(this);
Symbol 457 MovieClip Frame 1
_root.timeDelay(this);
Symbol 457 MovieClip Frame 14
_root.playGiggle();
Symbol 463 MovieClip Frame 1
_root.timeDelay(this);
Symbol 463 MovieClip Frame 102
_root.playGiggle();
Symbol 472 MovieClip Frame 1
_root.timeDelay(this);
Symbol 472 MovieClip Frame 30
_root.playGiggle();
Symbol 475 MovieClip Frame 1
this.gotoAndStop(random(4) + 1);
Symbol 475 MovieClip Frame 40
gotoAndPlay (1);
Symbol 475 MovieClip Frame 80
_root.createPop("orange", _parent._x, _parent._y);
Symbol 475 MovieClip Frame 115
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 484 MovieClip Frame 1
_root.timeDelay(this);
Symbol 484 MovieClip Frame 98
_root.playGiggle();
Symbol 500 MovieClip Frame 1
_root.timeDelay(this);
Symbol 500 MovieClip Frame 66
_root.timeDelay(this);
_root.playGiggle();
Symbol 512 MovieClip Frame 1
_root.timeDelay(this);
Symbol 512 MovieClip Frame 67
_root.playGiggle();
Symbol 512 MovieClip Frame 132
_root.timeDelay(this);
Symbol 512 MovieClip Frame 145
_root.timeDelay(this);
Symbol 512 MovieClip Frame 234
_root.timeDelay(this);
Symbol 524 MovieClip Frame 1
_root.timeDelay(this);
Symbol 524 MovieClip Frame 145
_root.timeDelay(this);
Symbol 542 MovieClip Frame 1
_root.timeDelay(this);
Symbol 542 MovieClip Frame 35
_root.timeDelay(this);
Symbol 542 MovieClip Frame 91
_root.timeDelay(this);
Symbol 545 MovieClip Frame 1
this.gotoAndStop(random(4) + 1);
Symbol 545 MovieClip Frame 85
_root.createPop("purple", _parent._x, _parent._y);
Symbol 545 MovieClip Frame 130
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 559 MovieClip Frame 1
_root.timeDelay(this);
Symbol 573 MovieClip Frame 1
_root.timeDelay(this);
Symbol 573 MovieClip Frame 21
_root.timeDelay(this);
Symbol 573 MovieClip Frame 130
_root.timeDelay(this);
Symbol 585 MovieClip Frame 1
_root.timeDelay(this);
Symbol 588 MovieClip Frame 1
this.gotoAndStop(random(5) + 1);
Symbol 588 MovieClip Frame 80
_root.createPop("yellow", _parent._x, _parent._y);
Symbol 588 MovieClip Frame 114
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 2
_root.createPop("blue", _parent._x, _parent._y);
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this._parent.removeMovieClip();
stop();
Symbol 598 MovieClip [bubble] Frame 1
stop();
Symbol 598 MovieClip [bubble] Frame 14
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this.removeMovieClip();
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 2
function loadFinished() {
clearInterval(myStartInterval);
this.preloader.myBarAnim.gotoAndStop(100);
this.preloader.percentage.text = "100%";
_parent.play();
}
var myMinLength = 10000;
var myStartTime = getTimer();
var myStartInterval;
this.onEnterFrame = function () {
var _local8 = _root.getBytesTotal();
var _local5 = _root.getBytesLoaded();
var _local7 = (_local5 / _local8) * 100;
var _local4 = getTimer() - myStartTime;
var _local6 = (_local4 / myMinLength) * 100;
var _local3 = Math.min(_local6, _local7);
if (_local3 < 98) {
this.preloader.bar.gotoAndStop(Math.ceil(_local3));
this.preloader.percentage.text = Math.ceil(_local3) + "%";
this.preloader.myBarAnim.gotoAndStop(Math.round(_local3));
iLastBytes = _local3;
} else if (_root.Branditz.pAdDone) {
myStartInterval = setInterval(this, "loadFinished", 2000);
this.onEnterFrame = undefined;
} else if (_local4 > 30000) {
_root.Branditz.pAdDone = true;
}
};
stop();
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
_root.doAffiliates();
};
stop();
Symbol 625 MovieClip Frame 2
stop();
Symbol 633 MovieClip [Preloader] Frame 1
_root.Branditz.activateElement("intro", this);
Symbol 633 MovieClip [Preloader] Frame 2
function getPromoPaths(thisPromo) {
var _local5 = _root.Branditz.pDomain + "/branditz/promo/";
if (_root.Stattooz.pGameType == 1) {
_local5 = "http://skins.branditz.com/promo/";
}
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pController = this;
_local4.pHolder = thisPromo;
_local4.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
trace("my promo file location internal = " + this.promourl);
this.pController.attachPromotion(this.promourl, this.pHolder);
} else {
trace("my error finding promo file location internal");
_root.Branditz.pAdDone = true;
pController.gotoAndStop("show");
}
};
_local3.version = _root.Stattooz.pVersion;
_local3.url = _root._url;
_local3.gamename = _root.Stattooz.pGameName;
_local3.gametype = _root.Stattooz.pGameType;
_local3.sendAndLoad(_local5, _local4, "POST");
}
function attachPromotion(thisFile, thisHolder) {
var _local3 = new Object();
_local3.X = thisHolder._x;
_local3.Y = thisHolder._y;
_local3.pController = this;
_local3.onLoadInit = function (target_mc) {
target_mc.myX = this.X;
target_mc.myY = this.Y;
target_mc.gotoAndStop("show");
};
_local3.onLoadError = function (target_mc, errorCode, httpStatus) {
trace(">> loadListener.onLoadError()");
trace(">> ==========================");
trace(">> errorCode: " + errorCode);
trace(">> httpStatus: " + httpStatus);
_root.Branditz.pAdDone = true;
this.pController.gotoAndStop("show");
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(thisFile, thisHolder);
}
_root.Branditz.pSkipIntro = true;
_root.Branditz.pLinkWindow = (_root.Branditz.pHosted ? "_self" : "_blank");
myCanvas._alpha = 100;
myCanvas._width = Stage.width;
myCanvas._height = Stage.height;
_root.Affiliateid = _level0.affiliateId;
((((_root.Affiliateid == undefined) || (_root.Affiliateid == null)) || (_root.Affiliateid == "")) ? ((_root.Affiliateid = "9ffc8f4")) : null);
_root.AffiliateProgram = _level0.aProgram;
((((_root.AffiliateProgram == undefined) || (_root.AffiliateProgram == null)) || (_root.AffiliateProgram == "")) ? ((_root.AffiliateProgram = "fizzy")) : null);
_root.MoreGamesLink = _level0.aLink;
((((_root.MoreGamesLink == undefined) || (_root.MoreGamesLink == null)) || (_root.MoreGamesLink == "")) ? ((_root.MoreGamesLink = "http://www.fizzy.com?a_aid=" + _root.Affiliateid)) : (_root.MoreGamesLink));
_root.BuyGameLink = (_root.Branditz.pHosted ? ((_root.Branditz.pDomain + "games/") + _root.Branditz.pGameName) : ("http://www.fizzy.com/games/" + _root.Branditz.pGameName));
_root.doMoreGames = function () {
if (!_root.MoreGamesClicked) {
_root.MoreGamesClicked = true;
_root.Stattooz.reportEvent("moregames");
}
_root.getURL(_root.MoreGamesLink, _root.Branditz.pLinkWindow);
};
_root.doBuyGame = function () {
_root.Stattooz.reportEvent("moregames");
_root.getURL(_root.BuyGameLink, _root.Branditz.pLinkWindow);
};
_root.doAffiliates = function () {
_root.Stattooz.reportEvent("moregames");
var _local2 = "http://www.fizzy.com/affiliates?a_aid=" + _root.Affiliateid;
_root.getURL(_local2, _root.Branditz.pLinkWindow);
};
stop();
Instance of Symbol 617 MovieClip in Symbol 633 MovieClip [Preloader] Frame 2
on (release) {
_root.doMoreGames();
}
Instance of Symbol 622 MovieClip "myPromotionHolder" in Symbol 633 MovieClip [Preloader] Frame 2
on (rollOver) {
_parent.myPromotionTile.gotoAndStop(2);
}
on (rollOut) {
_parent.myPromotionTile.gotoAndStop(1);
}
on (release) {
_root.doMoreGames();
}
Instance of Symbol 625 MovieClip in Symbol 633 MovieClip [Preloader] Frame 2
onClipEvent (load) {
if (_root.AffiliateProgram != "fizzy") {
this._visible = false;
}
}
Symbol 633 MovieClip [Preloader] Frame 27
stop();
_root.checkPirate();
Symbol 938 MovieClip [__Packages.branditz] Frame 0
class branditz
{
var pPreLoadCount, pVersion, pGameName, pGameType, pGameWidth, pGameHeight, pStartFunction, pLoadedList, pLoaded, pLoadWhenCached, pCacheKiller, pBreak, pBreakID, pDomain, pRequestAddress, pElements, pPreLoadingHolder, pPreloadComments, pSkinPath;
function branditz (thisGameName, thisGameType, thisGameWidth, thisGameHeight, thisStartFunction) {
function itemHandler1(obj, item) {
getURL (("http://www.fizzy.com/games/" + _root.Stattooz.pGameName) + "/play");
}
trace("INSTANCE CREATED - BRANDITZ");
_root.mySandbox.text = "Sandbox = " + System.security.sandboxType;
pPreLoadCount = 0;
pVersion = 2;
pGameName = thisGameName;
pGameType = thisGameType;
pGameWidth = thisGameWidth;
pGameHeight = thisGameHeight;
pStartFunction = thisStartFunction;
System.security.allowDomain("*");
pLoadedList = [];
pLoaded = false;
pLoadWhenCached = false;
pCacheKiller = "";
pBreak = false;
pBreakID = setInterval(this, "serverTimer", 20000);
pDomain = getDomain(_root._url);
createLoadComments();
if (Number(thisGameType) == 1) {
pRequestAddress = "http://skins.branditz.com";
} else if (pDomain != "default") {
pRequestAddress = pDomain + "branditz/";
} else {
pRequestAddress = "http://skins.branditz.com";
}
if (_root._url.slice(0, 4) != "file") {
pCacheKiller = "?cache=" + Math.random();
}
var _local3 = new ContextMenu();
_local3.hideBuiltInItems();
if (Number(thisGameType) == 1) {
var _local4 = new ContextMenuItem("Play the full version of this game!", itemHandler1);
_local3.customItems.push(_local4);
}
_root.menu = _local3;
getRemotePaths();
}
function getRemotePaths() {
trace("GET REMOTE PATHS");
var _local3 = new LoadVars();
var _local5 = new LoadVars();
_local5.pController = this;
var _local6 = pRequestAddress;
_root.myFeedback.text = _root.myFeedback.text + (("OPENING: " + pRequestAddress) + newline);
_local5.onLoad = function (success) {
_root.myFeedback.text = _root.myFeedback.text + ((" SUCCESS = " + success) + newline);
if (success) {
trace("RETURN PROPS: ");
for (var _local3 in this) {
trace((("REURN PROPERTY " + _local3) + " = ") + this[_local3]);
}
this.pController.pSkinPath = this.skinurl;
this.pController.pElements = this.elements.split(",");
this.pController.pHosted = Boolean(Number(this.hosted));
this.pController.pBuy = Boolean(Number(this.buy));
_root.myFeedback.text = _root.myFeedback.text + ((" LOADED " + this) + newline);
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
if (((this.pController.pSkinPath == undefined) || (this.pController.pSkinPath == "noskin")) || (this.pController.pElements.length < 1)) {
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
} else {
this.pController.preloadElements();
}
} else {
_root.myFeedback.text = _root.myFeedback.text + " ERROR - \r";
this.pController.pStartFunction(this.pController.pSkinPath, this.pController.pDomain);
_root.pStattooz.reportEvent("patherror");
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
}
};
trace("REQUEST LOCATION = " + pRequestAddress);
_local3.version = pVersion;
_local3.url = _root._url;
_local3.gamename = pGameName;
_local3.gametype = pGameType;
trace("PROPS SENT :");
for (var _local4 in _local3) {
trace((("DATA TO SEND " + _local4) + " = ") + _local3[_local4]);
}
_local3.sendAndLoad(_local6, _local5, "POST");
}
function preloadElements() {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = (pPreLoadingHolder = _root.createEmptyMovieClip("myBrandingLoader", _root.getNextHighestDepth()));
_local3._xscale = 1;
_local3._yscale = 1;
_local3._x = -1000;
_local3._y = -1000;
_local3._alpha = 0;
preloadNext(pPreLoadingHolder);
} else {
trace((("I AM NOT PRELOADING! - Elements = " + pElements.length) + ". pBreak = ") + pBreak);
_root.skin_loading_text.removeTextField();
_root.gotoAndStop("preloader");
}
}
function preloadElement(thisElement, thisContainer) {
trace("LOAD ELEMENT - " + thisElement);
_root.skin_loading_text.text = pPreloadComments[pPreLoadCount];
var _local5 = thisContainer.createEmptyMovieClip(thisElement + "Holder", thisContainer.getNextHighestDepth());
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.myContainer = thisContainer;
_local3.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
_root.myLoadingText.text = "LOADING:" + thisElement;
};
_local3.onLoadInit = function (thisClip) {
trace("BRANDING ELEMENT PRELOADED: " + thisClip);
this.myController.addToLoaded(this.myElement);
this.myController.preloadNext(this.myContainer);
};
_local3.onLoadError = function (thisClip) {
trace("PRELOAD ERROR - " + this.myElement);
this.myController.preloadNext(this.myContainer);
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
var _local6 = (pSkinPath + thisElement) + ".swf";
_local4.loadClip(_local6, _local5);
pPreLoadCount++;
}
function preloadNext(thisContainer) {
if ((pElements.length > 0) && (!pBreak)) {
var _local3 = pElements.splice(0, 1)[0];
preloadElement(_local3, pPreLoadingHolder);
} else {
_root.skin_loading_text.removeTextField();
pPreLoadingHolder.removeMovieClip();
pLoaded = true;
_root.gotoAndStop("preloader");
}
}
function reportHttpStatus(thisStatusNumber) {
var _local1;
if (thisStatusNumber < 100) {
_local1 = "flashError";
} else if (thisStatusNumber < 200) {
_local1 = "informational";
} else if (thisStatusNumber < 300) {
_local1 = "successful";
} else if (thisStatusNumber < 400) {
_local1 = "redirection";
} else if (thisStatusNumber < 500) {
_local1 = "clientError";
} else if (thisStatusNumber < 600) {
_local1 = "serverError";
} else if (thisStatusNumber == undefined) {
_local1 = "File Not found";
}
return(_local1);
}
function addToLoaded(thisElement) {
pLoadedList.push(thisElement);
}
function serverTimer() {
trace("TIMER FINISHED");
if (!pLoaded) {
trace("NOT LOADED");
pBreak = true;
}
clearInterval(pBreak);
}
function createLoadComments() {
var _local5 = 25;
var _local4 = _root.createTextField("skin_loading_text", _root.getNextHighestDepth(), 0, (pGameHeight / 2) - (_local5 / 2), pGameWidth, _local5);
_local4.selectable = false;
var _local3 = new TextFormat();
_local3.font = "Arial";
_local3.size = 18;
_local3.color = 16737843 /* 0xFF6633 */;
_local3.align = "center";
_local4.setNewTextFormat(_local3);
_local4.text = "preparing fizzy game...";
pPreloadComments = new Array();
pPreloadComments.push("Harnessing the gas");
pPreloadComments.push("Inflating the bubbles");
pPreloadComments.push("Adding the juice");
pPreloadComments.push("Starting the mixer");
pPreloadComments.push("Shaking, not stirring");
pPreloadComments.push("Getting ready to serve...");
}
function activateElement(thisElement, thisHolder, thisForce) {
if (isInArray(thisElement, pLoadedList) || (thisForce)) {
var _local3 = new Object();
_local3.myController = this;
_local3.myElement = thisElement;
_local3.X = thisHolder._x;
_local3.Y = thisHolder._y;
_local3.onLoadInit = function (thisClip) {
_root.myFeedback.text = "Load success - " + this.myElement;
thisClip.myX = this.X;
thisClip.myY = this.Y;
thisClip.gotoAndStop("show");
};
var _local5 = new MovieClipLoader();
_local5.addListener(_local3);
trace((((thisElement + " PATH = ") + pSkinPath) + thisElement) + ".swf");
_local5.loadClip(((pSkinPath + thisElement) + ".swf") + pCacheKiller, thisHolder);
}
}
function isInArray(thisItem, thisArray) {
var _local2 = false;
for (var _local3 in thisArray) {
if (thisArray[_local3] == thisItem) {
_local2 = true;
break;
}
}
return(_local2);
}
function getDomain(thisUrl) {
var _local2;
var _local3 = thisUrl.split(":")[0];
switch (_local3) {
case "http" :
case "https" :
var _local1 = thisUrl.split("/");
_local2 = ((((_local1[0] + "/") + _local1[1]) + "/") + _local1[2]) + "/";
break;
default :
_local2 = "default";
}
return(_local2);
}
}
Symbol 939 MovieClip [__Packages.expressinstall] Frame 0
class expressinstall
{
var needsUpdate, updater, hold;
function expressinstall () {
needsUpdate = ((_root.MMplayerType == undefined) ? false : true);
}
function init() {
if (needsUpdate) {
loadUpdater();
return(true);
}
return(false);
}
function loadUpdater() {
System.security.allowDomain("fpdownload.macromedia.com");
updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
var _self = this;
updater.installStatus = _self.onInstallStatus;
hold = updater.createEmptyMovieClip("hold", 1);
updater.onEnterFrame = function () {
if (typeof(this.hold.startUpdate) == "function") {
_self.initUpdater();
this.onEnterFrame = null;
}
};
var _local3 = Math.random();
hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + _local3);
}
function initUpdater() {
hold.redirectURL = _root.MMredirectURL;
hold.MMplayerType = _root.MMplayerType;
hold.MMdoctitle = _root.MMdoctitle;
hold.startUpdate();
}
function onInstallStatus(msg) {
if (msg == "Download.Complete") {
} else if (msg == "Download.Cancelled") {
getURL ("javascript:alert('This content requires a more recent version of the Macromedia Flash Player.')");
} else if (msg == "Download.Failed") {
getURL ("javascript:alert('There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin.')");
}
}
}
Symbol 940 MovieClip [__Packages.stattooz] Frame 0
class stattooz
{
var pGameName, pDeveloper, pGenre, pGameType, pGameSkin, pThreshold, pDomain, pAllowedDomains, pPlayer, pGameUrl, pStatsPath;
function stattooz (thisGameName, thisDeveloper, thisGenre, thisGameType, thisGameSkin, thisPlayer, thisThreshold, thisDomain) {
trace("INSTANCE CREATED - STATTOOZ");
pGameName = thisGameName;
pDeveloper = thisDeveloper;
pGenre = thisGenre;
pGameType = thisGameType;
pGameSkin = thisGameSkin;
pThreshold = thisThreshold;
pDomain = thisDomain;
pAllowedDomains = getAllowedDomains();
if (pGameSkin == undefined) {
pGameSkin = "noskin";
}
pPlayer = thisPlayer;
if ((thisPlayer != "activate") && (thisPlayer != "nopirate")) {
pPlayer = System.capabilities.playerType;
}
pGameUrl = _root._url;
pStatsPath = "http://log.stattooz.com";
}
function getAllowedDomains() {
var _local1 = new Array();
_local1.push("http://developer.fizzy.jonathan.3rdsense.local/");
_local1.push("http://developer.fizzy.steve.3rdsense.local/");
_local1.push("http://developer.fizzy.3rdsense.local/");
_local1.push("http://developer.fizzy.deej.3rdsense.local/");
_local1.push("http://developers.fizzy.com/");
_local1.push("http://www.fizzy.com/");
_local1.push("http://www.3rdsense.com/");
_local1.push("http://admin.3rdsense.com/");
_local1.push("http://fizzy.deej.3rdsense.local/");
_local1.push("http://fizzy.steve.3rdsense.local/");
_local1.push("http://fizzy.jonathan.3rdsense.local/");
_local1.push("http://fizzy.3rdsense.local/");
_local1.push("http://fizzy.gamedev.3rdsense.local/");
_local1.push("http://localhost/");
return(_local1);
}
function isDomainAllowed() {
trace("MY DOMAIN = " + _url);
var _local3 = false;
for (var _local4 in pAllowedDomains) {
var _local2 = pAllowedDomains[_local4];
if (_url.indexOf(_local2, 0) == 0) {
_local3 = true;
}
}
trace("DOMAIN ALLOWED = " + _local3);
return(_local3);
}
function reportEvent(thisEventName) {
if (pPlayer != "External") {
var _local2 = getEventId(thisEventName);
sendStat(_local2);
}
}
function sendStat(thisEventID) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local4.pEvent = thisEventID;
_local4.pController = this;
_local4.onLoad = function (success) {
var _local3;
if (success) {
if (this.done == "true") {
_local3 = (("SUCCESS - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Done = ") + this.done;
}
} else {
_local3 = (("ERROR - Stat Reporting - Event: " + this.pEvent) + " Log file not located: ") + this.pStatsPath;
}
_root.myFeedback.text = _root.myFeedback.text + (_local3 + newline);
};
_local3.skin = pGameSkin;
_local3.gamename = pGameName;
_local3.genre = pGenre;
_local3.developer = pDeveloper;
_local3.url = pGameUrl;
_local3.event = thisEventID;
_local3.type = pGameType;
_local3.sendAndLoad(pStatsPath, _local4, "POST");
}
function getEventId(thisEventName) {
var _local1;
if (!isNaN(Number(thisEventName))) {
_local1 = thisEventName;
} else {
switch (thisEventName) {
case "load" :
_local1 = 1;
break;
case "play" :
_local1 = 2;
break;
case "endpass" :
_local1 = 3;
break;
case "endfail" :
_local1 = 4;
break;
case "submit" :
_local1 = 5;
break;
case "moregames" :
_local1 = 6;
break;
case "creditsview" :
_local1 = 7;
break;
case "creditsthrough" :
_local1 = 8;
break;
case "pirate" :
_local1 = 9;
break;
case "patherror" :
_local1 = 10;
break;
case "skinerror" :
_local1 = 11;
break;
default :
_local1 = 0;
}
}
return(_local1);
}
}
Symbol 643 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 643 MovieClip Frame 2
stop();
Symbol 644 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 2
stop();
Symbol 651 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 651 MovieClip Frame 2
stop();
Symbol 653 MovieClip Frame 1
_root.Branditz.activateElement("pirate", this);
stop();
Instance of Symbol 643 MovieClip in Symbol 653 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Instance of Symbol 644 MovieClip in Symbol 653 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.doMoreGames();
}
Instance of Symbol 651 MovieClip in Symbol 653 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Symbol 658 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 2
stop();
Symbol 662 MovieClip Frame 1
stop();
Symbol 662 MovieClip Frame 2
stop();
Symbol 662 MovieClip Frame 3
stop();
Symbol 663 MovieClip Frame 1
_root.pSound = "on";
_root.toggleSound = function () {
var _local2 = new Sound();
if (_root.pSound == "on") {
_local2.setVolume(0);
_root.pSound = "off";
} else {
_local2.setVolume(100);
_root.pSound = "on";
}
return(_root.pSound);
};
_root.pGraphics = "med";
_root.toggleGraphics = function () {
switch (_root.pGraphics) {
case "high" :
_root.pGraphics = "low";
_root._quality = "LOW";
break;
case "med" :
_root.pGraphics = "high";
_root._quality = "BEST";
break;
case "low" :
_root.pGraphics = "med";
_root._quality = "MEDIUM";
break;
}
return(_root.pGraphics);
};
Instance of Symbol 658 MovieClip in Symbol 663 MovieClip Frame 1
onClipEvent (load) {
var myFrame = _root.pSound;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (release) {
var myFrame = _root.toggleSound();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Instance of Symbol 662 MovieClip in Symbol 663 MovieClip Frame 1
onClipEvent (load) {
var myFrame = _root.pGraphics;
trace("graphics load = " + myFrame);
this.gotoAndStop(myFrame);
}
on (release) {
var myFrame = _root.toggleGraphics();
trace(myFrame);
this.gotoAndStop(myFrame);
}
Symbol 674 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 680 Button
on (release) {
gotoAndStop ("giglys");
}
Symbol 685 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 685 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 1
_root.Branditz.activateElement("moregames", this);
if (_root.Branditz.pBuy) {
this.myButtonText.text = "BUY THIS GAME";
}
Instance of Symbol 685 MovieClip in Symbol 687 MovieClip Frame 1
on (rollOver) {
gotoAndStop (1);
}
on (release) {
if (!this.clicked) {
if (_root.Branditz.pBuy) {
_root.doMoreGames();
} else {
_root.doBuyGame();
}
this.clicked = true;
}
}
on (rollOut) {
gotoAndPlay (2);
}
Symbol 715 Button
on (release) {
gotoAndStop ("splash");
}
Symbol 726 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 726 MovieClip Frame 2
stop();
Symbol 736 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 736 MovieClip Frame 2
stop();
Symbol 737 MovieClip Frame 1
_root.Stattooz.reportEvent("creditsview");
_root.Branditz.activateElement("credits", this);
myCanvas._width = Stage.width;
myCanvas._height = Stage.height;
myDeveloperName.text = _root.Stattooz.pDeveloper;
myDeveloperButton.onRelease = function () {
var _local2 = "http://www.fizzy.com/developers/profile/" + _root.Stattooz.pDeveloperMachineName;
_root.getURL(_local2, "_blank");
_root.Stattooz.reportEvent("creditsthrough");
};
Instance of Symbol 726 MovieClip "myBackButton" in Symbol 737 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 736 MovieClip in Symbol 737 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Symbol 742 Button
on (release) {
gotoAndPlay ("nextFrame");
}
Symbol 781 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 40
stop();
Symbol 781 MovieClip Frame 80
stop();
Symbol 781 MovieClip Frame 120
stop();
Symbol 781 MovieClip Frame 160
stop();
Symbol 781 MovieClip Frame 200
stop();
Symbol 781 MovieClip Frame 240
stop();
Symbol 781 MovieClip Frame 280
stop();
Symbol 781 MovieClip Frame 320
stop();
Symbol 781 MovieClip Frame 360
gotoAndStop (1);
Symbol 788 MovieClip Frame 1
_quality = "MEDIUM";
_global.quality = "medium";
stop();
Symbol 788 MovieClip Frame 2
_quality = "HIGH";
_global.quality = "high";
stop();
Symbol 788 MovieClip Frame 3
_quality = "LOW";
_global.quality = "low";
stop();
Symbol 788 MovieClip Frame 4
_quality = "MEDIUM";
_global.quality = "medium";
gotoAndStop (1);
Symbol 791 Button
on (release) {
_global.sounds = false;
gotoAndPlay (3);
}
Symbol 793 Button
on (release) {
_global.sounds = true;
gotoAndPlay (1);
}
Symbol 794 MovieClip Frame 1
if (_global.sounds == false) {
gotoAndPlay (3);
}
var tempSound = new Sound();
tempSound.setVolume(100);
Symbol 794 MovieClip Frame 2
stop();
Symbol 794 MovieClip Frame 3
if (_global.sounds == true) {
gotoAndPlay (1);
}
var tempSound = new Sound();
tempSound.setVolume(0);
Symbol 794 MovieClip Frame 4
stop();
Symbol 796 Button
on (release) {
cpuspeed.nextFrame();
}
Symbol 820 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 5
stop();
Symbol 820 MovieClip Frame 10
stop();
Symbol 820 MovieClip Frame 15
stop();
Symbol 821 MovieClip Frame 1
stop();
Symbol 821 MovieClip Frame 6
stop();
Symbol 821 MovieClip Frame 11
gotoAndStop (1);
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 5
this.onEnterFrame = function () {
play();
};
Symbol 828 MovieClip Frame 9
bubble.gotoAndStop(_root.game.actColour);
Symbol 828 MovieClip Frame 12
this.onEnterFrame = null;
Symbol 828 MovieClip Frame 13
bubble.gotoAndStop(_root.game.actColour);
_root.vine.spew.gotoAndPlay("spew");
_root.shootingEnabled();
stop();
Symbol 828 MovieClip Frame 17
stop();
Instance of Symbol 821 MovieClip "basket" in Symbol 831 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (mouseMove) {
this._x = _parent._xmouse;
if (this._x < 12.5) {
this._x = 12.5;
}
if (this._x > 304) {
this._x = 304;
}
updateAfterEvent();
}
Symbol 838 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 2
play();
Symbol 838 MovieClip Frame 51
_root.game.path.arrow.gotoAndPlay("reload");
gotoAndStop (1);
Symbol 838 MovieClip Frame 95
_root.vine.spew.gotoAndStop(1);
_root.loadLevel();
Symbol 838 MovieClip Frame 181
_root.gigglyPopsSong.stop();
_root.gotoAndPlay("gameover");
stop();
Instance of Symbol 847 MovieClip in Symbol 848 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(200000);
}
Symbol 855 MovieClip Frame 1
stop();
Symbol 862 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 2
nextBubbleHold.gotoAndStop(_root.game.nextBubble);
Symbol 881 MovieClip Frame 4
_root.vine.spew.head.gotoAndStop(10);
Symbol 881 MovieClip Frame 6
_root.vine.spew.head.gotoAndStop(5);
Symbol 881 MovieClip Frame 9
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 14
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 16
_root.vine.spew.head.gotoAndStop(1);
Symbol 881 MovieClip Frame 27
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 28
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
stop();
Symbol 881 MovieClip Frame 29
onEnterFrame = function () {
play();
};
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 31
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 33
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 35
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 37
onEnterFrame = null;
Symbol 881 MovieClip Frame 38
_root.game.path.arrow.gotoAndPlay("reload");
Symbol 881 MovieClip Frame 43
nextBubble.gotoAndStop(nextBubbleHold._currentframe);
Symbol 881 MovieClip Frame 51
stop();
nextBubbleHold.gotoAndStop(_root.game.nextBubble);
Symbol 890 MovieClip Frame 1
stop();
Instance of Symbol 885 MovieClip in Symbol 891 MovieClip Frame 1
onClipEvent (load) {
this.counter = 0;
}
onClipEvent (enterFrame) {
var ranNum = (Math.random() * 1000);
if (ranNum <= 50) {
this.counter = random(123);
}
if (counter > 0) {
this.play;
} else {
this.stop();
}
this.counter = this.counter - 1;
}
Symbol 908 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 908 MovieClip Frame 2
stop();
Symbol 909 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 2
stop();
Symbol 915 MovieClip Frame 1
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
stop();
Symbol 915 MovieClip Frame 2
stop();
Symbol 918 MovieClip Frame 1
stop();
Instance of Symbol 915 MovieClip in Symbol 918 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 915 MovieClip in Symbol 918 MovieClip Frame 1
on (release) {
_root.doMoreGames();
}
Instance of Symbol 915 MovieClip in Symbol 922 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Instance of Symbol 915 MovieClip in Symbol 922 MovieClip Frame 1
on (release) {
getURL ((("https://www.fizzy.com/buy/start/" + _root.Stattooz.pGameName) + "?a_aid=") + _root.Affiliateid);
}
Symbol 924 MovieClip Frame 1
stop();
Instance of Symbol 915 MovieClip in Symbol 924 MovieClip Frame 1
on (release) {
_root.playAgain();
}
Symbol 925 MovieClip Frame 1
_root.Branditz.activateElement("gameover", this);
if (_root.score >= _root.Stattooz.pThreshold) {
_root.Stattooz.reportEvent("endpass");
} else {
_root.Stattooz.reportEvent("endfail");
}
switch (Number(_root.Stattooz.pGameType)) {
case 1 :
this.gotoAndStop("promo");
break;
case 2 :
this.gotoAndStop("ftp");
break;
case 4 :
this.gotoAndStop("demo");
}
stop();
Instance of Symbol 908 MovieClip in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
if (_root.AffiliateProgram != "fizzy") {
this._visible = false;
}
}
on (release) {
_root.doAffiliates();
}
Instance of Symbol 909 MovieClip in Symbol 925 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_root.doMoreGames();
}
Symbol 925 MovieClip Frame 10
stop();
Symbol 925 MovieClip Frame 20
stop();
Symbol 929 MovieClip Frame 1
this.gotoAndStop(random(8) + 1);
Symbol 929 MovieClip Frame 14
_root.game.nextMoveCount = _root.game.nextMoveCount - 1;
if (_root.game.nextMoveCount == 0) {
_root.checkMoves();
_root.checkLevelCleared();
}
this.removeMovieClip();
stop();
Symbol 937 MovieClip Frame 1
score = _root.game.score;
Symbol 937 MovieClip Frame 117
stop();