Frame 1
function interfaceReady() {
_root.play();
}
this._lockroot = true;
_root.setMask(_root.gamemask_mc);
stop();
WebsitesFilter.checkWebsite();
var myGameClass = new GameOnAde(GameOnAde.GAME_PUBLIC, this, 550, 400, _root._parent.getGL(), "en", WebsitesFilter.__get__isOnFizzy());
myGameClass.setSecretKey("TOKFOK8787zimzim");
myGameClass.setGameUrl("http://www.gameonade.com/en/game/27/big-snow-ball");
if ((!WebsitesFilter.fizzy_special) && (!WebsitesFilter.youyouwin_special)) {
if (WebsitesFilter.adsAllowed()) {
var _mochiads_game_id = "6078b1a5dc407277";
mochi.as2.MochiServices.connect(_mochiads_game_id);
mochi.as2.MochiAd.showPreGameAd({id:_mochiads_game_id, res:"550x400", color:15764992, no_bg:true});
mochi.as2.MochiScores.setBoardID("343b1af1ca442fe4");
}
if (WebsitesFilter.isOn(WebsitesFilter.WEB_KONGREGATE)) {
var kongregate = _global.kongregate;
kongregate.services.connect();
}
if (WebsitesFilter.isOn(WebsitesFilter.WEB_MINDJOLT)) {
_root.createEmptyMovieClip("mindjolt_ad_container", 10020);
MindJoltAPI.service.connect("KW2MH2YC27OWLB3E", mindjolt_ad_container, callback);
MindJoltAPI.ad.showPreGameAd({clip:_root});
}
if (WebsitesFilter.isOn(WebsitesFilter.WEB_POSZKOLE)) {
Stage.scaleMode = "noScale";
fscommand ("allowscale", false);
System.security.allowDomain("poszkole.pl");
var PoszkoleAPI = _root.createEmptyMovieClip("PoszkoleAPI", 10021);
var PoszkoleAPI_Loader = new MovieClipLoader();
PoszkoleAPI_Loader.loadClip("http://poszkole.pl/poszkoleAPI_AS2.swf", PoszkoleAPI);
var PoszkoleKey = "304291dd0583b1578c088343483a424f";
}
} else if (WebsitesFilter.fizzy_special) {
FizzyAPIas2.initialize(this, this.interfaceReady);
} else if (WebsitesFilter.youyouwin_special) {
FWAd_AS2.showAd({container:this, x:0, y:0, wid:"400", hei:"450", id:"gameonade-bigsnowball-2", adType:"loading", onClickCloseBtn:fwAd_onClickCloseBtn});
}
_root.setMask(gamemask_mc);
Frame 2
function moreGames() {
if (WebsitesFilter.youyouwin_special) {
if (WebsitesFilter.isOn(WebsitesFilter.WEB_7K7K)) {
getURL ("http://www.7k7k.com");
}
}
getURL ("http://www.gameonade.com", "_blank");
}
function downloadGame() {
getURL (_root.myGameClass.getGameUrl(), "_blank");
}
function addOtherLogos() {
if (WebsitesFilter.youyouwin_special) {
if (WebsitesFilter.isOn(WebsitesFilter.WEB_7K7K)) {
otherlogos_mc.gotoAndStop("com7k7k");
otherlogos_mc.onRelease = function () {
getURL ("http://www.7k7k.com", "_blank");
};
} else {
otherlogos_mc.gotoAndStop("comyouyouwin");
otherlogos_mc.onRelease = function () {
getURL ("http://www.youyouwin.com", "_blank");
};
}
}
}
function coNaStart() {
_root.gotoAndPlay("menu");
}
function saveData() {
if (WebsitesFilter.fizzy_special) {
FizzyAPIas2.submitScore(myGameClass.getPointsInfo(), scoreSubmitted);
} else if (WebsitesFilter.isOn(WebsitesFilter.WEB_KONGREGATE)) {
_root.kongregate.stats.submit("HighScore", myGameClass.getPointsInfo());
coNaStart();
} else if (_root.myGameClass.getGameType() == "private") {
_root.myGameClass.savePoints();
} else {
mochi.as2.MochiScores.showLeaderboard({score:myGameClass.getPointsInfo()});
mochi.as2.MochiScores.onClose = function () {
coNaStart();
};
mochi.as2.MochiScores.onError = function () {
coNaStart();
};
}
}
function endGame() {
_root.myGameClass.endGame();
if (WebsitesFilter.isOn(WebsitesFilter.WEB_MINDJOLT)) {
MindJoltAPI.service.submitScore(Math.max(0, _root.myGameClass.getPointsInfo()), null, coNaStart());
_root.has_save = false;
return(true);
}
if (WebsitesFilter.isOn(WebsitesFilter.WEB_POSZKOLE)) {
PoszkoleAPI.submitScore(PoszkoleKey, _root.myGameClass.getPointsInfo());
_root.has_save = false;
return(true);
}
return(false);
}
function scoreSubmitted(success) {
if (success) {
}
coNaStart();
}
function umiescSnieg() {
_root.ns.attachMovie("snieg", "snieg" + pozSnieg, pozSnieg);
_root.ns["snieg" + pozSnieg]._alpha = 50;
_root.ns["snieg" + pozSnieg]._x = Math.random() * 550;
_root.ns["snieg" + pozSnieg]._y = Math.random() * 400;
_root.ns["snieg" + pozSnieg]._width = (_root.ns["snieg" + pozSnieg]._height = 20);
_root.ns["snieg" + pozSnieg].nowaX2 = _root.ns["snieg" + pozSnieg]._x;
_root.ns["snieg" + pozSnieg].nowaY2 = _root.ns["snieg" + pozSnieg]._y;
_root.ns["snieg" + pozSnieg].stan = "pada";
_root.ns["snieg" + pozSnieg].kat = (_root.obrot(_root.ns["snieg" + pozSnieg]._x, _root.ns["snieg" + pozSnieg]._y, 275, 200, "nieistotny") * Math.PI) / 180;
_root.ns["snieg" + pozSnieg].prSniegu = 0.5;
_root.ns["snieg" + pozSnieg].obroty = Math.random() * 5;
pozSnieg++;
if (pozSnieg >= maxPozSnieg) {
pozSnieg = 1;
}
}
function padaSnieg() {
i = 1;
while (i <= maxPozSnieg) {
if (_root.ns["snieg" + i].stan == "pada") {
_root.ns["snieg" + i].nowaX2 = _root.ns["snieg" + i].nowaX2 + (_root.ns["snieg" + i].prSniegu * Math.cos(_root.ns["snieg" + i].kat));
_root.ns["snieg" + i].nowaY2 = _root.ns["snieg" + i].nowaY2 + (_root.ns["snieg" + i].prSniegu * Math.sin(_root.ns["snieg" + i].kat));
_root.ns["snieg" + i]._x = _root.ns["snieg" + i].nowaX2;
_root.ns["snieg" + i]._y = _root.ns["snieg" + i].nowaY2;
_root.ns["snieg" + i].prSniegu = _root.ns["snieg" + i].prSniegu * 0.99;
_root.ns["snieg" + i]._alpha = _root.ns["snieg" + i]._alpha - 0.01;
_root.ns["snieg" + i]._xscale = _root.ns["snieg" + i]._xscale - 10;
_root.ns["snieg" + i]._yscale = _root.ns["snieg" + i]._yscale - 10;
_root.ns["snieg" + i]._rotation = _root.ns["snieg" + i]._rotation + _root.ns["snieg" + i].obroty;
if (_root.ns["snieg" + i]._xscale <= 0) {
_root.ns["snieg" + i].stan = "stoi";
_root.ns["snieg" + i].removeMovieClip();
}
}
i++;
}
coIleSnieg++;
if (coIleSnieg >= 3) {
umiescSnieg();
coIleSnieg = 0;
}
}
this._lockroot = true;
_root.setMask(gamemask_mc);
if (WebsitesFilter.isOn(WebsitesFilter.WEB_MINDJOLT)) {
myGameClass.startPreloader("gameonade_intro_short");
} else if (WebsitesFilter.youyouwin_special) {
myGameClass.startPreloader("gameonade_intro_short");
} else {
myGameClass.startPreloader("gameonade_intro", false);
}
if (_root.myGameClass.getGameType() == "private") {
myGameClass.startFpsRecording(5000, 10);
}
stop();
var has_save = true;
muzOK = true;
_root.createEmptyMovieClip("ns", 2);
pozSnieg = 1;
maxPozSnieg = 30;
coIleSnieg = 0;
ns.onEnterFrame = function () {
padaSnieg();
};
stop();
Frame 3
function dzwGl() {
if (muzOK) {
rzut.setVolume(rzutGlo);
traf.setVolume(trafGlo);
chod.setVolume(chodGlo);
} else {
rzut.setVolume(0);
traf.setVolume(0);
chod.setVolume(0);
}
}
function dzw() {
if (_root.muzOK) {
_root.muzOK = false;
} else {
_root.muzOK = true;
}
_root.dzwGl();
}
myGameClass.startGame();
_root.setMask(gamemask_mc);
stopAllSounds();
var czMala = new TextFormat();
czMala.size = 22;
czMala.font = "czc";
startNP.setNewTextFormat(czMala);
startNP.wordWrap = true;
startNP.autoSize = "right";
startNP.embedFonts = true;
startNP.antiAliasType = "advanced";
startNP.text = "play";
startBT._visible = 1;
var czTytul = new TextFormat();
czTytul.size = 38;
czTytul.font = "czc";
tytulNP.setNewTextFormat(czTytul);
tytulNP.wordWrap = true;
tytulNP.autoSize = "right";
tytulNP.embedFonts = true;
tytulNP.antiAliasType = "advanced";
tytulNP.text = "Big snow ball";
wszystkoInt.clearInterval();
opis._visible = 1;
_root.createEmptyMovieClip("rzutA", -2001);
rzut = new Sound(rzutA);
rzut.attachSound("rzut");
rzutGlo = 30;
_root.createEmptyMovieClip("trafA", -2002);
traf = new Sound(trafA);
traf.attachSound("trafiony");
trafGlo = 30;
_root.createEmptyMovieClip("chodA", -2003);
chod = new Sound(chodA);
chod.attachSound("kids");
chodGlo = 30;
dzwGl();
stop();
Instance of Symbol 107 MovieClip "muz" in Frame 3
onClipEvent (enterFrame) {
if (_root.muzOK) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 4
function czestotliwosc() {
var _local2 = _root.minCzest + Math.floor(Math.random() * _root.losowaCzest);
return(_local2);
}
function wszystko() {
if (_root.stanGry != "koniec") {
if (Key.isDown(38) && (_root.stanLudzika != "upadek")) {
_root.ct.ludzik.ld.play();
}
if ((stanLudzika == "chodzi") || (stanLudzika == "mryga")) {
ruchLudkaGL();
if (ped_jazdy == 0) {
_root.ct.ludzik.ld.stop();
}
}
wspLudzika();
ruchKulki();
}
}
function ruchLudkaGL() {
if (Key.isDown(38)) {
ped_jazdy = ped_jazdy + _root.przysp;
}
if (Key.isDown(40)) {
ped_jazdy = 0;
}
if (Key.isDown(37)) {
_root.ct.auto._rotation = _root.ct.auto._rotation - promSkr;
}
if (Key.isDown(39)) {
_root.ct.auto._rotation = _root.ct.auto._rotation + promSkr;
}
if (ped_jazdy >= _root.predkosc_max) {
ped_jazdy = _root.predkosc_max;
}
if (ped_jazdy >= _root.wsp_zatrzymania) {
ped_jazdy = ped_jazdy - _root.zwalnianie;
}
if (ped_jazdy <= _root.wsp_zatrzymania) {
ped_jazdy = 0;
}
kat_obrotu = (_root.ct.auto._rotation * Math.PI) / 180;
nowaX = nowaX + (ped_jazdy * Math.cos(kat_obrotu));
nowaY = nowaY + (ped_jazdy * Math.sin(kat_obrotu));
if ((nowaX + ileSzer) >= pW) {
nowaX = pW - ileSzer;
}
if ((nowaX - ileSzer) <= lW) {
nowaX = lW + ileSzer;
}
if ((nowaY + ileSzer) >= dW) {
nowaY = dW - ileSzer;
}
if ((nowaY - ileSzer) <= gW) {
nowaY = gW + ileSzer;
}
wczX = _root.ct.auto._x;
wczY = _root.ct.auto._y;
_root.ct.auto._x = nowaX;
_root.ct.auto._y = nowaY;
if ((Math.abs(wczX - nowaX) > 0.51) || (Math.abs(wczY - nowaY) > 0.51)) {
zwWym();
}
}
function wspLudzika() {
_root.ct.ludzik._rotation = _root.ct.auto._rotation;
_root.ct.ludzik.ld._x = -ileSzer;
_root.ct.ludzik._x = nowaX;
_root.ct.ludzik._y = nowaY;
}
function zwWym() {
ileSzer = ileSzer + wzrSzer;
_root.ct.auto.kulka._width = 2 * ileSzer;
_root.ct.auto.kulka._height = 2 * ileSzer;
if (ileSzer >= 160) {
_root.koniec();
}
if ((ileSzer > 9.98) && (ileSzer < 10)) {
prMinKulek = 8;
promSkr = 4.7;
} else if ((ileSzer > 19.98) && (ileSzer < 20)) {
prMinKulek = 8.5;
promSkr = 4.5;
minCzest = 9;
losowaCzest = 9;
} else if ((ileSzer > 29.98) && (ileSzer < 30)) {
prMinKulek = 9;
promSkr = 4.3;
minCzest = 8;
losowaCzest = 8;
} else if ((ileSzer > 34.98) && (ileSzer < 35)) {
prMinKulek = 9.5;
promSkr = 3.9;
minCzest = 7;
losowaCzest = 7;
} else if ((ileSzer > 39.98) && (ileSzer < 40)) {
prMinKulek = 10;
promSkr = 3.7;
minCzest = 6;
losowaCzest = 6;
} else if ((ileSzer > 40) && (ileSzer < 40.2)) {
promSkr = 3.5;
prMinKulek = 10.5;
minCzest = 5;
losowaCzest = 5;
}
if (predkosc_max > pr_max_min) {
predkosc_max = predkosc_max - (wzrSzer / 4);
}
slad();
}
function slad() {
_root.ct.attachMovie("ubytek", "ubytek" + pozUb, pozUb);
_root.ct["ubytek" + pozUb]._rotation = _root.ct.auto._rotation;
_root.ct["ubytek" + pozUb]._x = _root.ct.auto._x;
_root.ct["ubytek" + pozUb]._y = _root.ct.auto._y;
pozUb++;
if (pozUb > -9955) {
pozUb = -10000;
}
}
function rzucKulke(KTO, ILEPRZ) {
this.kat_obrotu2 = ((_root.ct["" + KTO]._rotation + 90) * Math.PI) / 180;
this.nowaX2 = ILEPRZ * Math.cos(this.kat_obrotu2);
this.nowaY2 = ILEPRZ * Math.sin(this.kat_obrotu2);
_root.ct.attachMovie("sniezka", "kulka" + pozKulek, pozKulek);
_root.ct["kulka" + pozKulek].nowaX2 = (_root.ct["kulka" + pozKulek]._x = this.nowaX2 + _root.ct["" + KTO]._x);
_root.ct["kulka" + pozKulek].nowaY2 = (_root.ct["kulka" + pozKulek]._y = this.nowaY2 + _root.ct["" + KTO]._y);
this.katCh = obrot(_root.ct["kulka" + pozKulek]._x, _root.ct["kulka" + pozKulek]._y, _root.zmiennaX, _root.zmiennaY, _root.ct["" + KTO].gdzie);
_root.ct["kulka" + pozKulek]._rotation = this.katCh;
_root.ct["kulka" + pozKulek].stan = "lec";
_root.ct["kulka" + pozKulek].kat = (this.katCh * Math.PI) / 180;
_root.ct["kulka" + pozKulek].predkosc = prMinKulek + (Math.random() * prDoLosu);
pozKulek++;
if (pozKulek > 10018) {
pozKulek = poczPozKulek;
}
}
function ruchKulki() {
i = poczPozKulek;
while (i <= 10018) {
if (_root.ct["kulka" + i].stan == "lec") {
_root.ct["kulka" + i].nowaX2 = _root.ct["kulka" + i].nowaX2 + (_root.ct["kulka" + i].predkosc * Math.cos(_root.ct["kulka" + i].kat));
_root.ct["kulka" + i].nowaY2 = _root.ct["kulka" + i].nowaY2 + (_root.ct["kulka" + i].predkosc * Math.sin(_root.ct["kulka" + i].kat));
_root.ct["kulka" + i]._x = _root.ct["kulka" + i].nowaX2;
_root.ct["kulka" + i]._y = _root.ct["kulka" + i].nowaY2;
if (_root.ct["kulka" + i].predkosc > 5) {
_root.ct["kulka" + i].predkosc = _root.ct["kulka" + i].predkosc * zwKulek;
} else {
_root.ct["kulka" + i].stan = "nielec";
_root.ct["kulka" + i].predkosc = 0;
_root.ct["kulka" + i].removeMovieClip();
}
if (_root.ct.auto.hitTest(_root.ct["kulka" + i]._x, _root.ct["kulka" + i]._y, true)) {
_root.ct["kulka" + i].stan = "nielec";
_root.ct["kulka" + i].predkosc = 0;
_root.ct["kulka" + i].removeMovieClip();
_root.traf.start(0, 1);
} else if (_root.ct.ludzik.hitTest(_root.ct["kulka" + i]._x, _root.ct["kulka" + i]._y, true) && (_root.stanLudzika == "chodzi")) {
_root.stanLudzika = "upadek";
_root.ct.ludzik.ld.gotoAndPlay("upadek");
_root.ct["kulka" + i].stan = "nielec";
_root.ct["kulka" + i].predkosc = 0;
_root.traf.start(0, 1);
_root.chod.start(0, 1);
_root.zyciaaa["ld" + _root.myGameClass.setSecureValue(liczbaZyc)].gotoAndStop(2);
_root.liczbaZyc = _root.myGameClass.addSecureValue(-1, _root.liczbaZyc);
if (_root.myGameClass.setSecureValue(liczbaZyc) <= 0) {
_root.koniec();
}
_root.ct["kulka" + i].removeMovieClip();
}
}
i++;
}
}
function obrotLudka() {
i = 1;
while (i <= ileLudkow) {
if (_root.ct["ludek" + i].stan == "rzuca") {
_root.ct["ludek" + i]._rotation = obrot(_root.ct["ludek" + i]._x, _root.ct["ludek" + i]._y, _root.ct.ludzik._x, _root.ct.ludzik._y, _root.ct["ludek" + i].gdzie);
}
i++;
}
}
function obrot(OBX1, OBY1, OBX2, OBY2, KIER) {
x1 = OBX1;
y1 = OBY1;
x2 = OBX2;
y2 = OBY2;
dlOdc = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.a = (y1 - y2) / (x1 - x2);
this.katRad = Math.atan(this.a);
if (x1 <= x2) {
kat = (180 * this.katRad) / Math.PI;
} else if (x1 > x2) {
kat = (180 * this.katRad) / Math.PI;
kat = 180 + kat;
}
return(kat);
}
function koniec() {
i = 1;
while (i <= ileLudkow) {
_root.ct["ludek" + i].gotoAndStop(1);
i++;
}
_root.attachMovie("wygaszenie", "wygaszacz", 3);
stanGry = "koniec";
clearInterval(_root.wszystkoInt);
}
function czyszczenie() {
_root.ct.removeMovieClip();
}
myGameClass.timerStart();
_root.setMask(gamemask_mc);
koniecNP.setNewTextFormat(czMala);
koniecNP.text = "Punkty:";
koniecNP.wordWrap = true;
koniecNP.autoSize = "right";
koniecNP.embedFonts = true;
koniecNP.antiAliasType = "advanced";
koniecNP.text = "the end";
gW = gora._y;
dW = dol._y;
lW = l._x;
pW = p._x;
var liczbaZyc = myGameClass.setSecureValue(3);
zyciaaa._visible = 1;
stanLudzika = "chodzi";
_root.createEmptyMovieClip("ct", 1);
_root.ct._x = 0;
_root.ct._y = 0;
i = 1;
while (i <= 5) {
_root.ct.attachMovie("przeciwnik", "ludek" + i, -100 + i);
_root.ct["ludek" + i]._x = 45;
_root.ct["ludek" + i]._y = 70 * i;
_root.ct["ludek" + i].gdzie = "wprawo";
_root.ct["ludek" + i].ileprzes = -10;
i++;
}
i = 6;
while (i <= 10) {
_root.ct.attachMovie("przeciwnik", "ludek" + i, -100 + i);
_root.ct["ludek" + i]._rotation = 180;
_root.ct["ludek" + i]._x = 515;
_root.ct["ludek" + i]._y = 70 * (i - 5);
_root.ct["ludek" + i].gdzie = "wlewo";
_root.ct["ludek" + i].ileprzes = -10;
i++;
}
ileLudkow = 10;
minCzest = 10;
losowaCzest = 10;
i = 1;
while (i <= ileLudkow) {
_root.ct["ludek" + i].czest = czestotliwosc();
_root.ct["ludek" + i].czestChw = 0;
i++;
}
_root.ct.attachMovie("kulka", "auto", 10000);
_root.ct.auto._y = _root.gW + ((_root.dW - _root.gW) / 2);
_root.ct.auto._x = _root.lW + ((_root.pW - _root.lW) / 2);
_root.ct.attachMovie("ludzik", "ludzik", 10001);
sila_skretu = 0.5;
przysp = 3;
nowaX = _root.ct.auto._x;
nowaY = _root.ct.auto._y;
predkosc_max = 5;
pr_max_min = 1.5;
zwalnianie = 0.4;
wsp_zatrzymania = 0.6;
ped_jazdy = 0;
kSzer = 100;
poczSzer = (ileSzer = _root.ct.auto.kulka._width / 2);
wzrSzer = 0.01;
stanGry = "niekoniec";
Key.addListener(_root.ct.auto);
_root.ct.auto.onEnterFrame = function () {
if (stanGry != "koniec") {
obrotLudka();
}
};
wszystkoInt = setInterval(this, "wszystko", 32);
promSkr = 5;
_root.ct.ludzik._x = _root.ct.auto._x;
_root.ct.ludzik._y = _root.ct.auto._y;
_root.ct.ludzik._rotation = 0;
_root.ct.ludzik.ld._x = (-_root.ct.auto._width) / 2;
pozUb = -10000;
poczPozKulek = (pozKulek = 10010);
nowaX2 = 0;
nowaY2 = 0;
prMinKulek = 8;
prDoLosu = 10;
zwKulek = 0.99;
koniecBT._visible = 1;
stop();
Frame 5
mPoPrzec = 2;
mnoz = Math.pow(10, mPoPrzec);
ileSzer = Math.round(ileSzer * mnoz) / mnoz;
myGameClass.addPoints(((ileSzer - 8.5) * ((2 + _root.myGameClass.setSecureValue(liczbaZyc)) * 10)) * 10);
_root.setMask(gamemask_mc);
pktNP.setNewTextFormat(czMala);
pktNP.wordWrap = true;
pktNP.autoSize = "right";
pktNP.embedFonts = true;
pktNP.antiAliasType = "advanced";
pktNP.text = ileSzer;
punktyNP.setNewTextFormat(czMala);
punktyNP.wordWrap = true;
punktyNP.autoSize = "right";
punktyNP.embedFonts = true;
punktyNP.antiAliasType = "advanced";
punktyNP.text = "Ball size:";
ostatNP.setNewTextFormat(czMala);
ostatNP.wordWrap = true;
ostatNP.autoSize = "right";
ostatNP.embedFonts = true;
ostatNP.antiAliasType = "advanced";
ostatNP.text = "Points:";
ostNP.setNewTextFormat(czMala);
ostNP.wordWrap = true;
ostNP.autoSize = "right";
ostNP.embedFonts = true;
ostNP.antiAliasType = "advanced";
ostNP.text = myGameClass.getPointsInfo();
menuNP.setNewTextFormat(czMala);
menuNP.wordWrap = true;
menuNP.autoSize = "right";
menuNP.embedFonts = true;
menuNP.antiAliasType = "advanced";
menuNP.text = "menu";
zapiszNP.setNewTextFormat(czMala);
zapiszNP.wordWrap = true;
zapiszNP.autoSize = "right";
zapiszNP.embedFonts = true;
zapiszNP.antiAliasType = "advanced";
zapiszNP.text = "Save score";
if (endGame()) {
zapiszNP.text = "";
saveBT._visible = false;
menuNP.text = "";
koniecBT._visible = false;
} else {
saveBT._visible = true;
koniecBT._visible = true;
}
wszystkoInt.clearInterval();
stop();
Symbol 10 MovieClip [gameonade_intro_small_short] Frame 58
_root.play();
removeMovieClip(this);
stop();
Symbol 11 MovieClip [gameonade_intro_short] Frame 1
_root.play();
removeMovieClip(this);
stop();
Symbol 11 MovieClip [gameonade_intro_short] Frame 58
_root.play();
removeMovieClip(this);
stop();
Symbol 30 MovieClip Frame 140
_parent.play();
stop();
Symbol 39 MovieClip Frame 26
stop();
Symbol 39 MovieClip Frame 168
stop();
_parent.is_stop = true;
_parent._parent.is_stop = true;
this.onPress = function () {
getURL (_root.myGameClass.getGameUrl(), "_blank");
};
Symbol 45 MovieClip [gameonade_intro] Frame 1
var is_stop = false;
Symbol 45 MovieClip [gameonade_intro] Frame 9
stop();
Symbol 45 MovieClip [gameonade_intro] Frame 30
stop();
play_game_mc.onRelease = function () {
play();
};
play_more_mc.onRelease = function () {
getURL (_root.myGameClass.getGameUrl(), "_blank");
};
Symbol 45 MovieClip [gameonade_intro] Frame 52
_root.play();
removeMovieClip(this);
stop();
Symbol 46 MovieClip [gameonade_intro_small] Frame 1
var is_stop = false;
stop();
Symbol 46 MovieClip [gameonade_intro_small] Frame 2
intro_mc.play();
stop();
Symbol 56 MovieClip [gameonade_preloader] Frame 25
var is_stop = true;
stop();
Symbol 56 MovieClip [gameonade_preloader] Frame 103
_root.play();
removeMovieClip(this);
stop();
Symbol 134 MovieClip [__Packages.MindJoltAPI] Frame 0
class MindJoltAPI
{
static var clip, options, gameKey, callback;
function MindJoltAPI () {
}
static function showPreGameAd(options) {
if (clip.mindjolt_api_service == undefined) {
}
if (options == null) {
options = {};
}
if (service.showPreGameAd != undefined) {
service.showPreGameAd(options);
} else {
MindJoltAPI.options = options;
if (options.ad_started == null) {
((options.clip != null) ? (options.clip) : _root).stop();
}
}
}
static function load_service_complete() {
if (clip.mindjolt_api_service.service != null) {
service = clip.mindjolt_api_service.service;
service.connect(gameKey, clip, callback);
if (options != null) {
service.recordAction(("showPreGameAd(" + options) + ");");
service.showPreGameAd(options);
}
service.getLogger().info(("MindJoltAPI loader version [" + version) + "]");
}
}
static function connect(gameKey, clip, callback) {
MindJoltAPI.gameKey = gameKey;
MindJoltAPI.clip = ((clip != null) ? (clip) : _root);
MindJoltAPI.callback = callback;
if (service.submitScore == undefined) {
System.security.allowDomain("static.mindjolt.com");
var _local3 = MindJoltAPI.clip.createEmptyMovieClip("mindjolt_api_service", 10000);
var _local4 = ((_level0.mjPath != undefined) ? (_level0.mjPath) : "http://static.mindjolt.com/api/as2/api_local_as2.swf");
var _local2 = new MovieClipLoader();
_local2.addListener({onLoadInit:load_service_complete, onLoadError:load_service_complete});
_local2.loadClip(_local4, _local3);
}
}
static var service = {connect:connect};
static var ad = {showPreGameAd:showPreGameAd};
static var version = "1.0.3";
}
Symbol 135 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();
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)) {
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(_local1) != _local1) {
}
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);
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)) {
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(score) != score) {
}
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 136 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 137 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.1 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)) {
_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) {
};
}
}
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) {
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);
}
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"]);
};
_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)) {
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) {
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
}
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 :
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 138 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 139 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")) {
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
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 140 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 141 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 142 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:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, 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) {
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 () {
}, 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) {
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 () {
}, 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) {
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) {
showPreGameAd(options);
}
static function showTimedAd(options) {
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) {
}
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") {
}
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);
}
}
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 143 MovieClip [__Packages.GameOnAde] Frame 0
class GameOnAde
{
var website, game_type, game_mc, game_loader, game_random_key, game_random_key_other, game_loaded, game_width, game_height, game_language, game_played_num, game_highest_score, bt, bl, game_url, game_main_container, secret_key, game_time, fps_average, fps_interval_freq, fps_recorder_length, fps_last_row_num, fps_recorder, fps_interval, game_points, game_points_info, score_saved, preloader_mc;
function GameOnAde (_game_type, _game_mc, _gw, _gh, _GL, _game_lang, _website) {
if (_website != undefined) {
website = _website;
} else {
website = "gameonade";
}
fscommand ("showmenu", false);
Stage.showMenu = false;
if (website == "gameonade") {
Stage.scaleMode = "noScale";
Stage.align = "TL";
fscommand ("allowscale", false);
}
GameLoader.display_info("[Game] - constructor");
game_type = _game_type;
game_mc = _game_mc;
if (game_type == GAME_PRIVATE) {
game_loader = _GL;
game_random_key = game_loader.getRandomKey();
game_random_key_other = game_loader.getRandomKeyOther();
game_loader.setGameOnAde(this);
} else {
game_random_key = 29092007 /* 0x1BBE8A7 */;
game_random_key_other = 11081984 /* 0xA91900 */;
if (website != "fizzy") {
fscommand ("allowscale", true);
Stage.scaleMode = "showAll";
}
}
game_loaded = false;
game_width = _gw;
game_height = _gh;
game_language = _game_lang;
game_played_num = 0;
game_highest_score = 0;
bt = (bl = 0);
GameLoader.display_info("[Game] - game_random_key: " + game_random_key);
}
function setGameUrl(_S) {
game_url = _S;
}
function getGameUrl() {
return(game_url);
}
function getGameType() {
return(game_type);
}
function getGameMainContainer() {
return(game_main_container);
}
function setSecretKey(_S) {
secret_key = _S;
}
function getSecretKey() {
return(secret_key);
}
function getGamePlayedNum() {
return(game_played_num);
}
function getGameTime() {
return(game_time);
}
function getGameLanguage() {
return(game_language);
}
function getHighestScore() {
return(game_highest_score);
}
function setHighestScore(_N) {
game_highest_score = Math.max(_N, game_highest_score);
}
function getFPSAVG() {
return(fps_average);
}
function checkUrl(_FRAME) {
if (_FRAME == undefined) {
_FRAME = "illegal";
}
CheckUrl.checkThisUrl(_url, game_mc, _FRAME);
}
function timerStart() {
GameTimer.start();
}
function timerStop() {
GameTimer.stop();
}
function timerReset() {
GameTimer.reset();
game_time = 0;
}
function timerGetTime() {
return(GameTimer.getGameTime());
}
function startFpsRecording(_F, _L) {
fps_interval_freq = (_F ? (_F) : (FPS_FREQ));
fps_recorder_length = (_L ? (_L) : (FPS_LENGTH));
fps_last_row_num = 0;
fps_recorder = new Array();
fps_average = 0;
GameLoader.display_info((("[startFpsRecording]: fps_interval_freq>" + fps_interval_freq) + " fps_recorder_length>") + fps_recorder_length);
}
function startFPS() {
FPSCounter.startInvisible(game_mc, -50001);
if (game_type == GAME_PRIVATE) {
fps_interval = setInterval(fpsRecorder, fps_interval_freq, this);
}
}
function stopFPS() {
FPSCounter.stop(game_mc);
clearInterval(fps_interval);
}
function fpsRecorder(_GAME) {
var _local2 = FPSCounter.getLastFPS();
if (_GAME.fps_recorder.length < _GAME.fps_recorder_length) {
_GAME.fps_recorder.push(_local2);
} else {
if (_GAME.fps_last_row_num >= _GAME.fps_recorder_length) {
_GAME.fps_last_row_num = 0;
}
_GAME.fps_recorder[_GAME.fps_last_row_num++] = _local2;
}
}
function getFpsAvg() {
var _local5 = 0;
if (game_type == GAME_PRIVATE) {
var _local4 = 0;
var _local3 = fps_recorder.length;
if (_local3 > 0) {
var _local2 = 0;
while (_local2 < _local3) {
_local4 = _local4 + fps_recorder[_local2];
_local2++;
}
_local5 = Math.round(_local4 / _local3);
GameLoader.display_info("[fpsRecorder]: fps_recorder: " + fps_recorder);
fps_recorder = new Array();
fps_last_row_num = 0;
} else {
_local5 = -1;
}
} else {
_local5 = -2;
}
return(_local5);
}
function setPoints(_P) {
game_points = Xor.endecodeNumber(_P, game_random_key);
game_points_info = _P;
GameLoader.display_info(((((((("\tPOINTS xor: " + game_points) + "(") + Xor.endecodeNumber(game_points, game_random_key)) + ")") + " info:") + game_points_info) + " key:") + game_random_key);
}
function addPoints(_P) {
var _local2 = Math.round(_P);
game_points_info = game_points_info + _local2;
game_points = Xor.endecodeNumber(Xor.endecodeNumber(game_points, game_random_key) + _local2, game_random_key);
GameLoader.display_info(((((("\tPOINTS xor: " + game_points) + "(") + Xor.endecodeNumber(game_points, game_random_key)) + ")") + " info:") + game_points_info);
return(game_points);
}
function getPoints() {
return(game_points);
}
function getPointsInfo() {
return(game_points_info);
}
function getPointsToSave() {
return(Xor.endecodeNumber(game_points, game_random_key));
}
function setSecureValue(_N) {
return(Xor.endecodeNumber(_N, game_random_key_other));
}
function addSecureValue(_NV, _N) {
return(Xor.endecodeNumber(Xor.endecodeNumber(_N, game_random_key_other) + _NV, game_random_key_other));
}
function savePlaytime() {
if (game_type == GAME_PRIVATE) {
timerStop();
game_time = timerGetTime();
game_loader.savePlaytime(game_time);
GameLoader.display_info("[savePlaytime - GameOnAde] game_played_num" + game_played_num);
}
}
function savePoints() {
if (game_type == GAME_PRIVATE) {
game_loader.savePoints();
GameLoader.display_info("[savePoints - GameOnAde] score_saved" + score_saved);
} else {
getURL (game_url, "_self");
}
}
function setScoreSaved(_B) {
score_saved = _B;
if (_B) {
game_played_num = 0;
}
GameLoader.display_info("[setScoreSaved] - score_saved:" + score_saved);
}
function getScoreSaved() {
return(score_saved);
}
function startGame() {
setPoints(0);
if (game_type == GAME_PRIVATE) {
timerReset();
startFPS();
}
}
function endGame() {
if (game_type == GAME_PRIVATE) {
game_played_num++;
fps_average = getFpsAvg();
stopFPS();
savePlaytime();
}
setScoreSaved(false);
GameLoader.display_info((("[endGame] - fps_avg:" + fps_average) + " game_time:") + game_time);
}
function startPreloader(_preloader_name, _clickable) {
if (_clickable == undefined) {
_clickable = true;
}
GameLoader.display_info("[startPreloader] - start");
bt = game_mc.getBytesTotal();
bl = game_mc.getBytesLoaded();
if (_preloader_name == undefined) {
_preloader_name = "gameonade_preloader";
}
preloader_mc = game_mc.attachMovie(_preloader_name, _preloader_name, 25000);
preloader_mc.game = this;
preloader_mc._x = game_width / 2;
preloader_mc._y = game_height / 2;
if (_clickable) {
preloader_mc.onRelease = function () {
getURL (GameOnAde.SITE_URL, "_blank");
};
}
preloader_mc.percentage = 0;
if (game_type == GAME_EXE) {
preloader_mc.bt_txt.text = " ";
} else {
preloader_mc.bt_txt.text = bt;
}
preloader_mc.onEnterFrame = function () {
this.game.bl = this.game.game_mc.getBytesLoaded();
this.percentage = Math.round((this.game.bl * 100) / this.game.bt);
this.bt_txt.text = this.game.bt;
this.bl_txt.text = this.game.bl;
if (this.game.game_type == GameOnAde.GAME_EXE) {
this.preloader_mc.bt_txt.text = " ";
} else {
this.loading_mc.percentage_txt.text = this.percentage + " %";
}
if ((this.game.bl >= this.game.bt) && (this.is_stop)) {
delete this.onEnterFrame;
this.game.game_loaded = true;
this.play();
}
};
}
function centerIt(_mc) {
_mc._x = (game_width / 2) - (_mc._width / 2);
_mc._y = (game_height / 2) - (_mc._height / 2);
}
static var FPS_FREQ = 10000;
static var FPS_LENGTH = 20;
static var GAME_PRIVATE = "private";
static var GAME_PUBLIC = "public";
static var GAME_EXE = "exe";
static var SITE_URL = "http://www.gameonade.com";
}
Symbol 144 MovieClip [__Packages.GameLoader] Frame 0
class GameLoader
{
var main_swf, game_swf, secret_key, random_key, random_key_other, site_culture, saved_time_id, user, site_domain, game_url, game_id, game_on_ade, game_last_score, translation, game_loader, game_listener;
function GameLoader (_main_swf, _culture, _console) {
if (_console == undefined) {
_console = false;
}
_root.info_txt.selectable = _console;
_root.info_txt._visible = _console;
display_info("[GameLoader] - constructor");
fscommand ("showmenu", false);
Stage.showMenu = false;
Stage.align = "TL";
main_swf = _main_swf;
game_swf = main_swf.createEmptyMovieClip("game_swf", 1);
secret_key = "all_for_one";
random_key = 256 + Math.round(Math.random() * 1000000);
random_key_other = 123 + Math.round(Math.random() * 10000);
site_culture = ((_culture == undefined) ? "en" : (_culture));
saved_time_id = 0;
user = new User();
}
function getDomainName() {
return((site_domain ? (site_domain) : ""));
}
function setGameUrl(_T, _GID, _RAND) {
game_url = (((getDomainName() + GAME_PATH) + _T) + "/") + _GID;
game_url = game_url + (_RAND ? ("/" + Math.round(Math.random() * 100)) : (site_culture));
game_id = _GID;
display_info("\t\t[setGameUrl >> " + game_url);
}
function setSiteDomain(_T) {
site_domain = _T;
}
function getSecretKey() {
return(secret_key);
}
function getRandomKey() {
return(random_key);
}
function getRandomKeyOther() {
return(random_key_other);
}
function getUser() {
return(user);
}
function setGameOnAde(_G) {
game_on_ade = _G;
}
function getGameOnAde() {
return(game_on_ade);
}
function setSavedTimeId(_N) {
saved_time_id = _N;
}
function getSavedTimeId() {
return(saved_time_id);
}
function savePlaytime(_T) {
var _local2 = new LoadVars();
_local2.time = _T;
_local2.game_id = game_id;
var _local3 = new LoadVars();
_local2.sendAndLoad(getDomainName() + GAME_TIME_PATH, _local3, "post");
_local3.game = this;
_local3.onLoad = function (success) {
if (success) {
GameLoader.display_info((("[savePlaytime] ERROR:" + this.error) + " time_id:") + this.time);
this.game.setSavedTimeId(this.time);
} else {
GameLoader.display_info("[savePlaytime] LOADING ERROR");
}
};
}
function savePoints() {
display_info("\n\n\t\tSAVING POINTS\n\n");
var _local2 = getGameOnAde();
game_swf._visible = false;
display_error_window(__i18n("loading"));
if (!_local2.getScoreSaved()) {
if (_local2.getPointsInfo() > 0) {
_local2.setHighestScore(_local2.getPointsInfo());
var _local5 = MD5.getHash(((((_local2.getSecretKey() + String(game_id)) + String(_local2.getGameTime())) + String(_local2.getPointsToSave())) + String(_local2.getFPSAVG())) + secret_key);
display_info((((((((("[GL savePoints] data: \n\t\t game_id:" + game_id) + "\n\t\t _G.getGameTime():") + _local2.getGameTime()) + "\n\t\t G.getPointsToSave():") + _local2.getPointsToSave()) + "\n\t\t _G.getFPSAVG:") + _local2.getFPSAVG()) + " \n\n\t _G.getGamePlayedNum():") + _local2.getGamePlayedNum());
var _local3 = new LoadVars();
_local3.game_id = game_id;
_local3.time = _local2.getGameTime();
game_last_score = (_local3.score = _local2.getPointsInfo());
_local3.fps = _local2.getFPSAVG();
_local3.checksum = _local5;
_local3.time_id = getSavedTimeId();
_local3.played_num = _local2.getGamePlayedNum();
var _local4 = new LoadVars();
_local3.sendAndLoad(getDomainName() + GAME_SCORE_PATH, _local4, "post");
_local4.my_game = _local2;
_local4.game_loader = this;
_local4.onLoad = function (success) {
if (success) {
GameLoader.display_info("[SAVE SCORE TEST] SHOW ERROR:" + this.error);
if (this.error == 0) {
this.my_game.setScoreSaved(true);
this.game_loader.display_scores_window(this.error);
GameLoader.display_info("[saveScore] display table with scores:" + this.error);
} else if (this.error == "SCO1") {
this.game_loader.display_login_window(this.error);
} else {
this.game_loader.display_error_window(((this.game_loader.__i18n(this.error) + " (") + this.error) + ")");
GameLoader.display_info("[saveScore] DISPLAY LOGIN FORM:" + this.error);
}
} else {
this.game_loader.display_error_window(this.game_loader.__i18n("transfer_failed"));
GameLoader.display_info("[saveScore] LOADING ERROR");
}
};
} else {
display_error_window(__i18n("points_zero"));
display_info("[saveScore] POINTS NOT ENOUGH");
}
} else {
display_error_window(__i18n("score_already"));
display_info("[saveScore] SCORE ALREADY SAVED");
}
}
function loadCultureXML() {
translation = new Array();
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.game_loader = this;
_local3.onLoad = function (success) {
if (success) {
var _local2 = this.firstChild.firstChild.firstChild;
var _local3 = 0;
while (_local2) {
this.game_loader.translation[_local2.nodeName] = _local2.firstChild.nodeValue;
_local2 = _local2.nextSibling;
}
this.game_loader.loadGame();
} else {
GameLoader.display_info("[cultureXML] ERROR WITH RECEIVING CULTURE DATA");
}
};
_local3.load((((GAME_CULTURE_PATH + site_culture) + ".xml") + "?rand=") + Math.round(Math.random() * 100));
}
function __i18n(_S) {
return(translation[_S]);
}
function loadGame() {
display_info("[GameLoader] - LoadGame");
game_loader = new MovieClipLoader();
game_listener = new Object();
game_listener.all = this;
game_loader.addListener(game_listener);
game_loader.loadClip(game_url, game_swf);
main_swf.loading_txt.text = "loading ...";
game_listener.onLoadInit = function (_mc) {
GameLoader.display_info("[GameLoader] - onLoadInit");
};
game_listener.onLoadProgress = function (_mc, bytesLoaded, bytesTotal) {
var _local2 = Math.round((bytesLoaded / bytesTotal) * 100);
this.all.main_swf.loading_txt.text = ("loading " + _local2) + "%";
};
game_listener.onLoadComplete = function (_mc) {
GameLoader.display_info("[GameLoader] - onLoadComplete");
};
game_listener.onLoadStart = function (_mc) {
GameLoader.display_info("[GameLoader] - onLoadStart");
};
game_listener.onLoadError = function () {
GameLoader.display_info("[GameLoader] - onLoadError");
};
}
function getPointsTable(_RANK, _W) {
display_info((("[getPointsTable] Rank:" + _RANK) + " _W:") + _W);
_W.info_txt.text = __i18n("loading_scores");
_W.alltime_btn.bg_mc.gotoAndStop(2);
_W.thisweek_btn.bg_mc.gotoAndStop(2);
_W.today_btn.bg_mc.gotoAndStop(2);
var _local7 = _W[_RANK + "_btn"];
_local7.bg_mc.gotoAndStop(1);
var _local6 = new XML();
_local6.ignoreWhite = true;
_local6.game_loader = this;
_local6.onLoad = function (success) {
if (success) {
var _local5 = new Array();
var _local4 = this.firstChild.firstChild.childNodes;
var _local3 = 0;
while (_local3 < _local4.length) {
_local5[_local3] = new Array();
_local5[_local3].log = ((_local4[_local3].attributes.type == "logged") ? 1 : 0);
var _local2 = _local4[_local3].firstChild;
while (_local2) {
_local5[_local3][_local2.nodeName] = _local2.firstChild.nodeValue;
if (_local4[_local3].attributes.type == "logged") {
if (_local2.nodeName == "id") {
this.game_loader.user.setUserId(_local2.firstChild.nodeValue);
} else if (_local2.nodeName == "lo") {
this.game_loader.user.setUserName(_local2.firstChild.nodeValue);
} else if (_local2.nodeName == "sc") {
this.game_loader.user.setRankPoints(_local2.firstChild.nodeValue);
} else if (_local2.nodeName == "po") {
this.game_loader.user.setRankPosition(_local2.firstChild.nodeValue);
}
}
_local2 = _local2.nextSibling;
}
_local3++;
}
_W.info_txt.text = "";
this.game_loader.displayPointsTable(_local5, _W);
} else {
_W.info_txt.text = this.game_loader.__i18n("transfer_failed");
GameLoader.display_info("[scoreTable] ERROR WITH RECEIVING DATA");
}
};
_local6.load((((((getDomainName() + GAME_SCORE_TABLE_PATH) + game_id) + "/") + _RANK) + "?rand=") + Math.round(Math.random() * 100));
}
function displayPointsTable(_A, _W) {
var _local3 = new Array();
var _local6 = _W.empty_mc.createEmptyMovieClip("cont", 1);
_local6._y = (_local6._x = 1);
var _local1 = new MovieClip();
var _local2 = 0;
while (_local2 < _A.length) {
_local3 = _A[_local2];
_local1 = _local6.attachMovie("score_line", "sl" + _local2, _local2);
_local1._y = _local2 * _local1._height;
_local1.po_txt.text = _local3.po;
_local1.lo_txt.text = _local3.lo;
_local1.sc_txt.text = _local3.sc;
var _local4 = (Number(_local3.po) - 1) % 2;
if (_local4 == 0) {
_local1.bg_mc.gotoAndStop(2);
}
if (_local3.log == 1) {
_local1.bg_mc.gotoAndStop(3);
}
_local2++;
}
}
function display_scores_window(_S) {
var _local2 = display_window("scores");
_local2.alltime_btn.onRelease = function () {
this._parent.game_loader.getPointsTable("alltime", this._parent);
};
_local2.alltime_btn.title_txt.text = __i18n("alltime");
_local2.alltime_btn.bg_mc.gotoAndStop(2);
_local2.thisweek_btn.onRelease = function () {
this._parent.game_loader.getPointsTable("thisweek", this._parent);
};
_local2.thisweek_btn.title_txt.text = __i18n("thisweek");
_local2.thisweek_btn.bg_mc.gotoAndStop(2);
_local2.today_btn.onRelease = function () {
this._parent.game_loader.getPointsTable("today", this._parent);
};
_local2.today_btn.title_txt.text = __i18n("today");
_local2.today_btn.bg_mc.gotoAndStop(2);
getPointsTable("today", _local2);
_local2.battle_btn.onRelease = function () {
this._parent.game_loader.display_battle_window();
};
_local2.battle_btn.title_txt.text = __i18n("butt_challenge");
}
function display_login_window(_S) {
var _local2 = display_window("login");
_local2.error_txt.text = _S;
var _local6 = getGameOnAde();
_local2.username_mc.label_txt.text = __i18n("username");
_local2.username_mc.field_txt.text = __i18n("username");
_local2.password_mc.label_txt.text = __i18n("password");
_local2.password_mc.field_txt.password = true;
_local2.password_mc.field_txt.text = __i18n("password");
_local2.login_btn.onRelease = function () {
var _local5 = this._parent.username_mc.field_txt.text;
var _local4 = this._parent.password_mc.field_txt.text;
this._parent.info_txt.text = this._parent.game_loader.__i18n("wait");
var _local2 = new LoadVars();
_local2.username = _local5;
_local2.uservalue = _local4;
_local2.game_id = this._parent.game_loader.game_id;
var _local3 = new LoadVars();
_local2.sendAndLoad(this._parent.game_loader.getDomainName() + GameLoader.GAME_AUTH_PATH, _local3, "post");
_local3.window_mc = this._parent;
_local3.onLoad = function (success) {
if (success) {
if (this.error == 0) {
this.window_mc.info_txt.text = this.window_mc.game_loader.__i18n("LOGOK");
this.window_mc.game_loader.savePoints();
} else {
this.window_mc.info_txt.text = this.window_mc.game_loader.__i18n(this.error);
}
} else {
this.window_mc.info_txt.text = this.window_mc.game_loader.__i18n("transfer_failed");
}
};
};
_local2.login_btn.title_txt.text = __i18n("butt_login");
_local2.register_btn.gotoAndStop(2);
_local2.register_btn.title_txt.text = __i18n("butt_register");
_local2.register_btn.my_lang = _local6.getGameLanguage();
_local2.register_btn.onRelease = function () {
getURL (((this._parent.game_loader.getDomainName() + "/") + this.my_lang) + GameLoader.GAME_REGISTER_PATH, "_blank");
};
}
function display_battle_window(_S) {
var _local2 = display_window("battle");
_local2.battle_txt.text = ((((__i18n("challenge_desc1") + " ") + game_last_score) + newline) + __i18n("challenge_desc2")) + " ";
clearBattleFields(_local2);
_local2.send_btn.onRelease = function () {
this._parent.game_loader.sendBattleFields(this._parent);
};
_local2.send_btn.title_txt.text = __i18n("butt_send");
}
function sendBattleFields(_W) {
var _local9 = __i18n("email_or_username");
var players_arr = new Array();
var _local3 = 1;
while (_local3 <= 3) {
var _local5 = _W[("player" + _local3) + "_mc"];
var _local2 = _local5.field_txt.text;
if ((((_local2 != "") && (_local2 != " ")) && (_local2 != _local9)) && (_local2.length >= 2)) {
players_arr.push(_local2);
}
_local3++;
}
var _local7 = new LoadVars();
_local7.game_id = game_id;
_local7.score = game_last_score;
_local3 = 0;
while (_local3 < players_arr.length) {
_local7["p" + _local3] = players_arr[_local3];
_local3++;
}
var _local10 = new LoadVars();
_W.info_txt.text = __i18n("sending");
_local10.players_arr = players_arr;
_local10.onLoad = function (success) {
if (success) {
if (this.error == 0) {
var _local5 = _W.game_loader.__i18n("challenge_send") + newline;
var _local6 = this.send;
var _local4 = _local6.split(";");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
if (_local3 >= 0) {
_local5 = _local5 + (this.players_arr[_local3] + newline);
}
_local2++;
}
_W.info_txt.text = _local5;
_W.game_loader.clearBattleFields(_W);
} else {
_W.info_txt.text = _W.game_loader.__i18n(this.error);
}
} else {
_W.info_txt.text = _W.game_loader.__i18n("transfer_failed");
}
};
_local7.sendAndLoad(getDomainName() + GAME_CHALLENGE_PATH, _local10, "post");
}
function clearBattleFields(_W) {
var def_val = __i18n("email_or_username");
var _local3 = 1;
while (_local3 <= 3) {
var _local2 = _W[("player" + _local3) + "_mc"];
_local2.label_txt.text = "";
_local2.field_txt.text = def_val;
_local2.field_txt.onSetFocus = function () {
if (this.text == def_val) {
this.text = "";
}
};
_local2.field_txt.onKillFocus = function () {
if ((this.text == "") || (this.text == " ")) {
this.text = def_val;
}
};
_local3++;
}
}
function display_error_window(_S) {
var _local2 = display_window("error");
_local2.info_txt.text = _S;
}
function display_window(_T) {
var _local3 = _root.attachMovie("window", "my_window", 200);
centerIt(_local3);
_local3.gotoAndStop(_T);
_local3.game_loader = this;
_local3.close_btn.onRelease = function () {
this._parent.game_loader.game_swf._visible = true;
this._parent.removeMovieClip();
};
_local3.move_btn.onPress = function () {
this._parent.startDrag();
};
_local3.move_btn.onRelease = (_local3.move_btn.onReleaseOutside = function () {
this._parent.stopDrag();
});
_local3.title_txt.text = __i18n("title_" + _T);
_local3.info_txt.text = "";
return(_local3);
}
function centerIt(_mc) {
_mc._x = (Stage.width / 2) - (_mc._width / 2);
_mc._y = (Stage.height / 2) - (_mc._height / 2);
}
static function display_info(_S) {
_root.info_txt.text = (_S + newline) + _root.info_txt.text;
}
static var GAME_PATH = "/show_me_game/";
static var GAME_TIME_PATH = "/game_time_save/";
static var GAME_SCORE_PATH = "/game_score_save/";
static var GAME_AUTH_PATH = "/user_game_authorization/";
static var GAME_SCORE_TABLE_PATH = "/game_score_table/";
static var GAME_REGISTER_PATH = "/register/";
static var GAME_CHALLENGE_PATH = "/challenge/";
static var GAME_CULTURE_PATH = "/swf/translation/";
}
Symbol 145 MovieClip [__Packages.User] Frame 0
class User
{
var is_auth, user_id, user_name, rank_points, rank_position;
function User () {
GameLoader.display_info("[User] - constructor");
}
function getIsAuth() {
return(is_auth);
}
function getUserId() {
return(user_id);
}
function setUserId(_N) {
user_id = _N;
}
function getUserName() {
return(user_name);
}
function setUserName(_N) {
user_name = _N;
}
function getRankPoints() {
return(rank_points);
}
function setRankPoints(_N) {
rank_points = _N;
}
function getRankPosition() {
return(rank_position);
}
function setRankPosition(_N) {
rank_position = _N;
}
function ifAuth() {
return(true);
}
function setUserRank(_rank_type) {
}
}
Symbol 146 MovieClip [__Packages.MD5] Frame 0
class MD5
{
function MD5 () {
}
static function getHash(str) {
var _local6 = str2blks_MD5(str);
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local10;
var _local9;
var _local8;
var _local7;
var _local5 = 0;
while (_local5 < _local6.length) {
_local10 = _local4;
_local9 = _local3;
_local8 = _local2;
_local7 = _local1;
_local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 0], 7, -680876936);
_local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 1], 12, -389564586);
_local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 2], 17, 606105819);
_local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 3], 22, -1044525330);
_local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 4], 7, -176418897);
_local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 5], 12, 1200080426);
_local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 6], 17, -1473231341);
_local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 7], 22, -45705983);
_local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 8], 7, 1770035416);
_local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 9], 12, -1958414417);
_local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 10], 17, -42063);
_local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 11], 22, -1990404162);
_local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 12], 7, 1804603682);
_local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 13], 12, -40341101);
_local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 14], 17, -1502002290);
_local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 15], 22, 1236535329);
_local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 1], 5, -165796510);
_local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 6], 9, -1069501632);
_local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 11], 14, 643717713);
_local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 0], 20, -373897302);
_local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 5], 5, -701558691);
_local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 10], 9, 38016083);
_local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 15], 14, -660478335);
_local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 4], 20, -405537848);
_local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 9], 5, 568446438);
_local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 14], 9, -1019803690);
_local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 3], 14, -187363961);
_local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 8], 20, 1163531501);
_local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 13], 5, -1444681467);
_local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 2], 9, -51403784);
_local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 7], 14, 1735328473);
_local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 12], 20, -1926607734);
_local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 5], 4, -378558);
_local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 8], 11, -2022574463);
_local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 11], 16, 1839030562);
_local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 14], 23, -35309556);
_local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 1], 4, -1530992060);
_local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 4], 11, 1272893353);
_local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 7], 16, -155497632);
_local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 10], 23, -1094730640);
_local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 13], 4, 681279174);
_local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 0], 11, -358537222);
_local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 3], 16, -722521979);
_local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 6], 23, 76029189);
_local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 9], 4, -640364487);
_local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 12], 11, -421815835);
_local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 15], 16, 530742520);
_local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 2], 23, -995338651);
_local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 0], 6, -198630844);
_local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 7], 10, 1126891415);
_local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 14], 15, -1416354905);
_local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 5], 21, -57434055);
_local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 12], 6, 1700485571);
_local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 3], 10, -1894986606);
_local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 10], 15, -1051523);
_local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 1], 21, -2054922799);
_local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 8], 6, 1873313359);
_local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 15], 10, -30611744);
_local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 6], 15, -1560198380);
_local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 13], 21, 1309151649);
_local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 4], 6, -145523070);
_local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 11], 10, -1120210379);
_local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 2], 15, 718787259);
_local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 9], 21, -343485551);
_local4 = addme(_local4, _local10);
_local3 = addme(_local3, _local9);
_local2 = addme(_local2, _local8);
_local1 = addme(_local1, _local7);
_local5 = _local5 + 16;
}
return(((rhex(_local4) + rhex(_local3)) + rhex(_local2)) + rhex(_local1));
}
static function rhex(num) {
var _local3 = "";
var _local1 = 0;
while (_local1 <= 3) {
_local3 = _local3 + (hex_chr.charAt(bitAND(num >> ((_local1 * 8) + 4), 15)) + hex_chr.charAt(bitAND(num >> (_local1 * 8), 15)));
_local1++;
}
return(_local3);
}
static function str2blks_MD5(str) {
var _local4 = ((str.length + 8) >> 6) + 1;
var _local2 = new Array(_local4 * 16);
var _local1;
_local1 = 0;
while (_local1 < (_local4 * 16)) {
_local2[_local1] = 0;
_local1++;
}
_local1 = 0;
while (_local1 < str.length) {
_local2[_local1 >> 2] = _local2[_local1 >> 2] | (str.charCodeAt(_local1) << ((_local1 % 4) * 8));
_local1++;
}
_local2[_local1 >> 2] = _local2[_local1 >> 2] | (128 << ((_local1 % 4) * 8));
_local2[(_local4 * 16) - 2] = str.length * 8;
return(_local2);
}
static function addme(x, y) {
var _local1 = bitAND(x, 65535) + bitAND(y, 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | bitAND(_local1, 65535));
}
static function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
static function ff(a, b, c, d, x, s, t) {
return(cmn(bitAND(b, c) | bitAND(~b, d), a, b, x, s, t));
}
static function gg(a, b, c, d, x, s, t) {
return(cmn(bitAND(b, d) | bitAND(c, ~d), a, b, x, s, t));
}
static function hh(a, b, c, d, x, s, t) {
return(cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function ii(a, b, c, d, x, s, t) {
return(cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bitAND(a, b) {
if ((a < 0) && (b < 0)) {
var _local3 = (a & 1) & (b & 1);
var _local4 = (a >>> 1) & (b >>> 1);
return((_local4 << 1) | _local3);
}
return(a & b);
}
static var hex_chr = "0123456789abcdef";
}
Symbol 147 MovieClip [__Packages.CheckUrl] Frame 0
class CheckUrl
{
function CheckUrl () {
}
static function checkThisUrl(_curl, _mc, _frame) {
var _local7 = "www.";
var _local11 = "http://";
var _local2 = false;
var _local3 = _curl;
var _local8 = 0;
var _local9 = new String();
var _local10 = new String();
var _local1 = 0;
while (_local1 < urls.length) {
if (_local3.indexOf(("http://" + urls[_local1]) + "/") != -1) {
_local2 = true;
} else if (_local3.indexOf(("." + urls[_local1]) + "/") != -1) {
_local2 = true;
}
_local1++;
}
if (!_local2) {
_mc.gotoAndStop(_frame);
_mc._alpha = 0;
delete _mc.onEnterFrame;
var _local6 = _mc.createEmptyMovieClip("error_mc", 63033);
var _local4 = _local6.createTextField("my_txt", 1, 0, 0, 250, 190);
_local4.wordWrap = true;
_local4.html = true;
_local4.htmlText = "This copy of the game is illegal.\n\nGame came from <b><a href='http://www.gameonade.com'>www.GameOnade.Com</a></b>.\nNobody should copy this version of game.\n\nCheck on <a href='http://www.gameonade.com'>www.GameOnade.Com</a> - there could be a special copy which is allowed to spread on the other sites.";
centerIt(_local6);
}
}
static function centerIt(_mc) {
_mc._x = (Stage.width / 2) - (_mc._width / 2);
_mc._y = (Stage.height / 2) - (_mc._height / 2);
}
static var urls = new Array("gameonade.pl", "gameonade.com", "gameonade.eu");
}
Symbol 148 MovieClip [__Packages.GameTimer] Frame 0
class GameTimer
{
static var startTime;
function GameTimer () {
}
static function start() {
GameLoader.display_info("{GameTimer}[start]");
if (stopped) {
stopped = false;
startTime = getTimer();
}
}
static function stop() {
if (!stopped) {
stopped = true;
if (startTime) {
gameTime = gameTime + (getTimer() - startTime);
}
}
GameLoader.display_info(("{GameTimer}[stop] ( " + gameTime) + " )");
}
static function reset() {
GameLoader.display_info("{GameTimer}[reset]");
gameTime = 0;
}
static function getGameTime() {
return(gameTime);
}
static function isStopped() {
return(stopped);
}
static function setStopped(ns) {
stopped = ns;
}
static var gameTime = 0;
static var stopped = true;
}
Symbol 149 MovieClip [__Packages.FPSCounter] Frame 0
class FPSCounter
{
static var lastFPS;
function FPSCounter () {
}
static function startInvisible(cont, depth) {
var _local2 = cont.createEmptyMovieClip("fpsCounter", depth);
_local2.lasttime = getTimer();
_local2.onEnterFrame = function () {
FPSCounter.t = getTimer();
if ((FPSCounter.t - this.lastTime) > 0) {
FPSCounter.framerate = Math.round((1000 / (FPSCounter.t - this.lastTime)) * 10) / 10;
FPSCounter.lastFPS = FPSCounter.framerate;
}
this.lastTime = FPSCounter.t;
};
}
static function stop(cont) {
var _local1 = cont.fpsCounter;
_local1.removeMovieClip();
}
static function getLastFPS() {
return(Math.round(lastFPS));
}
}
Symbol 150 MovieClip [__Packages.Xor] Frame 0
class Xor
{
function Xor () {
}
static function endecodeNumber(num, k) {
return(num ^ k);
}
}
Symbol 151 MovieClip [__Packages.FizzyAPIas2] Frame 0
class FizzyAPIas2
{
static var instance, bridge, userGameData, userDetails;
var game, callbacks;
function FizzyAPIas2 (mc) {
game = mc;
game._lockroot = true;
intervalId = setInterval(this, "interfaceInterval", 100);
callbacks = new Object();
}
static function initialize(mc, initCallback, callbackScope) {
com.gskinner.utils.SWFBridgeAS2.prototype.changeID = function (p_id) {
this.lc.close();
this._connected = false;
this.baseID = p_id.split(":").join("");
this.host = this.lc.connect(this.baseID + "_host");
this.myID = this.baseID + (this.host ? "_host" : "_guest");
this.extID = this.baseID + (this.host ? "_guest" : "_host");
if (!this.host) {
this.lc.connect(this.myID);
this.lc.send(this.extID, "com_gskinner_utils_SWFBridge_init");
}
};
if (instance == null) {
instance = new FizzyAPIas2(mc);
instance.setCallback("init", initCallback, callbackScope);
}
}
static function clear() {
var _local3 = bridge;
delete instance;
initialized = false;
instance = null;
bridge = null;
for (var _local2 in _global) {
delete _global[_local2];
}
return(_local3);
}
static function setPlayListener(callback, callbackScope) {
if (!initialized) {
return(undefined);
}
if (callback == null) {
callback = function () {
FizzyAPIas2.reloadGame();
};
}
instance.setCallback("playGame", callback, callbackScope);
}
static function setGameDataListener(onData, thisObj) {
instance.setCallback("gameDataResult", onData, thisObj);
}
static function saveGameData(data, dataName) {
if (!initialized) {
if (System.capabilities.playerType == "External") {
instance.executeCallback("gameDataResult", true);
}
return(undefined);
}
if ((dataName == undefined) || (dataName == null)) {
dataName = "data";
}
userGameData[dataName] = data;
bridge.send("saveGameData", dataName, data);
}
static function getGameData(dataName) {
if (!initialized) {
return(null);
}
if ((dataName == undefined) || (dataName == null)) {
dataName = "data";
}
return(((userGameData[dataName] != undefined) ? (userGameData[dataName]) : null));
}
static function getUserDetails() {
if (!initialized) {
return(null);
}
return(userDetails);
}
static function getUserId() {
if (!initialized) {
return(0);
}
return(userDetails.id);
}
static function getUsername() {
if (!initialized) {
return("");
}
return(userDetails.username);
}
static function getAvatar() {
if (!initialized) {
return("");
}
return(userDetails.avatar);
}
static function log(arg) {
}
static function getGamePath() {
if (!initialized) {
return("");
}
var _local2 = _root._url.lastIndexOf("/");
return(_root._url.substr(0, _local2 + 1));
}
static function isDemo() {
if (!initialized) {
return(System.capabilities.playerType != "External");
}
if (demoCodes == null) {
return(true);
}
if (demoCodes.length != 2) {
return(true);
}
var _local1 = instance.getRecursive(demoCodes[0]);
var _local2 = instance.getRecursive(demoCodes[1]);
return(Boolean(((_local1 != _local2) || (_local1 <= 0)) || (_local2 <= 0)));
}
static function reloadGame() {
if (!initialized) {
return(undefined);
}
var _local1 = clear();
_local1.send("reloadGame");
_local1.close();
}
static function openDeveloperPage() {
if (!initialized) {
return(undefined);
}
bridge.send("openDeveloperPage");
}
static function openMoregamesPage() {
if (!initialized) {
return(undefined);
}
bridge.send("openMoregamesPage");
}
static function openGamePage() {
if (!initialized) {
return(undefined);
}
bridge.send("openGamePage");
}
static function submitScore(score, callback, callbackScope) {
if (!initialized) {
if (System.capabilities.playerType == "External") {
if ((callback != null) && (callbackScope != null)) {
callback.apply(callbackScope, [true]);
} else if (callback != null) {
callback(true);
}
return(undefined);
}
return(undefined);
}
instance.setCallback("submitResult", callback, callbackScope);
bridge.send("submitScore", score);
}
static function showCredits() {
if (!initialized) {
return(undefined);
}
bridge.send("showCredits");
}
static function showGameover(score) {
if (!initialized) {
return(undefined);
}
bridge.send("showGameover", score);
}
function interfaceInterval() {
if (System.capabilities.playerType == "External") {
bridge.close();
clearInterval(intervalId);
intervalId = 0;
executeCallback("init");
return(undefined);
}
if (game.getBytesLoaded() < game.getBytesTotal()) {
return(undefined);
}
if (bridge == null) {
clearInterval(intervalId);
intervalId = setInterval(this, "interfaceInterval", 2000);
bridge = new com.gskinner.utils.SWFBridgeAS2("fizzyBridge_" + getGameName(), instance);
return(undefined);
}
bridge.close();
if ((game.__fizzyUI_pirate__ != null) && (game.__fizzyUI_pirate__ != undefined)) {
var _local2 = game.getNextHighestDepth() - 1;
if (game.__fizzyUI_pirate__.getDepth() < _local2) {
var _local5 = game.getInstanceAtDepth(_local2);
_local5.swapDepths(game.__fizzyUI_pirate__);
}
} else {
var _local6 = game.createEmptyMovieClip("__fizzyUI_pirate__", game.getNextHighestDepth());
var _local3 = new MovieClipLoader();
var _local4 = new Sound();
_local4.setVolume(0);
_local3.loadClip("http://www.fizzy.com/swf/gls/pirate.swf", _local6);
}
}
function getGameName() {
var _local2 = _root._url.lastIndexOf("/") + 1;
var _local3 = _root._url.lastIndexOf(".swf");
return(_root._url.substr(_local2, _local3 - _local2));
}
function getRecursive(val) {
if (val == null) {
return(-1);
}
if (typeof(val.next) == "number") {
return(val.next ^ val.mask);
}
return(getRecursive(val.next) ^ val.mask);
}
function setCallback(type, cb, scope) {
callbacks[type] = {procedure:cb, scope:scope};
}
function executeCallback() {
var _local4 = arguments.slice(0);
var _local6 = String(_local4.shift());
var _local5 = callbacks[_local6].scope;
var _local3 = callbacks[_local6].procedure;
if ((_local5 != null) && (_local3 != null)) {
if (_local4.length == 1) {
_local3.apply(_local5, _local4);
} else {
_local3.apply(_local5);
}
} else if (_local3 != null) {
if (_local4.length == 1) {
_local3(_local4[0]);
} else {
_local3();
}
}
}
function initCompleted(data) {
initialized = true;
setPlayListener(null);
userGameData = data.gameData;
userDetails = data.userDetails;
executeCallback("init");
}
function setGameVars(data) {
if ((intervalId == undefined) || (bridge.id != ("fizzyBridge_" + getGameName()))) {
return(undefined);
}
clearInterval(intervalId);
intervalId = undefined;
demoCodes = data.demo;
bridge.changeID(data.newId);
}
static var initialized = false;
static var demoCodes = null;
var intervalId = undefined;
}
Symbol 152 MovieClip [__Packages.com.gskinner.utils.SWFBridgeAS2] Frame 0
class com.gskinner.utils.SWFBridgeAS2
{
var baseID, lc, clientObj, host, myID, extID, dispatchEvent;
function SWFBridgeAS2 (p_id, p_clientObj) {
mx.events.EventDispatcher.initialize(this);
baseID = p_id.split(":").join("");
lc = new LocalConnection();
var _this = this;
lc.com_gskinner_utils_SWFBridge_init = function () {
_this.com_gskinner_utils_SWFBridge_init();
};
lc.com_gskinner_utils_SWFBridge_receive = function () {
_this.com_gskinner_utils_SWFBridge_receive.apply(_this, arguments);
};
clientObj = p_clientObj;
host = lc.connect(baseID + "_host");
myID = baseID + (host ? "_host" : "_guest");
extID = baseID + (host ? "_guest" : "_host");
if (!host) {
lc.connect(myID);
lc.send(extID, "com_gskinner_utils_SWFBridge_init");
}
}
function close() {
lc.close();
delete clientObj;
delete lc;
_connected = false;
}
function send() {
if (!_connected) {
return(undefined);
}
var _local3 = arguments.slice(0);
_local3.unshift("com_gskinner_utils_SWFBridge_receive");
_local3.unshift(extID);
lc.send.apply(lc, _local3);
}
function get id() {
return(baseID);
}
function get connected() {
return(_connected);
}
function com_gskinner_utils_SWFBridge_receive() {
var _local3 = arguments.slice(0);
var _local4 = String(_local3.shift());
clientObj[_local4].apply(clientObj, _local3);
}
function com_gskinner_utils_SWFBridge_init() {
if (host) {
lc.send(extID, "com_gskinner_utils_SWFBridge_init");
}
_connected = true;
dispatchEvent({type:"connect"});
}
var _connected = false;
}
Symbol 153 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 154 MovieClip [__Packages.FWAd_AS2] Frame 0
class FWAd_AS2 extends MovieClip
{
static var xx, yy, wid, hei, id, ifIsLoadingAdShowStartBtn, noShowLogo, noShowForbidden, onClickStartBtn, fwAd, frameworkLoader, lc, loadFrameworkSuccess, loadFrameworkFailed, frameworkInitFinished, loadGameCompleted, restLoadFrameworkTimes, xml, newsLoader, newsMcl, news_lc, hasLoadOnce, lc_sendName, lc_connName, canNotShowAd, onLoadXML;
var adValues, _FWAd, createEmptyMovieClip, getNextHighestDepth, mcl, loadingBar, loadingBar_bar, onEnterFrame, removeMovieClip, _parent, swapDepths, _visible, _x;
function FWAd_AS2 () {
super();
xx = adValues.x;
yy = adValues.y;
wid = adValues.wid;
hei = adValues.hei;
id = adValues.id;
adType = adValues.adType;
ifIsLoadingAdShowStartBtn = adValues.ifIsLoadingAdShowStartBtn;
noShowLogo = adValues.noShowLogo;
noShowForbidden = adValues.noShowForbidden;
if (adValues.onClickCloseBtn) {
onClickStartBtn = adValues.onClickCloseBtn;
} else {
onClickStartBtn = adValues.onClickStartBtn;
}
fwAd = this;
_FWAd = FWAd_AS2;
frameworkLoader = null;
lc = null;
loadFrameworkSuccess = false;
loadFrameworkFailed = false;
frameworkInitFinished = false;
System.security.allowDomain(swfDomain);
System.security.allowInsecureDomain(swfDomain);
fscommand ("showMenu", "false");
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
fscommand ("trapallkeys", "true");
loadGameCompleted = _root.getBytesLoaded() == _root.getBytesTotal();
frameworkLoader = createEmptyMovieClip("frameworkLoader", getNextHighestDepth());
frameworkLoader.createEmptyMovieClip("content", frameworkLoader.getNextHighestDepth());
mcl = new MovieClipLoader();
mcl.onLoadInit = function () {
FWAd_AS2.fwAd.loadFrameworkComplete();
};
mcl.onLoadError = function () {
FWAd_AS2.fwAd.loadFrameworkError();
};
restLoadFrameworkTimes = loadFrameworkTimes;
loadFramework();
var txt_sp = createEmptyMovieClip("txt_sp", getNextHighestDepth());
var DropShadowFilterClassName = "flash.filters.DropShadowFilter";
var DropShadowFilterClass = eval (DropShadowFilterClassName);
if (DropShadowFilterClass) {
txt_sp.filters = [new DropShadowFilterClass(0, 0, 0, 1, 2, 2, 4)];
}
var loadingBar_hei = 8;
var loadingBar_x = 10;
var loadingBar_wid = (wid - (2 * loadingBar_x));
loadingBar = createEmptyMovieClip("loadingBar", getNextHighestDepth());
loadingBar._x = loadingBar_x;
loadingBar._y = (hei - loadingBar_hei) - 6;
var loadingBar_bottom = loadingBar.createEmptyMovieClip("loadingBar_bottom", loadingBar.getNextHighestDepth());
loadingBar_bar = loadingBar.createEmptyMovieClip("loadingBar_bar", loadingBar.getNextHighestDepth());
var loadingBar_line = loadingBar.createEmptyMovieClip("loadingBar_line", loadingBar.getNextHighestDepth());
loadingBar_bottom.clear();
loadingBar_bottom.beginFill(3355443);
loadingBar_bottom.moveTo(0, 0);
loadingBar_bottom.lineTo(loadingBar_wid, 0);
loadingBar_bottom.lineTo(loadingBar_wid, loadingBar_hei);
loadingBar_bottom.lineTo(0, loadingBar_hei);
loadingBar_bottom.lineTo(0, 0);
loadingBar_bottom.endFill();
loadingBar_bar.clear();
var MatrixClassName = "flash.geom.Matrix";
var MatrixClass = eval (MatrixClassName);
if (MatrixClass) {
loadingBar_bar.beginGradientFill("linear", [16777215, 16750950], [100, 100], [63, 255], new MatrixClass(0.006, 0, 0, 1, 0, 0));
} else {
loadingBar_bar.beginFill(16750950);
}
loadingBar_bar._rotation = 90;
loadingBar_bar.moveTo(0, -loadingBar_wid);
loadingBar_bar.lineTo(loadingBar_hei, -loadingBar_wid);
loadingBar_bar.lineTo(loadingBar_hei, 0);
loadingBar_bar.lineTo(0, 0);
loadingBar_bar.lineTo(0, -loadingBar_wid);
loadingBar_bar.endFill();
loadingBar_line.clear();
loadingBar_line.lineStyle(1, 6710886);
loadingBar_line.moveTo(0, 0);
loadingBar_line.lineTo(loadingBar_wid, 0);
loadingBar_line.lineTo(loadingBar_wid, loadingBar_hei);
loadingBar_line.lineTo(0, loadingBar_hei);
loadingBar_line.lineTo(0, 0);
loadingBar_line.endFill();
loadingBar_bar._width = 1;
loadingBar_bar._xscale = 100;
switch (adType) {
case AD_TYPE_LOADING :
break;
default :
loadingBar._visible = false;
}
if (loadGameCompleted) {
loadingBar._visible = false;
} else {
loadingBar.onEnterFrame = function () {
FWAd_AS2.fwAd.loadGameProgress();
};
}
}
static function getParam(paramName) {
if (xml) {
return(String(xml.firstChild.attributes[paramName]));
}
return(null);
}
static function showNews(_newsValues) {
clearInterval(checkNewsFirstInitIntervalId);
newsValues.wid = wid;
for (var _local3 in _newsValues) {
newsValues[_local3] = _newsValues[_local3];
}
if (newsValues.id) {
} else {
newsValues.id = id + "_news";
}
var _local4 = newsValues.container || _root;
if (_local4) {
newsLoader = _local4.createEmptyMovieClip("newsLoader", _local4.getNextHighestDepth());
newsLoader.createEmptyMovieClip("content", newsLoader.getNextHighestDepth());
newsLoader.x = newsValues.x;
newsLoader.y = newsValues.y;
newsMcl = new MovieClipLoader();
newsMcl.onLoadInit = function () {
FWAd_AS2.loadNewsComplete();
};
newsMcl.loadClip(newsSWFPath, newsLoader.content);
}
news_lc = new LocalConnection();
}
static function loadNewsComplete() {
clearInterval(checkNewsFirstInitIntervalId);
checkNewsFirstInitIntervalId = setInterval(checkNewsFirstInit, 100);
}
static function checkNewsFirstInit() {
var _local1 = Math.round(newsLoader.getBounds(newsLoader).xMin / 10);
if (_local1 < -1000) {
clearInterval(checkNewsFirstInitIntervalId);
news_lc.send("_News" + _local1, "that2this", "newsValues", newsValues);
}
}
static function showAd(_adValues) {
var _local6 = {x:xx, y:yy, wid:wid, hei:hei, id:id, adType:AD_TYPE_CONTAINER};
for (var _local3 in _adValues) {
_local6[_local3] = _adValues[_local3];
}
var _local4 = _local6.container || _root;
if (_local4) {
if (_local6.adType == AD_TYPE_LOADING) {
if (hasLoadOnce) {
return(undefined);
}
hasLoadOnce = true;
}
} else {
return(undefined);
}
_local4.attachMovie("FWAd_AS2", "fwAd", _local4.getNextHighestDepth(), {adValues:_local6});
}
function loadFramework() {
mcl.loadClip(frameworkSWFPath, frameworkLoader.content);
_global.clearTimeout(timeoutId);
timeoutId = _global.setTimeout(loadFrameworkTimeout, loadFrameworkTimeoutTime * 1000);
}
function loadGameProgress() {
switch (adType) {
case AD_TYPE_LOADING :
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
loadingBar_bar._xscale = 100;
loadingBar_bar._yscale = _local3 * 100;
if (_local3 >= 1) {
loadingBar.onEnterFrame = null;
loadGameComplete();
}
break;
default :
loadingBar.onEnterFrame = null;
}
}
function loadGameComplete() {
loadGameCompleted = true;
loadingBar._visible = false;
checkLoadGameCompleteAndTryStart();
if (frameworkInitFinished) {
lc.send(lc_sendName, "that2this", "loadGameCompleted");
}
}
function loadFrameworkComplete() {
onEnterFrame = checkFrameworkFirstInit;
}
function checkFrameworkFirstInit() {
var _local4 = Math.round(frameworkLoader.getBounds(frameworkLoader).xMin / 10);
if (_local4 < -1000) {
onEnterFrame = null;
lc_connName = "_FWAd" + _local4;
lc_sendName = "_Framework" + _local4;
lc = new LocalConnection();
lc.allowDomain = function () {
return(true);
};
lc.allowInsecureDomain = function () {
return(true);
};
lc.onStatus = function () {
var _local2 = arguments[0];
if (!(_local2.level === "error")) {
}
};
lc.connect(lc_connName);
lc.that2this = function () {
FWAd_AS2.fwAd.Framework2FWAd.apply(FWAd_AS2.fwAd, arguments);
};
_global.clearTimeout(timeoutId);
loadFrameworkSuccess = true;
checkLoadGameCompleteAndTryStart();
}
}
function loadFrameworkTimeout() {
fwAd.loadFrameworkError();
}
function loadFrameworkError() {
_global.clearTimeout(timeoutId);
if ((--restLoadFrameworkTimes) < 0) {
loadFrameworkFailed = true;
checkLoadGameCompleteAndTryStart();
} else {
mcl.uploadClip();
loadFramework();
}
}
function Framework2FWAd() {
switch (arguments[0]) {
case "initFinished" :
frameworkInitFinished = true;
lc.send(lc_sendName, "that2this", "confirmInitFinished", getFWAdValuesByNameArr(arguments.slice(1)));
break;
case "clickStartBtn" :
clickStartBtn();
break;
case "canNotShowAd" :
case "noId" :
canNotShowAd = true;
checkLoadGameCompleteAndTryStart();
break;
case "xml" :
xml = new XML(arguments[1]);
onLoadXML();
}
}
function getFWAdValuesByNameArr(nameArr) {
var _local3 = new Object();
for (var _local4 in nameArr) {
var _local1 = nameArr[_local4];
_local3[_local1] = FWAd_AS2[_local1];
}
return(_local3);
}
function checkLoadGameCompleteAndTryStart() {
if (loadGameCompleted) {
if (loadFrameworkFailed) {
if (ifLoadFrameworkErrorCanPlayGame || (checkIsOurDomain())) {
clickStartBtn();
}
} else if (canNotShowAd) {
if (checkIsOurDomain()) {
clickStartBtn();
}
}
}
}
function checkIsOurDomain() {
if (_root._url) {
var _local2 = _root._url.toLowerCase();
return((((_local2.indexOf(".youyouwin.com/") > 0) || (_local2.indexOf(".7k7k.com/") > 0)) || (_local2.indexOf(".flash8.net/") > 0)) || (_local2.indexOf("file:///") == 0));
}
return(true);
}
function clickStartBtn() {
if (onClickStartBtn != null) {
onClickStartBtn();
onClickStartBtn = null;
}
removeMovieClip();
var _local4 = new Array();
for (var _local5 in _parent) {
var _local3 = _parent[_local5];
if (_local3 instanceof MovieClip) {
var _local2 = _local3.getDepth();
if (_local2 >= 0) {
_local4[_local2] = true;
}
}
}
var _local2 = 65535;
while (_local2 >= 0) {
if (_local4[_local2]) {
} else {
swapDepths(_local2);
break;
}
_local2--;
}
removeMovieClip();
_visible = false;
_x = -10000;
}
function closeAd() {
clickStartBtn();
}
static var ifLoadFrameworkErrorCanPlayGame = true;
static var loadFrameworkTimeoutTime = 8;
static var loadFrameworkTimes = 2;
static var ifAdFailCanPlayGame = true;
static var ifAddCallBackErrorCanPlayGame = false;
static var swfDomain = "flashcfg.youyouwin.com";
static var swfFolder = ("http://" + swfDomain) + "/";
static var frameworkSWFPath = swfFolder + "Framework.swf";
static var newsSWFPath = swfFolder + "News.swf";
static var AD_TYPE_LOADING = "loading";
static var AD_TYPE_CONTAINER = "container";
static var adType = AD_TYPE_LOADING;
static var newsValues = {x:0, y:0};
static var checkNewsFirstInitIntervalId = -1;
var timeoutId = -1;
}
Symbol 155 MovieClip [__Packages.WebsitesFilter] Frame 0
class WebsitesFilter
{
function WebsitesFilter () {
}
static function checkWebsite() {
currUrl = _url.toLowerCase();
websites_ads_allowed[-1] = 1;
var _local1 = 0;
while (_local1 < websites_arr.length) {
if (currUrl.indexOf(websites_arr[_local1]) > 0) {
current_website = _local1;
}
_local1++;
}
}
static function setWebsite(_website) {
current_website = _website;
}
static function adsAllowed() {
return(((websites_ads_allowed[current_website] != undefined) ? (websites_ads_allowed[current_website]) : true));
}
static function isOn(_n) {
return((((_n == current_website) || ((_n == WEB_POSZKOLE) && (current_website == WEB_REDEFINE))) ? true : false));
}
static function get isOnFizzy() {
if (fizzy_special) {
return("fizzy");
}
return("");
}
static function get isOnYouyouwin() {
if (youyouwin_special) {
return("youyouwin");
}
return("");
}
static var WEB_SPIELAFFE = 0;
static var WEB_ARMORGAMES = 1;
static var WEB_DAILYGAMES = 2;
static var WEB_FREEONLINEGAMES = 3;
static var WEB_KONGREGATE = 4;
static var WEB_NEWGROUNDS = 5;
static var WEB_MINDJOLT = 6;
static var WEB_POSZKOLE = 7;
static var WEB_JUEGOSDIAROS = 8;
static var WEB_FREEADDICTINGGAMES = 9;
static var WEB_FLASHGAMES247 = 10;
static var WEB_NEODELIGHT = 11;
static var WEB_GAMESQUAT = 12;
static var WEB_ONLINEFLASHGAMESORG = 13;
static var WEB_REDEFINE = 14;
static var WEB_7K7K = 15;
static var WEB_Y8 = 16;
static var currUrl = "";
static var current_website = -1;
static var websites_arr = new Array("spielaffe.de", "armorgames.com", "dailygames.com", "freeonlinegames.com", "kongregate.com", "newgrounds.com", "mindjolt.com", "poszkole.pl", "juegosdiarios.com", "freeaddictinggames.com", "flashgames247.com", "neodelight.com", "gamesquat.com", "onlineflashgames.org", "redefine.pl", "7k7k.com", "y8.com");
static var websites_ads_allowed = new Array(0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0);
static var fizzy_special = false;
static var youyouwin_special = false;
}
Symbol 65 MovieClip [ubytek] Frame 58
this.removeMovieClip();
stop();
Symbol 76 MovieClip [przeciwnik] Frame 1
stan = "stoi";
Symbol 76 MovieClip [przeciwnik] Frame 35
czestChw++;
if (czestChw < czest) {
gotoAndPlay ("normalnie");
}
Symbol 76 MovieClip [przeciwnik] Frame 36
stan = "nabiera";
Symbol 76 MovieClip [przeciwnik] Frame 58
stan = "rzuca";
Symbol 76 MovieClip [przeciwnik] Frame 70
_root.rzut.start(0, 1);
Symbol 76 MovieClip [przeciwnik] Frame 73
_root.rzucKulke(this._name, ileprzes);
Symbol 76 MovieClip [przeciwnik] Frame 75
czestChw = 0;
czest = _root.czestotliwosc();
Symbol 82 MovieClip Frame 1
Instance of Symbol 81 MovieClip "l" in Symbol 82 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new Object();
point.x = this._x;
point.y = this._y;
this.localToGlobal(point);
_root.zmiennaX = point.x;
_root.zmiennaY = point.y;
}
Symbol 82 MovieClip Frame 17
if (_root.stanLudzika == "chodzi") {
gotoAndPlay (1);
}
Symbol 82 MovieClip Frame 18
Symbol 82 MovieClip Frame 55
_root.stanLudzika = "mryga";
play();
Symbol 82 MovieClip Frame 56
Symbol 82 MovieClip Frame 77
_root.stanLudzika = "chodzi";
gotoAndStop (1);
Symbol 89 MovieClip [wygaszenie] Frame 10
_root.czyszczenie();
_root.startBT._visible = 0;
_root.startNP.text = "";
_root.koniecNP.text = "";
_root.tytulNP.text = "";
_root.koniecBT._visible = 0;
_root.zyciaaa._visible = 0;
_root.opis._visible = 0;
Symbol 89 MovieClip [wygaszenie] Frame 30
_root.play();
this.removeMovieClip();
Symbol 93 MovieClip Frame 1
stop();
Symbol 100 Button
on (release) {
_root.attachMovie("wygaszenie", "wygaszacz", 3);
}
Symbol 101 MovieClip Frame 1
more_btn.onRelease = function () {
_root.moreGames();
};
Symbol 103 MovieClip Frame 1
download_btn.onRelease = function () {
_root.downloadGame();
};
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 108 Button
on (release) {
_root.dzw();
}
Symbol 113 MovieClip Frame 1
stop();
this.onRelease = function () {
getURL (GameOnAde.SITE_URL, "_blank");
};
Symbol 113 MovieClip Frame 2
stop();
this.onRelease = function () {
getURL (GameOnAde.SITE_URL, "_blank");
};
Symbol 115 Button
on (release) {
_root.koniec();
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 2
stop();
Symbol 132 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 133 Button
on (release) {
_root.saveData();
}