Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
} else {
trace("Error connecting to server.");
}
};
var my_lv = new LoadVars();
my_lv.game = "Bricks";
my_lv.from = _root._url;
my_lv.sendAndLoad("http://mygame.com/loadcount.jsp", result_lv, "GET");
this.onEnterFrame = function () {
loaderBar_mc.progressBar._width = Math.floor(((getBytesLoaded() / getBytesTotal()) * 100) * 1.2);
if (getBytesLoaded() == getBytesTotal()) {
this.onEnterFrame = undefined;
gotoAndStop (2);
}
};
loaderBar_mc.onRelease = function () {
var _local2 = _root._url;
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + _local2) + "&typ=loader_progress", "_blank");
};
__com_mochibot__("24da665b", this, 10301, true);
Frame 2
stop();
Frame 3
stop();
var game = new GameMain(this);
Symbol 24 MovieClip Frame 1
stop();
Symbol 35 MovieClip [block] Frame 1
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 9
stop();
Symbol 47 MovieClip Frame 18
stop();
Symbol 53 MovieClip [arrow] Frame 1
stop();
Symbol 73 MovieClip [bonusScore] Frame 20
stop();
Symbol 76 MovieClip [negativePoints] Frame 8
stop();
Symbol 79 MovieClip [score] Frame 12
stop();
Symbol 101 MovieClip Frame 31
stop();
Symbol 108 Button
on (release) {
getURL ("http://www.mygame.com", "_blank");
}
Symbol 113 Button
on (release) {
getURL ("http://www.remivision.com", "_blank");
}
Symbol 114 MovieClip [theOfflineProtection] Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 8
stop();
Symbol 150 MovieClip Frame 7
stop();
Symbol 157 MovieClip [anim] Frame 19
stop();
Symbol 161 Button
on (release) {
getURL ("http://www.remivision.com", "_blank");
}
Symbol 162 MovieClip [theInstructions] Frame 1
stop();
Instance of Symbol 120 MovieClip "startBtn" in Symbol 162 MovieClip [theInstructions] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 124 MovieClip "highscoresBtn" in Symbol 162 MovieClip [theInstructions] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 127 MovieClip "addBtn" in Symbol 162 MovieClip [theInstructions] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 130 MovieClip "moreBtn" in Symbol 162 MovieClip [theInstructions] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
glosnik = true;
Symbol 198 MovieClip Frame 3
glosnik = false;
Symbol 202 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Instance of Symbol 198 MovieClip "soundBtn" in Symbol 207 MovieClip [theGame] Frame 1
on (rollOver) {
if (glosnik == true) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (glosnik == true) {
this.gotoAndStop(1);
}
}
on (release) {
if (glosnik == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 202 MovieClip "restartBtn" in Symbol 207 MovieClip [theGame] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 206 MovieClip "endBtn" in Symbol 207 MovieClip [theGame] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 227 MovieClip "playAgainBtn" in Symbol 240 MovieClip [gameOver] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 230 MovieClip "submitBtn" in Symbol 240 MovieClip [gameOver] Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 240 MovieClip [gameOver] Frame 14
stop();
Symbol 240 MovieClip [gameOver] Frame 22
stop();
Symbol 243 MovieClip [start] Frame 14
stop();
Symbol 246 MovieClip [levelUp] Frame 14
stop();
Symbol 249 MovieClip [anim2] Frame 5
stop();
Symbol 308 MovieClip [__Packages.GameMain] Frame 0
class GameMain
{
var parent, url, sounds, endComb, theGame, instructions, restartIn, restart, gameIn, counter, combo, enabled, board, start, aroundBricks, countBricks, multiplier, drawIn, time, subtractIn, myNick, gameOver, m, levelUp, endIn;
function GameMain (target) {
parent = target;
url = parent._url;
buildMenu();
sounds = new Sounds(target);
endComb = true;
var _local2 = url;
if (_local2.indexOf("file") == 0) {
offlineProtection();
} else {
showInstructions();
}
}
function offlineProtection() {
parent.attachMovie("theOfflineProtection", "theOfflineProtection", parent.getNextHighestDepth(), {_x:0, _y:0});
}
function showInstructions() {
if (!theGame) {
instructions = parent.attachMovie("theInstructions", "theInstructions", parent.getNextHighestDepth(), {_x:0, _y:0});
instructions.startBtn.onRelease = mx.utils.Delegate.create(this, onStartBtnReleased);
instructions.highscoresBtn.onRelease = mx.utils.Delegate.create(this, onHighscoresBtn);
instructions.addBtn.onRelease = mx.utils.Delegate.create(this, onAddBtn);
instructions.moreBtn.onRelease = mx.utils.Delegate.create(this, onMoreBtn);
instructions.mygameBtn.onRelease = mx.utils.Delegate.create(this, onMygameBtn);
instructions.startBtn.onRollOver = mx.utils.Delegate.create(this, playSoundRollover);
if (sounds.quiet) {
sounds.turnUp();
}
}
}
function onHighscoresBtn() {
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=highscores&redirect=/game/bricks/highscores", "_blank");
}
function onAddBtn() {
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=add_game&redirect=/freecontent.jsp", "_blank");
}
function onMoreBtn() {
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=other_games", "_blank");
}
function onMygameBtn() {
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=sign", "_blank");
}
function playSoundRollover() {
sounds.playSound(12);
}
function onStartBtnReleased() {
removeMovieClip(instructions);
instructions = undefined;
GameStart();
}
function GameStart() {
if (!theGame) {
theGame = parent.attachMovie("theGame", "theGame", parent.getNextHighestDepth());
theGame.time.setMask(theGame.maskTime);
setMainVariables();
theGame.restartBtn.onRelease = mx.utils.Delegate.create(this, onRestartBtnReleased);
theGame.restartBtn.onRollOver = mx.utils.Delegate.create(this, playSoundRollover);
theGame.mygameBtn.onRelease = mx.utils.Delegate.create(this, onMygameBtn);
theGame.endBtn.onRelease = mx.utils.Delegate.create(this, onEndBtnReleased);
theGame.endBtn.onRollOver = mx.utils.Delegate.create(this, playSoundRollover);
theGame.endBtn.enabled = false;
theGame.soundBtn.onRelease = mx.utils.Delegate.create(this, setVolume);
}
restartIn = setInterval(this, "prepareGame", 500, parent);
}
function setVolume() {
if (!sounds.quiet) {
sounds.turnDown();
} else {
sounds.turnUp();
}
}
function prepareGame(target) {
if (theGame.level == 1) {
sounds.playSound(11);
}
restart = false;
if (gameIn) {
clearInterval(gameIn);
}
if (restartIn) {
clearInterval(restartIn);
}
counter = 0;
combo = 1;
enabled = false;
var _local2 = 0;
var _local3 = 0;
var _local6;
var _local4;
board = target.createEmptyMovieClip("board", target.getNextHighestDepth());
board._visible = false;
start = target.attachMovie("start", "start", target.getNextHighestDepth(), {_x:384, _y:186});
start.onEnterFrame = mx.utils.Delegate.create(this, checkFinishStart);
var _local5 = 0;
while (_local5 < 100) {
var _local7 = new Array(1, 2, 3, 4, 5, 6);
var _local8 = new Array(1, 2, 3, 4);
_local6 = new Block(board, _local5, _local2, _local3);
if (map[0].length >= 2) {
if (map[_local3 - 1][_local2].color == map[_local3 - 2][_local2].color) {
splice(map[_local3 - 1][_local2].color, _local7);
}
if (map[_local3][_local2 - 1].color == map[_local3][_local2 - 2].color) {
splice(map[_local3][_local2 - 1].color, _local7);
}
}
var _local9 = Math.floor(Math.random() * _local7.length);
_local9 = _local7[_local9];
_local6.brick.gotoAndStop(_local9);
_local6.color = _local9;
if (map[_local3][_local2 - 1].direction == 2) {
splice(4, _local8);
}
if (map[_local3 - 1][_local2].direction == 1) {
splice(3, _local8);
}
_local9 = Math.floor(Math.random() * _local8.length);
_local9 = _local8[_local9];
_local6.arrow.gotoAndStop(_local9);
_local6.direction = _local9;
map[_local3][_local2] = _local6;
_local6.addEventListener("click", mx.utils.Delegate.create(this, onBlockReleased));
_local6.addEventListener("end", mx.utils.Delegate.create(this, addReadyBlocks));
_local2++;
if ((_local2 == 10) && (_local3 < 9)) {
_local3++;
_local2 = 0;
map.push([]);
}
_local5++;
}
_local2 = 0;
_local3 = 0;
aroundBricks = target.createEmptyMovieClip("aroundBricks", target.getNextHighestDepth());
aroundBricks._visible = false;
_local5 = 0;
while (_local5 < 40) {
_local4 = aroundBricks.attachMovie("AroundBrick", "AroundBrick" + _local5, aroundBricks.getNextHighestDepth());
var _local9 = Math.floor(Math.random() * 5) + 1;
_local4.gotoAndStop(_local9);
around[_local5] = _local9;
if (_local5 < 10) {
_local4._rotation = 270;
_local4._x = 306 + (_local2 * 34);
_local4._y = 400;
_local2++;
} else if (_local5 < 20) {
_local4._rotation = 180;
_local4._x = 668;
_local4._y = 378 - (_local3 * 34);
_local3++;
} else if (_local5 < 30) {
_local4._rotation = 90;
_local4._x = 306 + (_local2 * 34);
_local4._y = 16;
_local2--;
} else {
_local4._x = 284;
_local4._y = 4 + (_local3 * 34);
_local3--;
}
_local5++;
}
board._visible = true;
var _local11 = new mx.transitions.Tween(board, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 15, false);
_local11.onMotionFinished = mx.utils.Delegate.create(this, onBoardTweenFinished);
}
function onBoardTweenFinished() {
aroundBricks._visible = true;
var _local2 = new mx.transitions.Tween(aroundBricks, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 10, false);
_local2.onMotionFinished = mx.utils.Delegate.create(this, onArBricksTweenFinished);
}
function onArBricksTweenFinished() {
enabled = true;
restart = true;
theGame.endBtn.enabled = true;
}
function onBlockReleased(obj) {
if (enabled) {
var _local3;
obj = obj.target;
if (obj.direction == 1) {
_local3 = setColor(obj, obj.position_y + 1, obj.position_x, 29 - obj.position_x);
if (_local3) {
map[obj.position_y][obj.position_x].color = obj.brick._currentframe;
}
} else if (obj.direction == 2) {
_local3 = setColor(obj, obj.position_y, obj.position_x + 1, 10 + obj.position_y);
if (_local3) {
map[obj.position_y][obj.position_x].color = obj.brick._currentframe;
}
} else if (obj.direction == 3) {
_local3 = setColor(obj, obj.position_y - 1, obj.position_x, obj.position_x);
if (_local3) {
map[obj.position_y][obj.position_x].color = obj.brick._currentframe;
}
} else if (obj.direction == 4) {
_local3 = setColor(obj, obj.position_y, obj.position_x - 1, 30 + obj.position_y);
if (_local3) {
map[obj.position_y][obj.position_x].color = obj.brick._currentframe;
}
}
if (_local3) {
sounds.playSound(5);
checkAllBoard();
} else {
if ((!obj.bonus) && (!obj.star)) {
new MC(parent, "negPoints", obj.brick._x + 17, obj.brick._y + 17);
if (theGame.score <= 75) {
theGame.score = 0;
} else {
theGame.score = theGame.score - 75;
}
}
sounds.playSound(4);
}
}
}
function setColor(obj, posY, posX, index) {
var _local2;
if (map[posY][posX] == undefined) {
if (obj.color == around[index]) {
_local2 = false;
return(_local2);
}
obj.brick.gotoAndStop(around[index]);
_local2 = true;
return(_local2);
}
if (map[posY][posX].color == obj.color) {
_local2 = false;
return(_local2);
}
obj.brick.gotoAndStop(map[posY][posX].color);
_local2 = true;
return(_local2);
}
function checkAllBoard() {
enabled = false;
countBricks = 0;
var _local4 = 0;
var _local2 = new Array([], []);
var _local8 = 0;
while (_local8 < 10) {
var _local7 = 0;
while (_local7 < 10) {
targets[_local8][_local7][0] = map[_local8][_local7].color;
targets[_local8][_local7][1] = 1;
if (map[_local8][_local7].color == map[_local8][_local7 + 1].color) {
_local4++;
} else {
if (_local4 == 0) {
targets[_local8][_local7][0] = 0;
targets[_local8][_local7][1] = undefined;
} else if (_local4 == 1) {
targets[_local8][_local7][0] = 0;
targets[_local8][_local7 - 1][0] = 0;
targets[_local8][_local7][1] = undefined;
targets[_local8][_local7 - 1][1] = undefined;
}
_local4 = 0;
}
_local7++;
}
_local8++;
}
_local4 = 0;
_local8 = 0;
while (_local8 < 10) {
var _local7 = 0;
while (_local7 < 10) {
targets[_local7][_local8][0] = map[_local7][_local8].color;
targets[_local7][_local8][2] = 1;
if (map[_local7][_local8].color == map[_local7 + 1][_local8].color) {
_local4++;
} else {
if (_local4 == 0) {
if (!targets[_local7][_local8][1]) {
targets[_local7][_local8][0] = 0;
}
targets[_local7][_local8][2] = undefined;
} else if (_local4 == 1) {
if (!targets[_local7][_local8][1]) {
targets[_local7][_local8][0] = 0;
}
targets[_local7][_local8][2] = undefined;
if (!targets[_local7 - 1][_local8][1]) {
targets[_local7 - 1][_local8][0] = 0;
}
targets[_local7 - 1][_local8][2] = undefined;
}
_local4 = 0;
}
_local7++;
}
_local8++;
}
_local4 = 0;
var _local3 = 0;
var _local6 = 0;
var _local5 = 0;
_local8 = 0;
while (_local8 < 10) {
var _local7 = 0;
while (_local7 < 10) {
if (targets[_local8][_local7][1]) {
countBricks++;
_local2[_local3][_local6] = map[_local8][_local7];
_local6++;
_local4++;
if (map[_local8][_local7].star) {
_local5++;
}
if (targets[_local8][_local7][0] != targets[_local8][_local7 + 1][0]) {
_local2.push([], []);
_local2[_local3 + 1][0] = (map[_local8][_local7].brick._x - ((34 * _local4) / 2)) + 34;
_local2[_local3 + 1][1] = map[_local8][_local7].brick._y + 17;
_local2[_local3 + 1][2] = ((Math.pow(_local4, 2) * multiplier) * 10) * combo;
if (_local5) {
_local2[_local3 + 1][2] = _local2[_local3 + 1][2] + (_local5 * 500);
_local2[_local3 + 1][5] = 16776960 /* 0xFFFF00 */;
} else {
_local2[_local3 + 1][5] = 16777215 /* 0xFFFFFF */;
}
_local3 = _local3 + 2;
_local4 = 0;
_local5 = 0;
_local6 = 0;
}
}
_local7++;
}
_local8++;
}
_local8 = 0;
while (_local8 < 10) {
var _local7 = 0;
while (_local7 < 10) {
if (targets[_local7][_local8][2]) {
if (!targets[_local7][_local8][1]) {
countBricks++;
_local2[_local3][_local6] = map[_local7][_local8];
_local6++;
} else {
var _local9 = true;
}
_local4++;
if (map[_local7][_local8].star) {
_local5++;
}
if (targets[_local7][_local8][0] != targets[_local7 + 1][_local8][0]) {
_local2.push([], []);
_local2[_local3 + 1][0] = map[_local7][_local8].brick._x + 17;
_local2[_local3 + 1][1] = map[_local7][_local8].brick._y + ((34 * _local4) / 2);
_local2[_local3 + 1][2] = ((Math.pow(_local4, 2) * multiplier) * 10) * combo;
if (_local5) {
_local2[_local3 + 1][2] = _local2[_local3 + 1][2] + (_local5 * 500);
_local2[_local3 + 1][5] = 16776960 /* 0xFFFF00 */;
} else {
_local2[_local3 + 1][5] = 16777215 /* 0xFFFFFF */;
}
if (_local9) {
_local2[_local3 + 1][4] = 1;
}
_local3 = _local3 + 2;
_local4 = 0;
_local5 = 0;
_local6 = 0;
}
}
_local7++;
}
_local8++;
}
_local2.splice(_local2.length - 2, 2);
_local8 = 0;
while (_local8 < 10) {
var _local7 = 0;
while (_local7 < 10) {
targets[_local8][_local7][0] = 0;
targets[_local8][_local7][1] = undefined;
_local7++;
}
_local8++;
}
if (_local2[0][0]) {
drawIn = setInterval(this, "changeBricks", 300, _local2);
endComb = false;
combo++;
} else {
endComb = true;
checkBricksCounter();
enabled = true;
combo = 1;
}
}
function changeBricks(combination) {
clearInterval(drawIn);
if (!restart) {
return(undefined);
}
sounds.playSound(1);
var _local12 = 0;
var _local6 = new Array();
var _local7 = false;
var _local2 = 0;
while (_local2 < 10) {
var _local4 = 0;
while (_local4 < 10) {
_local6.push(_local2, _local4);
_local4++;
}
_local2++;
}
_local2 = 0;
while (combination[_local2][0]) {
var _local4 = 0;
increaseBricksCounter(combination[_local2][_local4].color, combination[_local2].length);
if (combination[_local2 + 1][4] == 1) {
var _local11 = combination[_local2].length + 1;
} else {
var _local11 = combination[_local2].length;
}
if (_local11 > 3) {
var _local8 = Math.floor(Math.random() * combination[_local2].length) + 1;
}
if (_local11 > 4) {
_local12++;
}
while (combination[_local2][_local4]) {
_local6 = removeElements(_local6, combination[_local2][_local4].position_y, combination[_local2][_local4].position_x);
if (combination[_local2][_local4].bonus) {
bonusArr.push(combination[_local2][_local4].color);
}
if ((_local8 - 1) != _local4) {
combination[_local2][_local4].drawProperties();
} else {
combination[_local2][_local4].createStar();
}
_local4++;
}
var _local13 = combination[_local2 + 1][2];
theGame.score = theGame.score + _local13;
var _local5 = _local2 - 1;
while (_local5 >= 1) {
if ((combination[_local2 + 1][0] == combination[_local5][0]) && (combination[_local2 + 1][1] == combination[_local5][1])) {
combination[_local5][3].displayPointsIn = setInterval(this, "checkScoreMc", 50, combination[_local5][3], combination[_local2 + 1][0], combination[_local2 + 1][1], combination[_local2 + 1][2], combination[_local2 + 1][5]);
_local7 = true;
break;
}
_local5 = _local5 - 2;
}
if (!_local7) {
combination[_local2 + 1][3] = new MC(parent, "points", combination[_local2 + 1][0], combination[_local2 + 1][1], combination[_local2 + 1][2], combination[_local2 + 1][5]);
} else {
_local7 = false;
}
_local2 = _local2 + 2;
}
_local2 = 0;
while (_local12) {
var _local8 = Math.floor(Math.random() * (_local6.length / 2));
var _local9 = _local6[_local8 * 2];
var _local10 = _local6[(_local8 * 2) + 1];
map[_local9][_local10].createBonus();
_local6 = removeElements(_local6, _local9, _local10);
countBricks++;
_local12--;
}
}
function checkScoreMc(points, x, y, value, color) {
if (!points.mc._currentframe) {
new MC(parent, "points", x, y, value, color);
clearInterval(points.displayPointsIn);
}
}
function addReadyBlocks() {
counter++;
if ((counter == countBricks) && (!bonusArr.length)) {
counter = 0;
checkAllBoard();
} else if ((counter == countBricks) && (bonusArr.length)) {
counter = 0;
countBricks = 0;
drawIn = setInterval(this, "changeOneColorBricks", 300, bonusArr[0]);
bonusArr.pop();
}
}
function subtractTime() {
time = time - 0.8;
theGame.time._width = time;
if ((time <= 0) && (endComb)) {
endGame();
clearInterval(subtractIn);
}
}
function endGame() {
myNick = SharedObject.getLocal("myNick");
if (myNick.data.nickname == undefined) {
myNick.data.nickname = "Enter your nickname";
}
if (gameIn) {
clearInterval(gameIn);
}
sounds.playSound(9);
removeMovieClip(board);
board = undefined;
removeMovieClip(aroundBricks);
aroundBricks = undefined;
gameOver = parent.attachMovie("gameOver", "gameOver", parent.getNextHighestDepth(), {_x:384, _y:40});
gameOver.nameText.text = myNick.data.nickname;
gameOver.playAgainBtn.onRelease = mx.utils.Delegate.create(this, afterEndIn);
gameOver.submitBtn.onRelease = mx.utils.Delegate.create(this, onSubmitBtn);
gameOver.logic2Btn.onRelease = mx.utils.Delegate.create(this, onLogic2Btn);
gameOver.dominoBtn.onRelease = mx.utils.Delegate.create(this, onDominoBtn);
gameOver.picnicBtn.onRelease = mx.utils.Delegate.create(this, onPicnicBtn);
gameOver.gameScore.score = theGame.score;
}
function onSubmitBtn() {
myNick.data.nickname = gameOver.nameText.text;
myNick.data.flush();
if (gameOver.nameText.text == "Enter your nickname") {
var _local2 = "Player";
} else {
var _local2 = gameOver.nameText.text;
}
loadVariablesNum ((("http://www.mygame.com/servlet/WebGameServlet?action=gameover&url=bricks&points=" + theGame.score) + "&username=") + _local2, 0);
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=highscores&redirect=/game/bricks/highscores", "_blank");
afterEndIn();
}
function onLogic2Btn() {
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=play_3dlogic2&redirect=/game/3dlogic2", "_blank");
}
function onDominoBtn() {
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=play_domino&redirect=/game/thedominoknight", "_blank");
}
function onPicnicBtn() {
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + url) + "&typ=play_picnic&redirect=/game/picnicbasketdefense", "_blank");
}
function checkBricksCounter() {
if ((((((theGame.green._currentframe == 21) && (theGame.red._currentframe == 21)) && (theGame.blue._currentframe == 21)) && (theGame.yellow._currentframe == 21)) && (theGame.purple._currentframe == 21)) && (theGame.gray._currentframe == 21)) {
nextLevel();
}
}
function increaseBricksCounter(color, amount) {
switch (color) {
case 1 :
theGame.blue.gotoAndStop(theGame.blue._currentframe + (amount * m));
break;
case 2 :
theGame.red.gotoAndStop(theGame.red._currentframe + (amount * m));
break;
case 3 :
theGame.green.gotoAndStop(theGame.green._currentframe + (amount * m));
break;
case 4 :
theGame.yellow.gotoAndStop(theGame.yellow._currentframe + (amount * m));
break;
case 5 :
theGame.purple.gotoAndStop(theGame.purple._currentframe + (amount * m));
break;
case 6 :
theGame.gray.gotoAndStop(theGame.gray._currentframe + (amount * m));
}
}
function nextLevel() {
sounds.playSound(9);
removeMovieClip(board);
board = undefined;
removeMovieClip(aroundBricks);
aroundBricks = undefined;
theGame.level++;
multiplier = multiplier + 0.5;
if (m > 1) {
m--;
}
resetBricksCounter();
levelUp = parent.attachMovie("levelUp", "levelUp", parent.getNextHighestDepth(), {_x:384, _y:186});
levelUp.onEnterFrame = mx.utils.Delegate.create(this, checkFinishLevelUp);
gameIn = setInterval(this, "prepareGame", 500, parent);
}
function checkFinishStart() {
if (start._currentframe == 14) {
removeMovieClip(start);
start = undefined;
}
}
function checkFinishLevelUp() {
if (levelUp._currentframe == 14) {
removeMovieClip(levelUp);
levelUp = undefined;
}
}
function checkFinishGameOver() {
if (gameOver._currentframe == 22) {
removeMovieClip(gameOver);
gameOver = undefined;
}
}
function changeOneColorBricks(color) {
sounds.playSound(8);
clearInterval(drawIn);
var _local5 = new Array();
var _local4 = 0;
var _local3 = 0;
while (_local3 < 10) {
var _local2 = 0;
while (_local2 < 10) {
if (map[_local3][_local2].color == color) {
_local5.push(map[_local3][_local2]);
countBricks++;
if (map[_local3][_local2].star) {
_local4 = _local4 + 500;
theGame.score = theGame.score + 500;
} else {
_local4 = _local4 + 200;
theGame.score = theGame.score + 200;
}
}
_local2++;
}
_local3++;
}
increaseBricksCounter(color, countBricks);
var _local6 = 0;
while (_local5[_local6]) {
_local5[_local6].drawProperties();
_local6++;
}
new MC(parent, "bonusPoints", 484, 218, _local4);
if (bonusArr.length > 0) {
addReadyBlocks();
}
}
function splice(n, arr) {
var _local3;
for (_local3 in arr) {
if (arr[_local3] == n) {
arr.splice(_local3, 1);
break;
}
}
}
function removeElements(arr, posY, posX) {
var _local3 = 0;
while (_local3 < arr.length) {
if (posY == arr[_local3]) {
var _local1 = _local3 + 1;
while (_local1 < arr.length) {
if (posX == arr[_local1]) {
arr.splice(_local1 - 1, 2);
return(arr);
}
_local1 = _local1 + 2;
}
}
_local3 = _local3 + 2;
}
}
function onRestartBtnReleased() {
if (!restart) {
return(undefined);
}
theGame.endBtn.enabled = false;
restart = false;
setMainVariables();
clearInterval(drawIn);
if (gameOver) {
gameOver.gotoAndPlay(15);
gameOver.onEnterFrame = mx.utils.Delegate.create(this, checkFinishGameOver);
}
if (gameIn) {
clearInterval(gameIn);
}
if (board) {
removeBricks();
} else {
GameStart();
}
}
function onEndBtnReleased() {
theGame.endBtn.enabled = false;
theGame.restartBtn.enabled = false;
clearInterval(subtractIn);
if (gameIn) {
clearInterval(gameIn);
}
clearInterval(drawIn);
afterEndIn();
}
function afterEndIn() {
clearInterval(endIn);
removeMovieClip(board);
board = undefined;
removeMovieClip(aroundBricks);
aroundBricks = undefined;
removeMovieClip(theGame);
theGame = undefined;
if (gameOver) {
removeMovieClip(gameOver);
gameOver = undefined;
}
showInstructions();
}
function setMainVariables() {
multiplier = 1;
m = 3;
theGame.score = 0;
theGame.level = 1;
time = 376;
theGame.time._width = 376;
if (subtractIn) {
clearInterval(subtractIn);
}
subtractIn = setInterval(this, "subtractTime", 500);
resetBricksCounter();
}
function resetBricksCounter() {
theGame.gray.gotoAndStop(1);
theGame.blue.gotoAndStop(1);
theGame.red.gotoAndStop(1);
theGame.green.gotoAndStop(1);
theGame.yellow.gotoAndStop(1);
theGame.purple.gotoAndStop(1);
}
function removeBricks() {
var _local2 = new mx.transitions.Tween(board, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 10, false);
var _local3 = new mx.transitions.Tween(aroundBricks, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 10, false);
_local2.onMotionFinished = mx.utils.Delegate.create(this, removeBoard);
_local3.onMotionFinished = mx.utils.Delegate.create(this, removeArBricks);
}
function removeBoard() {
removeMovieClip(board);
board = undefined;
GameStart();
}
function removeArBricks() {
removeMovieClip(aroundBricks);
aroundBricks = undefined;
}
function buildMenu() {
var _local2 = new ContextMenu();
_local2.builtInItems.quality = false;
_local2.builtInItems.print = false;
_local2.builtInItems.zoom = false;
_local2.builtInItems.loop = false;
_local2.builtInItems.play = false;
_local2.builtInItems.rewind = false;
_local2.builtInItems.forward_back = false;
_local2.customItems.push(new ContextMenuItem("www.RemiVision.com", openWebPage));
parent.menu = _local2;
}
function openWebPage() {
getURL ("http://www.remivision.com", "_blank");
}
var bonusArr = new Array();
var targets = new Array([[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]]);
var map = new Array([]);
var around = new Array();
}
Symbol 309 MovieClip [__Packages.Sounds] Frame 0
class Sounds
{
var quiet, sound1, sound2, sound3, sound4, sound5, sound6, sound7, sound8, sound9, sound10, sound11, sound12;
function Sounds (target) {
quiet = false;
sound1 = new Sound(target);
sound1.attachSound("combination");
sound2 = new Sound(target);
sound2.attachSound("star1");
sound3 = new Sound(target);
sound3.attachSound("star2");
sound4 = new Sound(target);
sound4.attachSound("click");
sound5 = new Sound(target);
sound5.attachSound("click2");
sound6 = new Sound(target);
sound6.attachSound("bonus");
sound7 = new Sound(target);
sound7.attachSound("clock");
sound8 = new Sound(target);
sound8.attachSound("bonus2");
sound9 = new Sound(target);
sound9.attachSound("endGame");
sound10 = new Sound(target);
sound10.attachSound("endBonus");
sound11 = new Sound(target);
sound11.attachSound("startSound");
sound12 = new Sound(target);
sound12.attachSound("rollOver");
}
function playSound(num) {
this["sound" + num].start();
}
function turnDown() {
var _local2 = 1;
while (_local2 <= 12) {
this["sound" + _local2].setVolume(0);
_local2++;
}
quiet = true;
}
function turnUp() {
var _local2 = 1;
while (_local2 <= 12) {
this["sound" + _local2].setVolume(100);
_local2++;
}
quiet = false;
}
}
Symbol 310 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 311 MovieClip [__Packages.Block] Frame 0
class Block
{
var subtractIn, sounds, parent, brick, position_x, position_y, arrow, dispatchEvent, star, bonus, color, direction;
function Block (target, i, counter_x, counter_y) {
clearInterval(subtractIn);
mx.events.EventDispatcher.initialize(this);
sounds = new Sounds(target);
parent = target;
brick = target.attachMovie("block", "block" + i, target.getNextHighestDepth());
brick._x = 306 + (counter_x * 34);
brick._y = 344 - (counter_y * 34);
position_x = counter_x;
position_y = counter_y;
arrow = brick.attachMovie("arrow", "arrow", brick.getNextHighestDepth(), {_x:4.5, _y:3});
brick.onRelease = mx.utils.Delegate.create(this, onBrickReleased);
brick.onRollOver = mx.utils.Delegate.create(this, onBrickRollOver);
brick.onRollOut = mx.utils.Delegate.create(this, onBrickRollOut);
brick.onReleaseOutside = mx.utils.Delegate.create(this, onBrickRollOut);
}
function onBrickReleased() {
dispatchEvent({type:"click", target:this});
}
function onBrickRollOver() {
arrow.over.gotoAndPlay(2);
}
function onBrickRollOut() {
arrow.over.gotoAndStop(1);
}
function drawProperties() {
if (subtractIn) {
clearInterval(subtractIn);
subtractIn = undefined;
}
if (star) {
sounds.playSound(3);
new MC(parent, "animStars", brick._x + 5.4, brick._y + 5.6);
}
star = false;
bonus = false;
arrow._visible = false;
var _local2 = Math.floor(Math.random() * 6) + 1;
brick.gotoAndStop(_local2);
color = _local2;
_local2 = Math.floor(Math.random() * 4) + 1;
arrow.gotoAndStop(_local2);
direction = _local2;
animate();
}
function animate() {
brick.appear.gotoAndPlay(2);
brick.onEnterFrame = mx.utils.Delegate.create(this, checkFinishAnim);
}
function checkFinishAnim() {
if (brick.appear._currentframe == 1) {
delete brick.onEnterFrame;
arrow._visible = true;
dispatchEvent({type:"end", target:this});
}
}
function createStar() {
if (subtractIn) {
clearInterval(subtractIn);
subtractIn = undefined;
}
sounds.playSound(2);
star = true;
bonus = false;
arrow.gotoAndStop(5);
direction = undefined;
var _local2 = Math.floor(Math.random() * 6) + 1;
brick.gotoAndStop(_local2);
color = _local2;
if (arrow.starAnim._currentframe == 18) {
new MC(parent, "animStars", brick._x + 5.4, brick._y + 5.6);
arrow.starAnim.gotoAndPlay(1);
}
animate();
}
function createBonus() {
sounds.playSound(6);
star = false;
bonus = true;
arrow.gotoAndStop(6);
direction = undefined;
arrow.bonus.bonusCounter.counter = 7;
clearInterval(subtractIn);
subtractIn = setInterval(this, "subtract", 1000);
animate();
}
function subtract() {
arrow.bonus.bonusCounter.counter--;
sounds.playSound(7);
if (arrow.bonus.bonusCounter.counter == 0) {
clearInterval(subtractIn);
sounds.playSound(10);
new MC(parent, "animBonus", brick._x + 8.1, brick._y + 6);
var _local2 = Math.floor(Math.random() * 4) + 1;
arrow.gotoAndStop(_local2);
direction = _local2;
bonus = false;
}
if (arrow.bonus.bonusCounter.counter == undefined) {
clearInterval(subtractIn);
}
}
}
Symbol 312 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 313 MovieClip [__Packages.MC] Frame 0
class MC
{
var mc;
function MC (target, mcType, x, y, value, color) {
var _local2 = target.getNextHighestDepth();
if (mcType == "points") {
mc = target.attachMovie("score", "score" + _local2, _local2, {_x:x, _y:y});
mc.score2.value = value;
mc.score2.text.textColor = color;
mc.onEnterFrame = mx.utils.Delegate.create(this, checkEndAnim1);
} else if (mcType == "negPoints") {
mc = target.attachMovie("negativePoints", "negativePoints" + _local2, _local2, {_x:x, _y:y});
mc.onEnterFrame = mx.utils.Delegate.create(this, checkEndAnim5);
} else if (mcType == "bonusPoints") {
mc = target.attachMovie("bonusScore", "bonusScore" + _local2, _local2, {_x:x, _y:y});
mc.onEnterFrame = mx.utils.Delegate.create(this, checkEndAnim2);
mc.bonusScore2.value = value;
} else if (mcType == "animStars") {
mc = target.attachMovie("anim", "anim" + _local2, _local2, {_x:x, _y:y});
mc.onEnterFrame = mx.utils.Delegate.create(this, checkEndAnim3);
} else if (mcType == "animBonus") {
mc = target.attachMovie("anim2", "anim2" + _local2, _local2, {_x:x, _y:y});
mc.onEnterFrame = mx.utils.Delegate.create(this, checkEndAnim4);
}
}
function checkEndAnim1() {
if (mc._currentframe == 12) {
mc.removeMovieClip();
}
}
function checkEndAnim2() {
if (mc._currentframe == 20) {
mc.removeMovieClip();
}
}
function checkEndAnim3() {
if (mc._currentframe == 19) {
mc.removeMovieClip();
}
}
function checkEndAnim4() {
if (mc._currentframe == 5) {
mc.removeMovieClip();
}
}
function checkEndAnim5() {
if (mc._currentframe == 8) {
mc.removeMovieClip();
}
}
}
Symbol 314 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 315 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 316 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 317 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
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);
}
static var version = "1.1.0.52";
}
Symbol 318 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
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);
}
static var version = "1.1.0.52";
}
Symbol 304 Button
on (release) {
this._parent.gotoAndStop(3);
}
Symbol 305 MovieClip Frame 1
stonesHitarea_mc.onRelease = function () {
var _local2 = _root._url;
getURL (("http://www.mygame.com/bounce.jsp?game=Bricks&from=" + _local2) + "&typ=loader_movie", "_blank");
};
Symbol 305 MovieClip Frame 79
stop();