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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
_root.cmode = 2;
__com_mochibot__("87b05ae5", this, 10301, true);
mochi.as2.MochiServices.connect("3a3efde6801f3806");
stop();
gamename = "Cave_bros";
_root.domain_parts = _url.split("://");
_root.real_domain = _root.domain_parts[1].split("/");
_root.hostingdomain = _root.real_domain[0];
_root.usource = _root.real_domain[0];
if (_root.hostingdomain == "") {
_root.ad = false;
_root.hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((_root.hostingdomain == savedomain1) || (_root.hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Level1 = Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 9, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 1, 2, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
Level2 = 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, 1, 1, 1, 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0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5, 0, 2, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 5, 0, 0, 3, 3, 3, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
globalscore = 0;
Stage.showMenu = false;
stop();
function doSomething2() {
getURL ("http://www.lartargames.com/index_en.html", _blank);
}
_root.ad = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if ((hostingdomain == "") || (hostingdomain == "localhost")) {
hostingdomain = "unknown";
_root.ad = false;
} else {
mochi.as2.MochiAd.showPreGameAd({id:"3a3efde6801f3806", res:"450x510", background:16777161, color:16747008, outline:13994812, no_bg:true});
_root.ad = true;
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned2 = new ContextMenuItem("Made By Lartar", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
_root.GAMEON = false;
function onSubmitterFailure() {
trace("Can not use submitter");
}
function onSubmitterSuccess(target) {
trace("Submitter loaded, intialised and available for use");
submitter.submitScore(10);
}
var submitter = new SubmitterProxy();
_root.submitter = attachMovie("submitterProxy", submitter, getNextHighestDepth());
_root.submitter.addEventListener("LoadingFailed", Delegate.create(this, onSubmitterFailure));
_root.submitter.addEventListener("SubmitterLoadedSuccesfull", Delegate.create(this, onSubmitterSuccess));
_root.submitter.setLoader(_root, "Cave_bros", "Cave_bros.html", 0, "normal", "", 0, 0, 1, false, 1);
Instance of Symbol 100 MovieClip "ln" in Frame 1
on (release) {
_root.agj.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root._currentframe > 9) {
this._y = -1500;
this._x = -1500;
this._visible = false;
} else {
this._y = 492.05;
this._x = 87;
this._visible = true;
}
}
Frame 2
var savefile = SharedObject.getLocal("stone_bros");
if (savefile.data.one == undefined) {
savefile.data.one = 1;
savefile.data.level1 = true;
savefile.data.level2 = false;
savefile.data.level3 = false;
savefile.data.level4 = false;
savefile.data.level5 = false;
savefile.data.level6 = false;
savefile.data.level7 = false;
savefile.data.level8 = false;
savefile.data.level9 = false;
savefile.data.level10 = false;
savefile.data.level11 = false;
savefile.data.level12 = false;
savefile.data.level13 = false;
savefile.data.level14 = false;
savefile.data.level15 = false;
savefile.data.level16 = false;
savefile.data.level17 = false;
savefile.data.level18 = false;
savefile.data.level19 = false;
savefile.data.level20 = false;
savefile.data.playerName = "player";
}
savefile.flush();
_root.musica = true;
_root.sonido = true;
stop();
Instance of Symbol 340 MovieClip "intro" in Frame 2
on (release) {
getURL ((_root.localization_url1 + "&utm_content=") + "intro_screen", _blank);
}
Frame 3
_root.thedate = new Date();
_root.dayt = _root.thedate.getDate();
_root.dates = _root.thedate.getUTCMonth();
_root.years = _root.thedate.getUTCFullYear();
stop();
_root.domain_parts = _url.split("://");
_root.real_domain = _root.domain_parts[1].split("/");
_root.hostingdomain = _root.real_domain[0];
if ((hostingdomain == "") || (hostingdomain == "localhost")) {
_root.names._visible = false;
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
savedomain3 = "lartargames.com";
if (((_root.hostingdomain == savedomain1) || (_root.hostingdomain == savedomain2)) || (_root.hostingdomain == savedomain3)) {
ntw = true;
} else {
ntw = false;
}
var savefile = SharedObject.getLocal("stone_bros");
_root.level1 = savefile.data.level1;
_root.level2 = savefile.data.level2;
_root.level3 = savefile.data.level3;
_root.level4 = savefile.data.level4;
_root.level5 = savefile.data.level5;
_root.level6 = savefile.data.level6;
_root.level7 = savefile.data.level7;
_root.level8 = savefile.data.level8;
_root.level9 = savefile.data.level9;
_root.level10 = savefile.data.level10;
_root.level11 = savefile.data.level11;
_root.level12 = savefile.data.level12;
_root.level13 = savefile.data.level13;
_root.level14 = savefile.data.level14;
_root.level15 = savefile.data.level15;
_root.level16 = savefile.data.level16;
_root.level17 = savefile.data.level17;
_root.level18 = savefile.data.level18;
_root.level19 = savefile.data.level19;
_root.level20 = savefile.data.level20;
Instance of Symbol 361 MovieClip "names" in Frame 3
onClipEvent (enterFrame) {
if (ntw == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 373 MovieClip "lgames" in Frame 3
onClipEvent (enterFrame) {
if (_root.years > 2011) {
_root.lgames.onPress = function () {
getURL ("http://www.lartargames.com", _blank);
};
}
if (_root.years == 2011) {
if (_root.dates > 2) {
_root.lgames.onPress = function () {
getURL ("http://www.lartargames.com", _blank);
};
}
}
}
Frame 4
Score = 0;
ping = new Sound();
ping.attachSound("ping");
ping2 = new Sound();
ping2.attachSound("ping2");
ping3 = new Sound();
ping3.attachSound("ping3");
pong2 = new Sound();
pong2.attachSound("pong2");
pong = new Sound();
pong.attachSound("pong");
Laser = new Sound();
Laser.attachSound("Laser");
Extra = new Sound();
Extra.attachSound("Extra");
powerup = new Sound();
powerup.attachSound("powerup");
Level = 1;
Lives = 5;
stop();
_root.domain_parts = _url.split("://");
_root.real_domain = _root.domain_parts[1].split("/");
_root.hostingdomain = _root.real_domain[0];
if (_root.hostingdomain == "") {
_root.ad = false;
_root.hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((_root.hostingdomain == savedomain1) || (_root.hostingdomain == savedomain2)) {
spilnetwerk = "internal";
_root.scores_mc._visible = false;
} else {
spilnetwerk = "external";
_root.scores_mc._visible = true;
}
stop();
if (_root.localization_portal == "game_com_cn") {
this.gameover_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.gameover_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_gameover_moregames", "_blank");
};
}
if (_root._currentframe == 1) {
_root.msource = "loading_screen";
}
if (_root._currentframe == 2) {
_root.msource = "intro_screen";
}
if (_root._currentframe == 4) {
_root.msource = "main_menu";
}
if (_root._currentframe == 70) {
_root.msource = "credits";
}
if (_root._currentframe == 69) {
_root.msource = "game_over";
}
Instance of Symbol 395 MovieClip in Frame 4
on (release) {
_root.gotoAndStop("gamemode");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 412 MovieClip in Frame 4
on (release) {
stopAllSounds();
_root.gotoAndStop("howto");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 429 MovieClip in Frame 4
on (release) {
_root.gotoAndStop("credits");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 434 MovieClip "logo_mainscreen" in Frame 4
onClipEvent (enterFrame) {
gotoAndStop(_root.localization_branding_nr);
}
on (release) {
getURL ((_root.localization_url1 + "&utm_content=") + _root.msource, _blank);
}
Instance of Symbol 451 MovieClip in Frame 4
on (release) {
getURL ((_root.localization_url1 + "&utm_content=") + _root.msource, _blank);
}
Instance of Symbol 468 MovieClip "scores_mc" in Frame 4
on (release) {
stopAllSounds();
_root.gotoAndStop("score_board");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 10
stop();
Instance of Symbol 558 MovieClip "menu_bt" in Frame 10
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 411 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 574 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 591 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 607 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 623 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 639 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 655 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 671 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 687 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 703 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Frame 17
if (_root.cmode == 1) {
mo._alpha = 50;
ke._alpha = 100;
} else {
mo._alpha = 100;
ke._alpha = 50;
}
ke.onRollOver = function () {
this.gotoAndStop(2);
};
ke.onRollOut = function () {
this.gotoAndStop(1);
};
ke.onPress = function () {
_root.cmode = 1;
ke._alpha = 100;
mo._alpha = 50;
};
mo.onRollOver = function () {
this.gotoAndStop(2);
};
mo.onRollOut = function () {
this.gotoAndStop(1);
};
mo.onPress = function () {
_root.cmode = 2;
mo._alpha = 100;
ke._alpha = 50;
};
ON.onRollOver = function () {
this.gotoAndStop(2);
};
ON.onRollOut = function () {
this.gotoAndStop(1);
};
ON.onPress = function () {
_root.musica = true;
};
OFF.onRollOver = function () {
this.gotoAndStop(2);
};
OFF.onRollOut = function () {
this.gotoAndStop(1);
};
OFF.onPress = function () {
stopAllSounds();
_root.musica = false;
};
Instance of Symbol 707 MovieClip "mo" in Frame 17
onClipEvent (enterFrame) {
if (_root.cmode == 2) {
gotoAndStop (2);
mo._alpha = 100;
ke._alpha = 50;
} else {
mo._alpha = 50;
ke._alpha = 100;
gotoAndStop (1);
}
}
Instance of Symbol 711 MovieClip "ke" in Frame 17
onClipEvent (enterFrame) {
if (_root.cmode == 1) {
gotoAndStop (2);
mo._alpha = 50;
ke._alpha = 100;
} else {
mo._alpha = 100;
ke._alpha = 50;
gotoAndStop (1);
}
}
Instance of Symbol 728 MovieClip "OFF" in Frame 17
onClipEvent (enterFrame) {
if (_root.musica == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 745 MovieClip "ON" in Frame 17
onClipEvent (enterFrame) {
if (_root.musica == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 761 MovieClip in Frame 17
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 847 MovieClip in Frame 17
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 863 MovieClip in Frame 17
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Frame 24
stop();
Frame 34
stop();
Frame 35
PauseGame = false;
Firstblock = 0;
LevelBonus = 10000;
Check = 0;
Tries = 0;
Completed = false;
_root.GAMEON = true;
Instance of Symbol 1161 MovieClip in Frame 35
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 1177 MovieClip in Frame 35
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 1186 MovieClip "LivesBar" in Frame 35
onClipEvent (load) {
this.gotoAndStop(_root.Lives + 1);
}
Frame 44
totalblocks = 0;
i = 0;
while (i <= 259) {
if (Number(_root["Level" + _root.Level][i]) != 0) {
if (Firstblock == 0) {
Firstblock = Number(i);
}
Lastblock = i;
totalblocks = totalblocks + 1;
}
_root.MainLevel["Block" + i].Type = Number(_root["Level" + _root.Level][i]) + 1;
_root.MainLevel["Block" + i].gotoAndStop(Number(_root["Level" + _root.Level][i]) + 1);
i++;
}
Firstblock = Firstblock - 1;
trace(Firstblock);
mapheight = Lastblock;
Instance of Symbol 1228 MovieClip "Ball" in Frame 44
onClipEvent (load) {
function dobonus() {
if ((_root.MainLevel["Block" + i]._currentframe != 6) && (_root.MainLevel["Block" + i]._currentframe != 9)) {
_root.Score = _root.Score + _root.MainLevel["Block" + i].Scoring;
}
if (thebonus > 0) {
thebonus--;
} else {
duplicateMovieClip (_root.Bonus, "Bonus" + b, 200 + b);
_root["Bonus" + b].gotoAndStop(random(9) + 1);
_root["Bonus" + b]._x = _x;
_root["Bonus" + b]._y = _y;
_root["Bonus" + b].falling = true;
thebonus = 5;
b++;
if (b > 10) {
b = 1;
}
}
}
Dead = false;
_visible = false;
xspeed = 2.5;
yspeed = -6;
GetReady = true;
Catch = false;
catchx = -10;
caught = false;
pressed = false;
Laser = false;
Pause = 0;
b = 1;
i = 1;
Expand = false;
thebonus = 0;
}
onClipEvent (enterFrame) {
if ((Dead == false) && (_root.PauseGame == false)) {
if (GetReady == true) {
_x = (_root.Bat._x - catchx);
}
if (EndLevel == false) {
_x = (_x + xspeed);
_y = (_y + yspeed);
_root.BShadow._x = _x + 10;
_root.BShadow._y = _y + 8;
if (Pause > 0) {
Pause--;
}
if (_root.MainLevel._width < 32) {
EndLevel = true;
_root.Score = _root.Score + _root.LevelBonus;
_root.Completed = true;
_root.play();
}
if (_root.MainLevel.hitTest(_x + (5 + xspeed), _y + (4 + yspeed), true)) {
i = _root.Firstblock;
while (i <= _root.mapheight) {
if (this.hitTest(_root.MainLevel["Block" + i].left) && (this.hitTest(_root.MainLevel["Block" + i].top))) {
dobonus();
_x = (_x - 5);
_y = (_y - 4);
xspeed = -xspeed;
yspeed = -(yspeed + 0.2);
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
} else if (this.hitTest(_root.MainLevel["Block" + i].top)) {
dobonus();
_y = (_y - 4);
yspeed = -(yspeed + 0.2);
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
} else if (this.hitTest(_root.MainLevel["Block" + i].right) && (this.hitTest(_root.MainLevel["Block" + i].top))) {
dobonus();
_x = (_x + 5);
_y = (_y - 4);
xspeed = -xspeed;
yspeed = -(yspeed + 0.2);
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
} else if (this.hitTest(_root.MainLevel["Block" + i].right)) {
dobonus();
_x = (_x + 5);
xspeed = -xspeed;
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
} else if (this.hitTest(_root.MainLevel["Block" + i].right) && (this.hitTest(_root.MainLevel["Block" + i].bottom))) {
dobonus();
_x = (_x + 5);
_y = (_y + 4);
xspeed = -xspeed;
yspeed = -(yspeed - 0.2);
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
} else if (this.hitTest(_root.MainLevel["Block" + i].bottom)) {
dobonus();
_y = (_y + 4);
yspeed = -(yspeed - 0.2);
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
} else if (this.hitTest(_root.MainLevel["Block" + i].left) && this.hitTest(_root.MainLevel["Block" + i].bottom)) {
dobonus();
_x = (_x - 5);
_y = (_y + 4);
xspeed = -xspeed;
yspeed = -(yspeed - 0.2);
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
} else if (this.hitTest(_root.MainLevel["Block" + i].left)) {
dobonus();
_x = (_x - 5);
xspeed = -xspeed;
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
}
i++;
}
}
if (this.hitTest(_root.Bat.Hit)) {
if (Catch == true) {
caught = true;
prevyspeed = yspeed;
catchx = _root.Bat._x - _x;
_y = (_root.Bat._y - 13);
xspeed = 0;
yspeed = 0;
pressed = false;
GetReady = true;
} else {
_root.pong2.start();
if ((yspeed > -7) && (yspeed < 7)) {
yspeed = -yspeed;
} else {
yspeed = (-yspeed) - 0.1;
}
xspeed = (_x - _root.Bat._x) / 8;
}
}
if (_x < 23) {
_root.pong2.start();
_x = 23;
xspeed = -xspeed;
} else if (_x > 426) {
_root.pong2.start();
_x = 426;
xspeed = -xspeed;
}
if (_y < 57) {
if (yspeed > -2) {
yspeed = -2;
}
_root.pong2.start();
_y = 57;
yspeed = (-yspeed) - 0.1;
}
if (_y > 520) {
_root.Bat.gotoAndStop(7);
Dead = true;
}
_root.onMouseDown = function () {
if (((Catch == true) && (caught == true)) && (pressed == false)) {
xspeed = (_x - _root.Bat._x) / 8;
yspeed = -prevyspeed;
pressed = true;
GetReady = false;
}
if ((Laser == true) && (Pause <= 0)) {
duplicateMovieClip (_root.Bullet, "Bullet" + i, 100 + i);
_root["Bullet" + i]._x = _root.Bat._x;
_root["Bullet" + i]._y = _root.Bat._y;
_root["Bullet" + i].yspeed = 10;
_root.Laser.start();
if (i < 20) {
i++;
} else {
i = 1;
}
Pause = 30;
}
};
if (Key.isDown(32)) {
if (((Catch == true) && (caught == true)) && (pressed == false)) {
xspeed = (_x - _root.Bat._x) / 8;
yspeed = -prevyspeed;
pressed = true;
GetReady = false;
}
if ((Laser == true) && (Pause <= 0)) {
duplicateMovieClip (_root.Bullet, "Bullet" + i, 100 + i);
_root["Bullet" + i]._x = _root.Bat._x;
_root["Bullet" + i]._y = _root.Bat._y;
_root["Bullet" + i].yspeed = 10;
_root.Laser.start();
if (i < 20) {
i++;
} else {
i = 1;
}
Pause = 30;
}
}
}
}
}
Instance of Symbol 1229 MovieClip in Frame 44
onClipEvent (enterFrame) {
this._x = _root.Ball._x;
this._y = _root.Ball._y;
}
Instance of Symbol 1235 MovieClip "Bullet" in Frame 44
onClipEvent (enterFrame) {
if ((_name != "Bullet") && (_root.PauseGame == false)) {
_y = (_y - yspeed);
i = 0;
while (i <= _root.mapheight) {
if (this.hitTest(_root.MainLevel["Block" + i].bottom)) {
_root.ping.start();
_root.MainLevel["Block" + i]["Colour" + _root.MainLevel["Block" + i].Type].nextFrame();
removeMovieClip(this);
}
i++;
}
if (_y < 60) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1343 MovieClip "Bat" in Frame 44
onClipEvent (enterFrame) {
if ((_root.Ball.Dead == false) && (_root.PauseGame == false)) {
if (_root.cmode == 1) {
if (Key.isDown(37)) {
_x = (_x - 10);
} else if (Key.isDown(39)) {
_x = (_x + 10);
}
} else {
this._x = _root._xmouse;
}
}
if (_x < 50) {
_x = 50;
} else if (_x > 400) {
_x = 400;
}
}
Instance of Symbol 1347 MovieClip "Bonus" in Frame 44
onClipEvent (load) {
function removecatch() {
if (_root.Ball.Catch == true) {
if (_root.Ball.pressed == false) {
_root.Ball._y = _root.Ball._y - 4;
_root.Ball.xspeed = 4;
_root.Ball.yspeed = -5;
_root.Ball.caught = false;
_root.Ball.Catch = false;
_root.Ball.GetReady = false;
} else {
_root.Ball.caught = false;
_root.Ball.Catch = false;
_root.Ball.GetReady = false;
}
}
}
function removelaser() {
if (_root.Ball.Laser == true) {
_root.Ball.Laser = false;
_root.Bat.gotoAndStop(4);
}
}
function removeexpand() {
if (_root.Ball.Expand == true) {
_root.Ball.Expand = false;
_root.Bat.gotoAndStop(6);
}
}
}
onClipEvent (enterFrame) {
if ((falling == true) && (_root.PauseGame == false)) {
_y = (_y + 3);
if (this.hitTest(_root.Bat.Hit) && (_root.Ball.Dead == false)) {
if (Type == 1) {
_root.powerup.start();
trace("Half Speed");
_root.POWERUPS.gotoAndStop(2);
removeexpand();
removelaser();
removecatch();
if ((_root.Ball.yspeed < -6) || (_root.Ball.yspeed > 6)) {
_root.Ball.xspeed = _root.Ball.xspeed / 2;
_root.Ball.yspeed = _root.Ball.yspeed / 2;
}
} else if (Type == 2) {
_root.powerup.start();
_root.POWERUPS.gotoAndStop(6);
trace("Sticky Bat");
removeexpand();
removelaser();
_root.Ball.Catch = true;
} else if (Type == 3) {
_root.powerup.start();
_root.POWERUPS.gotoAndStop(4);
trace("Laser");
removecatch();
removeexpand();
_root.Bat.gotoAndStop(3);
_root.Ball.Laser = true;
} else if (Type == 4) {
_root.POWERUPS.gotoAndStop(5);
_root.powerup.start();
trace("Expand Bat");
_root.Ball.Expand = true;
removelaser();
removecatch();
_root.Bat.gotoAndStop(5);
} else if (Type == 5) {
_root.powerup.start();
_root.POWERUPS.gotoAndStop(3);
trace("Extra Life");
_root.Extra.start();
removeexpand();
removelaser();
removecatch();
if (_root.Lives < 15) {
_root.Lives = _root.Lives + 1;
}
_root.LivesBar.gotoAndStop(_root.Lives + 1);
}
_x = -100;
removeMovieClip(this);
falling = false;
} else if (_y > 530) {
_x = -100;
_y = 100;
falling = false;
removeMovieClip(this);
}
}
if (_root._currentframe < 35) {
_x = -100;
_y = 100;
falling = false;
removeMovieClip(this);
}
}
Instance of Symbol 1366 MovieClip "BonusTimer" in Frame 44
onClipEvent (load) {
starttimer = false;
timer = 10;
}
onClipEvent (enterFrame) {
if ((starttimer == true) && (_root.PauseGame == false)) {
timer--;
if (timer < 0) {
_root.LevelBonus = _root.LevelBonus - 1;
if (_root.LevelBonus < 0) {
_root.LevelBonus = 0;
starttimer = false;
}
timer = 10;
}
}
}
on (keyPress "p") {
if (_root.PauseGame == false) {
_root.PauseClip.gotoAndStop(2);
_root.PauseGame = true;
} else if (_root.PauseGame == true) {
_root.PauseClip.gotoAndStop(1);
_root.PauseGame = false;
}
}
Frame 53
stop();
Frame 63
var savefile = SharedObject.getLocal("stone_bros");
if (Completed == true) {
_root.BG.nextFrame();
if (_root.Level == 1) {
_root.level2 = true;
savefile.data.level2 = true;
savefile.flush();
}
if (_root.Level == 2) {
_root.level3 = true;
savefile.data.level3 = true;
savefile.flush();
}
if (_root.Level == 3) {
_root.level4 = true;
savefile.data.level4 = true;
savefile.flush();
}
if (_root.Level == 4) {
_root.level5 = true;
savefile.data.level5 = true;
savefile.flush();
}
if (_root.Level == 5) {
_root.level6 = true;
savefile.data.level6 = true;
savefile.flush();
}
if (_root.Level == 6) {
_root.level7 = true;
savefile.data.level7 = true;
savefile.flush();
}
if (_root.Level == 7) {
_root.level8 = true;
savefile.data.level8 = true;
savefile.flush();
}
if (_root.Level == 9) {
_root.level9 = true;
savefile.data.level9 = true;
savefile.flush();
}
if (_root.Level == 10) {
_root.level11 = true;
savefile.data.level11 = true;
savefile.flush();
}
if (_root.Level == 11) {
_root.level12 = true;
savefile.data.level12 = true;
savefile.flush();
}
if (_root.Level == 12) {
_root.level13 = true;
savefile.data.level13 = true;
savefile.flush();
}
if (_root.Level == 13) {
_root.level14 = true;
savefile.data.level14 = true;
savefile.flush();
}
if (_root.Level == 14) {
_root.level15 = true;
savefile.data.level15 = true;
savefile.flush();
}
if (_root.Level == 15) {
_root.level16 = true;
savefile.data.level16 = true;
savefile.flush();
}
if (_root.Level == 16) {
_root.level17 = true;
savefile.data.level17 = true;
savefile.flush();
}
if (_root.Level == 17) {
_root.level18 = true;
savefile.data.level18 = true;
savefile.flush();
}
if (_root.Level == 19) {
_root.level19 = true;
savefile.data.level19 = true;
savefile.flush();
}
if (_root.Level == 20) {
_root.level20 = true;
savefile.data.level20 = true;
savefile.flush();
}
_root.Level = _root.Level + 1;
if (_root.modes == 1) {
if (Level <= 20) {
stopAllSounds();
gotoAndPlay ("Load");
} else {
stopAllSounds();
gotoAndStop ("gamewin1");
}
}
if (_root.modes == 2) {
if (Level <= 51) {
stopAllSounds();
gotoAndPlay ("Load");
} else {
stopAllSounds();
gotoAndStop ("gamewin1");
stop();
}
}
} else {
Lives = Lives - 1;
if (Lives < 0) {
GameOver.gotoAndPlay(2);
stop();
} else {
gotoAndStop ("Play");
}
}
Frame 67
stop();
Instance of Symbol 1432 MovieClip in Frame 67
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 434 MovieClip "logo_mainscreen" in Frame 69
onClipEvent (enterFrame) {
gotoAndStop(_root.localization_branding_nr);
}
on (release) {
getURL ((_root.localization_url1 + "&utm_content=") + _root.msource, _blank);
}
Instance of Symbol 451 MovieClip in Frame 69
on (release) {
getURL ((_root.localization_url1 + "&utm_content=") + _root.msource, _blank);
}
Instance of Symbol 1447 MovieClip in Frame 69
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 558 MovieClip "menu_bt" in Frame 69
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 428 MovieClip in Frame 70
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 1465 MovieClip in Frame 70
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 1474 MovieClip in Frame 70
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 1488 MovieClip in Frame 70
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Frame 71
stop();
var o = {n:[13, 9, 5, 3, 0, 7, 5, 9, 1, 5, 9, 5, 0, 2, 10, 12], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
Symbol 9 MovieClip [SubmitterProxy] Frame 1
#initclip 13
Object.registerClass("SubmitterProxy", SubmitterProxy);
#endinitclip
onEnterFrame = function () {
this._visible = false;
};
Symbol 32 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 1
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
LoadingBar.gotoAndStop(Math.round(PercentLoaded / 5));
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
_root.gotoAndPlay(2);
}
Instance of Symbol 32 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 54 MovieClip Frame 2
gotoAndPlay (1);
Symbol 99 MovieClip Frame 1
gamename = "Stonebros";
_root.domain_parts = _url.split("://");
_root.real_domain = _root.domain_parts[1].split("/");
_root.hostingdomain = _root.real_domain[0];
_root.usource = _root.real_domain[0];
if (_root.hostingdomain == "") {
_root.ad = false;
_root.hostingdomain = "unknown";
_root.usource = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
savedomain3 = "www.lartargames.com";
if (((_root.hostingdomain == savedomain1) || (_root.hostingdomain == savedomain2)) || (_root.hostingdomain == savedomain3)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
if ((_root._currentframe == 1) || (_root._currentframe == 2)) {
if (System.capabilities.language == "en") {
gotoAndStop (1);
}
if (System.capabilities.language == "es") {
gotoAndStop (2);
}
if (System.capabilities.language == "de") {
gotoAndStop (3);
}
if (System.capabilities.language == "br") {
gotoAndStop (4);
}
if (System.capabilities.language == "fr") {
gotoAndStop (5);
}
if (System.capabilities.language == "id") {
gotoAndStop (6);
}
if (System.capabilities.language == "it") {
gotoAndStop (7);
}
if (System.capabilities.language == "nl") {
gotoAndStop (8);
}
if (System.capabilities.language == "pl") {
gotoAndStop (9);
}
if (System.capabilities.language == "pr") {
gotoAndStop (10);
}
if (System.capabilities.language == "ru") {
gotoAndStop (11);
}
if (System.capabilities.language == "se") {
gotoAndStop (12);
}
if (System.capabilities.language == "uk") {
gotoAndStop (13);
}
if (System.capabilities.language == "") {
gotoAndStop(_root.lang);
}
}
stop();
_root.lang = 1;
_root.localization_url1 = (((("http://www.gamesgames.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 17;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 2
stop();
_root.lang = 2;
_root.localization_url1 = (((("http://www.juegos.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 9;
_root.localization_branding_nr = 24;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 3
stop();
_root.lang = 3;
_root.localization_url1 = (((("http://www.jetztspielen.de/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 5;
_root.localization_branding_nr = 20;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 4
stop();
_root.lang = 4;
_root.localization_url1 = (((("http://www.ojogos.com.br/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 11;
_root.localization_branding_nr = 27;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 5
stop();
_root.lang = 5;
_root.localization_url1 = (((("http://www.jeux.fr/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 4;
_root.localization_branding_nr = 19;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 6
stop();
_root.lang = 6;
_root.localization_url1 = (((("http://www.games.co.id/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 13;
_root.localization_branding_nr = 13;
_root.localization_portal = "teens";
Symbol 99 MovieClip Frame 7
stop();
_root.lang = 7;
_root.localization_url1 = (((("http://www.gioco.it/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 8;
_root.localization_branding_nr = 23;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 8
stop();
_root.lang = 8;
_root.localization_url1 = (((("http://www.spelletjes.nl/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 3;
_root.localization_branding_nr = 18;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 9
stop();
_root.lang = 9;
_root.localization_url1 = (((("http://www.gry.pl/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 6;
_root.localization_branding_nr = 21;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 10
stop();
_root.lang = 10;
_root.localization_url1 = (((("http://www.ojogos.pt/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 10;
_root.localization_branding_nr = 47;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 11
stop();
_root.lang = 11;
_root.localization_url1 = (((("http://www.ourgames.ru/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 12;
_root.localization_branding_nr = 28;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 12
stop();
_root.lang = 12;
_root.localization_url1 = (((("http://www.spela.se/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 7;
_root.localization_branding_nr = 22;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 13
stop();
_root.lang = 13;
_root.localization_url1 = (((("http://www.games.co.uk/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 29;
_root.localization_portal = "family";
Symbol 99 MovieClip Frame 14
_root.localization_url1 = (((("http://www.juegos.com.ar/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 9;
_root.localization_branding_nr = 26;
_root.localization_portal = "family";
stop();
_root.lang = 14;
Symbol 99 MovieClip Frame 15
_root.localization_url1 = (((("http://www.juegos.mx/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 9;
_root.localization_branding_nr = 25;
_root.localization_portal = "family";
stop();
_root.lang = 15;
Symbol 99 MovieClip Frame 16
_root.localization_url1 = (((("http://www.dailygame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 51;
_root.localization_portal = "family";
stop();
_root.lang = 16;
Symbol 99 MovieClip Frame 17
_root.localization_url1 = "http://www.game.com.cn/";
_root.localization_language_nr = 2;
_root.localization_branding_nr = 2;
_root.localization_portal = "game_com_cn";
stop();
_root.lang = 17;
Symbol 99 MovieClip Frame 18
_root.localization_url1 = (((("http://www.egames.jp/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 17;
_root.localization_branding_nr = 49;
_root.localization_portal = "egames_jp";
stop();
_root.lang = 18;
Symbol 99 MovieClip Frame 19
_root.localization_url1 = (((("http://www.game.co.in/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 12;
_root.localization_portal = "teens";
stop();
_root.lang = 19;
Symbol 99 MovieClip Frame 20
stop();
_root.lang = 1;
_root.localization_url1 = (((("http://www.gamesgames.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + _root.usource;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 17;
_root.localization_portal = "family";
Symbol 100 MovieClip Frame 1
stop();
Instance of Symbol 99 MovieClip "b" in Symbol 100 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 117 Button
on (release) {
_root.ln.b.gotoAndStop(5);
_root.agj.prevFrame();
}
Symbol 119 Button
on (release) {
_root.ln.b.gotoAndStop(9);
_root.agj.prevFrame();
}
Symbol 122 Button
on (release) {
_root.ln.b.gotoAndStop(4);
_root.agj.prevFrame();
}
Symbol 125 Button
on (release) {
_root.ln.b.gotoAndStop(10);
_root.agj.prevFrame();
}
Symbol 127 Button
on (release) {
_root.ln.b.gotoAndStop(8);
_root.logo.gotoAndStop(8);
_root.agj.prevFrame();
}
Symbol 130 Button
on (release) {
_root.ln.b.gotoAndStop(11);
_root.agj.prevFrame();
}
Symbol 132 Button
on (release) {
_root.ln.b.gotoAndStop(12);
_root.agj.prevFrame();
}
Symbol 135 Button
on (release) {
_root.ln.b.gotoAndStop(7);
_root.agj.prevFrame();
}
Symbol 138 Button
on (release) {
_root.ln.b.gotoAndStop(13);
_root.agj.prevFrame();
}
Symbol 145 Button
on (release) {
_root.ln.b.gotoAndStop(15);
_root.logo.gotoAndStop(15);
_root.agj.prevFrame();
}
Symbol 150 Button
on (release) {
_root.ln.b.gotoAndStop(17);
_root.logo.gotoAndStop(17);
_root.agj.prevFrame();
}
Symbol 157 Button
on (release) {
_root.ln.b.gotoAndStop(18);
_root.logo.gotoAndStop(18);
_root.agj.prevFrame();
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
stop();
Instance of Symbol 102 MovieClip in Symbol 158 MovieClip Frame 2
onClipEvent (enterFrame) {
this._visible = false;
if (hitTest(_root._xmouse, _root._ymouse, false)) {
} else {
_root.agj.prevFrame();
}
}
Instance of Symbol 109 MovieClip in Symbol 158 MovieClip Frame 2
on (release) {
_root.ln.b.gotoAndStop(2);
trace("b");
_root.agj.prevFrame();
}
Instance of Symbol 111 MovieClip in Symbol 158 MovieClip Frame 2
on (release) {
_root.ln.b.gotoAndStop(20);
_root.agj.prevFrame();
}
Instance of Symbol 113 MovieClip in Symbol 158 MovieClip Frame 2
on (release) {
_root.ln.b.gotoAndStop(3);
trace("b");
_root.agj.prevFrame();
}
Instance of Symbol 115 MovieClip in Symbol 158 MovieClip Frame 2
on (release) {
_root.ln.b.gotoAndStop(6);
_root.agj.prevFrame();
}
Instance of Symbol 142 MovieClip in Symbol 158 MovieClip Frame 2
on (release) {
_root.ln.b.gotoAndStop(14);
_root.logo.gotoAndStop(14);
_root.agj.prevFrame();
}
Instance of Symbol 148 MovieClip in Symbol 158 MovieClip Frame 2
on (release) {
_root.ln.b.gotoAndStop(16);
_root.logo.gotoAndStop(16);
_root.agj.prevFrame();
}
Instance of Symbol 153 MovieClip in Symbol 158 MovieClip Frame 2
on (release) {
_root.ln.b.gotoAndStop(19);
_root.logo.gotoAndStop(19);
_root.agj.prevFrame();
}
Symbol 1491 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1492 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.2 as2");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1493 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1494 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1495 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1496 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:true, 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, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
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 _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
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) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {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, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
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;
mochi.as2.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) {
mochi.as2.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 _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
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);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
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);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1497 MovieClip [__Packages.SubmitterProxy] Frame 0
class SubmitterProxy extends MovieClip
{
var parentObj, _parent, m_scoreType, m_scoreOrder, gameName, htmlName, locale, iconData, pagesize, pagenr, requestStackInvalidUser, gameid, siteid, channelid, swfURL, _visible, delegateOnIoError, delegateOnLoadDone, createEmptyMovieClip, getNextHighestDepth, content, delegateHyscoreSubmitterReady, dispatchEvent, m_scoreXMLData, m_scoreServerTimeXMLData, m_achievXMLData;
function SubmitterProxy () {
super();
System.security.allowDomain("*");
parentObj = _parent;
mx.events.EventDispatcher.initialize(this);
}
function setLoader(_container, _gameName, _htmlName, _order, _scoreType, _locale, _iconData, _pagesize, _pagenr, _bTest, _serverSelect) {
bTestModeOn = _bTest;
m_scoreType = _scoreType;
m_scoreOrder = _order;
gameName = _gameName;
if (_htmlName == "") {
htmlName = gameName;
} else {
htmlName = _htmlName;
}
locale = _locale;
iconData = _iconData;
pagesize = _pagesize;
pagenr = _pagenr;
serverSelect = _serverSelect;
requestStackInvalidUser = new Array();
if (_container != null) {
userName = _container.username;
userHash = _container.hash;
gameid = _container.id;
siteid = _container.s;
channelid = _container.c;
trace("servicesLoc: " + _container.servicesLoc);
if ((_container.servicesLoc != "") && (_container.servicesLoc != undefined)) {
swfURL = _container.servicesLoc;
} else {
var _local3 = new Date();
swfURL = (("http://www8.agame.com/games/flash/highscore/SubmitterAS2.swf?nocache=" + (_local3.getYear() * 12)) + _local3.getMonth()) + 1;
}
getSwf();
} else {
SubmitterFailedToLoad();
}
_visible = false;
}
function getSwf() {
var _local2 = new Object();
delegateOnIoError = mx.utils.Delegate.create(this, onLoadDone);
_local2.onLoadInit = delegateOnIoError;
delegateOnLoadDone = mx.utils.Delegate.create(this, onIoError);
_local2.onLoadError = delegateOnLoadDone;
var _local4 = new MovieClipLoader();
_local4.addListener(_local2);
var _local3 = createEmptyMovieClip("loadedComp", getNextHighestDepth());
trace("swfURL:" + swfURL);
_local4.loadClip(swfURL, _local3);
_local3._x = 10;
_local3._y = 10;
}
function isSWFReady() {
return(content != null);
}
function isDomainAllowed(value) {
if (content) {
return(content.isDomainValid(value));
}
return(false);
}
function hasUserData() {
return((userName != null) && (userHash != null));
}
function doCommTest() {
if (content) {
return(content.m_get_TEST());
}
return("Error: Failed to communicatie with: " + content);
}
function getScoreServerTime() {
if (content) {
content.m_getLatestScoreServerTime();
}
}
function submitScore(score) {
trace("submitScore: " + score);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_SCORE", value:score});
}
content.m_submitScore(score, userName, userHash, "", 0);
}
}
function requestHighscoreList() {
if (content) {
content.m_submitHighscoreListRequest();
}
}
function requestUserHighscoreList(target_username) {
if (content) {
content.m_submitUserHighscoreListRequest(target_username);
}
}
function submitGrantAward(tag) {
trace("submitGrantAward: " + tag);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_AWARD", value:tag});
}
content.m_submitAward(tag, userName, userHash);
}
}
function requestAwardList() {
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"REQUEST_AWARDLIST"});
}
content.m_getUserAwardList(userName, userHash);
}
}
function requestAwardInfo(awardID) {
if (content) {
content.m_getAwardInfo(awardID);
}
}
function SubmitterIsLoaded() {
delegateHyscoreSubmitterReady = mx.utils.Delegate.create(this, onHyScorSubmitterReady);
content.addEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
content.addEventListener("ScoreLoadError", this);
content.addEventListener("ScoreLoadTimeComplete", this);
content.addEventListener("ScoreLoadSubmitComplete", this);
content.addEventListener("ScoreLoadListComplete", this);
content.addEventListener("ScoreLoadUserListComplete", this);
content.addEventListener("AchievLoadError", this);
content.addEventListener("AchievLoadTimeComplete", this);
content.addEventListener("AchievLoadListComplete", this);
content.addEventListener("AchievLoadInfoComplete", this);
content.addEventListener("AchievLoadGrantComplete", this);
}
function SubmitterFailedToLoad() {
dispatchEvent({target:this, type:"LoadingFailed", elapsedTime:getTimer()});
}
function onLoadDone(target_mc) {
content = target_mc.SubmitterInstance;
content.gotoAndPlay(1);
if (isDomainAllowed(bTestModeOn)) {
trace("Submitter component downloaded.");
SubmitterIsLoaded();
content.init(siteid, 1, gameid, channelid, m_scoreOrder, locale, iconData, pagesize, pagenr, userName, userHash, serverSelect);
initJStoSWFListeners();
} else {
trace("Error: Could not init submitter...played on an invalid domain.");
SubmitterFailedToLoad();
}
}
function onIoError(target_mc, errorCode, httpStatus) {
trace((("Error: loadListener.onLoadError() errorCode: " + errorCode) + " httpStatus: ") + httpStatus);
SubmitterFailedToLoad();
}
function onHyScorSubmitterReady(target_mc) {
if (content) {
content.removeEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
}
dispatchEvent({target:this, type:"SubmitterLoadedSuccesfull", elapsedTime:getTimer()});
}
function handleEvent(e) {
if (((e.type == "ScoreLoadSubmitComplete") || (e.type == "ScoreLoadListComplete")) || (e.type == "ScoreLoadUserListComplete")) {
m_scoreXMLData = content.m_getLastestHighscoreData();
} else if (e.type == "ScoreLoadTimeComplete") {
m_scoreServerTimeXMLData = content.m_getLatestScoreServerTime();
} else if (((e.type == "AchievLoadListComplete") || (e.type == "AchievLoadInfoComplete")) || (e.type == "AchievLoadGrantComplete")) {
m_achievXMLData = content.m_getLastestAchievementData();
} else if (e.type == "AchievLoadTimeComplete") {
} else if (e.type == "ScoreLoadError") {
m_scoreXMLData = content.m_getLatestHighscoreError();
} else if (e.type == "AchievLoadError") {
m_achievXMLData = content.m_getLatestAchievError();
}
dispatchEvent({target:this, type:e.type, elapsedTime:getTimer()});
}
function initJStoSWFListeners() {
if (flash.external.ExternalInterface.available) {
try {
flash.external.ExternalInterface.addCallback("JStoSWF", com.spilgames.external.JStoSWF.instance().parse);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_USER", updateUser);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_AVATAR", updateAvatar);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_GALLERY", updateGallery);
} catch(e:Error) {
trace("Error: Failed init enternal interface.. is the swf played locally?");
}
}
}
function updateUser(params) {
var _local3 = params.username;
var _local2 = params.hash;
var _local4 = params.id;
userName = _local3;
userHash = _local2;
var _local6 = (((("UPDATE_USER|-|" + _local3) + "|-|") + _local2) + "|-|") + _local4;
processInvalidUserList();
}
function updateAvatar(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_AVATAR|-|" + _local1) + "|-|") + _local2;
}
function updateGallery(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_GALLERY|-|" + _local1) + "|-|") + _local2;
}
function processInvalidUserList() {
while (requestStackInvalidUser.length > 0) {
var _local2 = requestStackInvalidUser.pop();
if (_local2.type == "SUBMIT_SCORE") {
submitScore(_local2.value);
} else if (_local2.type == "SUBMIT_AWARD") {
submitGrantAward(_local2.value);
} else if (_local2.type == "REQUEST_AWARDLIST") {
requestAwardList();
}
}
}
function destroy() {
parentObj = null;
content.removeMovieClip();
content = null;
siteid = null;
channelid = null;
gameid = null;
userName = null;
userHash = null;
m_scoreXMLData = null;
m_achievXMLData = null;
}
var userName = null;
var userHash = null;
var serverSelect = 1;
var bTestModeOn = false;
}
Symbol 1498 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 1499 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 1500 MovieClip [__Packages.com.spilgames.external.JStoSWF] Frame 0
class com.spilgames.external.JStoSWF
{
static var m_oJStoSWF;
var m_oCallFuntions;
function JStoSWF () {
m_oCallFuntions = new Object();
}
function addCallFunction(p_sName, p_fFunction) {
if (!m_oCallFuntions[p_sName]) {
m_oCallFuntions[p_sName] = p_fFunction;
}
}
function parse(p_oCallObject) {
if (p_oCallObject.call) {
switch (p_oCallObject.call) {
case "MULTI" :
var _local2 = 0;
while (_local2 < p_oCallObject.calls.length) {
instance().parse(p_oCallObject.calls[_local2]);
_local2++;
}
break;
default :
if (m_oCallFuntions[p_oCallObject.call]) {
if (!p_oCallObject.params) {
p_oCallObject.params = {};
}
m_oCallFuntions[p_oCallObject.call](p_oCallObject.params);
} else {
trace(("call: " + p_oCallObject.call) + " not found in call functions!");
}
}
} else {
trace("call attribute not found in CallObject!");
}
}
static function instance() {
if (m_oJStoSWF == null) {
m_oJStoSWF = new com.spilgames.external.JStoSWF();
}
return(m_oJStoSWF);
}
}
Symbol 1501 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1502 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 303 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
stop();
Symbol 309 MovieClip Frame 91
_root.play();
Symbol 312 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 312 MovieClip Frame 90
stop();
Symbol 315 MovieClip Frame 89
_root.play();
Symbol 324 MovieClip Frame 89
_root.play();
Symbol 327 MovieClip Frame 89
_root.play();
Symbol 334 MovieClip Frame 39
stop();
Symbol 336 MovieClip Frame 91
_root.play();
Symbol 338 MovieClip Frame 90
_root.play();
Symbol 339 MovieClip Frame 90
_root.play();
Symbol 340 MovieClip Frame 1
gotoAndStop (2);
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
stop();
Instance of Symbol 360 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 364 Button
on (press) {
var savefile = SharedObject.getLocal("Stone_bros");
savefile.data.playerName = _root.playerName;
savefile.flush();
_root.play();
}
Symbol 373 MovieClip Frame 141
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 1
stop();
Instance of Symbol 393 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 411 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
stop();
Instance of Symbol 411 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 428 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
stop();
Instance of Symbol 428 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 434 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
stop();
Symbol 451 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
stop();
Instance of Symbol 467 MovieClip in Symbol 468 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 557 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 1
stop();
Instance of Symbol 557 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lang);
}
Symbol 558 MovieClip Frame 2
stop();
Instance of Symbol 557 MovieClip in Symbol 558 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lang);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 574 MovieClip Frame 1
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 1
stop();
Symbol 639 MovieClip Frame 1
stop();
Symbol 655 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 703 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 2
stop();
Symbol 711 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 2
stop();
Symbol 727 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 1
stop();
Instance of Symbol 727 MovieClip in Symbol 728 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 744 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 1
stop();
Instance of Symbol 744 MovieClip in Symbol 745 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 761 MovieClip Frame 1
stop();
Symbol 762 Button
on (press) {
stopAllSounds();
_root.modes = 2;
_root.gotoAndPlay("Load");
trace("pressb");
}
Symbol 778 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 1
stop();
Instance of Symbol 778 MovieClip in Symbol 779 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 779 MovieClip Frame 2
stop();
Symbol 795 MovieClip Frame 1
stop();
Instance of Symbol 779 MovieClip in Symbol 796 MovieClip Frame 1
on (press) {
stopAllSounds();
_root.modes = 2;
_root.gotoAndPlay("Load");
trace("pressb");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 795 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 797 Button
on (press) {
stopAllSounds();
_root.modes = 1;
_root.gotoAndStop("IntroAnim");
trace("pressa");
}
Symbol 813 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 1
stop();
Instance of Symbol 813 MovieClip in Symbol 814 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 814 MovieClip Frame 2
stop();
Symbol 830 MovieClip Frame 1
stop();
Instance of Symbol 814 MovieClip in Symbol 831 MovieClip Frame 1
on (press) {
stopAllSounds();
_root.modes = 1;
_root.gotoAndStop("IntroAnim");
trace("pressa");
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 830 MovieClip in Symbol 831 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 847 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 1
stop();
Symbol 865 Button
on (release) {
stopAllSounds();
_root.play();
}
Symbol 887 MovieClip Frame 1
stop();
Instance of Symbol 887 MovieClip in Symbol 888 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 888 MovieClip Frame 120
stop();
Symbol 907 MovieClip Frame 1
stop();
Instance of Symbol 907 MovieClip in Symbol 908 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 908 MovieClip Frame 90
stop();
Symbol 924 MovieClip Frame 1
stop();
Instance of Symbol 924 MovieClip in Symbol 925 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 925 MovieClip Frame 70
stop();
Symbol 948 MovieClip Frame 1
stop();
Instance of Symbol 948 MovieClip in Symbol 949 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 949 MovieClip Frame 61
stop();
Symbol 956 MovieClip Frame 2
if (_root.musica == false) {
stopAllSounds();
}
Symbol 956 MovieClip Frame 844
stopAllSounds();
_root.gotoAndPlay("levelselect");
stop();
Symbol 959 Button
on (press) {
nextFrame();
}
Symbol 963 MovieClip Frame 1
stop();
Symbol 967 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 1
stop();
Symbol 975 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 1
stop();
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1010 Button
on (press) {
prevFrame();
}
Symbol 1014 MovieClip Frame 1
stop();
Symbol 1018 MovieClip Frame 1
Symbol 1022 MovieClip Frame 1
stop();
Symbol 1026 MovieClip Frame 1
stop();
Symbol 1034 MovieClip Frame 1
stop();
Symbol 1038 MovieClip Frame 1
stop();
Symbol 1042 MovieClip Frame 1
stop();
Symbol 1046 MovieClip Frame 1
stop();
Symbol 1054 MovieClip Frame 1
stop();
Symbol 1058 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1066 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1078 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1086 MovieClip Frame 1
stop();
Symbol 1091 MovieClip Frame 1
stop();
Instance of Symbol 963 MovieClip in Symbol 1091 MovieClip Frame 1
on (release) {
_root.Level = 1;
_root.gotoAndPlay("Load");
}
Instance of Symbol 967 MovieClip in Symbol 1091 MovieClip Frame 1
on (release) {
if (this._currentframe == 2) {
_root.Level = 2;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level2 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 971 MovieClip in Symbol 1091 MovieClip Frame 1
on (release) {
if (this._currentframe == 2) {
_root.Level = 3;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level3 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 975 MovieClip in Symbol 1091 MovieClip Frame 1
on (release) {
if (this._currentframe == 2) {
_root.Level = 4;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level4 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 993 MovieClip in Symbol 1091 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 993 MovieClip in Symbol 1091 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 993 MovieClip in Symbol 1091 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 993 MovieClip in Symbol 1091 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1091 MovieClip Frame 2
stop();
Instance of Symbol 1014 MovieClip in Symbol 1091 MovieClip Frame 2
on (release) {
if (this._currentframe == 2) {
_root.Level = 5;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level5 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1018 MovieClip in Symbol 1091 MovieClip Frame 2
on (release) {
if (this._currentframe == 2) {
_root.Level = 6;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level6 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1022 MovieClip in Symbol 1091 MovieClip Frame 2
on (release) {
if (this._currentframe == 2) {
_root.Level = 7;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level7 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1026 MovieClip in Symbol 1091 MovieClip Frame 2
on (release) {
if (this._currentframe == 2) {
_root.Level = 8;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level8 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1091 MovieClip Frame 3
stop();
Instance of Symbol 1034 MovieClip in Symbol 1091 MovieClip Frame 3
on (release) {
if (this._currentframe == 2) {
_root.Level = 9;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level9 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1038 MovieClip in Symbol 1091 MovieClip Frame 3
on (release) {
if (this._currentframe == 2) {
_root.Level = 10;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level10 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1042 MovieClip in Symbol 1091 MovieClip Frame 3
on (release) {
if (this._currentframe == 2) {
_root.Level = 11;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level11 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1046 MovieClip in Symbol 1091 MovieClip Frame 3
on (release) {
if (this._currentframe == 2) {
_root.Level = 12;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level12 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1091 MovieClip Frame 4
stop();
Instance of Symbol 1054 MovieClip in Symbol 1091 MovieClip Frame 4
on (release) {
if (this._currentframe == 2) {
_root.Level = 13;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level13 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1058 MovieClip in Symbol 1091 MovieClip Frame 4
on (release) {
if (this._currentframe == 2) {
_root.Level = 14;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level14 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1062 MovieClip in Symbol 1091 MovieClip Frame 4
on (release) {
if (this._currentframe == 2) {
_root.Level = 15;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level15 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1066 MovieClip in Symbol 1091 MovieClip Frame 4
on (release) {
if (this._currentframe == 2) {
_root.Level = 16;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level16 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1091 MovieClip Frame 5
stop();
Instance of Symbol 1074 MovieClip in Symbol 1091 MovieClip Frame 5
on (release) {
if (this._currentframe == 2) {
_root.Level = 17;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level17 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1078 MovieClip in Symbol 1091 MovieClip Frame 5
on (release) {
if (this._currentframe == 2) {
_root.Level = 18;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level18 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1082 MovieClip in Symbol 1091 MovieClip Frame 5
on (release) {
if (this._currentframe == 2) {
_root.Level = 19;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level19 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1086 MovieClip in Symbol 1091 MovieClip Frame 5
on (release) {
if (this._currentframe == 2) {
_root.Level = 20;
_root.gotoAndPlay("Load");
}
}
onClipEvent (enterFrame) {
if (_root.level20 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1104 MovieClip Frame 1
stop();
Symbol 1104 MovieClip Frame 6
gotoAndStop (1);
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1108 MovieClip Frame 2
stop();
if (_root.musica == false) {
stopAllSounds();
prevFrame();
}
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1112 MovieClip Frame 2
stop();
if (_root.musica == false) {
stopAllSounds();
prevFrame();
}
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1115 MovieClip Frame 2
stop();
if (_root.musica == false) {
stopAllSounds();
prevFrame();
}
Instance of Symbol 639 MovieClip in Symbol 1123 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1123 MovieClip Frame 59
_root.POWERUPS.gotoAndStop(1);
Instance of Symbol 671 MovieClip in Symbol 1124 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1124 MovieClip Frame 59
_root.POWERUPS.gotoAndStop(1);
Symbol 1140 MovieClip Frame 1
stop();
Instance of Symbol 655 MovieClip in Symbol 1141 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 1140 MovieClip in Symbol 1141 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1142 MovieClip Frame 59
_root.POWERUPS.gotoAndStop(1);
Instance of Symbol 703 MovieClip in Symbol 1143 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1143 MovieClip Frame 59
_root.POWERUPS.gotoAndStop(1);
Instance of Symbol 687 MovieClip in Symbol 1144 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1144 MovieClip Frame 59
_root.POWERUPS.gotoAndStop(1);
Symbol 1145 MovieClip Frame 1
stop();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1177 MovieClip Frame 1
stop();
Symbol 1191 MovieClip Frame 1
stop();
Symbol 1191 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s50.play();
_parent.gotoAndStop(1);
Symbol 1195 MovieClip Frame 1
stop();
Symbol 1195 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s60.play();
_parent.gotoAndStop(1);
Symbol 1197 MovieClip Frame 1
stop();
Symbol 1197 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s70.play();
_parent.gotoAndStop(1);
Symbol 1199 MovieClip Frame 1
stop();
Symbol 1199 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s80.play();
_parent.gotoAndStop(1);
Symbol 1214 MovieClip Frame 11
stop();
Symbol 1215 MovieClip Frame 1
stop();
Symbol 1215 MovieClip Frame 2
_root.ping2.start();
Symbol 1215 MovieClip Frame 3
_root.totalblocks--;
_root.ping3.start();
_root.s100.play();
_root.Score = _root.Score + 50;
_parent.gotoAndStop(1);
Symbol 1217 MovieClip Frame 1
stop();
Symbol 1217 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s50b.play();
_parent.gotoAndStop(1);
Symbol 1219 MovieClip Frame 1
stop();
Symbol 1219 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s60b.play();
_parent.gotoAndStop(1);
Symbol 1221 MovieClip Frame 1
stop();
Symbol 1221 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s70b.play();
_parent.gotoAndStop(1);
Symbol 1223 MovieClip Frame 1
stop();
Symbol 1223 MovieClip Frame 2
_root.totalblocks--;
_root.ping.start();
_root.s80b.play();
_parent.gotoAndStop(1);
Symbol 1224 MovieClip Frame 1
stop();
Symbol 1224 MovieClip Frame 2
_root.ping2.start();
Symbol 1224 MovieClip Frame 3
_root.totalblocks--;
_root.ping3.start();
_root.Score = _root.Score + 50;
_root.s100b.play();
_parent.gotoAndStop(1);
Symbol 1225 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 2
Scoring = 50;
Symbol 1225 MovieClip Frame 3
Scoring = 60;
Symbol 1225 MovieClip Frame 4
Scoring = 70;
Symbol 1225 MovieClip Frame 5
Scoring = 80;
Symbol 1225 MovieClip Frame 6
Scoring = 100;
Symbol 1225 MovieClip Frame 7
Scoring = 50;
Symbol 1225 MovieClip Frame 8
Scoring = 60;
Symbol 1225 MovieClip Frame 9
Scoring = 70;
Symbol 1225 MovieClip Frame 10
Scoring = 80;
Symbol 1225 MovieClip Frame 11
Scoring = 100;
Symbol 1246 MovieClip Frame 1
stop();
Symbol 1246 MovieClip Frame 31
_parent.gotoAndStop(2);
Symbol 1268 MovieClip Frame 19
stop();
Symbol 1280 MovieClip Frame 41
stop();
Symbol 1287 MovieClip Frame 41
_parent.gotoAndStop(2);
Symbol 1312 MovieClip Frame 21
stop();
Symbol 1315 MovieClip Frame 21
_parent.gotoAndStop(2);
Symbol 1342 MovieClip Frame 82
stopAllSounds();
_root.loop1.gotoAndStop(1);
_root.loop2.gotoAndStop(1);
_root.play();
stop();
Symbol 1343 MovieClip Frame 1
stop();
Instance of Symbol 1249 MovieClip "Hit" in Symbol 1343 MovieClip Frame 2
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1280 MovieClip "Hit" in Symbol 1343 MovieClip Frame 3
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1287 MovieClip "Hit" in Symbol 1343 MovieClip Frame 4
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1347 MovieClip Frame 1
Type = 1;
stop();
Symbol 1347 MovieClip Frame 2
Type = 2;
Symbol 1347 MovieClip Frame 3
Type = 3;
Symbol 1347 MovieClip Frame 4
Type = 4;
Symbol 1347 MovieClip Frame 5
Type = 1;
stop();
Symbol 1347 MovieClip Frame 6
Type = 2;
Symbol 1347 MovieClip Frame 7
Type = 3;
Symbol 1347 MovieClip Frame 8
Type = 4;
Symbol 1347 MovieClip Frame 9
Type = 5;
Symbol 1365 MovieClip Frame 1
stop();
Symbol 1366 MovieClip Frame 1
stopAllSounds();
Instance of Symbol 993 MovieClip in Symbol 1366 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1366 MovieClip Frame 80
_root.Bat.Start.play();
Instance of Symbol 1365 MovieClip in Symbol 1366 MovieClip Frame 80
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1366 MovieClip Frame 135
_root.Ball._visible = true;
if (_root.Level > 1) {
if (_root.Score > _root.globalscore) {
_root.globalscore = _root.Score;
}
_root.submitter.submitScore(_root.globalscore);
mochi.as2.MochiScores.setBoardID("d9530759159502ac");
mochi.as2.MochiScores.submit(_root.globalscore, _root.playerName, {}, scoreSent);
}
if (_root.BG._currentframe == 1) {
_root.loop1.gotoAndStop(2);
}
if (_root.BG._currentframe == 2) {
_root.loop2.gotoAndStop(2);
}
if (_root.BG._currentframe == 3) {
_root.loop3.gotoAndStop(2);
}
if (_root.BG._currentframe == 4) {
_root.loop1.gotoAndStop(2);
}
if (_root.BG._currentframe == 5) {
_root.loop2.gotoAndStop(2);
}
if (_root.BG._currentframe == 6) {
_root.loop3.gotoAndStop(2);
}
Symbol 1366 MovieClip Frame 140
_root.Ball.EndLevel = false;
_root.Ball.GetReady = false;
starttimer = true;
stop();
Symbol 1370 MovieClip Frame 1
stop();
Symbol 1372 MovieClip Frame 1
stop();
Symbol 1374 MovieClip Frame 1
stop();
Symbol 1376 MovieClip Frame 1
stop();
Symbol 1378 MovieClip Frame 1
stop();
Symbol 1380 MovieClip Frame 1
stop();
Symbol 1382 MovieClip Frame 1
stop();
Symbol 1384 MovieClip Frame 1
stop();
Symbol 1386 MovieClip Frame 1
stop();
Symbol 1387 MovieClip Frame 1
stop();
Symbol 1394 MovieClip Frame 1
stop();
Symbol 1394 MovieClip Frame 150
if (_root.Score > _root.globalscore) {
_root.globalscore = _root.Score;
}
_root.gotoAndStop("gameover");
stop();
Symbol 1411 MovieClip Frame 1
stop();
Symbol 1412 MovieClip Frame 1
stop();
Symbol 1412 MovieClip Frame 2
ke.onRollOver = function () {
this.gotoAndStop(2);
};
ke.onRollOut = function () {
this.gotoAndStop(1);
};
ke.onPress = function () {
_root.cmode = 1;
ke._alpha = 100;
mo._alpha = 50;
};
mo.onRollOver = function () {
this.gotoAndStop(2);
};
mo.onRollOut = function () {
this.gotoAndStop(1);
};
mo.onPress = function () {
_root.cmode = 2;
mo._alpha = 100;
ke._alpha = 50;
};
ON.onRollOver = function () {
this.gotoAndStop(2);
};
ON.onRollOut = function () {
this.gotoAndStop(1);
};
ON.onPress = function () {
_root.musica = true;
if (_root.BG._currentframe == 1) {
_root.loop1.gotoAndStop(2);
}
if (_root.BG._currentframe == 2) {
_root.loop2.gotoAndStop(2);
}
if (_root.BG._currentframe == 3) {
_root.loop3.gotoAndStop(2);
}
if (_root.BG._currentframe == 4) {
_root.loop1.gotoAndStop(2);
}
if (_root.BG._currentframe == 5) {
_root.loop2.gotoAndStop(2);
}
if (_root.BG._currentframe == 6) {
_root.loop3.gotoAndStop(2);
}
};
OFF.onRollOver = function () {
this.gotoAndStop(2);
};
OFF.onRollOut = function () {
this.gotoAndStop(1);
};
OFF.onPress = function () {
stopAllSounds();
_root.musica = false;
if (_root.BG._currentframe == 1) {
_root.loop1.gotoAndStop(1);
}
if (_root.BG._currentframe == 2) {
_root.loop2.gotoAndStop(1);
}
if (_root.BG._currentframe == 3) {
_root.loop3.gotoAndStop(1);
}
if (_root.BG._currentframe == 4) {
_root.loop1.gotoAndStop(1);
}
if (_root.BG._currentframe == 5) {
_root.loop2.gotoAndStop(1);
}
if (_root.BG._currentframe == 6) {
_root.loop3.gotoAndStop(1);
}
};
Instance of Symbol 558 MovieClip in Symbol 1412 MovieClip Frame 2
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 707 MovieClip "mo" in Symbol 1412 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.cmode == 1) {
gotoAndStop (2);
mo._alpha = 100;
ke._alpha = 50;
} else {
mo._alpha = 50;
ke._alpha = 100;
gotoAndStop (1);
}
}
Instance of Symbol 711 MovieClip "ke" in Symbol 1412 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.cmode == 2) {
gotoAndStop (2);
mo._alpha = 50;
ke._alpha = 100;
} else {
mo._alpha = 100;
ke._alpha = 50;
gotoAndStop (1);
}
}
Instance of Symbol 728 MovieClip "OFF" in Symbol 1412 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.musica == false) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 745 MovieClip "ON" in Symbol 1412 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.musica == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1411 MovieClip in Symbol 1412 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 761 MovieClip in Symbol 1412 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Instance of Symbol 863 MovieClip in Symbol 1412 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.lang);
}
Symbol 1416 MovieClip Frame 90
_root.gotoAndStop("menu");
Symbol 1432 MovieClip Frame 1
stop();
Symbol 1447 MovieClip Frame 1
stop();
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1474 MovieClip Frame 1
stop();
Symbol 1488 MovieClip Frame 1
stop();
Symbol 1490 Button
on (release) {
getURL ("http://www.lartargames.com/index_en.html", _blank);
}