Frame 1
function round(num, precision) {
if (typeof(num) != "number") {
trace(("Error: value sent was " + typeof(num)) + " not a number.");
return("Error: NaN");
}
if (num == "") {
trace("Error: Round Function -- No value sent.");
return("Error: NaN");
}
if (precision == null) {
precision = 2;
}
var string_num = num.toString();
var decimal_places = Math.pow(10, precision);
var zeros;
var i;
if (string_num.indexOf(".") != -1) {
num = Math.round(num * decimal_places) / decimal_places;
string_num = num.toString();
if (string_num.indexOf(".") == -1) {
string_num = string_num + ".";
i = precision;
while (i > 0) {
string_num = string_num + "0";
i--;
}
num = string_num;
} else {
zeros = precision - ((string_num.length - 1) - string_num.indexOf("."));
if (zeros > 0) {
i = zeros;
while (i > 0) {
string_num = string_num + "0";
i--;
}
}
num = string_num;
}
} else {
string_num = string_num + ".";
i = precision;
while (i > 0) {
string_num = string_num + "0";
i--;
}
num = string_num;
}
return(num);
}
function Pop() {
}
function resetStats() {
numpoppable = (numpopped = (nummanic = 0));
}
function setBubbleSize(newsize) {
bubblesize = newsize;
btnBSButton.instance5.gotoAndPlay(1);
}
function removeBubbles() {
for (bubble in sheet) {
if (typeof(sheet[bubble]) == "movieclip") {
sheet[bubble].removeMovieClip();
}
}
}
function buddypopup(turnon) {
if (turnon && (sheet[buddypopuphelp] == null)) {
sheet.attachMovie("BuddyPopup", buddypopuphelp, 500, {_x:sheetmask._width / 2, _y:sheetmask._height / 2});
} else if ((!turnon) && (sheet[buddypopuphelp] != null)) {
sheet[buddypopuphelp].removeMovieClip();
}
}
function rotateXY(bubbleCoords, changeDegrees) {
bubbleA = bubbleCoords.bubbleX - xCenter;
bubbleB = bubbleCoords.bubbleY - yCenter;
bubbleRadius = Math.sqrt((bubbleA * bubbleA) + (bubbleB * bubbleB));
changeRadians = (changeDegrees / 180) * Math.PI;
bubbleRadians = Math.atan(bubbleB / bubbleA);
if (bubbleA < 0) {
bubbleRadians = bubbleRadians + Math.PI;
}
if ((bubbleA >= 0) && (bubbleB < 0)) {
bubbleRadians = bubbleRadians + (Math.PI*2);
}
newRadians = bubbleRadians + changeRadians;
bubbleCoords.bubbleX = xCenter + (Math.cos(newRadians) * bubbleRadius);
bubbleCoords.bubbleY = yCenter - (Math.sin(newRadians) * bubbleRadius);
return(bubbleCoords);
}
function makeBubbles() {
if (bubblesmade != bubblesize) {
removeBubbles();
resetStats();
xPitch = bubblesize + (0.0645161290322581 * bubblesize);
yPitch = bubblesize - (0.0689655172413793 * bubblesize);
bubbleCols = Math.round(sheet._width / xPitch) + 1;
bubbleRows = Math.round(sheet._height / yPitch) + 1;
var col = 0;
while (col < bubbleCols) {
var row = 0;
while (row < bubbleRows) {
var x = ((col * xPitch) + startx);
if ((row % 2) != 0) {
x = x + (xPitch / 2);
}
var y = ((row * yPitch) + starty);
sheet.attachMovie("Pop", (("pr" + row) + "c") + col, (bubbleCols * row) + col, {_x:x, _y:y, _xscale:100 * (bubblesize / 31), _yscale:100 * (bubblesize / 31), r:row, c:col});
newBubble = sheet[(("pr" + row) + "c") + col];
var bounds = newBubble.getBounds(_root);
if ((((bounds.xMax > sheetmask._width) || (bounds.xMin < 0)) || (bounds.yMax > sheetmask._height)) || (bounds.yMin < 0)) {
newBubble.poppable = false;
}
row++;
}
col++;
}
bubblesmade = bubblesize;
} else {
resetSheet();
}
}
function enableSheet(enable) {
if (enable) {
onpress = Pop.prototype.onPress;
} else {
onpress = null;
}
var col = 0;
while (col < bubbleCols) {
var row = 0;
while (row < bubbleRows) {
sheet[(("pr" + row) + "c") + col].onPress = onpress;
sheet[(("pr" + row) + "c") + col].useHandCursor = enable;
row++;
}
col++;
}
}
function resetSheet() {
resetStats();
for (bubble in sheet) {
if (typeof(sheet[bubble]) == "movieclip") {
sheet[bubble].onLoad();
}
}
}
function restartTimer() {
minutes = "00";
seconds = "00";
tenths = "0";
buttonPressTime = (getTimer() / 1000) - pauseLength;
pause();
_root.scoresubmitted = false;
}
function pause() {
pauseTime = getTimer() / 1000;
timing = false;
txtMin.setTextFormat(timerOff);
txtColon.setTextFormat(timerOff);
txtSec.setTextFormat(timerOff);
txtDot.setTextFormat(timerOff);
txtTen.setTextFormat(timerOff);
}
function unpause() {
unpauseTime = getTimer() / 1000;
pauseLength = (unpauseTime - pauseTime) + pauseLength;
timing = true;
txtMin.setNewTextFormat(timerOn);
txtColon.setNewTextFormat(timerOn);
txtSec.setNewTextFormat(timerOn);
txtDot.setNewTextFormat(timerOn);
txtTen.setNewTextFormat(timerOn);
txtMin.setTextFormat(timerOn);
txtColon.setTextFormat(timerOn);
txtSec.setTextFormat(timerOn);
txtDot.setTextFormat(timerOn);
txtTen.setTextFormat(timerOn);
}
Math.randomBetween = function (a, b) {
return(a + Math.floor(Math.random() * ((b - a) + 1)));
};
Pop.prototype = new MovieClip();
Pop.prototype.onLoad = function () {
if (this.poppable) {
if (Math.randomBetween(1, 225) == 1) {
buddycase = Math.randomBetween(1, 3);
switch (buddycase) {
case 1 :
buddyc = this.c - 1;
buddyr = this.r;
break;
case 2 :
buddyc = this.c;
buddyr = this.r - 1;
if ((this.r % 2) == 0) {
buddyc--;
}
break;
case 3 :
buddyc = this.c + 1;
buddyr = this.r - 1;
if ((this.r % 2) != 0) {
break;
}
buddyc--;
}
if (sheet[(("pr" + buddyr) + "c") + buddyc].poppable) {
this.buddy = (("pr" + buddyr) + "c") + buddyc;
sheet[(("pr" + buddyr) + "c") + buddyc].buddy = (("pr" + this.r) + "c") + this.c;
}
} else {
this.buddy = null;
}
this.gotoAndStop(Math.randombetween(1, 6));
numpoppable++;
} else {
this.gotoAndStop(Math.randombetween(10, 15));
}
};
Pop.prototype.onPress = function (manic) {
if (this._currentframe < 10) {
this.gotoAndStop(Math.randomBetween(10, 15));
specialrandom = Math.randomBetween(1, 2000);
if (((this.buddy != null) && (!Key.isDown(66))) && (sheet[this.buddy]._currentFrame >= 10)) {
sheet[this.buddy].gotoAndStop(Math.randomBetween(1, 6));
buddysound.start();
this.buddyswaps++;
numpopped--;
if (manic) {
nummanic--;
}
if (this.buddyswaps > 3) {
buddypopup(true);
this.buddyswaps = 0;
}
} else if ((specialrandom < 5) && (!manic)) {
specialsound[specialrandom].start();
} else if (specialrandom == 5) {
fartx = this._x;
farty = this._y;
fartscale = bubblesize * 3;
fartrot = Math.RandomBetween(0, 360);
smokeinst = ("inst" + fartx) + farty;
sheet.attachMovie("smoke", smokeinst, (numpoppable * fartx) + farty, {_x:fartx, _y:farty, _rotation:fartrot, _xscale:fartscale, _yscale:fartscale});
} else {
popsound[Math.randomBetween(1, 9)].start();
}
numpopped++;
if (numpopped == 1) {
unpause();
}
if (manic) {
nummanic++;
}
if (numpopped == numpoppable) {
pause();
_root.play();
}
}
};
Pop.prototype.onRollOver = function () {
if (Key.isDown(16) || (chkManic.getValue())) {
this.onPress(true);
}
};
Pop.prototype.tabEnabled = false;
Pop.prototype.poppable = true;
Pop.prototype.buddyswaps = 0;
Pop.prototype.buddy = null;
Pop.prototype.r = (Pop.prototype.c = 0);
Object.registerClass("Pop", Pop);
var startx = 2;
var starty = 2;
timerOn = new TextFormat();
timerOff = new TextFormat();
timerOn.color = 34816;
timerOff.color = 16711680 /* 0xFF0000 */;
_root.onLoad = function () {
presetsmall = 20;
presetmedium = 31;
presetlarge = 49;
_root.scoresubmitted = false;
_root.username = null;
setBubbleSize(presetmedium);
makeBubbles();
};
popsound = new Array();
var n = 1;
while (n < 10) {
popsound[n] = new Sound();
popsound[n].attachSound("bw-pop" + n);
n++;
}
specialsound = new Array();
var n = 1;
while (n < 5) {
specialsound[n] = new Sound();
n++;
}
specialsound[1].attachSound("aroogalong");
specialsound[2].attachSound("flush3");
specialsound[3].attachSound("splash");
specialsound[4].attachSound("splat");
buddysound = new Sound();
buddysound.attachSound("buddyswap");
xCenter = sheet._width / 2;
yCenter = sheet._height / 2;
_root.onEnterFrame = function () {
totalTime = (getTimer() / 1000) - pauseLength;
goTime = totalTime - buttonPressTime;
if (timing) {
hours = Math.floor(goTime / 3600);
minutes = Math.floor(((goTime / 3600) - hours) * 60);
seconds = Math.floor(((((goTime / 3600) - hours) * 60) - minutes) * 60);
tenths = Math.floor((gotime - ((seconds + (minutes * 60)) + (hours * 3600))) * 10);
minutes = minutes + (hours * 60);
if (seconds < 10) {
seconds = "0" + seconds;
}
if (minutes < 10) {
minutes = "0" + minutes;
}
if (minutes == "99") {
if (seconds == "59") {
if ((tenths = "9")) {
pause();
_root.play();
}
}
}
}
};
stop();
Instance of Symbol 219 MovieClip [FCheckBoxSymbol] "chkManic" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "";
}
Frame 2
enableSheet(false);
Frame 5
if (numpopped == 1) {
bubplural = "";
} else {
bubplural = "s";
}
popreport = (("You popped " + numpopped) + " bubble") + bubplural;
mintext = new String(minutes);
if (mintext.charAt(0) == "0") {
mintext = mintext.slice(1);
}
if (mintext == "1") {
minplural = "";
} else {
minplural = "s";
}
sectext = new String(seconds);
tentext = new String(tenths);
if (sectext.charAt(0) == "0") {
sectext = sectext.slice(1);
}
if ((sectext == "1") && (tentext == "0")) {
secplural = "";
} else {
secplural = "s";
}
if (mintext != "0") {
minreport = (mintext + " minute") + minplural;
} else {
minreport = "";
}
if (minreport != "") {
secreport = " and " + sectext;
} else {
secreport = sectext;
}
if (tentext != "0") {
secreport = secreport + ("." + tentext);
}
secreport = secreport + (" second" + secplural);
if ((minreport == "") && (tenths == "0")) {
secreport = secreport + " flat";
}
if ((sectext == "0") && (tentext == "0")) {
secreport = " flat";
}
timereport = ("in " + minreport) + secreport;
if (((minutes == 99) && (seconds == 59)) && (tenths == 9)) {
timereport = "and ran out the timer";
}
if (nummanic == 0) {
manicreport = "without using ";
} else if (nummanic == numpopped) {
manicreport = "using ";
} else {
manicreport = ("with " + Math.round((100 * nummanic) / numpopped)) + "% use of ";
}
manicreport = manicreport + "Manic Mode!";
youpopped = (((popreport + newline) + timereport) + newline) + manicreport;
allseconds = (parseInt(seconds) + (parseInt(tenths) / 10)) + (parseInt(minutes) * 60);
bps = round(numpopped / allseconds, 2);
speed = ("Speed: " + bps) + " bubbles per second";
stop();
Frame 10
enableSheet(false);
stop();
Frame 15
enableSheet(false);
stop();
Frame 20
function ResultSet(data) {
this.rs = data;
this.currentRow = -1;
this.totalRows = this.rs.length - 1;
this.totalColumns = this.rs[0].length;
}
function Sql() {
this.queryVariableName = "query";
this.columnDelimiter = "\x02";
this.rowDelimiter = "\x03";
this.lastQuery = null;
this.errorName = "errorMessage=";
this.successName = "statementSuccess=true";
this.active = false;
this.serverUrl = "http://localhost/as/FlashSQL.jsp";
this.error = new Error("SQL Object Error");
}
function Error(type) {
this.errors = new Array();
this.type = type;
}
function writeRanks(max) {
_root.scores_ranks = "";
num = 1;
while (num <= max) {
_root.scores_ranks = _root.scores_ranks + (num + newline);
num++;
}
}
function EnableSubmit(enable) {
lblNameObj._visible = enable;
submitnameObj._visible = enable;
if (_root.username == null) {
submitnameObj.type = "input";
submitname = "";
} else {
submitnameObj.type = "dynamic";
submitnameObj.backgroundColor = 13421772 /* 0xCCCCCC */;
submitnameObj.selectable = false;
submitname = _root.username;
}
btnSubmitObj._visible = enable;
btnSubmitObj.enabled = enable;
}
function findHigh() {
var highestPrev = 0;
if ((_root.username != null) && (scores != null)) {
scores.first();
var index = 1;
while ((index <= scores.getRowCount()) && (highestPrev == 0)) {
if (scores.getIndex(0) == _root.username) {
var seconds = parseFloat(scores.getIndex(1));
var bubbles = parseFloat(scores.getIndex(2));
highestPrev = bubbles / seconds;
}
scores.next();
index++;
}
}
return(_root.round(highestPrev, 2));
}
function updateReport() {
var highestPrev = findHigh(scores);
if (numpopped != numpoppable) {
txtScoreStatus = ("Your score of " + newbps) + " bps is invalid because you";
txtScoreStatus = txtScoreStatus + "\rdid not pop all of the bubbles on the sheet!";
} else if ((nummanic != 0) && (nummanic != numpopped)) {
txtScoreStatus = ("Your score was " + newbps) + " bps using partial Manic Mode.";
txtScoreStatus = txtScoreStatus + "\rOnly fully Manual or Manic scores may be submitted.";
} else if (_root.scoresubmitted) {
txtScoreStatus = (("Your score of " + newbps) + " bps has been submitted") + newline;
txtScoreStatus = txtScoreStatus + (((("to the " + method) + " ") + numpopped) + " ");
txtScoreStatus = txtScoreStatus + (countToSize(numpopped) + " Bubbles top 50.");
} else if (parseFloat(newbps) <= parseFloat(highestPrev)) {
txtScoreStatus = ("There is already a score of " + highestPrev) + " bps under your name.";
txtScoreStatus = txtScoreStatus + (("\rYour score of " + newbps) + " bps didn't beat it. Keep trying!");
} else if (scoresDone) {
if (scoresSuccess) {
if ((parseFloat(newbps) > scoresMinBPS) || (scoresCount < 50)) {
txtScoreStatus = ("Your score of " + newbps) + " bps makes the top 50!";
if (_root.username == null) {
txtScoreStatus = txtScoreStatus + "\rYou may enter your name below and submit your score.";
} else {
txtScoreStatus = txtScoreStatus + "\rYou may submit your new score below.";
}
EnableSubmit(true);
} else {
txtScoreStatus = ((("Your score of " + newbps) + " bps") + newline) + "doesn't make the top 50.";
}
} else {
txtScoreStatus = ((("Your score was " + newbps) + " bps,") + newline) + "but the High Scores could not be checked.";
}
}
}
function loadScores() {
txtSQLstatus = "Loading high scores... ";
_root.scores_bubbles = "";
_root.scores_seconds = "";
_root.scores_bps = "";
_root.scores_name = "";
scoresDone = false;
if (!s_scores.isActive()) {
var sql = (((("SELECT name, seconds, bubbles FROM scores WHERE bubbles = " + numpopped) + " AND mbubbles = ") + nummanic) + " ORDER BY bubbles/seconds DESC LIMIT 50;");
s_scores.execute(sql);
}
}
function submitOnData(rs) {
if (s_submit.isError()) {
trace(s_submit.getError());
txtSQLstatus = "Server error - The score was not submitted.";
EnableSubmit(true);
} else {
_root.scoresubmitted = true;
EnableSubmit(false);
loadScores();
}
}
function scoresOnData(rs) {
scores = rs;
if (rs == null) {
if (s_scores.isError()) {
trace(s_scores.getError());
txtSQLstatus = txtSQLstatus + "Connection failed.";
scoresSuccess = false;
} else {
trace("The query did not return a result set");
txtSQLstatus = txtSQLstatus + "No scores to show.";
scoresSuccess = true;
}
scoresDone = true;
updateReport(rs);
return(undefined);
}
txtSQLstatus = txtSQLstatus + "Scores loaded.";
rs.next();
var bps;
while (rs.next()) {
var name = rs.getIndex(0);
var seconds = parseFloat(rs.getIndex(1));
var bubbles = parseFloat(rs.getIndex(2));
bps = _root.round(bubbles / seconds, 2);
_root.scores_bubbles = _root.scores_bubbles + (bubbles + newline);
_root.scores_seconds = _root.scores_seconds + (seconds + newline);
_root.scores_bps = _root.scores_bps + (bps + newline);
_root.scores_name = _root.scores_name + (name + newline);
}
scoresSuccess = true;
scoresDone = true;
scoresMinBPS = bps;
scoresCount = rs.getRowCount();
updateReport();
}
function countToSize(bubbles) {
var size;
if (bubbles == "77") {
size = "Large";
} else if (bubbles == "196") {
size = "Medium";
} else if (bubbles == "506") {
size = "Small";
} else {
size = "Illegal";
}
return(size);
}
String.prototype.ltrim = function () {
var size = this.length;
i = 0;
while (i < size) {
if (this.charCodeAt(i) > 32) {
return(this.substring(i));
}
i++;
}
return("");
};
String.prototype.rtrim = function () {
var size = this.length;
i = size;
while (i > 0) {
if (this.charCodeAt(i) > 32) {
return(substring(this, 0, i + 1));
}
i--;
}
return("");
};
String.prototype.trim = function () {
return(this.rtrim().ltrim());
};
String.prototype.endsWith = function (s) {
return((substring(this, (this.length - s.length) + 1, -1)) == s);
};
String.prototype.beginsWith = function (s) {
return(s == (substring(this, 1, s.length)));
};
String.prototype.charAt = function (index) {
return(substring(this, index + 1, 1));
};
String.prototype.concat = function () {
var r = this.toString();
var i = 0;
while (i < arguments.length) {
r = r + arguments[i];
i++;
}
return(r);
};
String.prototype.indexOf = function (sub, i) {
if (i == null) {
i = 0;
}
var size = sub.length;
var last = ((this.length - size) + 1);
while ((i <= last) && ((substring(this, 1 + (i++), size)) != sub)) {
}
return(((i <= last) ? (i - 1) : -1));
};
String.prototype.lastIndexOf = function (sub, i) {
size = sub.length;
((i == null) ? ((i = (this.length - size) + 1)) : (++i));
if (sub.length == 0) {
return(i - 1);
}
while ((i >= 0) && ((substring(this, i--, size)) != sub)) {
}
return(((i == -1) ? -1 : (i)));
};
String.prototype.slice = function (s, e) {
return(substring(this, s + 1, e - s));
};
String.prototype.split = function (d) {
if (d != null) {
var r = new Array();
var size = this.length;
var c = 0;
var n = 0;
if (d != "") {
var i = 0;
while (i <= size) {
if ((substring(this, i + 1, 1)) == d) {
r[n] = substring(this, c + 1, i - c);
c = i + 1;
n++;
}
i++;
}
if (c != i) {
r[n] = substring(this, c + 1, i - c);
}
} else {
var i = 0;
while (i < s) {
r[i] = substring(this, i + 1, 1);
i++;
}
}
} else {
r = new Array(this.toString());
}
return(r);
};
String.prototype.substr = function (s, l) {
if (l == null) {
l = this.length - s;
}
return(substring(this, s + 1, l));
};
ResultSet.prototype.first = function () {
this.currentRow = 1;
};
ResultSet.prototype.beforeFirst = function () {
this.currentRow = 0;
};
ResultSet.prototype.last = function () {
this.currentRow = this.totalRows;
};
ResultSet.prototype.absolute = function (row) {
if ((row < 0) || (row > (this.totalRows - 1))) {
new Error("ResultSet Object Error").writeError("Index Out of Bounds Error. You attempted to move to a row in the result set that does not exist");
return(undefined);
}
this.currentRow = row + 1;
};
ResultSet.prototype.next = function () {
if (this.currentRow == this.totalRows) {
return(false);
}
this.currentRow++;
return(true);
};
ResultSet.prototype.previous = function () {
if (this.currentRow == 1) {
return(false);
}
this.currentRow--;
return(true);
};
ResultSet.prototype.getColumnCount = function () {
return(this.totalColumns);
};
ResultSet.prototype.getRowCount = function () {
return(this.totalRows);
};
ResultSet.prototype.getIndex = function (i) {
if (this.currentRow == -1) {
new Error("ResultSet Object Error").writeError("You must call next() or move to a row in the result set before attempting to retrieve data.");
return(undefined);
}
if ((i > (this.totalColumns - 1)) || (i < 0)) {
new Error("ResultSet Object Error").writeError("Invalid Column Index. You have specified an invalid column index. The index specified was : " + i);
return(undefined);
}
return(this.rs[this.currentRow][i]);
};
ResultSet.prototype.getData = function (string) {
if (this.currentRow == -1) {
new Error("ResultSet Object Error").writeError("You must call next() or move to a row in the result set before attempting to retrieve data.");
return(undefined);
}
this.index = -1;
this.tempSize = this.rs[0].length;
this.i = 0;
while (this.i < this.tempSize) {
if (this.rs[0][this.i] == string) {
return(this.rs[this.currentRow][this.i]);
}
this.i++;
}
if (this.index == -1) {
new Error("ResultSet Object Error").writeError("Invalid column name. The column name specified does not exist. Column name requested : " + string);
return(undefined);
}
return(undefined);
};
ResultSet.prototype.toString = function () {
this.tempS = "";
this.rowN = this.rs.length;
this.colN = this.rs[0].length;
this.i = 0;
while (this.i < this.rowN) {
this.k = 0;
while (this.k < this.colN) {
this.tempS = this.tempS + this.rs[this.i][this.k];
this.tempS = this.tempS + ((this.k != (this.colN - 1)) ? "," : "");
this.k++;
}
this.tempS = this.tempS + newline;
this.i++;
}
return(this.tempS);
};
ResultSet.prototype.getCurrentRow = function () {
return(this.currentRow);
};
ResultSet.prototype.getColumnNames = function () {
return(this.rs[0]);
};
Sql.prototype.onData = function (doc) {
this.active = false;
doc = doc.trim();
if (doc.beginsWith(this.errorName)) {
this.error.writeError(((("An error occured processing your sql query with the SQL object.\nThe sql query executed was : " + this.lastQuery) + newline) + "The error message is : ") + (substring(doc, this.errorName.length + 1, -1)));
this.sqlOnData(null);
return(undefined);
}
if (doc.beginsWith(this.successName)) {
this.sqlOnData(null);
return(undefined);
}
this.rows = new Array();
this.columns = new Array();
this.rows = doc.split(this.rowDelimiter);
this.k = this.rows.length;
this.i = 0;
while (this.i < this.k) {
this.columns[this.i] = this.rows[this.i].split(this.columnDelimiter);
this.i++;
}
this.rs = new ResultSet(this.columns);
this.sqlOnData(this.rs);
this.dataLoaded = true;
};
Sql.prototype.getError = function () {
return(this.error.removeLastError());
};
Sql.prototype.isError = function () {
return(this.error.getErrorCount() > 0);
};
Sql.prototype.execute = function (query) {
this.lastQuery = query;
this.active = true;
loadstring = ((((((((((this.serverUrl + "?") + this.queryVariableName) + "=") + escape(query)) + "&columnDelimiter=") + escape(this.columnDelimiter)) + "&rowDelimiter=") + escape(this.rowDelimiter)) + "&errorName=") + escape(this.errorName)) + "&rnd=";
addlength = Math.floor(Math.random() * 64) + 32;
querystring = new String(query);
totallength = new Number(querystring.length + addlength);
addstring = new String((totallength * 1742242).toString(15) + "f");
while (addstring.length < addlength) {
rnd = new Number(Math.floor(Math.random() * 16));
addstring = addstring + rnd.toString(16);
}
this.load(loadstring + addstring);
};
Sql.prototype.setServerUrl = function (url) {
this.serverUrl = url;
};
Sql.prototype.isActive = function () {
return(this.active);
};
Sql.prototype.setColumnDelimiter = function (del) {
if (del.length > 1) {
this.error.writeError("Warning: the SQL column delimiter can only be one character. \nsetColumnDelimiter() command being ignored.");
return(undefined);
}
this.columnDelimiter = del;
};
Sql.prototype.setRowDelimiter = function (del) {
if (del.length > 1) {
this.error.writeError("Warning: the SQL row delimiter can only be one character. \nsetRowDelimiter() command being ignored.");
return(undefined);
}
this.rowDelimiter = del;
};
Sql.prototype.setQueryVariableName = function (qName) {
this.queryVariableName = qName;
};
Sql.prototype.setErrorName = function (errorName) {
this.errorName = errorName;
};
Sql.prototype.setSuccessName = function (successName) {
this.successName = successName;
};
Sql.prototype.__proto__ = XML.prototype;
Sql.prototype.superClass = XML.prototype.constructor;
Error.prototype.writeError = function (error) {
trace("");
trace(("----------------------" + this.type) + "-------------------------------------");
trace(error);
trace("--------------------------------------------------------------------------------");
trace("");
this.logError(error);
};
Error.prototype.logError = function (error) {
this.errors.push(error);
};
Error.prototype.getErrorCount = function () {
return(this.errors.length);
};
Error.prototype.getErrors = function () {
return(this.errors);
};
Error.prototype.getLastError = function () {
if (this.errors.length == 0) {
return(null);
}
return(this.errors[this.errors.length - 1]);
};
Error.prototype.removeLastError = function () {
if (this.errors.length == 0) {
return(null);
}
return(this.errors.pop());
};
Error.prototype.clear = function () {
this.errors = new Array();
};
Error.prototype.getType = function () {
return(this.type);
};
String.prototype.searchReplace = function (find, replace) {
return(this.split(find).join(replace));
};
if (nummanic == numpopped) {
method = "Manic";
} else if (nummanic == 0) {
method = "Manual";
} else {
method = "Mixed";
}
scoresTitle = ((((numpopped + " ") + countToSize(numpopped)) + " Bubbles - ") + method) + " Mode";
EnableSubmit(false);
txtScoreStatus = "";
var scores;
writeRanks(50);
newbps = _root.round(numpopped / allseconds, 2);
serverURL = "http://www.virtual-bubblewrap.com/ultrasecretiamnotherelalala.php";
s_scores = new Sql();
s_scores.sqlOnData = scoresOnData;
s_scores.setServerUrl(serverURL);
s_submit = new Sql();
s_submit.sqlOnData = submitOnData;
s_submit.setServerUrl(serverURL);
loadScores();
Instance of Symbol 216 MovieClip [FScrollPaneSymbol] "scorescrollpane" in Frame 20
//component parameters
onClipEvent (initialize) {
scrollContent = "scoresheet";
hScroll = false;
vScroll = "auto";
dragContent = true;
}
Symbol 29 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 39 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 49 MovieClip [UpArrow] Frame 1
stop();
Symbol 49 MovieClip [UpArrow] Frame 2
stop();
Symbol 49 MovieClip [UpArrow] Frame 3
stop();
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 63 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 68 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 69 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 77 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 85 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 93 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 94 MovieClip [DownArrow] Frame 1
stop();
Symbol 94 MovieClip [DownArrow] Frame 2
stop();
Symbol 94 MovieClip [DownArrow] Frame 3
stop();
Symbol 102 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 105 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 108 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 110 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 113 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 116 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 117 MovieClip [fcb_states] Frame 1
stop();
Symbol 117 MovieClip [fcb_states] Frame 2
stop();
Symbol 117 MovieClip [fcb_states] Frame 3
stop();
Symbol 117 MovieClip [fcb_states] Frame 4
stop();
Symbol 117 MovieClip [fcb_states] Frame 5
stop();
Symbol 117 MovieClip [fcb_states] Frame 6
stop();
Symbol 121 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 128 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 134 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 140 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 146 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 147 MovieClip [fpb_states] Frame 1
stop();
Symbol 147 MovieClip [fpb_states] Frame 2
stop();
Symbol 147 MovieClip [fpb_states] Frame 3
stop();
Symbol 147 MovieClip [fpb_states] Frame 4
stop();
Symbol 148 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 151 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 151 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 154 MovieClip [FPushButtonSymbol] Frame 1
#initclip 5
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = ((arguments.length > 1) ? (h) : (hit._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = ((w < 6) ? 6 : (w));
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - (this.getBtnState() * this.incrVal);
this.inity = this[mc]._y - (this.getBtnState() * this.incrVal);
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 179 MovieClip [Pop] Frame 1
stop();
Symbol 179 MovieClip [Pop] Frame 2
stop();
Symbol 179 MovieClip [Pop] Frame 3
stop();
Symbol 179 MovieClip [Pop] Frame 4
stop();
Symbol 179 MovieClip [Pop] Frame 5
stop();
Symbol 179 MovieClip [Pop] Frame 6
stop();
Symbol 179 MovieClip [Pop] Frame 10
stop();
Symbol 179 MovieClip [Pop] Frame 11
stop();
Symbol 179 MovieClip [Pop] Frame 12
stop();
Symbol 179 MovieClip [Pop] Frame 13
stop();
Symbol 179 MovieClip [Pop] Frame 14
stop();
Symbol 179 MovieClip [Pop] Frame 15
stop();
Symbol 184 MovieClip [fart] Frame 18
stop();
unloadMovie (this);
Symbol 187 MovieClip [smoke] Frame 15
this.removeMovieClip();
stop();
Symbol 205 Button
on (release) {
_root.buddypopup(false);
}
Symbol 209 Button [btnScoreSubmit]
on (release) {
this.enabled = false;
_root.username = submitname;
if (parseFloat(newbps) <= parseFloat(findHigh())) {
EnableSubmit(false);
updateReport();
return(undefined);
}
if (!s_submit.isActive()) {
safename = new String();
safename = safename + submitname;
safename = safename.searchReplace("'", "''");
backslash = String.fromCharCode(92);
safename = safename.searchReplace(backslash, backslash + backslash);
txtSQLstatus = "Submitting new score...";
var sql;
if (parseFloat(findHigh()) == 0) {
sql = "INSERT INTO scores (name, seconds, bubbles, mbubbles) VALUES (";
sql = sql + (("'" + safename) + "', ");
sql = sql + (allseconds + ", ");
sql = sql + (numpopped + ", ");
sql = sql + (nummanic + ");");
} else {
sql = "UPDATE scores SET seconds=" + allseconds;
sql = sql + ((" WHERE name='" + safename) + "'");
sql = sql + (" AND bubbles=" + numpopped);
sql = sql + ((" AND mbubbles=" + nummanic) + ";");
}
s_submit.execute(sql);
}
}
Symbol 211 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 212 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 216 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 6
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var xPos = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var yPos = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:xPos, y:yPos});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var contentBounds = this.content_mc.getBounds(this);
this.offset.x = -contentBounds.xMin;
this.offset.y = -contentBounds.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var pos = component.getScrollPosition();
var XorY = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-pos) + this.offset.x;
} else {
this.content_mc._y = (-pos) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var posX = this.hScrollBar_mc.getScrollPosition();
var posY = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(posX - 3, posY);
} else if (Key.isDown(39)) {
this.setScrollPosition(posX + 3, posY);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(posX, posY - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(posX, posY + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(posX, posY + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(posX, posY - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 212 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 216 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 213 MovieClip "loadContent" in Symbol 216 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 219 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 4
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = this.fcb_states_mc._width;
var frame = this.fcb_states_mc;
var label = this.fLabel_mc;
var w = 0;
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = checkWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - checkWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var hit = this.fcb_hitArea_mc;
this.hitArea = hit;
if (this.fcb_states_mc._width > w) {
hit._width = this.fcb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var states = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
states.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
states.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 224 Button
on (release) {
click = new Sound();
click.attachSound("must-have-more");
click.start();
resetSheet();
restartTimer();
}
Symbol 228 Button
on (release) {
pause();
_root.gotoAndStop(10);
}
Symbol 246 MovieClip Frame 1
if (_root.bubblesize == _root.presetsmall) {
this.gotoAndStop(2);
} else if (_root.bubblesize == _root.presetlarge) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
Symbol 247 Button
on (release) {
pause();
_root.gotoAndStop(15);
}
Symbol 252 Button
on (release) {
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
resetSheet();
}
Symbol 253 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 262 Button
on (release) {
_root.gotoAndStop(15);
}
Symbol 270 Button
on (press) {
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
resetSheet();
}
Symbol 275 Button
on (release) {
_root.gotoAndStop(20);
}
Symbol 278 Button
on (release) {
if (numpopped != numpoppable) {
_root.gotoAndStop(1);
enableSheet(true);
if (numpopped > 0) {
unpause();
} else {
restartTimer();
}
} else {
_root.gotoAndStop(5);
}
}
Symbol 295 Button
on (release) {
getURL ("http://www.virtual-bubblewrap.com/about.shtml", "_top");
}
Symbol 296 Button
on (release) {
if (numpopped != numpoppable) {
_root.gotoAndStop(1);
enableSheet(true);
if (numpopped > 0) {
unpause();
} else {
restartTimer();
}
} else {
_root.gotoAndStop(5);
}
}
Symbol 304 Button
on (release) {
if (numpopped != numpoppable) {
_root.gotoAndStop(1);
enableSheet(true);
if (numpopped > 0) {
unpause();
} else {
restartTimer();
}
} else {
_root.gotoAndStop(5);
}
}
Symbol 309 Button
on (release) {
setBubbleSize(presetlarge);
makeBubbles();
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
}
Symbol 313 Button
on (release) {
setBubbleSize(presetmedium);
makeBubbles();
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
}
Symbol 317 Button
on (release) {
setBubbleSize(presetsmall);
makeBubbles();
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
}
Symbol 332 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 334 Button
on (press) {
loadScores();
}