Frame 2
Stage.showMenu = false;
_global.gameBase = this;
meter_mc.onEnterFrame = function () {
if ((_root.getBytesLoaded() < _root.getBytesTotal()) && (_root.getBytesTotal() > 100)) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
this.meter_bar_mc._width = _local3 * 120;
} else {
_root.gotoAndPlay("loaded");
}
};
Frame 3
stop();
Frame 6
stop();
Frame 16
if ($tweenManager == undefined) {
_global.$tweenManager = new zigo.tweenManager();
}
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
AsBroadcaster.initialize(MovieClip.prototype);
MovieClip.prototype.$addListener = MovieClip.prototype.addListener;
ASSetPropFlags(MovieClip.prototype, "$addListener", 1, 0);
MovieClip.prototype.addListener = function () {
AsBroadcaster.initialize(this);
this.$addListener.apply(this, arguments);
};
MovieClip.prototype.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if ($tweenManager.isTweenLocked(this)) {
trace("tween not added, this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("tween not added, props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
props = [props];
}
if (pEnd.length == undefined) {
pEnd = [pEnd];
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
animType = animType.toLowerCase();
if (animType == "linear") {
var eqf = com.robertpenner.easing.Linear.easeNone;
} else if (animType.indexOf("easeinout") == 0) {
var t = animType.substr(9);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeInOut;
} else if (animType.indexOf("easein") == 0) {
var t = animType.substr(6);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeIn;
} else if (animType.indexOf("easeout") == 0) {
var t = animType.substr(7);
t = t.charAt(0).toUpperCase() + t.substr(1);
var eqf = com.robertpenner.easing[t].easeOut;
}
if (eqf == undefined) {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if ((animType.ease != undefined) && (animType.pts != undefined)) {
var eqf = animType.ease;
extra1 = animType.pts;
} else {
var eqf = com.robertpenner.easing.Expo.easeOut;
}
break;
default :
var eqf = com.robertpenner.easing.Expo.easeOut;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp = callback.indexOf("(");
var funcp = callback.slice(0, ilp);
var scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
var func = eval (funcp);
var args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
var a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if ($tweenManager.autoStop) {
$tweenManager.removeTween(this, props);
}
if (delay > 0) {
$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
MovieClip.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
$tweenManager.removeTween(this, props);
};
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
MovieClip.prototype.isTweening = function () {
return($tweenManager.isTweening(this));
};
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
MovieClip.prototype.getTweens = function () {
return($tweenManager.getTweens(this));
};
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
MovieClip.prototype.lockTween = function () {
$tweenManager.lockTween(this, true);
};
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = function () {
$tweenManager.lockTween(this, false);
};
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
MovieClip.prototype.isTweenLocked = function () {
return($tweenManager.isTweenLocked(this));
};
ASSetPropFlags(MovieClip.prototype, "isTweenLocked", 1, 0);
MovieClip.prototype.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
MovieClip.prototype.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
var _local3 = 100 - Math.abs(bright);
var _local2 = 0;
if (bright > 0) {
_local2 = 256 * (bright / 100);
}
var _local5 = {ra:_local3, rb:_local2, ga:_local3, gb:_local2, ba:_local3, bb:_local2};
this.tween(["_ct_"], [_local5], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "brightnessTo", 1, 0);
MovieClip.prototype.colorTo = function (destColor, seconds, animType, delay, callback, extra1, extra2) {
var _local3 = {rb:destColor >> 16, ra:0, gb:(destColor & 65280) >> 8, ga:0, bb:destColor & 255, ba:0};
this.tween(["_ct_"], [_local3], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local2 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
MovieClip.prototype.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
MovieClip.prototype.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
var gStart = 0.5;
var gEnd = 0.85;
var gDuration = 40;
var e = 0.83;
var dropHeight = 80;
var gridHeight = 357;
Array.prototype.shuffle = function () {
var _local5 = this.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = Math.floor(Math.random() * _local5);
var _local4 = this[_local2];
this[_local2] = this[_local3];
this[_local3] = _local4;
_local2++;
}
};
initGrid = function () {
with (grid_mc) {
gridSize = 4;
blocks = [box0, box1, box2, box3, box4, box5, box6, box7, box8, box9, box10, box11, box12, box13, box14, box15];
trace(blocks);
}
};
setGrid = function (p, h, c, e, s) {
gameBase.blocks.shuffle();
var _local8 = 0;
var _local1 = 0;
while (_local1 < gameBase.blocks.length) {
gameBase.blocks[_local1].isGlass = false;
if (_local1 < p) {
gameBase.blocks[_local1].bounce = energyUp;
gameBase.blocks[_local1].gotoAndPlay("power");
} else if (_local1 < (p + h)) {
gameBase.blocks[_local1].bounce = energyDown;
gameBase.blocks[_local1].gotoAndPlay("hazard");
} else if (_local1 < ((p + h) + c)) {
gameBase.blocks[_local1].bounce = getCoin;
gameBase.blocks[_local1].gotoAndPlay("coin");
} else if (_local1 < (((p + h) + c) + e)) {
gameBase.blocks[_local1].bounce = null;
gameBase.blocks[_local1].gotoAndPlay("empty");
} else if (_local1 < ((((p + h) + c) + e) + s)) {
var _local3 = Math.floor(Math.random() * 3);
if (_local3 == 0) {
gameBase.blocks[_local1].bounce = atomicBoost;
gameBase.blocks[_local1].gotoAndPlay("atomic");
} else if (_local3 == 1) {
gameBase.blocks[_local1].bounce = breakGlass;
gameBase.blocks[_local1].gotoAndPlay("glass");
gameBase.blocks[_local1].isGlass = true;
} else {
gameBase.blocks[_local1].bounce = collectBooty;
gameBase.blocks[_local1].gotoAndPlay("treasure");
}
} else {
gameBase.blocks[_local1].bounce = bounce;
gameBase.blocks[_local1].gotoAndPlay("standard");
}
_local1++;
}
};
shuffleGrid = function () {
var _local3;
var _local5;
var _local2;
var _local1;
_local3 = (((parseInt(gameBase.bounces_txt.text) % 3) == 0) ? 1 : (Math.floor(Math.random() * 1.25)));
_local5 = Math.floor(Math.random() * 5);
_local2 = Math.round(Math.random());
_local1 = Math.ceil(Math.random() * 4) + 3;
var _local4 = Math.random() * 40;
s = ((_local4 < 1) ? 1 : 0);
setGrid(_local3, _local5, _local2, _local1, s);
};
lockGridToMouse = function (b) {
if (b == true) {
gameBase.grid_mc.onEnterFrame = function () {
if (gameBase._xmouse < -35) {
this._x = -35;
} else if (gameBase._xmouse > 420) {
this._x = 420;
} else {
this._x = gameBase._xmouse;
}
if (gameBase._ymouse < 300) {
this._y = 300;
} else if (gameBase._ymouse > 470) {
this._y = 470;
} else {
this._y = gameBase._ymouse;
}
};
} else {
gameBase.grid_mc.onEnterFrame = null;
}
};
ballFall = function () {
this.v = this.v + gameBase.g;
var _local4 = this._y + this.v;
if ((_local4 > (gameBase.shadow_mc._y - 11)) && (this.dropped == false)) {
var _local3 = false;
var _local2 = 0;
while (_local2 < 16) {
if (gameBase.blocks[_local2].face.hitTest(gameBase.shadow_mc._x, gameBase.shadow_mc._y, true)) {
if (gameBase.blocks[_local2].isGlass == false) {
_local3 = true;
}
if (Math.abs(this.v) < 5) {
shuffleGrid();
} else {
gameBase.blocks[_local2].bounce();
}
break;
}
_local2++;
}
if (_local3 == true) {
gameBase.registerBounce();
this.v = -this.v;
this.v = this.v * e;
} else {
gameBase.lostBall();
}
}
this._y = this._y + this.v;
gameBase.balldrop_mc._y = this._y;
if (this._y > 600) {
gameBase.ball_mc.onEnterFrame = null;
ballInit();
}
};
gameBase.lostBall = function () {
gameBase.balldrop_mc._visible = true;
gameBase.ball_mc._visible = false;
gameBase.ball_mc.dropped = true;
gameBase.shadow_mc._visible = false;
gameBase.playAgain_btn._visible = true;
gameBase.checkHighScores();
Mouse.show();
var _local1 = new Sound();
_local1.attachSound("fall");
_local1.start(1.5);
};
ballInit = function () {
gameBase.ball_mc.v = 0;
gameBase.ball_mc._visible = true;
gameBase.ball_mc.dropped = false;
gameBase.balldrop_mc._visible = false;
};
ballDrop = function () {
gameBase.resetScores();
gameBase.ball_mc._y = gameBase.dropHeight;
gameBase.shadow_mc._visible = true;
ball_mc.onEnterFrame = ballFall;
gameBase.startGravIncrease();
Mouse.hide();
};
shadow_mc.onEnterFrame = function () {
var _local3 = 60;
var _local5 = 30;
var _local4 = this._y - this._parent.ball_mc._y;
var _local2 = 100 - (_local4 / 8);
var _local6 = 100 - (_local4 / 15);
this._yscale = (this._xscale = ((_local2 < _local3) ? (_local3) : (_local2)));
this._alpha = ((_local2 < _local5) ? (_local3) : (_local2));
};
startNewDrop = function () {
gameBase.robotArm_mc.gotoAndPlay("open");
gameBase.playAgain_btn._visible = false;
};
drag_mc._visible = false;
bounce = function () {
trace("bounce :" + this);
this.block_mc.gotoAndPlay("bounce");
var _local2 = new Sound();
if ((parseInt(gameBase.bounces_txt.text) % 2) == 0) {
_local2.attachSound("ark1");
} else {
_local2.attachSound("ark2");
}
_local2.start();
};
energyUp = function () {
this.block_mc.gotoAndPlay("bounce");
if (gameBase.ball_mc.v > 19) {
gameBase.ball_mc.v = gameBase.ball_mc.v * 1.25;
} else {
gameBase.ball_mc.v = 22;
}
var _local3 = gameBase.attachMovie("smoke_puff", "smoke", 120);
_local3._x = gameBase.shadow_mc._x;
_local3._y = gameBase.shadow_mc._y;
var _local2 = new Sound();
_local2.attachSound("boooost");
_local2.start();
};
atomicBoost = function () {
this.block_mc.gotoAndPlay("bounce");
gameBase.ball_mc.v = 40;
gameBase.ball_mc.gotoAndPlay("atomic");
var _local3 = gameBase.attachMovie("shockwave", "shock", 120);
_local3._x = gameBase.shadow_mc._x;
_local3._y = gameBase.shadow_mc._y;
var _local2 = new Sound();
_local2.attachSound("atomic");
_local2.start();
};
energyDown = function () {
this.block_mc.gotoAndPlay("bounce");
gameBase.ball_mc.v = gameBase.ball_mc.v * 0.6;
var _local2 = new Sound();
_local2.attachSound("bamf");
_local2.start();
};
getCoin = function () {
this.block_mc.gotoAndPlay("bounce");
var _local2 = new Sound();
_local2.attachSound("coin");
_local2.start();
gameBase.awardPoints(250);
if (parseInt(gameBase.score_txt.text) > parseInt(gameBase.scoreBest_txt.text)) {
gameBase.scoreBest_txt.text = gameBase.score_txt.text;
}
};
breakGlass = function () {
this.block_mc.gotoAndPlay("bounce");
var _local2 = new Sound();
_local2.attachSound("glassbreak");
_local2.start();
gameBase.lostBall();
};
collectBooty = function () {
gameBase.awardPoints(1500);
this.block_mc.gotoAndPlay("bounce");
var _local3 = gameBase.attachMovie("sparkles", "sparkles", 120);
_local3._x = gameBase.shadow_mc._x;
_local3._y = gameBase.shadow_mc._y;
var _local2 = new Sound();
_local2.attachSound("treasure");
_local2.start();
};
setScore = function (s) {
gameBase.score_txt.text = s;
if (s > gameBase.bestScore) {
gameBase.bestScore = s;
gameBase.setBestScore(gameBase.bestScore);
gameBase.submitPoints = true;
}
};
setBestScore = function (s) {
gameBase.bestScore1_txt.text = s;
gameBase.bestScore2_txt.text = s;
gameBase.bestScore3_txt.text = s;
gameBase.bestScore4_txt.text = s;
};
setBounces = function (s) {
gameBase.bounces_txt.text = s;
if (s > gameBase.bestBounces) {
gameBase.bestBounces = s;
gameBase.setBestBounces(gameBase.bestBounces);
gameBase.submitBounces = true;
}
};
setBestBounces = function (s) {
gameBase.bestBounce1_txt.text = s;
gameBase.bestBounce2_txt.text = s;
gameBase.bestBounce3_txt.text = s;
gameBase.bestBounce4_txt.text = s;
};
resetScores = function () {
gameBase.bounces = 0;
gameBase.score = 0;
setScore(0);
setBounces(0);
gameBase.submitBounces = false;
gameBase.submitPoints = false;
};
registerBounce = function () {
gameBase.bounces++;
setBounces(gameBase.bounces);
gameBase.awardPoints(50);
};
awardPoints = function (p) {
gameBase.score = gameBase.score + p;
setScore(gameBase.score);
trace(gameBase.score);
};
initGrav = function () {
gameBase.createEmptyMovieClip("grav_mc", 100);
gameBase.grav_mc._x = gameBase.gStart;
gameBase.g = gameBase.gStart;
};
resetGrav = function () {
gameBase.grav_mc._x = gameBase.gStart * 100;
};
updateGravValue = function () {
gameBase.g = gameBase.grav_mc._x / 100;
};
startGravIncrease = function () {
trace("! Starting gradual grav increase");
resetGrav();
c = {updfunc:gameBase.updateGravValue};
gameBase.grav_mc.tween("_x", gameBase.gEnd * 100, gameBase.gDuration, "linear", 0, c);
};
showHighScores = function () {
lockGridToMouse(false);
playAgain_btn._visible = false;
gameBase.highScores_mc.gotoAndPlay("show");
};
hideHighScores = function () {
playAgain_btn._visible = true;
gameBase.highScores_mc.gotoAndPlay("hide");
lockGridToMouse(true);
};
gameBase.highScores_btn.onRelease = function () {
trace("showScores!");
gameBase.showHighScores();
};
submitHighScore = function (type, score) {
trace((((("Submitting high " + type) + " : ") + score) + " for ") + gameBase.playerName);
var _local3 = "/gameHighScores.asp";
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.game = "poom_" + type;
_local1.score = score;
_local1.name = gameBase.playerName;
_local1.sendAndLoad(_local3, _local2);
};
checkHighScores = function () {
if (gameBase.submitBounces == true) {
submitHighScore("bounces", gameBase.bestBounces);
}
if (gameBase.submitPoints == true) {
submitHighScore("points", gameBase.bestScore);
}
};
gameBase.bestScore = 0;
gameBase.setBestScore(0);
gameBase.bestBounces = 0;
gameBase.setBestBounces(0);
gameBase.submitPoints = false;
gameBase.submitBounces = false;
playAgain_btn.onRelease = function () {
startNewDrop();
};
initGrid();
initGrav();
lockGridToMouse(true);
ballInit();
shuffleGrid();
scoresURL = "/poom.xml.asp";
scores_xml = new XML();
scores_xml.ignoreWhite = true;
var scores_obj = new Object();
scores_obj.scores_today = new Object();
scores_obj.scores_today.bounces = new Array();
scores_obj.scores_today.points = new Array();
scores_obj.scores_month = new Object();
scores_obj.scores_month.bounces = new Array();
scores_obj.scores_month.points = new Array();
scores_obj.scores_alltime = new Object();
scores_obj.scores_alltime.bounces = new Array();
scores_obj.scores_alltime.points = new Array();
parseScores = function (success) {
scores_obj.scores_today.bounces.length = 0;
scores_obj.scores_today.points.length = 0;
scores_obj.scores_month.bounces.length = 0;
scores_obj.scores_month.points.length = 0;
scores_obj.scores_alltime.bounces.length = 0;
scores_obj.scores_alltime.points.length = 0;
var _local9 = 0;
while (_local9 < this.firstChild.childNodes.length) {
var _local3 = this.firstChild.childNodes[_local9];
var _local8 = _local3.nodeName;
trace(_local3.nodeName);
var _local2 = 0;
while (_local2 < _local3.childNodes.length) {
trace("- " + _local3.childNodes[_local2].nodeName);
var _local4 = 0;
while (_local4 < _local3.childNodes[_local2].childNodes.length) {
scores_obj["scores_" + _local8][_local3.childNodes[_local2].nodeName].push({name:_local3.childNodes[_local2].childNodes[_local4].attributes.name, score:_local3.childNodes[_local2].childNodes[_local4].attributes.score, school:_local3.childNodes[_local2].childNodes[_local4].attributes.school});
_local4++;
}
_local2++;
}
_local9++;
}
gameBase.highScores_mc.gotoAndPlay("loaded");
};
displayScores = function (scope) {
trace(("show " + scope) + " scores");
var _local1 = 0;
while (_local1 < 10) {
gameBase.highScores_mc["bounce" + (_local1 + 1)].name_txt.text = "";
gameBase.highScores_mc["bounce" + (_local1 + 1)].score_txt.text = "";
gameBase.highScores_mc["bounce" + (_local1 + 1)].school_txt.text = "";
gameBase.highScores_mc["points" + (_local1 + 1)].name_txt.text = "";
gameBase.highScores_mc["points" + (_local1 + 1)].score_txt.text = "";
gameBase.highScores_mc["points" + (_local1 + 1)].school_txt.text = "";
_local1++;
}
_local1 = 0;
while (_local1 < scores_obj["scores_" + scope].bounces.length) {
gameBase.highScores_mc["bounce" + (_local1 + 1)].name_txt.text = "";
gameBase.highScores_mc["bounce" + (_local1 + 1)].score_txt.text = "";
gameBase.highScores_mc["bounce" + (_local1 + 1)].school_txt.text = "";
gameBase.highScores_mc["points" + (_local1 + 1)].name_txt.text = "";
gameBase.highScores_mc["points" + (_local1 + 1)].score_txt.text = "";
gameBase.highScores_mc["points" + (_local1 + 1)].school_txt.text = "";
gameBase.highScores_mc["bounce" + (_local1 + 1)].name_txt.text = scores_obj["scores_" + scope].bounces[_local1].name.toUpperCase();
gameBase.highScores_mc["bounce" + (_local1 + 1)].score_txt.text = scores_obj["scores_" + scope].bounces[_local1].score;
gameBase.highScores_mc["bounce" + (_local1 + 1)].school_txt.text = scores_obj["scores_" + scope].bounces[_local1].school.toUpperCase();
gameBase.highScores_mc["points" + (_local1 + 1)].name_txt.text = scores_obj["scores_" + scope].points[_local1].name.toUpperCase();
gameBase.highScores_mc["points" + (_local1 + 1)].score_txt.text = scores_obj["scores_" + scope].points[_local1].score;
gameBase.highScores_mc["points" + (_local1 + 1)].school_txt.text = scores_obj["scores_" + scope].points[_local1].school.toUpperCase();
gameBase.highScores_mc.currentScope = scope;
gameBase.highScores_mc.menu_today.gotoAndPlay("off");
gameBase.highScores_mc.menu_month.gotoAndPlay("off");
gameBase.highScores_mc.menu_alltime.gotoAndPlay("off");
gameBase.highScores_mc["menu_" + scope].gotoAndPlay("on");
_local1++;
}
gameBase.highScores_mc.gotoAndPlay("showScores");
};
scores_xml.onLoad = parseScores;
loadScores = function () {
scores_xml.load((scoresURL + "?nocache=") + getTimer());
};
stop();
Symbol 283 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
}
Symbol 284 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
}
Symbol 285 MovieClip [__Packages.com.robertpenner.easing.Quart] Frame 0
class com.robertpenner.easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
}
Symbol 286 MovieClip [__Packages.com.robertpenner.easing.Sine] Frame 0
class com.robertpenner.easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
}
Symbol 287 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
}
Symbol 288 MovieClip [__Packages.com.robertpenner.easing.Quint] Frame 0
class com.robertpenner.easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
}
Symbol 289 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 290 MovieClip [__Packages.com.robertpenner.easing.Expo] Frame 0
class com.robertpenner.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
}
Symbol 291 MovieClip [__Packages.com.robertpenner.easing.Elastic] Frame 0
class com.robertpenner.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
}
Symbol 292 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 293 MovieClip [__Packages.zigo.tweenManager] Frame 0
class zigo.tweenManager
{
var playing, autoStop, broadcastEvents, ints, lockedTweens, tweenList, tweenHolder, now;
function tweenManager () {
playing = false;
autoStop = false;
broadcastEvents = false;
ints = new Array();
lockedTweens = new Object();
tweenList = new Array();
tweenHolder = _root.createEmptyMovieClip("_th_", 6789);
}
function init() {
if (tweenHolder._name == undefined) {
tweenHolder = _root.createEmptyMovieClip("_th_", 6789);
}
tweenHolder.onEnterFrame = function () {
_global.$tweenManager.update.call(_global.$tweenManager);
};
playing = true;
now = getTimer();
}
function deinit() {
playing = false;
delete tweenHolder.onEnterFrame;
}
function update() {
var _local6 = tweenList.length;
if (broadcastEvents) {
var _local3 = {};
var _local5 = {};
}
while (_local6--) {
var _local2 = tweenList[_local6];
if ((_local2.ts + _local2.d) > now) {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ef(now - _local2.ts, _local2.ps, _local2.ch, _local2.d, _local2.e1, _local2.e2);
} else {
var _local4 = {};
for (var _local7 in _local2.ctm) {
_local4[_local7] = _local2.ef(now - _local2.ts, _local2.stm[_local7], _local2.ctm[_local7], _local2.d, _local2.e1, _local2.e2);
}
_local2.c.setTransform(_local4);
}
if (broadcastEvents) {
if (_local3[targetPath(_local2.mc)] == undefined) {
_local3[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
} else {
if (_local2.ctm == undefined) {
_local2.mc[_local2.pp] = _local2.ps + _local2.ch;
} else {
var _local4 = {};
for (var _local7 in _local2.ctm) {
_local4[_local7] = _local2.stm[_local7] + _local2.ctm[_local7];
}
_local2.c.setTransform(_local4);
}
if (broadcastEvents) {
if (_local3[targetPath(_local2.mc)] == undefined) {
_local3[targetPath(_local2.mc)] = _local2.mc;
}
if (_local5[targetPath(_local2.mc)] == undefined) {
_local5[targetPath(_local2.mc)] = _local2.mc;
}
}
if (_local2.cb.updfunc != undefined) {
_local2.cb.updfunc.apply(_local2.cb.updscope, _local2.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(_local6);
}
}
for (var _local7 in _local3) {
_local3[_local7].broadcastMessage("onTweenUpdate");
}
if (endt != undefined) {
endTweens(endt);
}
for (var _local7 in _local5) {
_local5[_local7].broadcastMessage("onTweenEnd");
}
now = getTimer();
}
function endTweens(tid_arr) {
var _local2 = [];
var _local8 = tid_arr.length;
var _local3 = 0;
while (_local3 < _local8) {
var _local4 = tweenList[tid_arr[_local3]].cb;
if (_local4 != undefined) {
var _local5 = true;
for (var _local7 in _local2) {
if (_local2[_local7] == _local4) {
_local5 = false;
break;
}
}
if (_local5) {
_local2.push(_local4);
}
}
tweenList.splice(tid_arr[_local3], 1);
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3].func.apply(_local2[_local3].scope, _local2[_local3].args);
_local3++;
}
if (tweenList.length == 0) {
deinit();
}
}
function addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
if (!playing) {
init();
}
for (var _local23 in props) {
if (props[_local23].substr(0, 4) != "_ct_") {
tweenList.unshift({mc:mc, pp:props[_local23], ps:mc[props[_local23]], ch:pEnd[_local23] - mc[props[_local23]], ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
} else {
var _local8 = new Color(mc);
var _local12 = _local8.getTransform();
var _local11 = {};
for (var _local15 in pEnd[_local23]) {
if ((pEnd[_local23][_local15] != _local12[_local15]) && (pEnd[_local23][_local15] != undefined)) {
_local11[_local15] = pEnd[_local23][_local15] - _local12[_local15];
}
}
tweenList.unshift({mc:mc, c:_local8, stm:_local12, ctm:_local11, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
}
if (broadcastEvents) {
mc.broadcastMessage("onTweenStart", props[_local23]);
}
if (callback.startfunc != undefined) {
callback.startfunc.apply(callback.startscope, callback.startargs);
}
}
function addTweenWithDelay(delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var il = ints.length;
var _local2 = setInterval(function (obj) {
obj.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
clearInterval(obj.ints[il].intid);
obj.ints[il] = undefined;
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:_local2};
}
function removeTween(mc, props) {
var _local5 = false;
if (props == undefined) {
_local5 = true;
}
var _local2 = tweenList.length;
while (_local2--) {
if (tweenList[_local2].mc == mc) {
if (_local5) {
tweenList.splice(_local2, 1);
} else {
for (var _local7 in props) {
if (tweenList[_local2].pp == props[_local7]) {
tweenList.splice(_local2, 1);
} else if ((props[_local7] == "_ct_") && (tweenList[_local2].ctm != undefined)) {
tweenList.splice(_local2, 1);
}
}
}
}
}
_local2 = ints.length;
while (_local2--) {
if (ints[_local2].mc == mc) {
if (_local5) {
clearInterval(ints[_local2].intid);
ints[_local2] = undefined;
} else {
for (var _local7 in props) {
for (var _local4 in ints[_local2].props) {
if (ints[_local2].props[_local4] == props[_local7]) {
ints[_local2].props.splice(_local4, 1);
ints[_local2].pend.splice(_local4, 1);
}
}
if (ints[_local2].props.length == 0) {
clearInterval(ints[_local2].intid);
}
}
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
function isTweening(mc) {
var _local2 = false;
for (var _local4 in tweenList) {
if (tweenList[_local4].mc == mc) {
_local2 = true;
break;
}
}
return(_local2);
}
function getTweens(mc) {
var _local2 = 0;
for (var _local4 in tweenList) {
if (tweenList[_local4].mc == mc) {
_local2++;
}
}
return(_local2);
}
function lockTween(mc, bool) {
lockedTweens[targetPath(mc)] = bool;
}
function isTweenLocked(mc) {
if (lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(lockedTweens[targetPath(mc)]);
}
function toString() {
return("[AS2 tweenManager 1.1.5]");
}
}
Symbol 294 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 24
stop();
Symbol 25 MovieClip [shockwave] Frame 49
this.removeMovieClip();
Symbol 26 MovieClip [smoke_puff] Frame 41
this.removeMovieClip();
Symbol 29 MovieClip [sparkles] Frame 45
this.removeMovieClip();
Symbol 37 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 6
stop();
Symbol 69 Button
on (release) {
if (playerName_txt.text.length > 0) {
gameBase.playerName = playerName_txt.text.toUpperCase();
play();
}
}
Symbol 72 Button
on (release) {
gameBase.gotoAndPlay("game");
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 20
Symbol 73 MovieClip Frame 26
playerName_txt.maxChars = 8;
playerName_txt.restrict = "A-Z 0-9";
stop();
Symbol 73 MovieClip Frame 27
playerName_txt.selectable = false;
Symbol 73 MovieClip Frame 39
stop();
Symbol 78 Button
on (release) {
getURL ("http://www.gotused.com");
}
Symbol 83 Button
on (release) {
start_tile_mc.play();
gameBase.start_btn._visible = false;
}
on (rollOver) {
start_tile_mc.tileFace_mc.gotoAndPlay("on");
}
on (rollOut) {
start_tile_mc.tileFace_mc.gotoAndPlay("off");
}
Symbol 91 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 37
gotoAndPlay (1);
Symbol 97 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 13
gameBase.shuffleGrid();
gotoAndPlay (1);
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 13
gameBase.shuffleGrid();
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 14
gameBase.shuffleGrid();
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 13
gameBase.shuffleGrid();
gotoAndPlay (1);
Symbol 151 MovieClip Frame 15
stop();
Symbol 151 MovieClip Frame 26
gameBase.shuffleGrid();
gotoAndPlay (1);
Symbol 164 MovieClip Frame 17
stop();
Symbol 164 MovieClip Frame 28
gameBase.shuffleGrid();
gotoAndPlay (1);
Symbol 170 MovieClip Frame 12
stop();
Symbol 170 MovieClip Frame 24
gameBase.shuffleGrid();
gotoAndPlay (1);
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 8
stop();
Symbol 171 MovieClip Frame 19
stop();
Symbol 171 MovieClip Frame 29
stop();
Symbol 171 MovieClip Frame 39
stop();
Symbol 171 MovieClip Frame 48
stop();
Symbol 171 MovieClip Frame 56
stop();
Symbol 171 MovieClip Frame 64
stop();
Symbol 171 MovieClip Frame 73
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 229 MovieClip Frame 36
gameBase.ballDrop();
Symbol 244 MovieClip Frame 3
stop();
Symbol 244 MovieClip Frame 6
stop();
Symbol 247 MovieClip Frame 3
stop();
Symbol 247 MovieClip Frame 6
stop();
Symbol 250 MovieClip Frame 3
stop();
Symbol 250 MovieClip Frame 6
stop();
Symbol 274 Button
on (release) {
gameBase.hideHighScores();
}
Symbol 276 Button
on (rollOver) {
menu_today.gotoAndPlay("on");
}
on (rollOut) {
if (this.currentScope != "today") {
menu_today.gotoAndPlay("off");
}
}
on (release) {
if (this.currentScope != "today") {
gameBase.displayScores("today");
}
}
Symbol 277 Button
on (rollOver) {
menu_month.gotoAndPlay("on");
}
on (rollOut) {
if (this.currentScope != "month") {
menu_month.gotoAndPlay("off");
}
}
on (release) {
if (this.currentScope != "month") {
gameBase.displayScores("month");
}
}
Symbol 278 Button
on (rollOver) {
menu_alltime.gotoAndPlay("on");
}
on (rollOut) {
if (this.currentScope != "alltime") {
menu_alltime.gotoAndPlay("off");
}
}
on (release) {
if (this.currentScope != "alltime") {
gameBase.displayScores("alltime");
}
}
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 22
gameBase.loadScores();
stop();
Symbol 279 MovieClip Frame 42
stop();
gameBase.displayScores("today");
Symbol 279 MovieClip Frame 67
stop();