Frame 1
MochiAd.showPreGameAd({id:"d2eb8d292efee733", res:"640x480"});
Frame 2
function gameMenu(menu, obj) {
getURL (_root.authorsSite, "_blank");
}
this._lockroot = true;
var gameName = "breakit";
vNum = "v1.40";
authorsSite = "http://www.terrypaton.com";
var menu_cm = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem(authorsSite, gameMenu));
menu_cm.hideBuiltInItems();
_root.menu = menu_cm;
_root.legalDomain1 = "http://www.terrypaton.com";
_root.legalDomain2 = "http://www.playbreakit.com";
_root.gameLocation1 = _root._url.substr(0, legalDomain1.length);
_root.gameLocation2 = _root._url.substr(0, legalDomain2.length);
legal = false;
Frame 3
gameLoadingName = "breakit";
loadingClip.onEnterFrame = function () {
pL = Math.floor((this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100);
if (pL < 100) {
this.mask._xscale = (pL / 100) * 100;
this._parent.stop();
} else {
i = 0;
while (i < stringLength) {
removeMovieClip(eval ("loadingHolder.l" + i));
i++;
}
this._parent.play();
}
};
stringLength = gameLoadingName.length;
wordOffset = (stringLength * 20) / 2;
this.createEmptyMovieClip("loadingHolder", 1);
loadingHolder._x = (320 - wordOffset) + 10;
loadingHolder._y = 175;
i = 0;
while (i < stringLength) {
t = loadingHolder.attachMovie("letter", "l" + i, i);
t._x = i * 20;
t.angle = i;
t.Lvar.text = gameLoadingName.charAt(i);
t._xscale = (t._yscale = 200);
i++;
}
stop();
Frame 6
bounce1sound = new Sound();
bounce1sound.attachSound("bounce1_snd");
bounce2sound = new Sound();
bounce2sound.attachSound("bounce2_snd");
bounce2bsound = new Sound();
bounce2bsound.attachSound("bounce2b_snd");
bounce2csound = new Sound();
bounce2csound.attachSound("bounce2c_snd");
bounce2dsound = new Sound();
bounce2dsound.attachSound("bounce2d_snd");
bounce2esound = new Sound();
bounce2esound.attachSound("bounce2e_snd");
hit1sound = new Sound();
hit1sound.attachSound("hitbrick1_snd");
collectsound = new Sound();
collectsound.attachSound("collect_snd");
hitbatsound = new Sound();
hitbatsound.attachSound("hitbatsnd1");
hitbonus1 = new Sound();
hitbonus1.attachSound("hitbonus_1");
bonuscollected_snd = new Sound();
bonuscollected_snd.attachSound("bonuscollected");
multi_snd = new Sound();
multi_snd.attachSound("multi_snd");
lostball_snd = new Sound();
lostball_snd.attachSound("lostball");
extralife_snd = new Sound();
extralife_snd.attachSound("extralife_sound");
super_snd = new Sound();
super_snd.attachSound("super_snd");
awesome_snd = new Sound();
awesome_snd.attachSound("awesome_snd");
wild_snd = new Sound();
wild_snd.attachSound("wild_snd");
mega_snd = new Sound();
mega_snd.attachSound("mega_snd");
legend_snd = new Sound();
legend_snd.attachSound("legend_snd");
lsr_snd = new Sound();
lsr_snd.attachSound("lsr_snd");
sticky_snd = new Sound();
sticky_snd.attachSound("sticky_snd");
musictrack1 = new Sound();
musictrack1.attachSound("track1");
musictrack2 = new Sound();
musictrack2.attachSound("track2");
gameovermusic = new Sound();
gameovermusic.attachSound("gameovermusic");
menumusic = new Sound();
menumusic.attachSound("menumusic");
optionsmusic = new Sound();
optionsmusic.attachSound("optionsmusic");
level1data = 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 11, 7, 7, 7, 7, 7, 7, 16, 1, 0, 0, 1, 7, 3, 3, 3, 3, 3, 3, 7, 1, 0, 0, 1, 7, 3, 3, 3, 3, 3, 3, 7, 1, 0, 0, 1, 19, 7, 7, 7, 7, 7, 7, 17, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0);
level2data = 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, 20, 20, 20, 1, 1, 1, 1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, 3, 7, 11, 10, 2, 2, 10, 11, 7, 3, 5, 5, 3, 7, 0, 0, 0, 0, 0, 0, 7, 3, 5, 5, 3, 0, 20, 20, 20, 20, 20, 20, 0, 3, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5);
level5data = 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, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 13, 12, 12, 12, 12, 12, 12, 13, 0, 0, 0, 0, 13, 12, 0, 0, 0, 0, 12, 13, 0, 0, 0, 0, 13, 12, 0, 0, 0, 0, 12, 13, 0, 0, 0, 0, 13, 16, 0, 0, 0, 0, 15, 13, 0, 0, 0, 0, 13, 12, 0, 0, 0, 0, 12, 13, 0, 0, 0, 0, 13, 12, 0, 0, 0, 0, 12, 13, 0, 0, 0, 0, 13, 12, 12, 0, 0, 12, 12, 13, 0, 0, 0, 0, 13, 13, 13, 0, 0, 13, 13, 13, 0, 0);
level6data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 2, 20, 20, 20, 2, 0, 0, 2, 20, 20, 20, 2, 2, 4, 11, 4, 2, 0, 0, 2, 4, 11, 4, 2, 2, 4, 4, 4, 2, 11, 11, 2, 4, 4, 4, 2, 2, 4, 4, 4, 2, 11, 11, 2, 4, 4, 4, 2, 2, 4, 11, 4, 2, 0, 0, 2, 4, 11, 4, 2, 2, 20, 20, 20, 2, 0, 0, 2, 20, 20, 20, 2, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 13, 12, 18, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level12data = 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, 20, 20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 1, 13, 8, 9, 9, 8, 13, 1, 0, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 1, 13, 11, 8, 9, 9, 8, 11, 13, 1, 0, 0, 0, 1, 13, 8, 9, 9, 8, 13, 1, 0, 0, 0, 0, 0, 20, 20, 20, 20, 20, 20);
level13data = new Array(0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 0, 20, 0, 12, 0, 11, 0, 12, 0, 11, 0, 12, 0, 11, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13, 0, 12, 0, 13);
level14data = 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 13, 13, 13, 13, 11, 11, 13, 13, 13, 13, 0, 0, 13, 13, 13, 13, 11, 11, 13, 13, 13, 13, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 12, 12, 11, 11, 12, 12, 0, 0, 0, 0, 0, 0, 12, 12, 11, 11, 12, 12, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0);
level15data = new Array(0, 0, 0, 0, 0, 11, 11, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 20, 0, 0, 1, 2, 2, 1, 0, 0, 20, 0, 0, 2, 20, 0, 0, 1, 1, 0, 0, 20, 2, 0, 0, 2, 1, 20, 0, 0, 0, 0, 20, 1, 2, 0, 0, 2, 1, 2, 20, 0, 0, 20, 2, 1, 2, 0, 0, 2, 1, 2, 20, 0, 0, 20, 2, 1, 2, 0, 0, 2, 1, 2, 20, 0, 0, 20, 2, 1, 2, 0, 0, 2, 1, 2, 20, 0, 0, 20, 2, 1, 2, 0, 0, 2, 1, 20, 0, 0, 0, 0, 20, 1, 2, 0, 0, 2, 20, 0, 0, 0, 0, 0, 0, 20, 2, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level16data = new Array(1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 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20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13);
level19data = 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, 20, 20, 20, 11, 11, 11, 11, 20, 20, 20, 0, 0, 20, 1, 1, 1, 1, 1, 1, 1, 1, 20, 0, 0, 20, 1, 2, 2, 2, 2, 2, 2, 1, 20, 0, 0, 20, 1, 2, 3, 3, 3, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 13, 13, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 11, 11, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 13, 13, 3, 2, 1, 20, 0, 0, 20, 1, 2, 3, 3, 3, 3, 2, 1, 20, 0, 0, 20, 1, 2, 2, 2, 2, 2, 2, 1, 20, 0, 0, 20, 1, 1, 1, 1, 1, 1, 1, 1, 20, 0, 0, 20, 20, 20, 11, 11, 11, 11, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level20data = 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, 1, 1, 15, 15, 1, 1, 0, 0, 0, 0, 0, 1, 3, 3, 1, 1, 3, 3, 1, 0, 0, 0, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 13, 13, 3, 3, 3, 3, 3, 3, 3, 3, 13, 13, 12, 12, 13, 3, 13, 13, 13, 13, 3, 13, 12, 12, 13, 12, 12, 13, 12, 12, 12, 12, 13, 12, 12, 13, 0, 13, 12, 12, 12, 13, 13, 12, 12, 12, 13, 0, 0, 0, 13, 12, 13, 0, 0, 13, 12, 13, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 13);
level21data = 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, 11, 11, 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, 20, 0, 0, 12, 12, 12, 12, 12, 12, 0, 0, 20, 20, 0, 2, 2, 13, 13, 13, 13, 2, 2, 0, 20, 20, 0, 2, 2, 13, 13, 13, 13, 2, 2, 0, 20, 20, 0, 2, 2, 13, 13, 13, 13, 2, 2, 0, 20, 20, 0, 0, 12, 12, 12, 12, 12, 12, 0, 0, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 0, 20, 20, 0, 0, 20, 20, 0, 0, 20, 20, 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);
level22data = 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, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 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12, 12, 12, 12, 12, 12, 0, 0, 12, 7, 7, 7, 7, 7, 7, 7, 7, 12, 0, 0, 12, 7, 14, 14, 20, 20, 14, 14, 7, 12, 0, 0, 12, 7, 14, 14, 20, 20, 14, 14, 7, 12, 0, 0, 12, 7, 7, 7, 7, 7, 7, 7, 7, 12, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level27data = new Array(0, 0, 0, 0, 0, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 11, 4, 4, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 4, 4, 4, 10, 4, 4, 4, 4, 0, 0, 0, 0, 4, 4, 4, 10, 10, 4, 4, 0, 0, 0, 0, 0, 0, 4, 4, 10, 10, 4, 14, 0, 0, 0, 0, 0, 0, 14, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 10);
level28data = new Array(0, 0, 10, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 0, 10, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 10, 10, 1, 1, 1, 1, 1, 1, 10, 10, 0, 0, 10, 1, 1, 11, 1, 1, 11, 1, 1, 10, 0, 0, 10, 1, 1, 11, 1, 1, 11, 1, 1, 10, 0, 0, 10, 1, 1, 11, 1, 1, 11, 1, 1, 10, 0, 0, 10, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 10, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0, 0, 10, 1, 20, 1, 1, 1, 1, 20, 1, 10, 0, 0, 10, 1, 20, 1, 1, 1, 1, 20, 1, 10, 0, 0, 10, 10, 1, 20, 1, 1, 20, 1, 10, 10, 0, 0, 0, 10, 1, 1, 20, 20, 1, 1, 10, 0, 0, 0, 0, 10, 1, 1, 1, 1, 1, 1, 10, 0, 0, 0, 0, 10, 10, 10, 10, 10, 10, 10, 10);
level29data = 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, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 0, 0, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 0, 0, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3, 0, 0, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 0, 0, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 11, 11, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3, 0, 0, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 0, 0, 7, 7, 7, 7, 0, 0, 7, 7, 7, 7, 0, 0, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3);
level30data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 7, 11, 11, 11, 7, 11, 11, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 11, 11, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0, 7, 7, 7, 11, 7, 11, 7, 11, 7, 7, 7, 0, 7, 11, 11, 11, 7, 11, 11, 11, 7, 11, 7, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7);
level31data = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 12, 7, 7, 15, 0, 0, 4, 4, 0, 0, 0, 0, 12, 12, 7, 7, 15, 4, 4, 12, 0, 0, 0, 0, 12, 12, 12, 7, 4, 4, 12, 12, 0, 0, 0, 0, 1, 12, 12, 12, 4, 12, 12, 12, 0, 0, 0, 0, 1, 1, 12, 12, 12, 12, 12, 3, 0, 0, 0, 0, 0, 1, 1, 12, 12, 12, 3, 3, 0, 0, 0, 0, 0, 0, 1, 1, 12, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3);
level32data = 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, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 12, 0, 0, 12, 11, 11, 11, 11, 12, 0, 0, 12, 12, 0, 0, 12, 1, 1, 1, 1, 12, 0, 0, 12, 12, 0, 0, 12, 1, 1, 1, 1, 12, 0, 0, 12, 13, 13, 13, 20, 20, 20, 20, 20, 20, 13, 13, 13);
level33data = new Array(0, 0, 0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 11, 11, 11, 7, 11, 7, 11, 7, 11, 11, 11, 7, 7, 11, 7, 7, 11, 11, 11, 7, 11, 11, 7, 7, 7, 11, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 7, 11, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 7, 11, 7, 7, 11, 7, 11, 7, 7, 11, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12);
level38data = 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, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 14, 13, 13, 13, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 20, 20, 14, 13, 12, 12, 13, 14, 20, 20, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 12, 12, 13, 14, 0, 0, 0, 0, 0, 0, 14, 13, 13, 13, 13, 14, 0, 0, 0, 0, 0, 0, 14, 14, 14, 14, 14, 14);
level39data = 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, 11, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 14, 14, 14, 0, 14, 14, 0, 14, 14, 14, 0, 0, 12, 12, 12, 0, 12, 12, 0, 12, 12, 12, 0, 0, 13, 13, 13, 0, 13, 13, 0, 13, 13, 13);
level40data = new Array(20, 20, 20, 20, 20, 7, 7, 20, 20, 20, 20, 20, 20, 20, 20, 20, 7, 3, 3, 7, 20, 20, 20, 20, 20, 20, 20, 7, 3, 14, 14, 3, 7, 20, 20, 20, 20, 20, 7, 3, 14, 9, 9, 14, 3, 7, 20, 20, 20, 7, 3, 14, 9, 9, 9, 9, 14, 3, 7, 20, 7, 3, 14, 15, 9, 9, 9, 9, 15, 14, 3, 20, 3, 14, 11, 9, 9, 0, 0, 9, 9, 11, 1, 7, 14, 9, 9, 9, 0, 0, 0, 0, 9, 9, 9, 1, 9, 9, 9, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 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);
level41data = 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, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 9, 11, 0, 0, 12, 12, 0, 0, 11, 9, 0, 0, 9, 7, 14, 14, 14, 14, 14, 14, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 14, 14, 14, 14, 14, 14, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 7, 14, 14, 14, 14, 14, 14, 7, 9, 0, 0, 9, 7, 0, 0, 12, 12, 0, 0, 7, 9, 0, 0, 9, 11, 0, 0, 12, 12, 0, 0, 11, 9, 0, 0, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14);
level42data = 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, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 20, 20, 9, 9, 9, 9, 9, 9, 20, 20, 0, 0, 20, 20, 9, 9, 9, 9, 9, 9, 20, 20, 0, 0, 20, 20, 9, 9, 9, 9, 9, 9, 20, 20, 0, 0, 20, 20, 7, 7, 7, 7, 7, 7, 20, 20, 0, 0, 20, 20, 11, 1, 1, 1, 1, 11, 20, 20, 0, 20, 20, 20, 12, 12, 12, 12, 12, 12, 20, 20, 20, 20, 20, 20, 13, 13, 13, 13, 13, 13, 20, 20, 20, 20, 20, 20, 14, 14, 14, 14, 14, 14, 20, 20, 20);
level43data = 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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, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 11, 20, 11, 20, 11, 11, 20, 11, 20, 11, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13, 0, 0, 13, 0, 14, 0, 12, 12, 0, 14, 0, 13);
level50data = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 1, 1, 11, 11, 11, 1, 1, 1, 11, 1, 1, 1, 1, 11, 1, 1, 11, 11, 1, 1, 11, 1, 1, 1, 1, 11, 1, 1, 11, 11, 1, 1, 11, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 1, 11, 11, 11, 1, 1, 11, 1, 11, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 1, 11, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 11, 1, 1, 11, 1, 1, 1, 1, 1, 11, 1, 11, 11, 1, 1, 11, 1, 1, 11, 11, 11, 1, 1, 1, 11, 11, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Frame 8
function stopmusic() {
musictrack1.stop();
musictrack2.stop();
musictrack3.stop();
optionsmusic.stop();
menumusic.stop();
gameovermusic.stop();
}
function playmusic() {
if (musicstate == 1) {
stopmusic();
if (gamescene == "options") {
optionsmusic.start(0, 90);
}
if (gamescene == "playing") {
b = level - (int(level / 2) * 2);
switch (b) {
case 0 :
musictrack1.start(0, 30);
break;
case 1 :
musictrack2.start(0, 30);
break;
default :
musictrack1.start(0, 30);
}
}
if (gamescene == "game over") {
gameovermusic.start(0, 9);
}
if (gamescene == "main menu") {
menumusic.start(0, 90);
}
} else {
stopmusic();
}
}
storage = SharedObject.getLocal("breakitStorage");
level = storage.data.uptolevel;
if (level == undefined) {
storage.data.uptolevel = 1;
level = 1;
}
yourhigh = storage.data.myhighscore;
if (yourhigh == undefined) {
storage.data.myhighscore = 0;
yourhigh = 0;
}
tileset = storage.data.mytileset;
if (tileset == undefined) {
tileset = random(4) + 1;
storage.data.mytileset = tileset;
}
musicstate = storage.data.musicsetting;
if ((musicstate == undefined) || (musicstate == 2)) {
musicstate = 1;
storage.data.musicsetting = 1;
}
trace("musicstate = " + musicstate);
Frame 9
function playgame() {
gotoAndPlay (27);
}
function resetlevel() {
_root.level = 1;
playcont.gotoAndStop(1);
_root.resetclip.gotoAndPlay(2);
storage.data.uptolevel = 1;
storage.flush();
}
delete state;
_quality = "HIGH";
if (level > 1) {
playcont.gotoAndStop(2);
}
gamescene = "main menu";
playmusic();
Frame 26
stop();
Frame 27
function ballClass() {
}
ballClass.prototype = new MovieClip();
ballClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.startx = this.x;
this.starty = this.y;
this.ballwidth = 7;
this.lastbrickhit = 0;
this.lasthitbat = 0;
this.yspeed = 2;
this.xspeed = -2 + random(4);
this.ballstarttime = getTimer();
this.timer = 0;
this.brickhits = 0;
_root.maxspeed = _root.maxspeedstart;
this.ballState = "normal";
};
ballClass.prototype.onEnterFrame = function () {
if (_root.state == "playing") {
if (this.ballState == "sticky") {
this.x = px;
this.y = py;
if (playerbatstate != 7) {
this.ballState = "normal";
k = 9;
while (k < 95) {
if (eval ("b" + k).y > 400) {
eval ("b" + k).ballState = "normal";
eval ("b" + k).y = 400;
eval ("b" + k).x = player._x;
eval ("b" + k).yspeed = -5 - (Math.abs(prot) * 0.3);
if (prot < 0) {
eval ("b" + k).xspeed = Math.abs(prot) * 0.3;
} else {
eval ("b" + k).xspeed = Math.abs(prot) * 0.3;
}
}
k++;
}
}
} else {
this.y = this.y + this.yspeed;
this.x = this.x + this.xspeed;
if (this.y > 300) {
this.temp = getTimer();
if ((this.temp - this.lasthitbat) > 200) {
this.lasthitbat = 0;
this.hitplayer = _root.player.hitTest(this.x, this.y + this.ballwidth, true);
if (this.hitplayer == true) {
this.brickhits = 0;
if (this.ballState == "normal") {
trace("hit player");
if (_root.playerbatstate == 7) {
_root.sticky_snd.start();
this.xspeed = 0;
this.yspeed = 0;
this.ballState = "sticky";
}
if (_root.playerbatstate != 7) {
this.yspeed = (-this.yspeed) - (Math.abs(prot) * 0.3);
if (prot < 0) {
this.xspeed = this.xspeed - (Math.abs(prot) * 0.3);
} else {
this.xspeed = this.xspeed + (Math.abs(prot) * 0.3);
}
hitbatsound.start();
this.lasthitbat = this.temp;
this.y = this.y - 5;
}
}
}
}
}
if (this.y > 490) {
trace("ball lost");
_root.ballnum--;
_root.testforlifelost();
removeMovieClip(this);
}
if (this.y < 25) {
this.y = 25;
this.yspeed = -(this.yspeed - random(4));
bounce2sound.start();
this.lastbrickhit = 0;
}
if (this.x < (25 + this.ballwidth)) {
this.x = 25 + this.ballwidth;
this.xspeed = -(this.xspeed - random(4));
bounce1sound.start();
this.lastbrickhit = 0;
}
if (this.x > (615 - this.ballwidth)) {
this.x = 615 - this.ballwidth;
this.xspeed = -(this.xspeed - random(4));
bounce1sound.start();
this.lastbrickhit = 0;
}
if (this.y < 300) {
if (_root.brickholder.hitTest(this.x, this.y, true) == true) {
this.ac = 0;
this.i = _root.bricklevelstart;
while (this.i < (_root.bricklevelstart + 168)) {
this.tb = _root.bricksArray[this.ac];
this.ac++;
if (this.tb > 0) {
if (this.hitTest(eval ("_root.brickholder.br" + this.i)) == true) {
this.hitby = eval ("_root.brickholder.br" + this.i).y;
this.ydiff = Math.abs(int(this.y - this.hitby));
this.hitbx = eval ("_root.brickholder.br" + this.i).x;
this.xdiff = Math.abs(int(this.x - this.hitbx));
if (eval ("_root.brickholder.br" + this.i).clip.brickkind == 20) {
trace("hit indestrub");
if (Math.abs(this.xspeed) < 1) {
this.xspeed = this.xspeed + (random(3) - 1);
}
}
if (eval ("_root.brickholder.br" + this.i).clip.brickkind != 20) {
this.brickhits++;
switch (this.brickhits) {
case 10 :
_root.tellplayer(1);
break;
case 20 :
_root.tellplayer(2);
break;
case 30 :
_root.tellplayer(3);
break;
case 40 :
_root.tellplayer(4);
break;
case 50 :
_root.tellplayer(5);
break;
case 60 :
_root.tellplayer(6);
}
}
_root.hitbrick(this.i);
if ((this.ydiff > 10) && (this.y < this.lasty)) {
this.yspeed = -this.yspeed;
this.y = (this.hitby + 25) + this.ballwidth;
break;
}
if ((this.ydiff < 11) && (this.lasty < this.y)) {
this.yspeed = -this.yspeed;
this.y = this.hitby - this.ballwidth;
break;
}
if ((this.xdiff > 25) && (this.lastx > this.x)) {
if ((this.ydiff > 0) && (this.ydiff < 25)) {
this.xspeed = -this.xspeed;
this.x = (this.hitbx + 50) + this.ballwidth;
}
break;
}
if ((this.xdiff < 25) && (this.x > this.lastx)) {
if ((this.ydiff > 0) && (this.ydiff < 25)) {
this.xspeed = -this.xspeed;
this.x = this.hitbx - this.ballwidth;
}
break;
}
}
}
this.i++;
}
}
}
}
this._x = int(this.x);
this._y = int(this.y);
this.lastx = this.x;
this.lasty = this.y;
if (this.xspeed > _root.maxspeed) {
this.xspeed = _root.maxspeed;
} else if (this.xspeed < (-_root.maxspeed)) {
this.xspeed = -_root.maxspeed;
}
if (this.yspeed > _root.maxspeed) {
this.yspeed = _root.maxspeed;
} else if (this.yspeed < (-_root.maxspeed)) {
this.yspeed = -_root.maxspeed;
}
}
};
Object.registerClass("ball", ballClass);
function bonuspointsClass() {
}
bonuspointsClass.prototype = new MovieClip();
bonuspointsClass.prototype.onLoad = function () {
this.y = this._y;
this.state = "normal";
this.fs = 1;
};
bonuspointsClass.prototype.onEnterFrame = function () {
if (_root.state != "paused") {
this.y = this.y + this.fs;
if (this.y > 490) {
removeMovieClip(this);
}
if (this.y > (_root.batheight - 20)) {
if (this.hitTest(_root.player) == true) {
trace("BONUS POINTS");
player.gotoAndPlay("collectglow");
collectsound.start();
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + this.clip.bonusamount;
removeMovieClip(this);
}
}
this._y = int(this.y);
this.fs = this.fs * 1.06;
}
};
Object.registerClass("bonuspoints", bonuspointsClass);
function bonusClass() {
}
bonusClass.prototype = new MovieClip();
bonusClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.state = "normal";
this.fs = 1;
};
bonusClass.prototype.onEnterFrame = function () {
if (_root.state != "paused") {
this.y = this.y + this.fs;
if (this.y > 490) {
removeMovieClip(this);
}
if (this.y > (_root.batheight - 20)) {
if (this.hitTest(_root.player) == true) {
player.gotoAndPlay("collectglow");
bonuscollected_snd.start();
trace("------------" + this.clip.bonuskind);
switch (this.clip.bonuskind) {
case 1 :
_root.laserbat();
break;
case 2 :
_root.growbat();
break;
case 3 :
_root.shrinkbat();
break;
case 4 :
_root.multiball();
break;
case 5 :
_root.twobat();
break;
case 6 :
_root.curvebat();
break;
case 7 :
_root.stickybat();
break;
}
removeMovieClip(this);
}
}
this.y = int(this.y);
this._y = int(this.y);
this.fs = this.fs * 1.06;
}
};
Object.registerClass("bonus", bonusClass);
function brickClass() {
}
brickClass.prototype = new MovieClip();
brickClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.clip.state = "normal";
this.yspeed = 0;
};
brickClass.prototype.onEnterFrame = function () {
switch (this.clip.state) {
case "disolve" :
trace("disolve");
if (this.clip.brickkind < 11) {
this.tc = random(8) + 1;
if (this.tc < 5) {
this.tempc = 50 * this.tc;
bonusholder.attachMovie("bonuspoints", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = this.x + 25;
_y = this.y + 12;
clip.bonusamount = this.tempc;
clip.gotoAndStop(this.tc);
}
_root.bonusn++;
if (_root.bonusn > 200) {
_root.bonusn = 1;
}
}
}
if (((this.clip.brickkind > 14) && (this.clip.brickkind < 20)) || (this.clip.brickkind == 21)) {
this.pointsawarded = 200;
hitbonus1.start();
switch (this.clip.brickkind) {
case 15 :
this.tn = 1;
break;
case 16 :
this.tn = 2;
break;
case 17 :
this.tn = 3;
break;
case 18 :
this.tn = 4;
break;
case 19 :
this.tn = 5;
break;
case 21 :
this.tn = 6;
break;
default :
this.tn = 1;
}
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = this.x + 25;
_y = this.y + 12;
clip.bonuskind = this.tn;
gotoAndStop(this.tn);
}
_root.bonusn++;
if (_root.bonusn > 599) {
_root.bonusn = 501;
}
}
if (this.clip.brickkind == 11) {
this.pointsawarded = 200;
this.tempran = random(7) + 1;
hitbonus1.start();
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = this.x + 25;
_y = this.y + 12;
clip.bonuskind = this.tempran;
gotoAndStop(this.tempran);
}
_root.bonusn++;
if (_root.bonusn > 599) {
_root.bonusn = 501;
}
}
this.clip.state = "fade";
return;
case "fade" :
this.pointsawarded = 0;
if (this.clip.brickkind < 12) {
this.pointsawarded = 50;
}
if (this.clip.brickkind == 12) {
this.pointsawarded = 250;
}
if (this.clip.brickkind == 13) {
this.pointsawarded = 450;
}
_root.score = _root.score + this.pointsawarded;
this.clip.state = "waittogo";
_root.bricksArray[this.clip.brickkind] = 0;
this.clip.t = 10;
return;
case "shake brick" :
this.sc = 10;
this.clip.state = "shakingbrick";
return;
case "shakingbrick" :
this.r = random(this.sc) - (this.sc / 2);
this._x = this.x + this.r;
this._y = this.y + this.r;
this.sc--;
if (this.sc < 1) {
this.clip.state = "normal";
this._x = this.x;
this._y = this.y;
}
return;
case "waittogo" :
this.r = random(6) - 3;
this._x = this.x + this.r;
this._y = this.y + this.r;
this._alpha = this._alpha * 0.9;
this.clip.t--;
if (this.clip.t < 1) {
_root.bricksArray[this.clip.brickkind] = 0;
removeMovieClip(this);
this.clip.state = "remove";
}
return;
}
};
switch (tileset) {
case 1 :
Object.registerClass("bricksa", brickClass);
bname = "bricksa";
break;
case 2 :
Object.registerClass("bricksb", brickClass);
bname = "bricksb";
break;
case 3 :
Object.registerClass("bricksc", brickClass);
bname = "bricksc";
break;
case 4 :
Object.registerClass("bricksd", brickClass);
bname = "bricksd";
break;
default :
Object.registerClass("bricksa", brickClass);
}
function stickybat() {
if (playerbatstate != 7) {
bonuscollected_snd.start();
_root.playerscore.gotoAndPlay(2);
playerbatstate = 7;
attachMovie("playerstk", "player", 199);
}
}
function curvebat() {
if (playerbatstate != 6) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 6;
attachMovie("playercv", "player", 199);
}
}
function frameaction() {
if (state == "start again") {
dropbonus = 0;
attachMovie("ready_announce", "la", 900);
la._x = 320;
la._y = 240;
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
eval ("b" + _root.balllevel)._x = 320;
eval ("b" + _root.balllevel)._y = 330;
eval ("b" + _root.balllevel).yspeed = 10;
eval ("b" + _root.balllevel).xspeed = 0;
ballnum++;
_root.balllevel++;
_global.playerbatstate = 1;
attachMovie("player", "player", 199);
player._x = 320;
player._y = 430;
_root.batwidth = player._width;
this.state = "paused";
this.batjoin._x = -100;
}
if (state == "paused") {
}
if (state == "begin") {
if (level > 50) {
removeMovieClip(player);
i = 0;
while (i < 100) {
removeMovieClip(eval ("b" + i));
i++;
}
gotoAndPlay (92);
} else {
setuplevel();
}
state = "paused";
}
if (state == "playing") {
if (playerbatstate == 5) {
this.batjoin._x = px;
} else {
this.batjoin._x = -100;
}
if (dropbonus == 1) {
trace("DROP STARTS");
dropc = 0;
dropbonus = 2;
}
if (dropbonus == 2) {
dropc++;
if (dropc > 200) {
dropc = 0;
tr = random(7) + 1;
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
a = random(600) + 20;
this.bonusdropper._x = a;
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = a;
_y = -40;
bonusdropper.gotoAndPlay(2);
clip.bonuskind = tr;
gotoAndStop(tr);
}
_root.bonusn++;
}
}
tx = int(_root._xmouse);
acl = px - tx;
px = px - (acl / 5);
if (px < 15) {
px = 15;
}
if (px > 615) {
px = 615;
}
prot = int((-acl) / 2);
if (prot > 30) {
prot = 30;
}
if (prot < -30) {
prot = -30;
}
lastprot = prot;
player._x = px;
player._y = py;
player._rotation = prot;
}
if (state == "game over") {
removeMovieClip(player);
gotoAndPlay ("GAMEOVER");
}
}
function growbat() {
if (playerbatstate != 3) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 3;
attachMovie("playerlg", "player", 199);
}
}
function hitbrick(brickhit) {
hit1sound.start();
this.tempb = _root.bricksArray[brickhit - _root.bricklevelstart];
if (this.tempb == 20) {
eval ("brickholder.br" + brickhit).clip.state = "shake brick";
}
if (this.tempb != 20) {
this.tempc = eval ("brickholder.br" + brickhit).clip.state;
this.tempclipstr = eval ("brickholder.br" + brickhit).clip.strength;
this.tempclipstr--;
eval ("brickholder.br" + brickhit).clip.strength = this.tempclipstr;
if ((this.tempclipstr < 1) || (this.tempclipstr == undefined)) {
if ((this.tempc != "fade") || (this.tempc != "disolve")) {
ttx = eval ("brickholder.br" + brickhit)._x;
tty = eval ("brickholder.br" + brickhit)._y;
this.tempd = eval ("brickholder.br" + brickhit).clip.brickkind;
if (this.tempd != 20) {
_root.bricksArray[brickhit - _root.bricklevelstart] = 0;
if (this.tempd < 11) {
_root.score = _root.score + 50;
this.tc = random(8) + 1;
if (this.tc < 5) {
this.tempc = 50 * this.tc;
bonusholder.attachMovie("bonuspoints", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = ttx + 25;
_y = tty + 12;
clip.bonusamount = this.tempc;
clip.gotoAndStop(this.tc);
}
_root.bonusn++;
if (_root.bonusn > 200) {
_root.bonusn = 1;
}
}
}
if ((((this.tempd > 14) && (this.tempd < 20)) || (this.tempd == 21)) || (this.tempd == 22)) {
this.pointsawarded = 200;
hitbonus1.start();
switch (this.tempd) {
case 15 :
this.tn = 1;
break;
case 16 :
this.tn = 2;
break;
case 17 :
this.tn = 3;
break;
case 18 :
this.tn = 4;
break;
case 19 :
this.tn = 5;
break;
case 21 :
this.tn = 6;
break;
case 22 :
this.tn = 7;
break;
default :
this.tn = 1;
}
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = ttx + 25;
_y = tty + 12;
clip.bonuskind = this.tn;
gotoAndStop(this.tn);
}
_root.bonusn++;
if (_root.bonusn > 599) {
_root.bonusn = 501;
}
}
if (this.tempd == 11) {
this.pointsawarded = 200;
this.tempran = random(7) + 1;
if (_root.multiballdone == 1) {
while (this.tempran == 3) {
this.tempran = random(6) + 1;
}
}
if (this.tempran == 3) {
_root.multiballdone = 1;
}
hitbonus1.start();
bonusholder.attachMovie("bonus", "bs" + _root.bonusn, _root.bonusn);
with (eval ("bonusholder.bs" + _root.bonusn)) {
_x = ttx + 25;
_y = tty + 12;
clip.bonuskind = this.tempran;
gotoAndStop(this.tempran);
}
_root.bonusn++;
if (_root.bonusn > 599) {
_root.bonusn = 501;
}
}
removeMovieClip(eval ("brickholder.br" + brickhit));
}
_root.addup = 0;
i = _root.bricklevelstart;
while (i < (_root.bricklevelstart + 168)) {
td = eval ("brickholder.br" + i).clip.brickkind;
if (((_root.bricksArray[i] != 0) && (_root.bricksArray[i] != undefined)) && (_root.bricksArray[i] != 20)) {
if (td != 20) {
_root.addup = _root.addup + 1;
}
}
i++;
}
if (addup < 11) {
if (dropbonus == 0) {
dropbonus = 1;
}
}
if (addup == 0) {
dropbonus = 0;
level++;
i = 0;
while (i < 100) {
removeMovieClip(eval ("b" + i));
i++;
}
i = 500;
while (i < 521) {
removeMovieClip(eval ("l" + i));
i++;
}
i = 1;
while (i < 500) {
removeMovieClip(eval ("brickholder.br" + i));
i++;
}
i = 0;
while (i < 120) {
removeMovieClip(eval ("bonusholder.bs" + i));
i++;
}
attachMovie("player", "player", 199);
player._x = 320;
player._y = 430;
_root.batwidth = player._width;
state = "begin";
savegame.flush();
}
if ((score > 30000) && (extralives == 0)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 60000) && (extralives == 1)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 90000) && (extralives == 2)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 120000) && (extralives == 3)) {
extralives++;
lives++;
tellplayer(9);
}
if ((score > 150000) && (extralives == 4)) {
extralives++;
lives++;
tellplayer(9);
}
}
}
}
if (this.tempclipstr > 0) {
eval ("brickholder.br" + brickhit).clip.state = "shake brick";
eval ("brickholder.br" + brickhit).crack.nextFrame();
}
}
function laserbat() {
if (playerbatstate != 2) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 2;
attachMovie("playerlsr", "player", 199);
}
}
function laserClass() {
}
laserClass.prototype = new MovieClip();
laserClass.prototype.onLoad = function () {
this.x = this._x;
this.y = this._y;
this.fs = 1;
this.state = "norm";
};
laserClass.prototype.onEnterFrame = function () {
if (this.state == "norm") {
if (this.y < 300) {
if (_root.brickholder.hitTest(this.x, this.y, true) == true) {
trace("YES");
this.ac = 0;
this.i = _root.bricklevelstart;
while (this.i < (_root.bricklevelstart + 168)) {
this.tb = _root.bricksArray[this.ac];
this.ac++;
if (this.tb > 0) {
this.hitby = eval ("_root.brickholder.br" + this.i).y;
this.ydiff = Math.abs(Math.floor(this.y - this.hitby));
if (this.ydiff < 50) {
this.hitbx = eval ("_root.brickholder.br" + this.i).x;
this.xdiff = Math.abs(Math.floor(this.x - this.hitbx));
if (this.xdiff < 60) {
if (this.hitTest(eval ("_root.brickholder.br" + this.i)) == true) {
if (eval ("_root.brickholder.br" + this.i).clip.brickkind != 20) {
this.brickhits++;
switch (this.brickhits) {
case 10 :
_root.tellplayer(1);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 500;
_root.multi_snd.start();
break;
case 20 :
_root.tellplayer(2);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 750;
_root.super_snd.start();
break;
case 30 :
_root.tellplayer(3);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 1000;
_root.wild_snd.start();
break;
case 40 :
_root.tellplayer(4);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 2000;
_root.awesome_snd.start();
break;
case 50 :
_root.tellplayer(5);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 3000;
_root.mega_snd.start();
break;
case 60 :
_root.tellplayer(6);
_root.playerscore.gotoAndPlay(2);
_root.score = _root.score + 4000;
_root.legend_snd.start();
}
}
hitbrick(this.i);
this.gotoAndPlay("explode");
this.state = "explode";
}
}
}
}
this.i++;
}
}
}
this.y = this.y - this.fs;
if (this.y < 10) {
this.gotoAndPlay("explode");
this.state = "explode";
}
this.y = Math.floor(this.y);
this._y = Math.floor(this.y);
this.fs = this.fs * 1.05;
}
if (this.state == "explode") {
trace("dafing");
}
};
Object.registerClass("laserbullet", laserClass);
function pausebtnpress() {
if (_root.state == "playing") {
_root.state = "paused";
attachMovie("paused_clip", "tp", 9);
tp._x = 320;
tp._y = 240;
} else if (_root.state == "paused") {
removeMovieClip("tp");
_root.state = "playing";
}
}
function setupsounds() {
}
var mlisten = new Object();
mlisten.onMouseDown = function () {
if ((playerbatstate == 2) && (state == "playing")) {
_root.player.laser.gotoAndPlay(2);
attachMovie("laserbullet", "l" + _root.lnum, _root.lnum);
eval ("l" + _root.lnum)._x = px;
eval ("l" + _root.lnum)._y = py;
lsr_snd.start();
_root.lnum++;
if (_root.lnum > 580) {
_root.lnum = 500;
}
}
if ((playerbatstate == 7) && (state == "playing")) {
sticky_snd.start();
trace("mouse pressed while sticky");
k = 9;
while (k < 95) {
if (eval ("b" + k).y > 400) {
eval ("b" + k).ballState = "normal";
eval ("b" + k).y = 390;
eval ("b" + k).yspeed = -5 - (Math.abs(prot) * 0.4);
if (prot < 0) {
eval ("b" + k).xspeed = -(Math.abs(prot) * 0.4);
} else {
eval ("b" + k).xspeed = Math.abs(prot) * 0.4;
}
}
k++;
}
}
};
Mouse.addListener(mlisten);
function setup() {
gamescene = "playing";
_quality = "LOW";
lnum = 500;
extralives = 0;
_root.lives = 2;
_root.score = 0;
acl = 0;
_root.batheight = 430;
_global.playerbatstate = 1;
_global.prot = 0;
_global.px = 200;
_global.py = _root.batheight;
_global.state = "begin";
_root.pnum = 2;
}
function musicon() {
this.on_off.gotoAndStop(1);
musicstate = 1;
storage.data.musicsetting = 1;
playmusic();
}
function musicoff() {
stopmusic();
this.on_off.gotoAndStop(2);
musicstate = 0;
storage.data.musicsetting = 0;
}
if (musicstate == 0) {
this.on_off.gotoAndStop(2);
}
function setuplevel() {
playmusic();
dropbonus = 0;
this.batjoin._x = -100;
_root.state = "paused";
_root.levelann = "Level " + level;
trace("LEVEL START" + level);
attachMovie("level_announce", "la", 3999);
la._x = 320;
la._y = 240;
background.gotoAndStop(level);
_root.multiballdone = 0;
i = 0;
while (i < 100) {
removeMovieClip(eval ("b" + i));
i++;
}
i = 500;
while (i < 590) {
removeMovieClip(eval ("l" + i));
i++;
}
i = 1;
while (i < 500) {
removeMovieClip(eval ("brickholder.br" + i));
i++;
}
i = 0;
while (i < 120) {
removeMovieClip(eval ("bonusholder.bs" + i));
i++;
}
playerbatstate = 1;
setupsounds();
_root.maxspeedstart = 5 + (level / 50);
_root.maxspeed = _root.maxspeedstart;
_root.bonusn = 1;
attachMovie("player", "player", 199);
player._x = 320;
player._y = 430;
player.cacheAsBitmap = true;
_root.batwidth = player._width;
_root.balllevel = 10;
_root.ballnum = 0;
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
eval ("b" + _root.balllevel)._x = 320;
eval ("b" + _root.balllevel)._y = 330;
eval ("b" + _root.balllevel).yspeed = 10;
eval ("b" + _root.balllevel).xspeed = 0;
ballnum++;
_root.balllevel++;
temparray = eval (("level" + level) + "data");
_root.bricklevelstart = 1;
_root.bricklevel = _root.bricklevelstart;
_root.bricksArray = new Array();
i = 0;
while (i < 168) {
ran = temparray[i];
tempstr = 0;
if (ran > 0) {
if (ran < 12) {
tempstr = 1;
}
if (ran == 12) {
tempstr = 2;
}
if (ran == 13) {
tempstr = 3;
}
if (ran == 14) {
tempstr = 4;
}
if (ran == 20) {
tempstr = 20;
}
if ((((ran > 14) && (ran < 20)) || (ran == 21)) || (ran == 22)) {
tempstr = 1;
}
ty = Math.floor(i / 12);
tx = i - (ty * 12);
brickholder.attachMovie(bname, "br" + _root.bricklevel, _root.bricklevel + i);
with (eval ("brickholder.br" + _root.bricklevel)) {
gotoAndStop(ran);
_x = 20 + (50 * tx);
_y = 25 + (ty * 20);
clip.brickkind = ran;
clip.state = "normal";
clip.strength = tempstr;
}
}
_root.bricklevel++;
bricksArray[i] = tempstr;
i++;
}
_root.lastbrickhit = getTimer();
}
function shrinkbat() {
if (playerbatstate != 4) {
_root.playerscore.gotoAndPlay(2);
playerbatstate = 4;
attachMovie("playersm", "player", 199);
}
}
function tellplayer(num) {
attachMovie("tell_player", "tp", 9);
tp._x = 320;
tp._y = 240;
tp.clip.gotoAndStop(num);
_root.playerscore.gotoAndPlay(2);
if (num == 9) {
extralife_snd.start();
}
switch (num) {
case 1 :
_root.score = _root.score + 500;
_root.multi_snd.start();
break;
case 2 :
_root.score = _root.score + 750;
_root.super_snd.start();
break;
case 3 :
_root.score = _root.score + 1000;
_root.wild_snd.start();
break;
case 4 :
_root.score = _root.score + 2000;
_root.awesome_snd.start();
break;
case 5 :
_root.score = _root.score + 3000;
_root.mega_snd.start();
break;
case 6 :
_root.score = _root.score + 4000;
_root.legend_snd.start();
break;
}
}
function testforlifelost() {
lostball_snd.start();
if (_root.ballnum == 0) {
playerbatstate = 1;
player.gotoAndPlay("lifelost");
n = bonusholder.getNextHighestDepth();
bonusholder.attachMovie("lifelost", "ll", n);
bonusholder.ll._x = 320;
bonusholder.ll._y = 240;
lives--;
if (lives < 0) {
trace("game over");
state = "game over";
} else {
_root.gamestate = "paused";
}
}
}
function twobat() {
if (playerbatstate != 5) {
playerbatstate = 5;
_root.playerscore.gotoAndPlay(2);
attachMovie("playertwo", "player", 199);
}
}
function multiball() {
ballnum++;
_root.balllevel++;
_root.playerscore.gotoAndPlay(2);
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
with (eval ("b" + _root.balllevel)) {
_x = px - 10;
_y = py - 40;
}
ballnum++;
_root.balllevel++;
attachMovie("ball", "b" + _root.balllevel, _root.balllevel);
with (eval ("b" + _root.balllevel)) {
_x = px + 10;
_y = py - 40;
}
_root.balllevel++;
if (_root.balllevel > 90) {
_root.balllevel = 10;
}
}
Instance of Symbol 329 MovieClip in Frame 27
onClipEvent (enterFrame) {
_root.frameaction();
}
Frame 36
setup();
stop();
Frame 39
System.security.allowDomain("www.terrypaton.com");
if (score > yourhigh) {
newscore.gotoAndStop(2);
yourhigh = score;
storage.data.myhighscore = score;
}
if (!(yourhigh === undefined)) {
yourHighestText = "YOUR HIGHEST SCORE: " + yourhigh;
} else {
yourHighestText = " ";
}
storage.data.uptolevel = level;
storage.flush();
gamescene = "game over";
playmusic();
Frame 74
stop();
Frame 75
function gomain() {
_root.state = "start again";
gotoAndPlay (9);
}
function savetilechoice() {
storage.data.mytileset = tileset;
storage.flush();
}
function musicon() {
this.options.on_off.gotoAndStop(1);
musicstate = 1;
storage.data.musicsetting = 1;
playmusic();
}
function musicoff() {
stopmusic();
this.options.on_off.gotoAndStop(2);
musicstate = 0;
storage.data.musicsetting = 0;
}
if (musicstate == 0) {
this.options.on_off.gotoAndStop(2);
}
gamescene = "options";
playmusic();
trace("YO");
trace(gamescene);
this.options.preview.gotoAndStop(tileset + 1);
Frame 91
stop();
Frame 93
if (score > yourhigh) {
yourhigh = score;
storage.data.myhighscore = score;
}
storage.data.uptolevel = 1;
level = 1;
System.security.allowDomain("www.terrypaton.com");
if (score > yourhigh) {
newscore.gotoAndStop(2);
yourhigh = score;
storage.data.myhighscore = score;
}
if (!(yourhigh === undefined)) {
yourHighestText = "YOUR HIGHEST SCORE: " + yourhigh;
} else {
yourHighestText = " ";
}
gamescene = "game over";
playmusic();
Frame 128
stop();
Symbol 14 MovieClip [playercv] Frame 15
stop();
Symbol 14 MovieClip [playercv] Frame 24
gotoAndStop ("norm");
Symbol 14 MovieClip [playercv] Frame 35
removeMovieClip(this);
Symbol 452 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 453 MovieClip [__Packages.letterClass] Frame 0
class letterClass extends MovieClip
{
var centerY, radiusY, speed, y, _y, x, _x, angle;
function letterClass () {
super();
}
function onLoad() {
centerY = 48;
radiusY = 5;
speed = 0.05;
y = _y;
x = _x;
}
function onEnterFrame() {
trace(this);
if (angle != undefined) {
y = centerY + (Math.sin(angle) * radiusY);
angle = angle + speed;
_x = x;
_y = y;
}
}
}
Symbol 19 MovieClip [letter] Frame 1
#initclip 3
Object.registerClass("letter", letterClass);
#endinitclip
Symbol 31 MovieClip [trail] Frame 10
removeMovieClip(this);
Symbol 41 MovieClip Frame 1
stop();
Symbol 42 MovieClip [tell_player] Frame 65
removeMovieClip(this);
Symbol 47 MovieClip [ready_announce] Frame 76
_root.state = "playing";
removeMovieClip(this);
Symbol 50 MovieClip [points] Frame 2
trace("1");
Symbol 50 MovieClip [points] Frame 30
removeMovieClip(this);
Symbol 54 MovieClip [playertwo] Frame 9
stop();
Symbol 54 MovieClip [playertwo] Frame 18
gotoAndStop ("norm");
Symbol 54 MovieClip [playertwo] Frame 31
removeMovieClip(this);
Symbol 57 MovieClip [playersm] Frame 9
stop();
Symbol 57 MovieClip [playersm] Frame 18
gotoAndStop ("norm");
Symbol 57 MovieClip [playersm] Frame 31
removeMovieClip(this);
Symbol 60 MovieClip Frame 1
stop();
Symbol 62 MovieClip [playerlsr] Frame 9
stop();
Symbol 62 MovieClip [playerlsr] Frame 15
gotoAndStop (9);
Symbol 62 MovieClip [playerlsr] Frame 27
removeMovieClip(this);
Symbol 64 MovieClip [playerlg] Frame 9
stop();
Symbol 64 MovieClip [playerlg] Frame 18
gotoAndStop ("norm");
Symbol 64 MovieClip [playerlg] Frame 31
removeMovieClip(this);
Symbol 65 MovieClip [player] Frame 1
stop();
Symbol 65 MovieClip [player] Frame 7
gotoAndStop (1);
Symbol 65 MovieClip [player] Frame 19
removeMovieClip(this);
Symbol 71 Button
on (release) {
_root.pausebtnpress();
}
Symbol 72 MovieClip [paused_clip] Frame 30
stop();
Symbol 74 MovieClip [lifelost] Frame 80
_root.state = "start again";
removeMovieClip(this);
Symbol 78 MovieClip [level_announce] Frame 77
_root.state = "playing";
removeMovieClip(this);
Symbol 81 MovieClip [laserbullet] Frame 1
stop();
Symbol 81 MovieClip [laserbullet] Frame 12
removeMovieClip(this);
Symbol 82 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 8
this.gotoAndStop(1);
Symbol 120 MovieClip [bricksa] Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 142 MovieClip [bonus] Frame 1
stop();
Symbol 146 MovieClip [ball] Frame 20
stop();
Symbol 170 MovieClip [bricksc] Frame 1
stop();
Symbol 181 MovieClip [bricksd] Frame 1
stop();
Symbol 190 MovieClip [bricksb] Frame 1
stop();
Symbol 198 MovieClip [playerstk] Frame 1
stop();
Symbol 198 MovieClip [playerstk] Frame 7
gotoAndStop (1);
Symbol 198 MovieClip [playerstk] Frame 19
removeMovieClip(this);
Symbol 224 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 1
_root.stop();
Symbol 230 MovieClip Frame 75
_root.play();
Symbol 240 MovieClip Frame 23
stop();
Symbol 243 Button
on (release) {
gotoAndPlay (75);
}
Symbol 249 Button
on (press) {
_root.playgame();
}
Symbol 255 Button
on (press) {
_root.playgame();
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 278 Button
on (release) {
_root.resetlevel();
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 351 Button
on (press) {
_root.musicoff();
}
Symbol 354 Button
on (press) {
_root.musicon();
}
Symbol 355 MovieClip Frame 1
stop();
Symbol 358 Button
on (press) {
_root.pausebtnpress();
}
Symbol 378 Button
on (release) {
_root.state = "start again";
gotoAndPlay (9);
}
Symbol 390 Button
on (release) {
nextFrame();
}
Symbol 397 Button
on (release) {
prevFrame();
}
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 2
_root.tileset = 1;
_root.savetilechoice();
Symbol 408 MovieClip Frame 3
_root.tileset = 2;
_root.savetilechoice();
Symbol 408 MovieClip Frame 4
_root.tileset = 3;
_root.savetilechoice();
Symbol 408 MovieClip Frame 5
_root.tileset = 4;
_root.savetilechoice();
Symbol 422 Button
on (release) {
getURL ("mailto:terry@terrypaton.com");
}
Symbol 429 Button
on (release) {
getURL ("http://www.terrypaton.com", "_blank");
}
Symbol 430 MovieClip Frame 16
stop();
Symbol 431 Button
on (release) {
_root.gomain();
}
Symbol 437 Button
on (press) {
getURL ("http://www.extrememusic.com", "_blank");
}
Symbol 444 Button
on (release) {
gotoAndPlay (9);
}