Frame 1
stop();
Instance of Symbol 50 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.loadVar = ("Loading: " + int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) + "%";
} else {
_root.gotoAndPlay(2);
}
}
Frame 2
function setInitVars() {
var _local1 = _root;
_local1.popClicked = false;
_local1.maxX = 10;
_local1.maxY = 10;
_local1.initX = 125;
_local1.initY = 30;
_local1.sqSize = 38;
_local1.sqSpace = 0.75;
_local1.myTurn = 1;
_local1.popTime = 15;
_local1.gameWon = 0;
_local1.score1 = 0;
_local1.score2 = 0;
_local1.popCombo = 0;
_local1.musicOn = true;
_local1.mainTargetVolume = 100;
_local1.pointValue = 10;
_local1.computerDelay = 750;
_local1.audioActive = true;
_local1.topTen._visible = false;
comboClip1._visible = false;
comboClip2._visible = false;
_local1.cmbTxt1._visible = false;
_local1.cmbTxt2._visible = false;
showSquare1.gotoAndStop(1);
showSquare2.gotoAndStop(2);
_local1.goComputer = false;
_local1.closedList = new Array();
_local1.openList = "";
_local1.openList = new Array();
_local1.showSquare1._visible = false;
_local1.showSquare2._visible = false;
popAudio = new Sound(this);
popAudio.attachSound("popSound");
_local1.musicLoop = new Sound("musicClip");
_local1.musicLoop.attachSound("musicLoop1");
_local1.musicLoop.setVolume(1);
_local1.musicLoop.start(0, 8000);
cheerAudio = new Sound("cheerClip");
cheerAudio.attachSound("cheerSound");
cheerAudio.setVolume(500);
cheerAudio.onSoundComplete = function () {
if (_root.musicOn == true) {
_root.mainTargetVolume = 100;
}
};
}
function toggleAudio() {
var _local1 = _root;
if (_local1.audioActive == true) {
_local1.audioActive = false;
_local1.musicLoop.stop();
_local1.audioIcon.gotoAndStop("stopAudio");
} else {
_local1.audioActive = true;
_local1.musicLoop.start(0, 8000);
_local1.audioIcon.gotoAndPlay("startAudio");
}
}
function setTurn() {
var _local1 = _root;
_local1.popClicked = false;
if (_local1.popCombo > 25) {
_local1.mainTargetVolume = 25;
cheerAudio.start();
}
_local1.popCombo = 0;
if (_local1.myTurn == 1) {
_local1.myTurn = 2;
_local1.showSquare1.hLite.gotoAndStop(1);
_local1.showSquare2.hLite.gotoAndStop(4);
if (_local1.numPlayers == 1) {
_local1.cTime = getTimer();
_local1.goComputer = true;
}
} else {
_local1.myTurn = 1;
_local1.showSquare2.hLite.gotoAndStop(1);
_local1.showSquare1.hLite.gotoAndStop(4);
}
}
function getAIchoice() {
var _local3 = _root;
var myChoice;
var bestPick = "";
var bestPoints = -1000;
var firstItemSet = false;
var highList = new Array();
var medList = new Array();
var lowList = new Array();
var _local2 = 0;
while (_local2 < _local3.maxY) {
var _local1 = 0;
while (_local1 < _local3.maxX) {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myNum;
if (_local3[("pop" + _local1) + _local2].maxNum < 4) {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myPoints + 5;
}
if (_local3[("pop" + _local1) + _local2]._currentframe == 1) {
_local3[("pop" + _local1) + _local2].myPoints = "";
}
if (_local3[("pop" + _local1) + _local2]._currentframe == 2) {
t = -1;
while (t < 2) {
s = -1;
while (s < 2) {
if (((Math.abs(t) == 1) || (Math.abs(s) == 1)) && (Math.abs(t) != Math.abs(s))) {
if (_local3[("pop" + (_local1 + t)) + (_local2 + s)].myNum == _local3[("pop" + (_local1 + t)) + (_local2 + s)].maxNum) {
if (_local3[("pop" + (_local1 + t)) + (_local2 + s)].myNum == undefined) {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myPoints + 5;
} else if (_local3[("pop" + _local1) + _local2].myNum == _local3[("pop" + _local1) + _local2].maxNum) {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myPoints + 10;
} else {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myPoints - 15;
}
}
if (_local3[("pop" + (_local1 + t)) + (_local2 + s)].myNum == (_local3[("pop" + (_local1 + t)) + (_local2 + s)].maxNum - 1)) {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myPoints - 2;
}
if ((!_local3[("pop" + (_local1 + t)) + (_local2 + s)]._currentframe) == _local3[("pop" + (_local1 + t)) + (_local2 + s)]._currentframe) {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myPoints - 1;
} else {
_local3[("pop" + _local1) + _local2].myPoints = _local3[("pop" + _local1) + _local2].myPoints + 1;
}
}
s++;
}
t++;
}
if (_local3[("pop" + _local1) + _local2].myPoints > bestPoints) {
bestPoints = _local3[("pop" + _local1) + _local2].myPoints;
bestPick = ("pop" + _local1) + _local2;
}
if (_local3[("pop" + _local1) + _local2].myPoints > 7) {
highList.push(("pop" + _local1) + _local2);
} else if ((_local3[("pop" + _local1) + _local2].myPoints <= 5) && (_local3[("pop" + _local1) + _local2].myPoints > 0)) {
medList.push(("pop" + _local1) + _local2);
} else {
lowList.push(("pop" + _local1) + _local2);
}
}
_local1++;
}
_local2++;
}
var pickBest = random(100);
if (pickBest > 40) {
myChoice = bestPick;
} else {
var whichZone = random(100);
if ((whichZone > 40) && (highList.length > 0)) {
var myRnd = random(highList.length);
myChoice = highList[myRnd];
} else if ((((whichZone <= 40) && (whichZone >= 10)) && (medList.length > 0)) || (((whichZone > 40) && (highList.length < 1)) && (medList.length > 0))) {
var myRnd = random(medList.length);
myChoice = medList[myRnd];
} else {
var myRnd = random(lowList.length);
myChoice = lowList[myRnd];
}
}
return(myChoice);
}
function initGame() {
var _local1 = _root;
_local1.topTen._visible = false;
_local1.comboClip1.bmask._yscale = 0;
_local1.comboClip2.bmask._yscale = 0;
comboClip1._visible = true;
comboClip2._visible = true;
_local1.cmbTxt1._alpha = 0;
_local1.cmbTxt2._alpha = 0;
_local1.cmbTxt1._visible = true;
_local1.cmbTxt2._visible = true;
_local1.startGame._visible = false;
_local1.showSquare1._visible = true;
_local1.showSquare2._visible = true;
_local1.showSquare2.hLite.gotoAndStop(1);
_local1.showSquare1.hLite.gotoAndStop(4);
var d = 1;
var toggleFrame = 1;
var myMax;
var _local3 = 0;
while (_local3 < _local1.maxY) {
if ((_local1.maxX / 2) == int(_local1.maxX / 2)) {
if (toggleFrame == 1) {
toggleFrame = 2;
} else {
toggleFrame = 1;
}
}
var _local2 = 0;
while (_local2 < _local1.maxX) {
if (toggleFrame == 1) {
toggleFrame = 2;
} else {
toggleFrame = 1;
}
myMax = 4;
if ((_local3 == 0) || (_local3 == (_local1.maxY - 1))) {
myMax = myMax - 1;
}
if ((_local2 == 0) || (_local2 == (_local1.maxX - 1))) {
myMax = myMax - 1;
}
duplicateMovieClip ("popClip", ("pop" + _local2) + _local3, d);
_local1[("pop" + _local2) + _local3].gotoAndStop(toggleFrame);
_local1[("pop" + _local2) + _local3]._x = _local1.initX + (_local2 * (_local1.sqSize + _local1.sqSpace));
_local1[("pop" + _local2) + _local3]._y = _local1.initY + (_local3 * (_local1.sqSize + _local1.sqSpace));
_local1[("pop" + _local2) + _local3].myNum = 1;
_local1[("pop" + _local2) + _local3].maxNum = myMax;
d++;
_local2++;
}
_local3++;
}
}
function clearClosed() {
_root.closedList = new Array();
}
function checkSquares() {
var _local1 = _root;
setTurn();
while (_local1.openList.length > 0) {
setSquare(_local1.openList.shift());
}
}
function checkForWinner() {
var _local3 = _root;
var winnerFound = true;
var initFrame = _local3.pop00._currentframe;
_local3.comboListLength = _local3.score1 - 10505;
var _local2 = 0;
while (_local2 < _local3.maxY) {
var _local1 = 0;
while (_local1 < _local3.maxX) {
if (_local3[("pop" + _local1) + _local2]._currentframe != initFrame) {
winnerFound = false;
}
_local1++;
}
_local2++;
}
return(winnerFound);
}
function setSquare(clipName) {
var _local1 = _root;
_local1.closedList.push(clipName);
var myFrame = _local1[clipName]._currentframe;
_local1[clipName].myNum++;
if (_local1[clipName].myNum > _local1[clipName].maxNum) {
_local1.popCombo = _local1.popCombo + 1;
if (_local1.myTurn == 1) {
_local1.comboClip1.bmask._yscale = Math.min((_local1.popCombo / 25) * 100, 100);
if (_local1.popCombo > 1) {
_local1.cmbTxt1._alpha = 100;
_local1.comboText1 = ("COMBO! " + _local1.popCombo) + " POPS!!";
}
} else {
_local1.comboClip2.bmask._yscale = Math.min((_local1.popCombo / 25) * 100, 100);
if (_local1.popCombo > 1) {
_local1.cmbTxt2._alpha = 100;
_local1.comboText2 = ("COMBO! " + _local1.popCombo) + " POPS!!";
}
}
if (_local1.myTurn == 1) {
_local1.score1 = _local1.score1 + _local1.pointValue;
} else {
_local1.score2 = _local1.score2 + _local1.pointValue;
}
_local1.pointValue = _local1.pointValue + 5;
if (_local1.pointValue > 50) {
_local1.pointValue = 50;
}
_local1[clipName].popAnim.gotoAndPlay(2);
_local1[clipName].myNum = 1;
var clipX = int(clipName.substr(3, 1));
var clipY = int(clipName.substr(4, 1));
x = -1;
while (x < 2) {
y = -1;
while (y < 2) {
if (((Math.abs(x) == 1) || (Math.abs(y) == 1)) && (Math.abs(x) != Math.abs(y))) {
var sqFound = false;
var s = _local1.closedList.length;
var _local3 = clipX + x;
var _local2 = clipY + y;
while (s--) {
if (_local1.closedList[s] == (("pop" + _local3) + _local2)) {
}
}
if (sqFound == false) {
_local1[("pop" + _local3) + _local2].gotoAndStop(myFrame);
_local1.openList.push(("pop" + _local3) + _local2);
}
}
y++;
}
x++;
}
_local1[clipName].popTop.gotoAndStop(_local1[clipName].myNum);
}
_local1[clipName].popTop.gotoAndStop(_local1[clipName].myNum);
}
function getSubURL() {
var _local2 = _root;
var _local1;
_local1 = "http://www.pcpuzzles.com/bubblefun/addScore.php";
_local1 = _local1 + ("?score1=" + _local2.score1);
_local1 = _local1 + ("&comboListLength=" + _local2.comboListLength);
_local1 = _local1 + ("&maxX=" + _local2.maxX);
_local1 = _local1 + ("&maxY=" + _local2.maxY);
_local1 = _local1 + ("&myName=" + _local2.myName);
_local1 = _local1 + ("&myLocation=" + _local2.myLocation);
_local1 = _local1 + "&postURL=http://www.pcpuzzles.com/bubblefun-highscore/index.php";
return(_local1);
}
_root.rTime = getTimer();
_root.cTime = getTimer();
_root.onEnterFrame = function () {
var _local1 = _root;
var myVol = _local1.musicLoop.getVolume();
if (myVol != _local1.mainTargetVolume) {
if (myVol > _local1.mainTargetVolume) {
myVol = myVol - 2;
} else {
myVol++;
}
_local1.musicLoop.setVolume(myVol);
}
if (_local1.gameWon == 0) {
if (((getTimer() - _local1.computerDelay) > _local1.cTime) && (_local1.goComputer == true)) {
_local1.goComputer = false;
_local1.clearClosed();
_local1.pointValue = 5;
_local1.popClicked = true;
var myClick = getAIchoice();
_local1.openList.push(myClick);
}
if ((getTimer() - _local1.popTime) > _local1.rTime) {
_local1.rTime = getTimer();
if (_local1.openList.length > 0) {
setSquare(_local1.openList.shift());
if (_local1.popCombo > 150) {
if (checkForWinner()) {
_local1.gameWon = 1;
var winFrame = (("p" + _local1.pop00._currentframe) + "Win");
var _local3 = 0;
while (_local3 < _local1.maxY) {
var _local2 = 0;
while (_local2 < _local1.maxX) {
removeMovieClip(("pop" + _local2) + _local3);
_local2++;
}
_local3++;
}
_local1.gotoAndStop(winFrame);
}
}
} else if (_local1.popClicked == true) {
if (checkForWinner()) {
_local1.gameWon = 1;
var winFrame = (("p" + _local1.pop00._currentframe) + "Win");
var _local3 = 0;
while (_local3 < _local1.maxY) {
var _local2 = 0;
while (_local2 < _local1.maxX) {
removeMovieClip(("pop" + _local2) + _local3);
_local2++;
}
_local3++;
}
_local1.gotoAndStop(winFrame);
}
setTurn();
}
}
}
};
setInitVars();
stop();
Instance of Symbol 107 MovieClip "cmbTxt1" in Frame 2
onClipEvent (enterFrame) {
if ((_root.comboClip1.bmask._yscale <= 1) && (this._alpha > 0)) {
this._alpha = this._alpha - 1;
}
}
Instance of Symbol 109 MovieClip "cmbTxt2" in Frame 2
onClipEvent (enterFrame) {
if ((_root.comboClip2.bmask._yscale <= 1) && (this._alpha > 0)) {
this._alpha = this._alpha - 1;
}
}
Frame 3
if (_root.numPlayers == 1) {
_root.scoreClip._visible = true;
} else {
_root.scoreClip._visible = false;
}
Frame 4
getURL ("http://www.pcpuzzles.com/bubblefun-highscore/index.php", "_blank");
Symbol 8 Button
on (release) {
_root.startGame._visible = true;
_root.helpClip.removeMovieClip();
}
Symbol 14 Button
on (release) {
if ((this._currentframe == _root.myTurn) && (_root.openList.length == 0)) {
_root.clearClosed();
_root.pointValue = 10;
_root.popClicked = true;
_root.openList.push(this._name);
}
}
Symbol 18 MovieClip Frame 1
stop();
Instance of Symbol 17 MovieClip in Symbol 18 MovieClip Frame 1
/* no clip actions */
Symbol 18 MovieClip Frame 2
play();
Symbol 18 MovieClip Frame 15
gotoAndPlay (2);
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 2
play();
Symbol 21 MovieClip Frame 14
gotoAndPlay (2);
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
if (_parent.maxNum == _parent.myNum) {
gClip.gotoAndPlay(2);
}
Symbol 25 MovieClip Frame 3
if (_parent.maxNum == _parent.myNum) {
gClip.gotoAndPlay(2);
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
_root.popAudio.stop();
_root.popAudio.start();
Symbol 30 MovieClip Frame 5
gotoAndStop (1);
Symbol 31 Button
on (release) {
if (((this._currentframe == _root.myTurn) && (_root.openList.length == 0)) && (_root.numPlayers == 2)) {
_root.clearClosed();
_root.pointValue = 10;
_root.popClicked = true;
_root.openList.push(this._name);
}
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
play();
Symbol 35 MovieClip Frame 15
gotoAndPlay (2);
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
play();
Symbol 38 MovieClip Frame 15
gotoAndPlay (2);
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
if (_parent.maxNum == _parent.myNum) {
gClip.gotoAndPlay(2);
}
Symbol 42 MovieClip Frame 3
if (_parent.maxNum == _parent.myNum) {
gClip.gotoAndPlay(2);
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
_root.popAudio.stop();
_root.popAudio.start();
Symbol 46 MovieClip Frame 5
gotoAndStop (1);
Symbol 47 MovieClip Frame 1
stop();
Symbol 48 MovieClip [myhelp] Frame 1
function initDemo() {
var _local1 = this;
_local1.targetAlpha = 100;
_local1.popClip1.gotoAndStop(2);
_local1.popClip2.gotoAndStop(2);
_local1.popClip3.gotoAndStop(2);
_local1.popClip4.gotoAndStop(2);
_local1.popClip6.gotoAndStop(2);
_local1.popClip7.gotoAndStop(2);
_local1.popClip8.gotoAndStop(2);
_local1.popClip9.gotoAndStop(2);
x = 1;
while (x < 10) {
_local1[("popClip" + x) + ".popTop"].gotoAndStop(1);
_local1["popClip" + x].myNum = 1;
x++;
}
_local1.demoCycle = 1;
_local1.demoAction = 0;
_local1.nextPause = 35;
}
initDemo();
this.onEnterFrame = function () {
var _local1 = this;
_local1.demoCycle++;
if (_local1.demoCycle > _local1.nextPause) {
_local1.demoCycle = 1;
_local1.demoAction++;
switch (_local1.demoAction) {
case 1 :
_local1.popClip5.myNum = _local1.popClip5.myNum + 1;
_local1.popClip5.popTop.gotoAndStop(_local1.popClip5.myNum);
return;
case 2 :
_local1.popClip5.myNum = _local1.popClip5.myNum + 1;
_local1.popClip5.popTop.gotoAndStop(_local1.popClip5.myNum);
return;
case 3 :
_local1.popClip5.myNum = _local1.popClip5.myNum + 1;
_local1.popClip5.popTop.gotoAndStop(_local1.popClip5.myNum);
return;
case 4 :
_local1.popClip5.myNum = 1;
_local1.popClip5.popAnim.gotoAndPlay(2);
_local1.popClip2.gotoAndStop(1);
_local1.popClip4.gotoAndStop(1);
_local1.popClip6.gotoAndStop(1);
_local1.popClip8.gotoAndStop(1);
_local1.popClip2.myNum++;
_local1.popClip4.myNum++;
_local1.popClip6.myNum++;
_local1.popClip8.myNum++;
_local1.popClip5.popTop.gotoAndStop(_local1.popClip5.myNum);
return;
case 5 :
_local1.popClip3.myNum = _local1.popClip3.myNum + 1;
_local1.popClip3.popTop.gotoAndStop(_local1.popClip3.myNum);
return;
case 6 :
_local1.popClip3.myNum = 1;
_local1.popClip3.popAnim.gotoAndPlay(2);
_local1.popClip2.gotoAndStop(2);
_local1.popClip6.gotoAndStop(2);
_local1.popClip2.myNum++;
_local1.popClip6.myNum++;
_local1.popClip3.popTop.gotoAndStop(_local1.popClip3.myNum);
return;
case 7 :
_local1.popClip8.myNum = _local1.popClip8.myNum + 1;
_local1.popClip8.popTop.gotoAndStop(_local1.popClip8.myNum);
return;
case 8 :
_local1.popClip8.myNum = 1;
_local1.popClip8.popAnim.gotoAndPlay(2);
_local1.popClip5.gotoAndStop(1);
_local1.popClip7.gotoAndStop(1);
_local1.popClip9.gotoAndStop(1);
_local1.popClip5.myNum++;
_local1.popClip7.myNum++;
_local1.popClip9.myNum++;
_local1.popClip8.popTop.gotoAndStop(_local1.popClip8.myNum);
return;
case 9 :
_local1.nextPause = 45;
_local1.targetAlpha = 0;
return;
case 10 :
_local1.initDemo();
_local1.targetAlpha = 100;
}
}
};
stop();
Instance of Symbol 47 MovieClip "popClip2" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip1" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip3" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip5" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip4" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip6" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip8" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip7" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Instance of Symbol 47 MovieClip "popClip9" in Symbol 48 MovieClip [myhelp] Frame 1
onClipEvent (enterFrame) {
if (this._alpha != _parent.targetAlpha) {
if (this._alpha > _parent.targetAlpha) {
this._alpha = this._alpha - 5;
} else {
this._alpha = this._alpha + 5;
}
if ((this._alpha > 100) || (this._alpha < 0)) {
this._alpha = _parent.targetAlpha;
}
}
}
Symbol 60 MovieClip Frame 1
function init() {
var _local1 = this;
if (_local1.initSet == 1) {
_local1.origX = random(600) - 300;
_local1._x = _local1.origX;
_local1._y = 200;
} else {
_local1.initSet = 1;
_local1.origX = _local1._x;
}
_local1.cycle = random(200);
_local1.ySpd = random(2) + 1;
_local1.scRate = (random(10) + 5) / 10;
_local1.minY = random(150) + 20;
_local1.wave = 40;
_local1.myScale = random(50) + 25;
_local1._xscale = _local1.myScale;
_local1._yscale = _local1.myScale;
}
this.init();
stop();
Symbol 60 MovieClip Frame 4
gotoAndStop (1);
Symbol 61 Button
on (rollOver) {
pop1.gotoAndStop(4);
}
on (rollOut) {
pop1.gotoAndStop(1);
}
on (release) {
_root.numPlayers = 1;
_root.initGame();
}
Symbol 62 Button
on (rollOver) {
pop2.gotoAndStop(4);
}
on (rollOut) {
pop2.gotoAndStop(1);
}
on (release) {
_root.numPlayers = 2;
_root.initGame();
}
Symbol 63 Button
on (release) {
_root.attachMovie("myhelp", "helpClip", 500);
_root.startGame._visible = false;
}
Symbol 64 Button
on (release) {
getURL ("http://www.pcpuzzles.com/bubblefun-highscore/index.php", "_blank");
}
Symbol 65 Button
on (release) {
getURL ("http://www.pcpuzzles.com");
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Instance of Symbol 60 MovieClip in Symbol 76 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.startGame._visible == true) {
if (this.ySpd != undefined) {
if ((this._y < (this.minY - 200)) && (this._currentframe == 1)) {
this.gotoAndPlay(2);
} else {
this._y = this._y - this.ySpd;
this.cycle = this.cycle + 0.05;
this._x = this.origX + (Math.sin(this.cycle) * this.wave);
this._xscale = this._xscale + this.scRate;
this._yscale = this._yscale + this.scRate;
}
}
}
}
Symbol 85 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip "bmask" in Symbol 91 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._yscale > 0) {
this._yscale = this._yscale - 1;
}
}
Symbol 98 Button
on (release) {
_root.toggleAudio();
}
Symbol 105 MovieClip Frame 19
gotoAndPlay (1);
Instance of Symbol 30 MovieClip in Symbol 113 MovieClip Frame 27
onClipEvent (enterFrame) {
if (popTime == undefined) {
popTime = 100;
rTime = getTimer();
myAudio = new Sound(this);
myAudio.attachSound("popSound");
}
if ((getTimer() - popTime) > rTime) {
rTime = getTimer();
popTime = random(1000) + 500;
if (this._currentframe == 1) {
this._x = random(450) - 225;
this._y = random(50) - 25;
myAudio.start(0);
play();
}
}
}
Symbol 113 MovieClip Frame 34
stop();
Instance of Symbol 30 MovieClip in Symbol 113 MovieClip Frame 34
onClipEvent (enterFrame) {
if (popTime == undefined) {
popTime = 100;
rTime = getTimer();
myAudio = new Sound(this);
myAudio.attachSound("popSound");
}
if ((getTimer() - popTime) > rTime) {
rTime = getTimer();
popTime = random(1000) + 500;
if (this._currentframe == 1) {
this._x = random(450) - 225;
this._y = random(50) - 25;
myAudio.start(0);
play();
}
}
}
Symbol 114 Button
on (release) {
_root.gotoAndStop("startGame");
}
Symbol 121 Button
on (release) {
_root.getURL(_root.getSubURL(), "_blank");
_root.gotoAndStop(1);
}
Instance of Symbol 46 MovieClip in Symbol 125 MovieClip Frame 27
onClipEvent (enterFrame) {
if (popTime == undefined) {
popTime = 100;
rTime = getTimer();
myAudio = new Sound(this);
myAudio.attachSound("popSound");
}
if ((getTimer() - popTime) > rTime) {
rTime = getTimer();
popTime = random(1000) + 500;
if (this._currentframe == 1) {
this._x = random(450) - 225;
this._y = random(50) - 25;
myAudio.start(0);
play();
}
}
}
Symbol 125 MovieClip Frame 34
stop();
Instance of Symbol 46 MovieClip in Symbol 125 MovieClip Frame 34
onClipEvent (enterFrame) {
if (popTime == undefined) {
popTime = 100;
rTime = getTimer();
myAudio = new Sound(this);
myAudio.attachSound("popSound");
}
if ((getTimer() - popTime) > rTime) {
rTime = getTimer();
popTime = random(1000) + 500;
if (this._currentframe == 1) {
this._x = random(450) - 225;
this._y = random(50) - 25;
myAudio.start(0);
play();
}
}
}