Frame 1
function round(num, precision) {
var _local3 = 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 (_local3 == null) {
_local3 = 2;
}
var _local2 = num.toString();
var decimal_places = Math.pow(10, _local3);
var zeros;
var _local1;
if (_local2.indexOf(".") != -1) {
num = Math.round(num * decimal_places) / decimal_places;
_local2 = num.toString();
if (_local2.indexOf(".") == -1) {
_local2 = _local2 + ".";
_local1 = _local3;
while (_local1 > 0) {
_local2 = _local2 + "0";
_local1--;
}
num = _local2;
} else {
zeros = _local3 - ((_local2.length - 1) - _local2.indexOf("."));
if (zeros > 0) {
_local1 = zeros;
while (_local1 > 0) {
_local2 = _local2 + "0";
_local1--;
}
}
num = _local2;
}
} else {
_local2 = _local2 + ".";
_local1 = _local3;
while (_local1 > 0) {
_local2 = _local2 + "0";
_local1--;
}
num = _local2;
}
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) {
var _local1 = bubbleCoords;
bubbleA = _local1.bubbleX - xCenter;
bubbleB = _local1.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;
_local1.bubbleX = xCenter + (Math.cos(newRadians) * bubbleRadius);
_local1.bubbleY = yCenter - (Math.sin(newRadians) * bubbleRadius);
return(_local1);
}
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 _local2 = 0;
while (_local2 < bubbleCols) {
var _local1 = 0;
while (_local1 < bubbleRows) {
var x = ((_local2 * xPitch) + startx);
if ((_local1 % 2) != 0) {
x = x + (xPitch / 2);
}
var y = ((_local1 * yPitch) + starty);
sheet.attachMovie("Pop", (("pr" + _local1) + "c") + _local2, (bubbleCols * _local1) + _local2, {_x:x, _y:y, _xscale:100 * (bubblesize / 31), _yscale:100 * (bubblesize / 31), r:_local1, c:_local2});
newBubble = sheet[(("pr" + _local1) + "c") + _local2];
var _local3 = newBubble.getBounds(_root);
if ((((_local3.xMax > sheetmask._width) || (_local3.xMin < 0)) || (_local3.yMax > sheetmask._height)) || (_local3.yMin < 0)) {
newBubble.poppable = false;
}
_local1++;
}
_local2++;
}
bubblesmade = bubblesize;
} else {
resetSheet();
}
}
function enableSheet(enable) {
var _local3 = enable;
if (_local3) {
onpress = Pop.prototype.onPress;
} else {
onpress = null;
}
var _local2 = 0;
while (_local2 < bubbleCols) {
var _local1 = 0;
while (_local1 < bubbleRows) {
sheet[(("pr" + _local1) + "c") + _local2].onPress = onpress;
sheet[(("pr" + _local1) + "c") + _local2].useHandCursor = _local3;
_local1++;
}
_local2++;
}
}
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 () {
var _local1 = this;
if (_local1.poppable) {
if (Math.randomBetween(1, 225) == 1) {
buddycase = Math.randomBetween(1, 3);
switch (buddycase) {
case 1 :
buddyc = _local1.c - 1;
buddyr = _local1.r;
break;
case 2 :
buddyc = _local1.c;
buddyr = _local1.r - 1;
if ((_local1.r % 2) == 0) {
buddyc--;
}
break;
case 3 :
buddyc = _local1.c + 1;
buddyr = _local1.r - 1;
if ((_local1.r % 2) != 0) {
break;
}
buddyc--;
}
if (sheet[(("pr" + buddyr) + "c") + buddyc].poppable) {
_local1.buddy = (("pr" + buddyr) + "c") + buddyc;
sheet[(("pr" + buddyr) + "c") + buddyc].buddy = (("pr" + _local1.r) + "c") + _local1.c;
}
} else {
_local1.buddy = null;
}
_local1.gotoAndStop(Math.randombetween(1, 6));
numpoppable++;
} else {
_local1.gotoAndStop(Math.randombetween(10, 15));
}
};
Pop.prototype.onPress = function (manic) {
var _local1 = this;
var _local2 = manic;
if (_local1._currentframe < 10) {
_local1.gotoAndStop(Math.randomBetween(10, 15));
specialrandom = Math.randomBetween(1, 2000);
if (((_local1.buddy != null) && (!Key.isDown(66))) && (sheet[_local1.buddy]._currentFrame >= 10)) {
sheet[_local1.buddy].gotoAndStop(Math.randomBetween(1, 6));
buddysound.start();
_local1.buddyswaps++;
numpopped--;
if (_local2) {
nummanic--;
}
if (_local1.buddyswaps > 3) {
buddypopup(true);
_local1.buddyswaps = 0;
}
} else if ((specialrandom < 5) && (!_local2)) {
specialsound[specialrandom].start();
} else if (specialrandom == 5) {
fartx = _local1._x;
farty = _local1._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 (_local2) {
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 230 MovieClip [FCheckBoxSymbol] "chkManic" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "";
}
Frame 2
enableSheet(false);
Frame 5
function textFeedback(theFeedback) {
txtcopyfeedback = theFeedback;
setTimeout(function () {
txtcopyfeedback = "";
}, 1200);
}
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";
_root.htmlcode = (((((("<table border=\"2\" cellpadding=\"5\" cellspacing=\"45\" bordercolor=\"#8FB2CE\" background=\"http://virtual-bubblewrap.com/images/bubblebadgebg.jpg\" bgcolor=\"#FFFFFF\"><tr> <td valign=\"middle\" bgcolor=\"#FFFFFF\"><p align=\"center\"><font color=\"#FF0000\"><b>I pop bubble wrap at " + bps) + " bubbles per second!</b></font></p> <p align=\"center\"><font color=\"#0033CC\">I popped ") + numpopped) + " bubbles in ") + minreport) + secreport) + "<br /> at <a href=\"http://www.virtual-bubblewrap.com\"><b>www.Virtual-Bubblewrap.com</b></a>!<br />Can you beat my score?</font></p></td></tr></table>";
btncopy.onRelease = (htmlcodetext.onPress = function () {
Selection.setFocus("htmlcodetext.txthtmlcode");
Selection.setSelection(0, htmlcodetext.txthtmlcode.text.length);
System.setClipboard(htmlcodetext.txthtmlcode.text);
textFeedback("HTML copied!");
});
stop();
Frame 10
enableSheet(false);
stop();
Frame 15
enableSheet(false);
stop();
Frame 20
function ResultSet(data) {
var _local1 = this;
_local1.rs = data;
_local1.currentRow = -1;
_local1.totalRows = _local1.rs.length - 1;
_local1.totalColumns = _local1.rs[0].length;
}
function scramble(thestring) {
var _local1 = thestring;
transform = "1-qQz,Z2@s{x3eD/c$4`rv5;%tg!b^yn&=7ujm8.ikM9ol0p";
displacement = Math.randomBetween(1, transform.length - 1);
newstring = "";
i = 0;
while (i < _local1.length) {
oldchar = _local1.charAt(i);
indexofoldchar = transform.indexOf(oldchar);
if (indexofoldchar > -1) {
indexofnewchar = indexofoldchar + displacement;
if (indexofnewchar > (transform.length - 1)) {
indexofnewchar = indexofnewchar - transform.length;
}
if (indexofnewchar < 0) {
indexofnewchar = indexofnewchar + transform.length;
}
newchar = transform.charAt(indexofnewchar);
} else {
newchar = oldchar;
}
newstring = newstring + newchar;
i++;
}
return(newstring);
}
function Sql() {
var _local1 = this;
_local1.queryVariableName = "query";
_local1.columnDelimiter = "\x02";
_local1.rowDelimiter = "\x03";
_local1.lastQuery = null;
_local1.errorName = "errorMessage=";
_local1.successName = "statementSuccess=true";
_local1.active = false;
_local1.serverUrl = "http://localhost/as/FlashSQL.jsp";
_local1.error = new Error("SQL Object Error");
}
function Error(type) {
this.errors = new Array();
this.type = type;
}
function writeRanks(max) {
var _local1 = _root;
var _local2 = max;
_local1.scores_ranks = "";
num = 1;
while (num <= _local2) {
_local1.scores_ranks = _local1.scores_ranks + (num + newline);
num++;
}
}
function EnableSubmit(enable) {
var _local1 = enable;
lblNameObj._visible = _local1;
submitnameObj._visible = _local1;
if (_root.username == null) {
submitnameObj.type = "input";
submitname = "";
} else {
submitnameObj.type = "dynamic";
submitnameObj.backgroundColor = 13421772 /* 0xCCCCCC */;
submitnameObj.selectable = false;
submitname = _root.username;
}
btnSubmitObj._visible = _local1;
btnSubmitObj.enabled = _local1;
}
function findHigh() {
var highestPrev = 0;
if ((_root.username != null) && (scores != null)) {
scores.first();
var _local1 = 1;
while ((_local1 <= scores.getRowCount()) && (highestPrev == 0)) {
if (scores.getIndex(0) == _root.username) {
var _local2 = parseFloat(scores.getIndex(1));
var _local3 = parseFloat(scores.getIndex(2));
highestPrev = _local3 / _local2;
}
scores.next();
_local1++;
}
if (highestPrev == 0) {
if ((!s_find.isActive()) && (_root.username != null)) {
var sql = ("action=find&name=" + _root.username);
sql = sql + ((("&bubbles=" + numpopped) + "&manic=") + nummanic);
s_find.execute(sql);
}
}
}
return(_root.round(highestPrev, 2));
}
function updateReport() {
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 (((nummanic == numpopped) && (parseFloat(newbps) > 45)) || ((nummanic == 0) && (parseFloat(newbps) > 10))) {
txtScoreStatus = "Congratulations! You know how to write a macro for your mouse!";
txtScoreStatus = txtScoreStatus + "\rHigh scores are for honest players. Sorry.";
} else if (parseFloat(newbps) <= parseFloat(highbps)) {
txtScoreStatus = ("There is already a score of " + highbps) + " 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() {
var _local1 = _root;
txtSQLstatus = "Loading high scores... ";
_local1.scores_bubbles = "";
_local1.scores_seconds = "";
_local1.scores_bps = "";
_local1.scores_name = "";
scoresDone = false;
if (!s_scores.isActive()) {
var _local2 = (("action=load&bubbles=" + numpopped) + "&manic=") + nummanic;
s_scores.execute(_local2);
}
}
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) {
var _local1 = _root;
var _local2 = rs;
scores = _local2;
if (_local2 == 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(_local2);
} else {
txtSQLstatus = txtSQLstatus + "Scores loaded.";
_local2.next();
var bps;
while (_local2.next()) {
var name = _local2.getIndex(0);
var _local3 = parseFloat(_local2.getIndex(1));
var bubbles = parseFloat(_local2.getIndex(2));
bps = _local1.round(bubbles / _local3, 2);
_local1.scores_bubbles = _local1.scores_bubbles + (bubbles + newline);
_local1.scores_seconds = _local1.scores_seconds + (_local3 + newline);
_local1.scores_bps = _local1.scores_bps + (bps + newline);
_local1.scores_name = _local1.scores_name + (name + newline);
}
scoresSuccess = true;
scoresDone = true;
scoresMinBPS = bps;
scoresCount = _local2.getRowCount();
updateReport();
}
}
function findOnData(rs) {
var _local1 = rs;
if (_local1 != null) {
_local1.first();
highbps = _local1.getIndex(0);
}
}
function countToSize(bubbles) {
var _local2 = bubbles;
var _local1;
if (_local2 == "77") {
_local1 = "Large";
} else if (_local2 == "196") {
_local1 = "Medium";
} else if (_local2 == "506") {
_local1 = "Small";
} else {
_local1 = "Illegal";
}
return(_local1);
}
String.prototype.ltrim = function () {
var _local1 = this;
var _local2 = _local1.length;
i = 0;
while (i < _local2) {
if (_local1.charCodeAt(i) > 32) {
return(_local1.substring(i));
}
i++;
}
return("");
};
String.prototype.rtrim = function () {
var _local1 = this;
var _local2 = _local1.length;
i = _local2;
while (i > 0) {
if (_local1.charCodeAt(i) > 32) {
return(substring(_local1, 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 _local2 = arguments;
var _local3 = this.toString();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + _local2[_local1];
_local1++;
}
return(_local3);
};
String.prototype.indexOf = function (sub, i) {
var _local1 = i;
if (_local1 == null) {
_local1 = 0;
}
var _local2 = sub.length;
var _local3 = (this.length - _local2) + 1;
while ((_local1 <= _local3) && ((substring(this, 1 + (_local1++), _local2)) != sub)) {
}
if (_local1 > _local3) {
return(-1);
}
return(_local1 - 1);
};
String.prototype.lastIndexOf = function (sub, i) {
var _local1 = i;
var _local2 = sub;
var _local3 = this;
size = _local2.length;
((_local1 == null) ? (_local1 = (_local3.length - size) + 1) : (_local1++));
if (_local2.length == 0) {
return(_local1 - 1);
}
while ((_local1 >= 0) && ((substring(_local3, _local1--, size)) != _local2)) {
}
if (_local1 != -1) {
return(_local1);
}
return(-1);
};
String.prototype.slice = function (s, e) {
return(substring(this, s + 1, e - s));
};
String.prototype.split = function (d) {
var _local3 = this;
if (d != null) {
var r = new Array();
var size = _local3.length;
var _local2 = 0;
var n = 0;
if (d != "") {
var _local1 = 0;
while (_local1 <= size) {
if ((substring(_local3, _local1 + 1, 1)) == d) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
_local2 = _local1 + 1;
n++;
}
_local1++;
}
if (_local2 != _local1) {
r[n] = substring(_local3, _local2 + 1, _local1 - _local2);
}
} else {
var _local1 = 0;
while (_local1 < s) {
r[_local1] = substring(_local3, _local1 + 1, 1);
_local1++;
}
}
} else {
r = new Array(_local3.toString());
}
return(r);
};
String.prototype.substr = function (s, l) {
var _local1 = l;
if (_local1 == null) {
_local1 = this.length - s;
}
return(substring(this, s + 1, _local1));
};
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) {
var _local1 = row;
if ((_local1 < 0) || (_local1 > (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");
} else {
this.currentRow = _local1 + 1;
}
};
ResultSet.prototype.next = function () {
var _local1 = this;
if (_local1.currentRow == _local1.totalRows) {
return(false);
}
_local1.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) {
var _local1 = this;
var _local2 = i;
if (_local1.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.");
} else if ((_local2 > (_local1.totalColumns - 1)) || (_local2 < 0)) {
new Error("ResultSet Object Error").writeError("Invalid Column Index. You have specified an invalid column index. The index specified was : " + _local2);
} else {
return(_local1.rs[_local1.currentRow][_local2]);
}
return(undefined);
};
ResultSet.prototype.getData = function (string) {
var _local1 = this;
var _local2 = string;
if (_local1.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.");
} else {
_local1.index = -1;
_local1.tempSize = _local1.rs[0].length;
_local1.i = 0;
while (_local1.i < _local1.tempSize) {
if (_local1.rs[0][_local1.i] == _local2) {
return(_local1.rs[_local1.currentRow][_local1.i]);
}
_local1.i++;
}
if (_local1.index == -1) {
new Error("ResultSet Object Error").writeError("Invalid column name. The column name specified does not exist. Column name requested : " + _local2);
return(undefined);
}
}
return(undefined);
};
ResultSet.prototype.toString = function () {
var _local1 = this;
_local1.tempS = "";
_local1.rowN = _local1.rs.length;
_local1.colN = _local1.rs[0].length;
_local1.i = 0;
while (_local1.i < _local1.rowN) {
_local1.k = 0;
while (_local1.k < _local1.colN) {
_local1.tempS = _local1.tempS + _local1.rs[_local1.i][_local1.k];
_local1.tempS = _local1.tempS + ((_local1.k != (_local1.colN - 1)) ? "," : "");
_local1.k++;
}
_local1.tempS = _local1.tempS + newline;
_local1.i++;
}
return(_local1.tempS);
};
ResultSet.prototype.getCurrentRow = function () {
return(this.currentRow);
};
ResultSet.prototype.getColumnNames = function () {
return(this.rs[0]);
};
Sql.prototype.onData = function (doc) {
var _local1 = this;
var _local2 = doc;
_local1.active = false;
_local2 = _local2.trim();
if (_local2.beginsWith(_local1.errorName)) {
_local1.error.writeError(((("An error occured processing your sql query with the SQL object.\nThe sql query executed was : " + _local1.lastQuery) + newline) + "The error message is : ") + (substring(_local2, _local1.errorName.length + 1, -1)));
_local1.sqlOnData(null);
} else if (_local2.beginsWith(_local1.successName)) {
_local1.sqlOnData(null);
} else {
_local1.rows = new Array();
_local1.columns = new Array();
_local1.rows = _local2.split(_local1.rowDelimiter);
_local1.k = _local1.rows.length;
_local1.i = 0;
while (_local1.i < _local1.k) {
_local1.columns[_local1.i] = _local1.rows[_local1.i].split(_local1.columnDelimiter);
_local1.i++;
}
_local1.rs = new ResultSet(_local1.columns);
_local1.sqlOnData(_local1.rs);
_local1.dataLoaded = true;
}
};
Sql.prototype.getError = function () {
return(this.error.removeLastError());
};
Sql.prototype.isError = function () {
return(this.error.getErrorCount() > 0);
};
Sql.prototype.execute = function (query) {
var _local1 = this;
_local1.lastQuery = query;
_local1.active = true;
actionstring = ((((((query + "&columnDelimiter=") + escape(_local1.columnDelimiter)) + "&rowDelimiter=") + escape(_local1.rowDelimiter)) + "&errorName=") + escape(_local1.errorName)) + "&rnd=";
addlength = Math.floor(Math.random() * 64) + 32;
totallength = new Number(actionstring.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);
}
loadstring = (_local1.serverUrl + "?") + escape(scramble(actionstring + addstring));
_local1.load(loadstring);
trace(loadstring);
};
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 () {
var _local1 = this;
if (_local1.errors.length == 0) {
return(null);
}
return(_local1.errors[_local1.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);
highbps = 0;
newbps = _root.round(numpopped / allseconds, 2);
serverURL = "http://www.virtual-bubblewrap.com/ultrasecretiamnotherelalala-v2.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);
s_find = new Sql();
s_find.sqlOnData = findOnData;
s_find.setServerUrl(serverURL);
loadScores();
Instance of Symbol 222 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 () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
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 () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, 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 () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fpb_states", "fpbState_mc", 1);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.btnState = false;
_local1.setClickHandler(_local1.clickHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
_local1._height = ((arguments.length > 1) ? (h) : (_local1._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = ((_local2 < 6) ? 6 : (_local2));
if (arguments.length > 1) {
if (_local3 < 6) {
_local3 = 6;
}
}
super.setSize(_local2, _local3);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local2, _local3);
_local1.boundingBox_mc._width = _local2;
_local1.boundingBox_mc._height = _local3;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
_local1.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.gotoFrame(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.gotoFrame(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
var _local1 = this;
_local1.incrVal = 1;
_local1.initx = _local1[mc]._x - (_local1.getBtnState() * _local1.incrVal);
_local1.inity = _local1[mc]._y - (_local1.getBtnState() * _local1.incrVal);
_local1.togx = _local1.initx + _local1.incrVal;
_local1.togy = _local1.inity + _local1.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
var _local1 = this;
_local1.btnState = state;
if (state) {
_local1.fLabel_mc._x = _local1.togx;
_local1.fLabel_mc._y = _local1.togy;
} else {
_local1.fLabel_mc._x = _local1.initx;
_local1.fLabel_mc._y = _local1.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
var _local1 = this;
_local1.pressFocus();
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
_local1.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
_local1.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.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 () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.setBtnState(true);
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.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) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.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 215 Button [btnScoreSubmit]
on (release) {
this.enabled = false;
_root.username = submitname;
if (parseFloat(newbps) <= parseFloat(highbps)) {
EnableSubmit(false);
updateReport();
return(undefined);
}
if (!s_submit.isActive()) {
txtSQLstatus = "Submitting new score...";
var sql;
if (parseFloat(highbps) == 0) {
sql = (("action=new&name=" + submitname) + "&seconds=") + allseconds;
sql = sql + ((("&bubbles=" + numpopped) + "&manic=") + nummanic);
} else {
sql = (("action=update&name=" + safename) + "&seconds=") + allseconds;
sql = sql + ((("&bubbles=" + numpopped) + "&manic=") + nummanic);
}
s_submit.execute(sql);
}
}
Symbol 217 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 218 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 222 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 6
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.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 _local1 = this;
var _local3 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local2 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
} else {
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
}
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var XorY = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local3 = _local1.hScrollBar_mc.getScrollPosition();
var _local2 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local3 + 3, _local2);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local3, _local2 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local3, _local2 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 218 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 222 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 219 MovieClip "loadContent" in Symbol 222 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 230 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 4
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
_local1.attachMovie("fcb_states", "fcb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1.setChangeHandler(_local1.changeHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.initialValue == undefined) {
_local1.setCheckState(false);
} else {
_local1.setCheckState(_local1.initialValue);
}
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_CHECKBUTTON = 44;
_local1.STATE_SYSTEM_CHECKED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local3 = pos;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(_local3);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = _local1.fcb_states_mc._width;
var frame = _local1.fcb_states_mc;
var label = _local1.fLabel_mc;
var _local2 = 0;
if (frame._width > _local1.width) {
_local2 = 0;
} else {
_local2 = _local1.width - frame._width;
}
_local1.fLabel_mc.setSize(_local2);
if ((_local3 == "right") || (_local3 == undefined)) {
_local1.labelPlacement = "right";
_local1.fcb_states_mc._x = 0;
_local1.fLabel_mc._x = checkWidth;
_local1.txtFormat("left");
} else if (_local3 == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.fcb_states_mc._x = _local1.width - checkWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.fcb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.fcb_states_mc._width > w) {
_local1._width = _local2.fcb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.fcb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
var _local2 = this;
_local2.pressFocus();
_root.focusRect.removeMovieClip();
var _local1 = _local2.fcb_states_mc;
if (_local2.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fcb_states_mc.gotoAndStop("up");
_local1.setValue(!_local1.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
var _local1 = this;
var _local2 = checkedValue;
if (_local2 || (_local2 == undefined)) {
_local1.setCheckState(_local2);
} else if (_local2 == false) {
_local1.setCheckState(_local2);
}
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local1 = this;
var _local3 = checkedValue;
var _local2 = _local1.fcb_states_mc;
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedEnabled");
_local1.enabled = true;
_local1.checked = true;
} else {
_local2.gotoAndStop("up");
_local1.enabled = true;
_local1.checked = false;
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedDisabled");
_local1.enabled = false;
_local1.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
_local1.enabled = false;
_local1.checked = false;
_local1.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
Super.setEnabled(true);
} else {
_local1.enable = false;
Super.setEnabled(false);
}
_local1.setCheckState(_local1.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.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 () {
var _local1 = this;
if (((Key.getCode() == 32) && (_local1.pressOnce == undefined)) && (_local1.enabled == true)) {
_local1.setValue(!_local1.getValue());
_local1.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 235 Button
on (release) {
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
resetSheet();
}
Symbol 238 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 257 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 258 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 289 Button
on (release) {
getURL ("http://www.virtual-bubblewrap.com/about.shtml", "_top");
}
Symbol 290 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) {
setBubbleSize(presetlarge);
makeBubbles();
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
}
Symbol 299 Button
on (release) {
setBubbleSize(presetmedium);
makeBubbles();
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
}
Symbol 303 Button
on (release) {
setBubbleSize(presetsmall);
makeBubbles();
click = new Sound();
click.attachSound("must-have-more");
click.start();
_root.gotoAndStop(1);
enableSheet(true);
restartTimer();
}
Symbol 311 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 313 Button
on (press) {
loadScores();
}