Frame 1
SPONSOR_URL = "http://www.notdoppler.com";
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("a558dba1", this, 10301, true);
qws.onPress = function () {
getURL (SPONSOR_URL, "_blank");
};
function HSERROR() {
if ((_root._currentframe == 7) || (_root._currentframe == 8)) {
_root._err._visible = true;
_root.interval = setInterval(_root.goback, 4000);
_root.ERROR_ = true;
_root.d.d.text = _root.d.d.text + _root.ERROR_;
}
}
function goback() {
_root.cleanup(true);
clearInterval(_root.interval);
_root.gotoAndStop(4);
}
function setQualityHigh() {
_root._quality = "HIGH";
settings.qualityText.text = "H";
}
function setQualityMedium() {
_root._quality = "MEDIUM";
_root.settings.qualityText.text = "M";
}
function setQualityLow() {
_root._quality = "LOW";
_root.settings.qualityText.text = "L";
}
function limitFrame(fTime) {
while (Math.abs(newT - oldT) < fTime) {
newT = getTimer();
}
oldT = getTimer();
}
function updateFrameRate() {
if (counter == updateRate) {
var _local3 = getTimer();
var _local4 = (_local3 - startTime) / 1000;
var _local2 = updateRate / _local4;
_local2 = Math.floor(_local2 * precision) / precision;
_root.fps_txt.text = "FPS: " + _local2;
startTime = _local3;
counter = 1;
} else {
counter++;
}
}
mochi.MochiServices.connect("a2fd594c067cb302", _root, HSERROR);
this.onEnterFrame = function () {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
loadtext.loadingtext.text = Math.round((loaded * 100) / total) + "%";
if (total == loaded) {
this.onEnterFrame = null;
pla._visible = true;
loadtext._visible = false;
}
};
stop();
var my_cm = new ContextMenu();
for (eachProp in my_cm.builtInItems) {
my_cm.builtInItems[eachProp] = false;
}
var menuItem_cmi = new ContextMenuItem("Quality: HIGH", setQualityHigh);
my_cm.customItems.push(menuItem_cmi);
var menuItem_cmi = new ContextMenuItem("Quality: MEDIUM", setQualityMedium);
my_cm.customItems.push(menuItem_cmi);
var menuItem_cmi = new ContextMenuItem("Quality: LOW", setQualityLow);
my_cm.customItems.push(menuItem_cmi);
this.menu = my_cm;
pla._visible = false;
var CPMStarPoolID = 1377;
var CPMStarSubPoolID = 401;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
var counter = 1;
var startTime = getTimer();
var updateRate = 6;
var precision = 1;
precision = Math.pow(10, precision);
_root.createTextField("fps_txt", 99, 490, 5, 100, 22).selectable = false;
fps_txt._visible = false;
FPS = 31;
FRAME_LIMIT = 1000 / FPS;
var fpss = _root.createEmptyMovieClip("fpss", 100);
oldT = getTimer();
newT = oldT;
fpss.onEnterFrame = function () {
_root.updateFrameRate();
limitFrame(FRAME_LIMIT);
};
pla.pla.onPress = function () {
_root.gotoAndPlay(2);
};
Frame 2
Frame 3
function NEXT() {
music.start();
fpss.onEnterFrame = function () {
_root.updateFrameRate();
limitFrame(FRAME_LIMIT);
};
_root.gotoAndStop(4);
}
MUTE = false;
MAXLEVEL = 1;
var secondOffset = getTimer();
var music = new Sound();
music.attachSound("MUSIC");
music.onSoundComplete = function () {
if (!MUTE) {
music.start();
secondOffset = getTimer();
}
};
MovieClip.prototype.drawWedge = function (x, y, startAngle, arc, radius, yRadius) {
if (arguments.length < 5) {
return(undefined);
}
this.moveTo(x, y);
if (yRadius == undefined) {
yRadius = radius;
}
var _local20;
var _local3;
var _local4;
var _local6;
var _local15;
var _local19;
var _local18;
var _local14;
var _local12;
var _local13;
var _local11;
if (Math.abs(arc) > 360) {
arc = 360;
}
_local15 = Math.ceil(Math.abs(arc) / 45);
_local20 = arc / _local15;
_local3 = (-(_local20 / 180)) * Math.PI;
_local4 = (-(startAngle / 180)) * Math.PI;
if (_local15 > 0) {
_local19 = x + (Math.cos((startAngle / 180) * Math.PI) * radius);
_local18 = y + (Math.sin(((-startAngle) / 180) * Math.PI) * yRadius);
this.lineTo(_local19, _local18);
var _local5 = 0;
while (_local5 < _local15) {
_local4 = _local4 + _local3;
_local6 = _local4 - (_local3 / 2);
_local14 = x + (Math.cos(_local4) * radius);
_local12 = y + (Math.sin(_local4) * yRadius);
_local13 = x + (Math.cos(_local6) * (radius / Math.cos(_local3 / 2)));
_local11 = y + (Math.sin(_local6) * (yRadius / Math.cos(_local3 / 2)));
this.curveTo(_local13, _local11, _local14, _local12);
_local5++;
}
this.lineTo(x, y);
}
};
stop();
fpss.onEnterFrame = null;
Frame 4
stop();
spnsr.onPress = function () {
getURL (_root.SPONSOR_URL, "_blank");
};
submit = false;
removeMovieClip(noclick);
removeMovieClip(qws);
Frame 5
stop();
qws.qws.onPress = function () {
mouseBubble.completed = true;
mousedown = false;
if ((((!PAUSE1) && (!PAUSE2)) && (!PAUSE3)) && (!BONUSSTAGE)) {
PAUSE1 = !PAUSE1;
pausedClip._visible = PAUSE1;
}
getURL (SPONSOR_URL, "_blank");
};
function drawBonusTimer() {
bonusTimer.clear();
bonusTimer.lineStyle(2, 2236962);
bonusTimer.beginFill(15658734, 75);
bonusTimer.drawWedge(0, 0, 90, (BONUSTIME / 900) * 360, 37.5);
bonusTimer.endFill();
}
function incScore(amount) {
SCORE = com.meychi.ascrypt.Base64.encode((parseInt(com.meychi.ascrypt.Base64.decode(SCORE)) + amount).toString());
}
function setScore(amount) {
SCORE = com.meychi.ascrypt.Base64.encode(amount.toString());
}
function getScore() {
return(parseInt(com.meychi.ascrypt.Base64.decode(SCORE)));
}
function getLevelGoal(lvl) {
if (lvl <= levelgoals.length) {
return(levelgoals[lvl - 1]);
}
return(((lvl - 11) * 100000) + 300000);
}
function demoBubble() {
var _local1 = holder.attachMovie("bubble", "bubble" + holder.getNextHighestDepth(), holder.getNextHighestDepth());
_local1.cacheAsBitmap = true;
bubbleType(_local1, getSpecialBubble(LEVEL));
_local1._width = (_local1._height = 50);
_local1.poppable = true;
_local1.completed = true;
var _local3 = random(10);
if (Math.random() < 0.5) {
_local3 = -_local3;
}
var _local2 = random(10);
if (Math.random() < 0.5) {
_local2 = -_local2;
}
_local1._x = 275 + _local3;
_local1._y = (400 + _local2) + (_local1._width / 2);
_local1.speed = (Math.random() * 3) + 1;
_local1.angle = (Math.random() * Math.PI) * 2;
_local1.x = _local1.speed * Math.cos(_local1.angle);
_local1.y = _local1.speed * Math.sin(_local1.angle);
_local1.onEnterFrame = bubbleFrame;
}
function formatNumber(_score) {
var _local3 = _score.toString();
var _local2 = "";
var _local1 = _local3.length - 1;
while (_local1 >= 0) {
_local2 = _local3.slice(_local1, _local1 + 1) + _local2;
if ((((_local3.length - _local1) % 3) == 0) && (_local1 != 0)) {
_local2 = "," + _local2;
}
_local1--;
}
return(_local2);
}
function levelup(fromBonus) {
CURRENTLIVESPERLEVEL = 0;
qws.swapDepths(99999999);
_root.popup.useHandCursor = false;
if (isBonus(LEVEL) && (!fromBonus)) {
WTF = true;
BONUSSTAGE = true;
BONUSCOUNT = 0;
BONUSTIME = 900;
bonusTimer.countText.text = "0";
_root.bonusTimer._visible = false;
} else {
LEVEL++;
LEVELGOAL = getLevelGoal(LEVEL);
bubbleCount = bubbleCount + getLiveInc(LEVEL);
if (LEVEL > MAXLEVEL) {
MAXLEVEL = LEVEL;
}
setBubblesFreq();
}
JUNK = true;
PAUSE3 = true;
black._visible = true;
black._alpha = 0;
if (fromBonus != true) {
black.gotoAndStop(1);
} else {
black.gotoAndStop(2);
}
if (fromBonus != true) {
black.onEnterFrame = function () {
this._alpha = this._alpha + 3;
if (this._alpha >= 100) {
_root.WTF = false;
_root.levelCounter = 0;
_root.POWERUP_FREEZE = 0;
_root.POWERUP_POINTS = 0;
_root.POWERUP_SPEED = 0;
_root.POWERUP_SLOW = 0;
_root.JKL = true;
for (var _local3 in _root.holder) {
if (MovieClip(_root.holder[_local3])) {
removeMovieClip(_root.holder[_local3]);
}
}
if (_root.BONUSSTAGE) {
_root.bonusTimer._visible = true;
_root.PAUSE2 = true;
_root.popup.gotoAndStop("bonus");
_root.popup._visible = true;
} else if (_root.getLevelText(_root.LEVEL) != null) {
_root.PAUSE2 = true;
_root.popup.gotoAndStop(_root.getLevelText(_root.LEVEL));
_root.popup._visible = true;
}
_root.JUNK = false;
this.onEnterFrame = null;
this.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
_root.JKL = false;
_root.PAUSE3 = false;
this._visible = false;
_root.popup.useHandCursor = true;
this.onEnterFrame = null;
}
};
}
};
} else {
black.onEnterFrame = function () {
this._alpha = this._alpha + 3;
if (this._alpha >= 200) {
_root.levelCounter = 0;
_root.POWERUP_FREEZE = 0;
_root.POWERUP_POINTS = 0;
_root.POWERUP_SPEED = 0;
_root.POWERUP_SLOW = 0;
_root.JKL = true;
_root.BONUSSTAGE = false;
_root.bonusTimer._visible = false;
for (var _local3 in _root.holder) {
if (MovieClip(_root.holder[_local3])) {
removeMovieClip(_root.holder[_local3]);
}
}
if (_root.getLevelText(_root.LEVEL) != null) {
_root.PAUSE2 = true;
_root.popup.gotoAndStop(_root.getLevelText(_root.LEVEL));
_root.popup._visible = true;
}
_root.JUNK = false;
this.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
_root.JKL = false;
_root.BONUSSTAGE = false;
_root.popup.useHandCursor = true;
_root.PAUSE3 = false;
this._visible = false;
this.onEnterFrame = null;
}
};
}
};
}
mouseBubble.completed = true;
}
function bubbleFrame() {
if (!_root.PAUSE) {
if (this.completed) {
if (!this.poppable) {
if (this.vol == undefined) {
this.vol = Math.pow(this._width / 2, 3);
var _local3 = Math.round(this.vol / 100);
if (_root.POWERUP_POINTS) {
_root.incScore(_local3 * 2);
} else {
_root.incScore(_local3);
}
_root.BIGGEST = ((_local3 > _root.BIGGEST) ? (_local3) : (_root.BIGGEST));
_root.ui.scoreText.text = (_root.formatNumber(_root.getScore()) + "/") + _root.formatNumber(_root.LEVELGOAL);
var _local5 = false;
if (_root.getScore() >= _root.LEVELGOAL) {
_root.levelup();
_local5 = true;
}
var _local4 = _root.holder.attachMovie("pointsBox", "pointsBox" + _root.holder.getNextHighestDepth(), _root.holder.getNextHighestDepth());
_local4.cacheAsBitmap = true;
_local4._x = this._x;
_local4._y = this._y;
_local4.txt.text = _local3 + (_root.POWERUP_POINTS ? "x2" : "");
if ((_root.bubbleCount <= 0) && (!_local5)) {
_root.lose();
}
}
}
if (((((!_root.PAUSE3) && (this.poppable)) && (!mousedown)) && (_root._ymouse < 400)) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
if (!MUTE) {
if (Math.random() < 0.5) {
pop1.start();
} else {
pop2.start();
}
}
switch (this.type) {
case PIN :
_root.bubbleCount = _root.bubbleCount + _root.PINK_BUBBLE_INCREASE;
_root.CURRENTLIVESPERLEVEL = _root.CURRENTLIVESPERLEVEL + _root.PINK_BUBBLE_INCREASE;
if (_root.CURRENTLIVESPERLEVEL >= _root.MAXLIVESPERLEVEL) {
_root.currentBubblesFreq[1] = 0;
_root.fixedBubblesFreq = _root.fixBubbleFreq(_root.currentBubblesFreq);
}
break;
case YEL :
_root.POWERUP_SPEED = _root.POWERUP_SPEED_MAX;
break;
case ORA :
_root.POWERUP_SLOW = _root.POWERUP_SLOW_MAX;
break;
case BLU :
_root.POWERUP_FREEZE = _root.POWERUP_FREEZE_MAX;
break;
case RED :
_root.POWERUP_POINTS = _root.POWERUP_POINTS_MAX;
break;
case BLA :
_root.bubbleCount = _root.bubbleCount - 2;
break;
case GRE :
if (!(_root.POWERUP_DESTROY - 5)) {
break;
}
_root.POWERUP_DESTROY++;
}
removeMovieClip(this);
if (BONUSSTAGE) {
_root.BONUSCOUNT++;
_root.incScore(75);
_root.bonusTimer.countText.text = _root.BONUSCOUNT;
}
}
if ((!_root.POWERUP_FREEZE) || (this.mouse == true)) {
if (_root.POWERUP_SLOW && (this.mouse != true)) {
this.x = this.x * _root.bf;
this.y = this.y * _root.bf;
this._x = this._x + (this.x / 5);
this._y = this._y + (this.y / 5);
this.y = this.y - (bubbleAccel / 5);
} else {
this.x = this.x * bubbleFriction;
this.y = this.y * bubbleFriction;
this._x = this._x + this.x;
this._y = this._y + this.y;
this.y = this.y - bubbleAccel;
}
if (((this._x < (-(this._width / 2))) || (this._x > (550 + (this._width / 2)))) || (this._y < (-(this._width / 2)))) {
removeMovieClip(this);
}
}
}
} else if (_root.LOSER) {
this.x = this.x * bubbleFriction;
this.y = this.y * bubbleFriction;
this._x = this._x + this.x;
this._y = this._y + this.y;
this.y = this.y - bubbleAccel;
if (((this._x < (-(this._width / 2))) || (this._x > (550 + (this._width / 2)))) || (this._y < (-(this._width / 2)))) {
removeMovieClip(this);
}
}
}
function limit(n, min, max) {
if (n < min) {
return(min);
}
if (n > max) {
return(max);
}
return(n);
}
function cleanup(ef) {
if (ef) {
this.onEnterFrame = null;
}
this.onMouseDown = null;
this.onMouseUp = null;
holder.swapDepths(0);
removeMovieClip(holder);
removeMovieClip(pausedClip);
removeMovieClip(ui);
removeMovieClip(bonusTimer);
removeMovieClip(settings);
removeMovieClip(popup);
removeMovieClip(black);
}
function lose() {
pausedClip._visible = false;
this.onEnterFrame = null;
this.onMouseDown = null;
this.onMouseUp = null;
PAUSE = true;
LOSER = true;
white._visible = true;
this.onEnterFrame = function () {
white._alpha = white._alpha + 3;
if (white._alpha >= 100) {
GAMEOVERSCREEN();
this.onEnterFrame = function () {
white._alpha = white._alpha - 3;
if (white._alpha <= 0) {
_root.btn_pmg.onPress = function () {
getURL (_root.SPONSOR_URL, "_blank");
};
_root.btn_menu.onPress = function () {
_root.gotoAndStop(4);
};
_root.btn_submit.onPress = function () {
_root.NAME = _root.txt1.text;
_root.gotoAndStop(7);
};
white._visible = false;
removeMovieClip(white);
this.onEnterFrame = null;
}
};
}
};
}
function GAMEOVERSCREEN() {
cleanup(false);
_root.gotoAndStop(6);
}
function getLevelText(lvl) {
if ((MAXLEVEL > 1) && (lvl == 1)) {
return("ready");
}
if ((lvl > levelTextArray.length) || (LEVEL < MAXLEVEL)) {
return(null);
}
return(levelTextArray[lvl - 1]);
}
function getLiveInc(lvl) {
return(5);
}
function bubbleType(clip, forced) {
if ((forced != null) && (forced != undefined)) {
clip.type = forced;
} else {
clip.type = createBubble();
}
clip.tint._visible = false;
if (clip.type > 0) {
clip.tint._visible = true;
var _local3 = new Color(clip.tint);
_local3.setRGB(colorArray[clip.type]);
}
}
function isBonus(lvl) {
if ((LEVEL % 7) == 0) {
return(true);
}
return(false);
}
function getSpecialBubble(lvl) {
if ((lvl > 2) && (lvl < 10)) {
return(lvl - 2);
}
return(false);
}
function setBubblesFreq() {
switch (_root.LEVEL) {
case 2 :
currentBubblesFreq = [1000 * freqTweak, 0, 0, 0, 0, 0, 0, 0, 0];
break;
case 3 :
currentBubblesFreq = [1000 * freqTweak, 10, 0, 0, 0, 0, 0, 0, 0];
break;
case 4 :
currentBubblesFreq = [1100 * freqTweak, 10, 20, 0, 0, 0, 0, 0, 0];
break;
case 5 :
currentBubblesFreq = [1200 * freqTweak, 10, 25, 10, 0, 0, 0, 0, 0];
break;
case 6 :
currentBubblesFreq = [1300 * freqTweak, 10, 30, 10, 10, 0, 0, 0, 0];
break;
case 7 :
currentBubblesFreq = [1400 * freqTweak, 10, 35, 10, 10, 0, 0, 0, 0.01];
break;
case 8 :
currentBubblesFreq = [1500 * freqTweak, 10, 40, 10, 10, 0, 10, 0, 0.025];
break;
case 9 :
currentBubblesFreq = [1600 * freqTweak, 10, 45, 10, 10, 0, 10, 10, 0.05];
break;
case 10 :
currentBubblesFreq = [1700 * freqTweak, 10, 50, 10, 10, 0, 10, 10, 0.075];
break;
default :
currentBubblesFreq = [1800 * freqTweak, 10, 50 + ((_root.LEVEL - 10) * 2), 10, 10, 0, 10, 10, 0.1 + ((_root.LEVEL - 10) / 25)];
}
fixedBubblesFreq = fixBubbleFreq(currentBubblesFreq);
}
function fixBubbleFreq(bf) {
var _local3 = [];
var _local4 = sum(bf);
var sum = 0;
var _local1 = 0;
while (_local1 < (bf.length - 1)) {
sum = sum + bf[_local1];
_local3.push(sum / _local4);
_local1++;
}
_local3.push(bf[8]);
return(_local3);
}
function sum(array) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < array.length) {
_local3 = _local3 + array[_local1];
_local1++;
}
return(_local3);
}
function createBubble() {
var _local2 = Math.random();
var _local1 = 0;
while (_local2 > fixedBubblesFreq[_local1]) {
_local1++;
}
if (_local1 == 0) {
if (Math.random() < fixedBubblesFreq[8]) {
return(BLA);
}
}
return(_local1);
}
submit = true;
qws.swapDepths(99999999);
qws.onEnterFrame = function () {
};
SCORE = "";
setScore(0);
MAXLIVESPERLEVEL = 10;
CURRENTLIVESPERLEVEL = 0;
bonusTimer._visible = false;
BONUSTIME = 0;
BONUSCOUNT = 0;
removeMovieClip(bm);
white._visible = false;
black._visible = false;
popup.cacheAsBitmap = true;
popup.useHandCursor = true;
popup.onPress = function () {
};
if (MAXLEVEL > 1) {
_root.popup.gotoAndStop("ready");
} else {
_root.popup.gotoAndStop("level1");
}
settings.cacheAsBitmap = true;
ui.cacheAsBitmap = true;
stop();
var pop1 = new Sound();
pop1.attachSound("pop1");
var pop2 = new Sound();
pop2.attachSound("pop2");
bubbling = true;
bubbleFriction = 0.98;
bf = 1 - ((1 - bubbleFriction) / 5);
bubbleAccel = 0.1;
bubbleCount = 20;
PINK_BUBBLE_INCREASE = 2;
QUIT = false;
LEVEL = 1;
levelgoals = [10000, 20000, 30000, 45000, 60000, 75000, 100000, 130000, 175000, 225000, 300000];
LEVELGOAL = getLevelGoal(LEVEL);
BONUSSTAGE = false;
BIGGEST = 0;
bubbleCounter = 1;
bubbleCounterReset = 6;
bubbleCounterResetBonus = 2;
_root.createEmptyMovieClip("holder", 0);
var spawnPoint = (new flash.geom.Point(200, 400));
spawnPointRev = 1;
spawnPointSpeed = 15;
mousedown = false;
mouseBubble = null;
mouseBubbleGrowth = 1;
POWERUP_FREEZE_MAX = 180;
POWERUP_POINTS_MAX = 360;
POWERUP_SPEED_MAX = 360;
POWERUP_SLOW_MAX = 240;
POWERUP_FREEZE = 0;
POWERUP_POINTS = 0;
POWERUP_SPEED = 0;
POWERUP_SLOW = 0;
POWERUP_DESTROY = 0;
this.onMouseDown = function () {
mouseBubble.completed = true;
if (!PAUSE3) {
if (PAUSE2) {
PAUSE2 = false;
popup._visible = false;
} else if ((((!BONUSSTAGE) && (_root._ymouse < 400)) && (bubbleCount > 0)) && (!PAUSE)) {
bubbleCount--;
mousedown = true;
mouseBubble = holder.attachMovie("bubble", "bubble" + holder.getNextHighestDepth(), holder.getNextHighestDepth());
mouseBubble.mouse = true;
mouseBubble.cacheAsBitmap = true;
mouseBubble.bevel._visible = false;
var _local2 = new Color(mouseBubble.tint);
_local2.setRGB(16777215);
mouseBubble._width = (mouseBubble._height = 10);
mouseBubble._x = _root._xmouse;
mouseBubble._y = _root._ymouse;
mouseBubble.speed = random(2) + 1;
mouseBubble.angle = (Math.random() * Math.PI) + Math.PI;
mouseBubble.x = mouseBubble.speed * Math.cos(mouseBubble.angle);
mouseBubble.y = mouseBubble.speed * Math.sin(mouseBubble.angle);
mouseBubble.poppable = false;
mouseBubble.onEnterFrame = bubbleFrame;
mouseBubble.completed = false;
}
}
};
this.onMouseUp = function () {
mousedown = false;
mouseBubble.completed = true;
};
KEY_M = false;
KEY_P = false;
KEY_Q = false;
KEY_ESC = false;
KEY_SPACE = false;
KEY_RIGHTCLICK = false;
PAUSE1 = false;
PAUSE2 = true;
PAUSE3 = false;
PAUSE = false;
settings.qualityText.text = _root._quality.slice(0, 1);
settings.muteClip.gotoAndStop(Number(MUTE) + 1);
levelCounter = 0;
this.onEnterFrame = function () {
if (_root.bubbleCount < 0) {
_root.lose();
}
if (Key.isDown(2) && (!KEY_RIGHTCLICK)) {
KEY_RIGHTCLICK = true;
mouseBubble.completed = true;
mousedown = false;
}
if ((!Key.isDown(2)) && (KEY_RIGHTCLICK)) {
KEY_RIGHTCLICK = false;
}
if ((!Key.isDown(32)) && (KEY_SPACE)) {
KEY_SPACE = false;
}
if (Key.isDown(27) && (!KEY_ESC)) {
KEY_ESC = true;
if (PAUSE1) {
_root.QUIT = true;
lose();
}
}
if (Key.isDown(Number(80)) && (!KEY_P)) {
KEY_P = true;
mouseBubble.completed = true;
mousedown = false;
if (((!PAUSE2) && (!PAUSE3)) && (!BONUSSTAGE)) {
PAUSE1 = !PAUSE1;
pausedClip._visible = PAUSE1;
}
}
if (Key.isDown(Number(77)) && (!KEY_M)) {
KEY_M = true;
MUTE = !MUTE;
settings.muteClip.play();
if (MUTE) {
music.stop();
secondOffset = getTimer() - secondOffset;
} else {
secondOffset = getTimer();
music.start((secondOffset / 1000) % 153);
}
}
if (Key.isDown(Number(81)) && (!KEY_Q)) {
KEY_Q = true;
if (_root._quality == "HIGH") {
settings.qualityText.text = "M";
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
settings.qualityText.text = "L";
_root._quality = "LOW";
} else {
settings.qualityText.text = "H";
_root._quality = "HIGH";
}
}
if ((!Key.isDown(27)) && (KEY_ESC)) {
KEY_ESC = false;
}
if ((!Key.isDown(Number(80))) && (KEY_P)) {
KEY_P = false;
}
if ((!Key.isDown(Number(77))) && (KEY_M)) {
KEY_M = false;
}
if ((!Key.isDown(Number(81))) && (KEY_Q)) {
KEY_Q = false;
}
if (!PAUSE) {
if (BONUSTIME && (!PAUSE3)) {
BONUSTIME--;
if (BONUSTIME == 0) {
levelup(true);
}
}
drawBonusTimer();
if (POWERUP_FREEZE) {
POWERUP_FREEZE--;
}
if (POWERUP_POINTS) {
POWERUP_POINTS--;
}
if (POWERUP_SPEED) {
POWERUP_SPEED--;
}
if (POWERUP_SLOW) {
POWERUP_SLOW--;
}
if (!BONUSSTAGE) {
if (Key.isDown(32) && (!KEY_SPACE)) {
KEY_SPACE = true;
if (POWERUP_DESTROY) {
POWERUP_DESTROY--;
for (var _local3 in holder) {
if (holder[_local3].poppable) {
removeMovieClip(holder[_local3]);
}
}
if (!MUTE) {
pop1.start();
pop2.start();
}
}
}
if (mousedown) {
mouseBubble._x = limit(_root._xmouse, mouseBubble._width / 2, 550 - (mouseBubble._width / 2));
mouseBubble._y = limit(_root._ymouse, mouseBubble._width / 2, 400 - (mouseBubble._width / 2));
mouseBubble._width = mouseBubble._width + (mouseBubbleGrowth * (Boolean(POWERUP_SPEED) + 1));
mouseBubble._height = mouseBubble._height + (mouseBubbleGrowth * (Boolean(POWERUP_SPEED) + 1));
for (var _local3 in holder) {
if (holder[_local3].poppable) {
a = holder[_local3];
b = mouseBubble;
distance = Math.sqrt(((a._x - b._x) * (a._x - b._x)) + ((a._y - b._y) * (a._y - b._y)));
radii = (a._width + b._width) / 2;
if (radii > distance) {
if (a.type != BLA) {
removeMovieClip(a);
} else {
bubbleCount = bubbleCount - 2;
}
mousedown = false;
removeMovieClip(mouseBubble);
if (_root.bubbleCount <= 0) {
_root.lose();
}
if (!MUTE) {
if (Math.random() < 0.5) {
pop1.start();
} else {
pop2.start();
}
}
}
}
}
}
}
if ((bubbling && (bubbleCounter <= 0)) && (!_root.JKL)) {
levelCounter++;
if (!BONUSSTAGE) {
if (levelCounter == 25) {
if (getSpecialBubble(LEVEL)) {
demoBubble();
}
} else if (levelCounter == 30) {
if (getSpecialBubble(LEVEL)) {
demoBubble();
}
}
}
if (BONUSSTAGE) {
bubbleCounter = bubbleCounterResetBonus;
} else {
bubbleCounter = bubbleCounterReset;
}
var _local2 = holder.attachMovie("bubble", "bubble" + holder.getNextHighestDepth(), holder.getNextHighestDepth());
_local2.cacheAsBitmap = true;
if (BONUSSTAGE && (!WTF)) {
var _local6 = new Color(_local2.tint);
_local6.setRGB(random(16777216));
} else {
bubbleType(_local2);
}
_local2._width = (_local2._height = random(40) + 15);
_local2.poppable = true;
_local2.completed = true;
var _local4 = random(10);
if (Math.random() < 0.5) {
_local4 = -_local4;
}
var _local5 = random(10);
if (Math.random() < 0.5) {
_local5 = -_local5;
}
_local2._x = spawnPoint.x + _local4;
_local2._y = spawnPoint.y + (_local2._width / 2);
_local2.speed = (Math.random() * 3) + 1;
_local2.angle = (Math.random() * Math.PI) * 2;
_local2.x = _local2.speed * Math.cos(_local2.angle);
_local2.y = _local2.speed * Math.sin(_local2.angle);
_local2.onEnterFrame = bubbleFrame;
}
if (!_root.POWERUP_FREEZE) {
if (_root.POWERUP_SLOW) {
bubbleCounter = Math.round((bubbleCounter - 0.2) * 10) / 10;
} else {
bubbleCounter--;
}
}
spawnPoint.x = spawnPoint.x + (spawnPointSpeed * spawnPointRev);
if ((spawnPoint.x >= 550) || (spawnPoint.x < 0)) {
spawnPointRev = -spawnPointRev;
}
}
if (!JUNK) {
ui.bubbleCountText.text = bubbleCount;
if (BONUSSTAGE) {
ui.scoreText.text = formatNumber(getScore());
} else {
ui.scoreText.text = (formatNumber(getScore()) + "/") + formatNumber(LEVELGOAL);
}
if (BONUSSTAGE) {
ui.levelText.text = "Bonus";
} else {
ui.levelText.text = LEVEL;
}
}
PAUSE = PAUSE1 || (PAUSE2);
};
pausedClip.swapDepths(1);
pausedClip._visible = false;
ui.swapDepths(2);
settings.swapDepths(3);
popup.swapDepths(4);
bonusTimer.swapDepths(7);
black.swapDepths(49);
white.swapDepths(50);
JKL = false;
R = false;
JUNK = false;
levelTextArray = ["level1", "level2", "pink", "yellow", "orange", "blue", "black", "red", "green", "last"];
var NOR = 0;
var PIN = 1;
var YEL = 2;
var ORA = 3;
var BLU = 4;
var BLA = 5;
var RED = 6;
var GRE = 7;
colorArray = [1337, 16711935, 16776960, 16737792, 255, 0, 16711680, 65280];
currentBubblesFreq = [300, 0, 0, 0, 0, 0, 0, 0, 0];
fixedBubblesFreq = fixBubbleFreq(currentBubblesFreq);
var freqTweak = 1;
var blackTweak = 10;
Frame 6
stop();
stop();
if (_root.QUIT) {
ov.gotoAndStop(2);
}
_1.text = "Level Reached: " + LEVEL;
_2.text = "Final Score: " + formatNumber(getScore());
_3.text = "Biggest Bubble: " + BIGGEST;
txt1.maxChars = 32;
txt1.restrict = "a-zA-Z 0-9";
NAME = "Player 1";
Frame 7
stop();
d.d.text = d.d.text + "FRAME7";
_root.ERROR_ = false;
_root.attachMovie("noclick", "noclick", 9999999);
noclick.onPress = function () {
};
noclick.useHandCursor = false;
if (_root.submit) {
mochi.MochiScores.showLeaderboard({boardID:"101688110b0b2bab", score:getScore(), name:NAME, hideDoneButton:true});
} else {
mochi.MochiScores.showLeaderboard({boardID:"101688110b0b2bab", hideDoneButton:true});
}
mochi.MochiServices._clip._visible = true;
_root.btn_menu.onPress = function () {
mochi.MochiServices._clip._visible = false;
mochi.MochiScores.closeLeaderboard();
_root.gotoAndStop(4);
};
Frame 8
stop();
d.d.text = d.d.text + "FRAME8";
stop();
trace(133);
_root.d.d.text = _root.d.d.text + _root.ERROR_;
if (_root.ERROR_ == false) {
d.d.text = d.d.text + " NO ERROR";
_err._visible = false;
_root.gotoAndStop(4);
}
_root.btn_menu.onPress = function () {
mochi.MochiServices._clip._visible = false;
mochi.MochiScores.closeLeaderboard();
_root.gotoAndStop(4);
};
Symbol 12 MovieClip [pointsBox] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
Symbol 41 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 242 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 243 MovieClip [__Packages.com.meychi.ascrypt.Base64] Frame 0
class com.meychi.ascrypt.Base64
{
function Base64 () {
}
static function encode(src) {
var _local1 = 0;
var _local8 = new String("");
var _local6;
var _local4;
var _local3;
var _local10;
var _local9;
var _local7;
var _local2;
while (_local1 < src.length) {
_local6 = src.charCodeAt(_local1++);
_local4 = src.charCodeAt(_local1++);
_local3 = src.charCodeAt(_local1++);
_local10 = _local6 >> 2;
_local9 = ((_local6 & 3) << 4) | (_local4 >> 4);
_local7 = ((_local4 & 15) << 2) | (_local3 >> 6);
_local2 = _local3 & 63;
if (isNaN(_local4)) {
_local2 = 64;
_local7 = _local2;
} else if (isNaN(_local3)) {
_local2 = 64;
}
_local8 = _local8 + (base64chars.charAt(_local10) + base64chars.charAt(_local9));
_local8 = _local8 + (base64chars.charAt(_local7) + base64chars.charAt(_local2));
}
return(_local8);
}
static function decode(src) {
var _local2 = 0;
var _local1 = new String("");
var _local7;
var _local10;
var _local9;
var _local8;
var _local6;
var _local4;
var _local5;
while (_local2 < src.length) {
_local8 = base64chars.indexOf(src.charAt(_local2++));
_local6 = base64chars.indexOf(src.charAt(_local2++));
_local4 = base64chars.indexOf(src.charAt(_local2++));
_local5 = base64chars.indexOf(src.charAt(_local2++));
_local7 = (_local8 << 2) | (_local6 >> 4);
_local10 = ((_local6 & 15) << 4) | (_local4 >> 2);
_local9 = ((_local4 & 3) << 6) | _local5;
_local1 = _local1 + String.fromCharCode(_local7);
if (_local4 != 64) {
_local1 = _local1 + String.fromCharCode(_local10);
}
if (_local5 != 64) {
_local1 = _local1 + String.fromCharCode(_local9);
}
}
return(_local1);
}
static var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
}
Symbol 244 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
_root.d.d.text = _root.d.d.text + " DOCLOSE";
_root.ERROR_ = true;
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 51 MovieClip Frame 6
stop();
Symbol 52 Button
on (release) {
getURL ("http://www.notdoppler.com", "_blank");
}
Symbol 68 MovieClip Frame 368
_root.NEXT();
Symbol 69 MovieClip Frame 1
function bubbleFrame() {
this.x = this.x * bubbleFriction;
this.y = this.y * bubbleFriction;
this.y = this.y - bubbleAccel;
this._x = this._x + this.x;
this._y = this._y + this.y;
if (((this._x < (-(this._width / 2))) || (this._x > (550 + (this._width / 2)))) || (this._y < (-(this._width / 2)))) {
removeMovieClip(this);
}
}
bubbleCounter = 0;
bubbleCounterReset = 5;
bubbleFriction = 0.98;
bubbleAccel = 0.1;
this.onEnterFrame = function () {
if (bubbleCounter == 0) {
bubbleCounter = bubbleCounterReset;
var _local2 = this.attachMovie("bubble", "bubble" + this.getNextHighestDepth(), this.getNextHighestDepth());
_local2.tint._visible = false;
_local2._width = (_local2._height = random(40) + 15);
var _local4 = random(10);
if (Math.random() < 0.5) {
_local4 = -_local4;
}
var _local3 = random(10);
if (Math.random() < 0.5) {
_local3 = -_local3;
}
_local2._x = (random(530) + 10) + _local4;
_local2._y = (450 + _local3) + (_local2._width / 2);
_local2.speed = (Math.random() * 3) + 1;
_local2.angle = (Math.random() * Math.PI) * 2;
_local2.x = _local2.speed * Math.cos(_local2.angle);
_local2.y = _local2.speed * Math.sin(_local2.angle);
_local2.onEnterFrame = bubbleFrame;
}
bubbleCounter--;
};
Symbol 143 MovieClip Frame 1
LEFT._visible = false;
LEFT.onPress = function () {
this._parent.gotoAndStop(this._parent._currentframe - 1);
};
RIGHT.onPress = function () {
this._parent.gotoAndStop(this._parent._currentframe + 1);
};
stop();
Symbol 143 MovieClip Frame 2
LEFT._visible = true;
Symbol 143 MovieClip Frame 4
RIGHT._visible = true;
Symbol 143 MovieClip Frame 5
RIGHT._visible = false;
btn_1.onPress = function () {
getURL ("http://www.epicflash.com", "_blank");
};
btn_2.onPress = function () {
getURL ("http://arnas.newgrounds.com/", "_blank");
};
btn_3.onPress = function () {
getURL (_root.SPONSOR_URL, "_blank");
};
Symbol 145 MovieClip Frame 1
stop();
btn_play.onPress = function () {
_root.gotoAndStop(5);
};
btn_instructions.onPress = function () {
this._parent.gotoAndStop(2);
};
btn_pmg.onPress = function () {
getURL (_root.SPONSOR_URL, "_blank");
};
btn_hs.onPress = function () {
_root.gotoAndStop(7);
};
clearInterval(_root.interval);
_root.spnsr._visible = true;
Symbol 145 MovieClip Frame 2
btn_back.onPress = function () {
this._parent.gotoAndStop(1);
};
_root.spnsr._visible = false;
Symbol 171 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.POWERUP_DESTROY) {
green._visible = true;
green.count.gotoAndStop(_root.POWERUP_DESTROY);
} else {
green.count.stop();
green._visible = false;
}
if (_root.POWERUP_FREEZE) {
blue._visible = true;
blue.timer.clear();
blue.timer.lineStyle(1, 2236962);
blue.timer.beginFill(15658734, 75);
blue.timer.drawWedge(0, 0, 90, (_root.POWERUP_FREEZE / _root.POWERUP_FREEZE_MAX) * 360, 12.5);
blue.timer.endFill();
} else {
blue._visible = false;
}
if (_root.POWERUP_SPEED) {
yellow._visible = true;
yellow.timer.clear();
yellow.timer.lineStyle(1, 2236962);
yellow.timer.beginFill(15658734, 75);
yellow.timer.drawWedge(0, 0, 90, (_root.POWERUP_SPEED / _root.POWERUP_SPEED_MAX) * 360, 12.5);
yellow.timer.endFill();
} else {
yellow._visible = false;
}
if (_root.POWERUP_POINTS) {
red._visible = true;
red.timer.clear();
red.timer.lineStyle(1, 2236962);
red.timer.beginFill(15658734, 75);
red.timer.drawWedge(0, 0, 90, (_root.POWERUP_POINTS / _root.POWERUP_POINTS_MAX) * 360, 12.5);
red.timer.endFill();
} else {
red._visible = false;
}
if (_root.POWERUP_SLOW) {
orange._visible = true;
orange.timer.clear();
orange.timer.lineStyle(1, 2236962);
orange.timer.beginFill(15658734, 75);
orange.timer.drawWedge(0, 0, 90, (_root.POWERUP_SLOW / _root.POWERUP_SLOW_MAX) * 360, 12.5);
orange.timer.endFill();
} else {
orange._visible = false;
}
};
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
bb.text = ((_root.BONUSCOUNT + " bubbles popped\nx75 points each\n=") + (75 * _root.BONUSCOUNT)) + " points!";
trace(_root.BONUSCOUNT);
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();