Frame 1
_root.Musiikki = new Sound(_root);
_global.allsound = new Sound(_root);
whoosh = new Sound(this);
whoosh.attachSound("swoosh");
whoosh.start(0, 1);
_global.dummy = "Kopd";
if (_global.musiikkia != "Juujuu") {
_root.Musiikki.attachSound("177730_Reaching_The_Sky");
_root.Musiikki.start(0, 999);
_global.musiikkia = "Juujuu";
}
ollaankodeadwhalessa = false;
haiskoreteksti = "Submit to highscores";
virhenappi._visible = false;
if ((_url.substring(0, 20) == "http://deadwhale.com") || (_url.substring(0, 24) == "http://www.deadwhale.com")) {
ollaankodeadwhalessa = true;
}
_lockroot = true;
frosmosplashi._alpha = 0;
aloitusaika = getTimer();
stop();
if (_url.indexOf("addictinggames.com/") != -1) {
play();
} else {
virhenappi._visible = true;
sitelocktext = "Oops...\n\nThis version of Bubble Spinner is sitelocked to addictinggames.com. The public version can be found at DeadWhale.com. ";
}
Frame 3
_global.gameon = false;
if (ollaankodeadwhalessa) {
etusivubuttoni._visible = false;
}
pyorii.onEnterFrame = function () {
this._rotation = this._rotation + 1;
};
stop();
Frame 4
function setyf(xx, yy) {
xx = xx * 1;
yy = yy * 1;
return((0 * xx) + (0.866025403784439 * yy));
}
function setxf(xx, yy) {
xx = xx * 1;
yy = yy * 1;
return((1 * xx) + (0.5 * yy));
}
function gety(xx, yy) {
xx = xx * 1;
yy = yy * 1;
return(((axis1x * yy) - (xx * axis1y)) / ((axis1x * axis2y) - (axis2x * axis1y)));
}
function getx(xx, yy) {
xx = xx * 1;
yy = yy * 1;
return(((xx * axis2y) - (axis2x * yy)) / ((axis1x * axis2y) - (axis2x * axis1y)));
}
function sety(xx, yy) {
xx = xx * 1;
yy = yy * 1;
return((axis1y * xx) + (axis2y * yy));
}
function setx(xx, yy) {
xx = xx * 1;
yy = yy * 1;
return((axis1x * xx) + (axis2x * yy));
}
function asetainfo(tuhlailu) {
i = 1;
while (i < 10) {
if (this["tuhlaus" + i]) {
this["tuhlaus" + i].targetalpha = 0;
this["tuhlaus" + i].targetscale = 0;
}
i++;
}
i = 1;
while (i <= tuhlailu) {
if (!this["tuhlaus" + i]) {
attachMovie("tileydinpommi", "tuhlaus" + i, 789789 + i);
}
this["tuhlaus" + i].targetalpha = 100;
this["tuhlaus" + i].targetscale = 68;
this["tuhlaus" + i]._y = 508.374;
this["tuhlaus" + i]._x = ((10 + (30 * i)) * 0.9) * 0.926;
i++;
}
}
function init() {
i = 0;
while (i <= Erivareja) {
_root["tatavaria" + i] = 1;
i++;
}
kutistuu = false;
pistekerroin = 1;
multiplier = "";
gridspeed = 20;
tuhlailulim = 6;
tuhlailu = 6;
axis1x = 1;
axis1y = 0;
axis2x = 0.5;
axis2y = 0.866025403784439;
asetainfo(6);
palloilmassa = 0;
pallojainklimppi = 0;
seuraavapallo = 1;
seuraavaseuraavapallo = 2;
asetaseuraavapallo();
line_mc._visible = true;
ammuttu = 0;
d = 100;
rowsCurrentlyInGrid = -2;
popattavia = 0;
framerate = 0;
framejalaskettu = 0;
framenalkuaika = 0;
attachMovie("Tausta", "Tausta", 20);
kellonalkuaika = -999999;
kellonkesto = 7000;
Tausta._x = 275;
Tausta._y = 200;
Tausta._visible = false;
palloja_ammuttu = 0;
currentselectedsum = "0 / 10";
_root.oikeapalkki.scorepalkki_red._visible = false;
GridWidth = 5;
GameOver = false;
_global.gameon = false;
gametime = 20000;
levelper6 = "0";
_global.onnitteluja = false;
PointsThrown = 0;
animaationpituus = 9;
kerroin = 0.1;
attachMovie("Lopputiski", "lopputiski", 19);
_root.lopputiski._visible = false;
_root.lopputiski._x = 250.02;
_root.lopputiski._y = 250.02;
_root.infotiski._visible = true;
_root.infotiski.gotoAndPlay(1);
infotiskijulkaistu = getTimer();
gamesinthislevel = 3;
tempPoints = 0;
Points = 0;
_global.lopputulema = Points;
Score = "" + Math.round(tempPoints);
valitunpallonkoko = 105;
valitsemattomankoko = 90;
level = 1;
levelper6 = level + "/6";
if (infotiski.getDepth() != 100000) {
infotiski.swapDepths(100000);
}
if (dwnappi2.getDepth() != 490000) {
dwnappi2.swapDepths(490000);
}
edellinenoikein = 0;
oikein = 0;
_global.lopputulos = "0";
Copiesleft = "" + ((gamesinthislevel + edellinenoikein) - oikein);
hiirenseuraaja._xscale = 10;
hiirenseuraaja._yscale = 10;
hiirenseuraaja._x = 100;
hiirenseuraaja._y = 100;
rotationtime = -10000;
hiirenseuraaja._visible = false;
this.attachMovie("empty", "grid", 0);
this.attachMovie("empty", "shots", 2);
this.attachMovie("empty", "scoreEffects", 1);
scoreEffects._x = (scoreEffects._y = 0);
this.grid._x = GridCenterX;
this.grid._y = GridCenterY;
this.grid._xscale = (this.grid._yscale = 0);
this.grid.targetscale = 100;
this.shots._x = 0;
this.shots._y = 0;
initGrid();
}
function kiinnita(luku, ii, jj, nimi, xv, yv, poistetaanko) {
pallojainklimppi++;
grid.attachMovie("file" + luku, nimi, grid.getNextHighestDepth());
grid[nimi]._xscale = (grid[nimi]._yscale = 100 * kokokerroin);
grid[nimi].muni = ii;
grid[nimi].munj = jj;
grid[nimi].munsisalto = luku;
grid[nimi]._visible = true;
grid[nimi]._x = setxf(jj * tileW, ii * tileH);
grid[nimi]._y = setyf(jj * tileW, ii * tileH);
grid[nimi].gotoAndPlay(1);
grid[nimi]._rotation = -grid._rotation;
xxx = setx(jj * tileW, ii * tileH);
yyy = sety(jj * tileW, ii * tileH);
lenin = Math.sqrt((xxx * xxx) + (yyy * yyy));
xxx = xxx / lenin;
yyy = yyy / lenin;
uusxxx = -yyy;
uusyyy = xxx;
dpdp = (uusxxx * xv) + (uusyyy * yv);
gridspeed = gridspeed + ((7 * (dpdp - (lenin * Math.sin((gridspeed / 180) * 3.141592)))) * Math.pow(1 / (1 + pallojainklimppi), 1));
grid[nimi].solid = true;
grid[nimi].onEnterFrame = function () {
oikeax = setx(this.munj * tileW, this.muni * tileH);
oikeay = sety(this.munj * tileW, this.muni * tileH);
if (!_root.GameOver) {
if ((((oikeax < (_root.leftBound + 50)) || (oikeax > (_root.rightBound - 50))) || (oikeay < (_root.upperBound + 50))) || (oikeay > (_root.lowerBound - 50))) {
if (!this.varo) {
this.attachMovie("varopallo", "varo", this.getNextHighestDepth());
this.varo._alpha = 0;
}
this.varo._alpha = (this.varo._alpha * 0.9) + 6;
this.varo._x = 0;
this.varo._y = 0;
} else if (this.varo) {
if (this.varo._alpha < 5) {
this.varo.removeMovieClip();
} else {
this.varo._alpha = this.varo._alpha * 0.95;
}
}
if ((oikeax < (_root.leftBound + (tileW * 0.4))) || (oikeax > (_root.rightBound - (tileW * 0.4)))) {
_root.GameOver = true;
ThrowError(oikeax + grid._x, oikeay + grid._y);
}
if ((oikeay < (_root.upperBound + (tileH * 0.4))) || (oikeay > (_root.lowerBound - (tileH * 0.4)))) {
_root.GameOver = true;
ThrowError(oikeax + grid._x, oikeay + grid._y);
}
}
};
if (poistetaanko) {
removeBlock(ii, jj);
}
laskeEriVarit();
}
function laskeEriVarit() {
var _local5 = new Array();
var _local4 = new Array();
var _local2 = 0;
var _local3 = 0;
i = 0;
while (i <= Erivareja) {
_root["tatavaria" + i] = 0;
i++;
}
_local5[_local3] = 0;
_local4[_local3] = 0;
BFStunnus++;
while (_local3 <= _local2) {
iii = _local5[_local3];
jjj = _local4[_local3];
_root["tatavaria" + grid[(("t_" + iii) + "_") + jjj].munsisalto]++;
iii = _local5[_local3] - 1;
jjj = _local4[_local3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] + 1;
jjj = _local4[_local3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3];
jjj = _local4[_local3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3];
jjj = _local4[_local3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] - 1;
jjj = _local4[_local3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] + 1;
jjj = _local4[_local3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
_local3++;
}
}
function removeBlock(ii, jj) {
var _local5 = new Array();
var _local4 = new Array();
var _local2 = 0;
var _local3 = 0;
_local5[_local3] = ii;
_local4[_local3] = jj;
BFStunnus++;
id = grid[(("t_" + ii) + "_") + jj].munsisalto;
while (_local3 <= _local2) {
iii = _local5[_local3] - 1;
jjj = _local4[_local3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] + 1;
jjj = _local4[_local3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3];
jjj = _local4[_local3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3];
jjj = _local4[_local3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] - 1;
jjj = _local4[_local3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] + 1;
jjj = _local4[_local3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
_local3++;
}
if (_local2 > 2) {
var _local7 = new Array();
var _local6 = new Array();
indexa3 = 0;
indexl3 = 0;
_local7[0] = 0;
_local6[0] = 0;
BFStunnus++;
while (indexa3 <= indexl3) {
iii = _local7[indexa3] - 1;
jjj = _local6[indexa3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl3++;
_local7[indexl3] = iii;
_local6[indexl3] = jjj;
}
}
iii = _local7[indexa3] + 1;
jjj = _local6[indexa3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl3++;
_local7[indexl3] = iii;
_local6[indexl3] = jjj;
}
}
iii = _local7[indexa3];
jjj = _local6[indexa3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl3++;
_local7[indexl3] = iii;
_local6[indexl3] = jjj;
}
}
iii = _local7[indexa3];
jjj = _local6[indexa3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl3++;
_local7[indexl3] = iii;
_local6[indexl3] = jjj;
}
}
iii = _local7[indexa3] + 1;
jjj = _local6[indexa3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl3++;
_local7[indexl3] = iii;
_local6[indexl3] = jjj;
}
}
iii = _local7[indexa3] - 1;
jjj = _local6[indexa3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl3++;
_local7[indexl3] = iii;
_local6[indexl3] = jjj;
}
}
indexa3++;
}
_local5 = new Array();
_local4 = new Array();
_local2 = 0;
_local3 = 0;
_local5[_local3] = ii;
_local4[_local3] = jj;
BFStunnus++;
while (_local3 <= _local2) {
iii = _local5[_local3] - 1;
jjj = _local4[_local3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
ThrowPoints(pistekerroin, grid._x + setx(jjj * tileW, iii * tileH), grid._y + sety(jjj * tileW, iii * tileH), grid[(("t_" + iii) + "_") + jjj]);
grid[(("t_" + iii) + "_") + jjj].removeMovieClip();
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] + 1;
jjj = _local4[_local3];
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
ThrowPoints(pistekerroin, grid._x + setx(jjj * tileW, iii * tileH), grid._y + sety(jjj * tileW, iii * tileH), grid[(("t_" + iii) + "_") + jjj]);
grid[(("t_" + iii) + "_") + jjj].removeMovieClip();
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3];
jjj = _local4[_local3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
ThrowPoints(pistekerroin, grid._x + setx(jjj * tileW, iii * tileH), grid._y + sety(jjj * tileW, iii * tileH), grid[(("t_" + iii) + "_") + jjj]);
grid[(("t_" + iii) + "_") + jjj].removeMovieClip();
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3];
jjj = _local4[_local3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
ThrowPoints(pistekerroin, grid._x + setx(jjj * tileW, iii * tileH), grid._y + sety(jjj * tileW, iii * tileH), grid[(("t_" + iii) + "_") + jjj]);
grid[(("t_" + iii) + "_") + jjj].removeMovieClip();
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] - 1;
jjj = _local4[_local3] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
ThrowPoints(pistekerroin, grid._x + setx(jjj * tileW, iii * tileH), grid._y + sety(jjj * tileW, iii * tileH), grid[(("t_" + iii) + "_") + jjj]);
grid[(("t_" + iii) + "_") + jjj].removeMovieClip();
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
iii = _local5[_local3] + 1;
jjj = _local4[_local3] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if ((grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) && (grid[(("t_" + iii) + "_") + jjj].munsisalto == id)) {
ThrowPoints(pistekerroin, grid._x + setx(jjj * tileW, iii * tileH), grid._y + sety(jjj * tileW, iii * tileH), grid[(("t_" + iii) + "_") + jjj]);
grid[(("t_" + iii) + "_") + jjj].removeMovieClip();
_local2++;
_local5[_local2] = iii;
_local4[_local2] = jjj;
}
}
_local3++;
}
var _local9 = new Array();
var _local8 = new Array();
indexa2 = 0;
indexl2 = 0;
_local9[0] = 0;
_local8[0] = 0;
BFStunnus++;
while (indexa2 <= indexl2) {
iii = _local9[indexa2];
jjj = _local8[indexa2];
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
iii = _local9[indexa2] - 1;
jjj = _local8[indexa2];
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl2++;
_local9[indexl2] = iii;
_local8[indexl2] = jjj;
}
}
iii = _local9[indexa2] + 1;
jjj = _local8[indexa2];
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl2++;
_local9[indexl2] = iii;
_local8[indexl2] = jjj;
}
}
iii = _local9[indexa2];
jjj = _local8[indexa2] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl2++;
_local9[indexl2] = iii;
_local8[indexl2] = jjj;
}
}
iii = _local9[indexa2];
jjj = _local8[indexa2] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl2++;
_local9[indexl2] = iii;
_local8[indexl2] = jjj;
}
}
iii = _local9[indexa2] - 1;
jjj = _local8[indexa2] + 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl2++;
_local9[indexl2] = iii;
_local8[indexl2] = jjj;
}
}
iii = _local9[indexa2] + 1;
jjj = _local8[indexa2] - 1;
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
grid[(("t_" + iii) + "_") + jjj].BFS = BFStunnus;
indexl2++;
_local9[indexl2] = iii;
_local8[indexl2] = jjj;
}
}
indexa2++;
}
poistettuja = 0;
var _local10 = 0;
while (_local10 <= indexl3) {
iii = _local7[_local10];
jjj = _local6[_local10];
if (grid[(("t_" + iii) + "_") + jjj]) {
if (grid[(("t_" + iii) + "_") + jjj].BFS != BFStunnus) {
ThrowPoints(pistekerroin, grid._x + setx(jjj * tileW, iii * tileH), grid._y + sety(jjj * tileW, iii * tileH), grid[(("t_" + iii) + "_") + jjj]);
grid[(("t_" + iii) + "_") + jjj].removeMovieClip();
poistettuja++;
}
}
_local10++;
}
poistettuja = poistettuja + _local2;
pallojainklimppi = pallojainklimppi - poistettuja;
Points = Points + (poistettuja * pistekerroin);
Score = (_global.lopputulos = "" + Points);
_global.lopputulema = Points;
}
}
function cleanUp() {
var _local3 = GridWidth;
var _local4 = rowsCurrentlyInGrid;
var _local2 = 0;
while (_local2 < _local4) {
var _local1 = 0;
while (_local1 < _local3) {
if (grid[(("t_" + _local2) + "_") + _local1]) {
grid[(("t_" + _local2) + "_") + _local1].removeMovieClip();
}
_local1++;
}
_local2++;
}
}
function removeSumsFromGrid() {
var _local4 = 0;
var _local5 = GridWidth;
var _local6 = rowsCurrentlyInGrid;
var _local3 = 0;
if (rowsCurrentlyInGrid > 30) {
_local3 = rowsCurrentlyInGrid - 30;
}
while (_local3 < _local6) {
var _local2 = 0;
while (_local2 < _local5) {
if (grid[(("t_" + _local3) + "_") + _local2]) {
tulos = 1;
if (grid[(("t_" + _local3) + "_") + _local2].valittu) {
tulos = 2;
}
if (tulos == 2) {
_local4 = _local4 + int(grid[(("t_" + _local3) + "_") + _local2].munsisalto);
}
}
_local2++;
}
_local3++;
}
currentselectedsum = _local4 + " / 10";
if (_local4 > 10) {
_root.oikeapalkki.scorepalkki_red._visible = true;
}
if (_local4 <= 10) {
_root.oikeapalkki.scorepalkki_red._visible = false;
}
if (_local4 == 10) {
removeSelectedFromGrid();
}
return(false);
}
function removeSelectedFromGrid() {
var _local4 = GridWidth;
var _local6 = rowsCurrentlyInGrid;
var _local3 = 0;
var _local5 = 0;
if (rowsCurrentlyInGrid > 30) {
_local3 = rowsCurrentlyInGrid - 30;
}
while (_local3 < _local6) {
var _local2 = 0;
while (_local2 < _local4) {
if (grid[(("t_" + _local3) + "_") + _local2]) {
tulos = 1;
if (grid[(("t_" + _local3) + "_") + _local2].valittu) {
tulos = 2;
}
if (tulos == 2) {
ThrowPoints(pistekerroin, grid[(("t_" + _local3) + "_") + _local2]._x + grid._x, grid[(("t_" + _local3) + "_") + _local2]._y + grid._y);
grid[(("t_" + _local3) + "_") + _local2].removeMovieClip();
_local5++;
Points = Points + pistekerroin;
Score = (_global.lopputulos = "" + Points);
_global.lopputulema = Points;
haiskore.send("scoreboard", "update_score", "Haasto", Points);
}
}
_local2++;
}
_local3++;
}
}
function poppaa() {
bubblePop = new Sound(_root);
bubblePop.attachSound("bubble");
bubblePop.start(0, 1);
popattavia--;
if (popattavia <= 0) {
clearInterval(ID);
}
}
function setNumbers(container, Width, Height) {
koko = Width * Height;
var _local1 = new Array();
do {
nyk = 0;
temppisum = 0;
while (nyk < koko) {
_local1[nyk] = random(9) + 1;
if ((temppisum + _local1[nyk]) > 10) {
_local1[nyk] = 10 - temppisum;
}
temppisum = temppisum + _local1[nyk];
if (temppisum == 10) {
temppisum = 0;
}
if (nyk == (koko - 1)) {
if (temppisum > 0) {
_local1[nyk] = _local1[nyk] + (10 - temppisum);
}
}
nyk++;
}
} while (_local1[koko - 1] == 10);
var _local3 = 0;
while (_local3 < koko) {
indeksi1 = _local3 + random(koko - _local3);
tempvalue = _local1[_local3];
_local1[_local3] = _local1[indeksi1];
_local1[indeksi1] = tempvalue;
_local3++;
}
nyk = 0;
_local3 = 0;
while (_local3 < Height) {
var _local2 = 0;
while (_local2 < Width) {
container[(("t_" + _local3) + "_") + _local2].munsisalto = _local1[nyk];
nyk++;
_local2++;
}
_local3++;
}
}
function satuluku() {
juritus = 0;
do {
juritus++;
tulos = random(Erivareja) + 1;
} while ((_root["tatavaria" + tulos] == 0) && (juritus < 100));
return(tulos);
while (_local2 < 9) {
todnaksum = todnaksum + todnakit[_local2];
_local2++;
}
tulos = random(todnaksum);
todnaksum = 0;
indeksi = 0;
while (indeksi < 9) {
todnaksum = todnaksum + todnakit[indeksi];
if (todnaksum > tulos) {
return(indeksi + 1);
}
indeksi++;
}
return(-1);
}
function satuluku2() {
tulos = random(Erivareja) + 1;
return(tulos);
while (_local1 < 9) {
todnaksum = todnaksum + todnakit[_local1];
_local1++;
}
tulos = random(todnaksum);
todnaksum = 0;
indeksi = 0;
while (indeksi < 9) {
todnaksum = todnaksum + todnakit[indeksi];
if (todnaksum > tulos) {
return(indeksi + 1);
}
indeksi++;
}
return(-1);
}
function asetaitte(i, j, luku) {
if (grid[(("t_" + i) + "_") + j]) {
grid[(("t_" + i) + "_") + j].removeMovieClip();
} else {
pallojainklimppi++;
}
grid.attachMovie("file" + luku, (("t_" + i) + "_") + j, grid.getNextHighestDepth());
grid[(("t_" + i) + "_") + j].munsisalto = luku;
grid[(("t_" + i) + "_") + j]._xscale = (grid[(("t_" + i) + "_") + j]._yscale = kokokerroin * 100);
grid[(("t_" + i) + "_") + j]._x = setxf(tileW * j, tileH * i);
grid[(("t_" + i) + "_") + j]._y = setyf(tileW * j, tileH * i);
grid[(("t_" + i) + "_") + j].gotoAndPlay(1);
grid[(("t_" + i) + "_") + j].solid = true;
}
function addRowToGrid() {
var _local2 = rowsCurrentlyInGrid;
var _local1 = -Math.floor(Alkuklimpinkoko / 2);
while (_local1 < ((-Math.floor(Alkuklimpinkoko / 2)) + Alkuklimpinkoko)) {
luku = satuluku();
grid.attachMovie("file" + luku, (("t_" + _local2) + "_") + _local1, grid.getNextHighestDepth());
pallojainklimppi++;
grid[(("t_" + _local2) + "_") + _local1].munsisalto = luku;
grid[(("t_" + _local2) + "_") + _local1]._xscale = (grid[(("t_" + _local2) + "_") + _local1]._yscale = kokokerroin * 100);
grid[(("t_" + _local2) + "_") + _local1]._x = setxf(tileW * _local1, tileH * _local2);
grid[(("t_" + _local2) + "_") + _local1]._y = setyf(tileW * _local1, tileH * _local2);
grid[(("t_" + _local2) + "_") + _local1].gotoAndPlay(1);
grid[(("t_" + _local2) + "_") + _local1].solid = true;
_local1++;
}
rowsCurrentlyInGrid++;
}
function dist2(x1, y1, x2, y2) {
return(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)));
}
function testhit(xx, yy) {
var _local8 = Math.round(gety(xx - _root.grid._x, yy - _root.grid._y) / tileW) - 1;
var _local9 = _local8 + 2;
var _local4 = Math.round(getx(xx - _root.grid._x, yy - _root.grid._y) / tileH) - 1;
var _local6 = _local4 + 2;
var _local3 = _local8;
while (_local3 <= _local9) {
var _local2 = _local4;
while (_local2 <= _local6) {
if (_root.grid[(("t_" + _local3) + "_") + _local2]) {
if (dist2(setx(_local2 * tileW, _local3 * tileH) + _root.grid._x, sety(_local2 * tileW, _local3 * tileH) + _root.grid._y, xx, yy) < ((900 * kokokerroin) * kokokerroin)) {
return(true);
}
}
_local2++;
}
_local3++;
}
return(false);
}
function shootrandom() {
palloilmassa++;
luku = satuluku();
nimi = "t_" + palloja_ammuttu;
palloja_ammuttu++;
shots.attachMovie("file" + luku, nimi, shots.getNextHighestDepth());
shots[nimi].pomppuja = 0;
shots[nimi]._xscale = (shots[nimi]._yscale = 100 * kokokerroin);
shots[nimi].koko = 100;
shots[nimi].munsisalto = luku;
shots[nimi]._visible = true;
ang = (Math.random() * 2) * 3.141592;
factori = 1 + Math.random();
shots[nimi]._x = GridCenterX + ((Math.cos(ang) * 420) * factori);
shots[nimi]._y = GridCenterY + ((Math.sin(ang) * 420) * factori);
shots[nimi].xv = GridCenterX - shots[nimi]._x;
shots[nimi].yv = GridCenterY - shots[nimi]._y;
len = Math.sqrt((shots[nimi].xv * shots[nimi].xv) + (shots[nimi].yv * shots[nimi].yv));
len = len / 15;
shots[nimi].xv = shots[nimi].xv / len;
shots[nimi].yv = shots[nimi].yv / len;
shots[nimi]._alpha = 100;
shots[nimi].gotoAndPlay(1);
shots[nimi].solid = false;
shots[nimi].eletty = 0;
shots[nimi].onEnterFrame = function () {
if (!_global.gameon) {
this.removeMovieClip();
}
this.eletty++;
if ((!this.solid) && (_global.gameon)) {
this._y = this._y + (this.yv * 0.5);
this._x = this._x + (this.xv * 0.5);
if (testhit(this._x, this._y)) {
var _local8 = Math.round(gety(this._x - _root.grid._x, this._y - _root.grid._y) / tileW) - 1;
var _local9 = _local8 + 2;
var _local6 = Math.round(getx(this._x - _root.grid._x, this._y - _root.grid._y) / tileH) - 1;
var _local7 = _local6 + 2;
parasnimi = "";
parasdist = 9999999 /* 0x98967F */;
var _local5 = _local8;
while (_local5 <= _local9) {
var _local4 = _local6;
while (_local4 <= _local7) {
if (!_root.grid[(("t_" + _local5) + "_") + _local4]) {
ddd222 = dist2(_root.grid._x + setx(_local4 * tileW, _local5 * tileH), _root.grid._y + sety(_local4 * tileW, _local5 * tileH), this._x, this._y);
if (parasdist > ddd222) {
parasdist = ddd222;
parasii = _local5;
parasjj = _local4;
}
}
_local4++;
}
_local5++;
}
kiinnita(this.munsisalto, parasii, parasjj, (("t_" + parasii) + "_") + parasjj, this.xv, this.yv, false);
palloilmassa--;
this.removeMovieClip();
return(undefined);
}
this._y = this._y + (this.yv * 0.5);
this._x = this._x + (this.xv * 0.5);
if (testhit(this._x, this._y)) {
var _local8 = Math.round(gety(this._x - _root.grid._x, this._y - _root.grid._y) / tileW) - 1;
var _local9 = _local8 + 2;
var _local6 = Math.round(getx(this._x - _root.grid._x, this._y - _root.grid._y) / tileH) - 1;
var _local7 = _local6 + 2;
parasnimi = "";
parasdist = 9999999 /* 0x98967F */;
var _local5 = _local8;
while (_local5 <= _local9) {
var _local4 = _local6;
while (_local4 <= _local7) {
if (!_root.grid[(("t_" + _local5) + "_") + _local4]) {
ddd222 = dist2(_root.grid._x + setx(_local4 * tileW, _local5 * tileH), _root.grid._y + sety(_local4 * tileW, _local5 * tileH), this._x, this._y);
if (parasdist > ddd222) {
parasdist = ddd222;
parasii = _local5;
parasjj = _local4;
}
}
_local4++;
}
_local5++;
}
kiinnita(this.munsisalto, parasii, parasjj, (("t_" + parasii) + "_") + parasjj, this.xv, this.yv, false);
palloilmassa--;
this.removeMovieClip();
return(undefined);
}
}
};
}
function asetaseuraavapallo() {
seuraavapallo = seuraavaseuraavapallo;
attachMovie("file" + seuraavapallo, "ammuttavapallo", 28);
ammuttavapallo._y = 27.78;
ammuttavapallo._xscale = (ammuttavapallo._yscale = 46.3);
ammuttavapallo.targety = nuoli._y;
ammuttavapallo.targetscale = 100 * kokokerroin;
ammuttavapallo._x = nuoli._x;
ammuttavapallo.onEnterFrame = function () {
this._xscale = (this._yscale = (0.95 * this._xscale) + (0.05 * this.targetscale));
this._y = (0.95 * this._y) + (0.05 * this.targety);
};
seuraavaseuraavapallo = satuluku();
attachMovie("file" + seuraavaseuraavapallo, "ammuttavaammuttavapallo", 29);
ammuttavaammuttavapallo._y = 25.002;
ammuttavaammuttavapallo.targety = 25.002;
ammuttavaammuttavapallo._x = GridCenterX;
ammuttavaammuttavapallo._xscale = (ammuttavaammuttavapallo._yscale = 0);
ammuttavaammuttavapallo.targetscale = 41.67;
ammuttavaammuttavapallo.onEnterFrame = function () {
this._xscale = (this._yscale = (0.95 * this._xscale) + (0.05 * this.targetscale));
this._y = (0.95 * this._y) + (0.05 * this.targety);
};
}
function shoot() {
if (palloilmassa > 0) {
return(undefined);
}
palloilmassa++;
luku = seuraavapallo;
ammuttavapallo._xscale = (ammuttavapallo._yscale = 0);
ammuttavapallo.targetscale = 0;
nimi = "t_" + palloja_ammuttu;
palloja_ammuttu++;
shots.attachMovie("file" + luku, nimi, shots.getNextHighestDepth());
shots[nimi].pomppuja = 0;
shots[nimi]._xscale = (shots[nimi]._yscale = 100 * kokokerroin);
shots[nimi].koko = 100;
shots[nimi].munsisalto = luku;
shots[nimi]._visible = true;
shots[nimi]._x = nuoli._x;
shots[nimi]._y = nuoli._y;
shots[nimi].xv = _root._xmouse - shots[nimi]._x;
shots[nimi].yv = _root._ymouse - shots[nimi]._y;
len = Math.sqrt((shots[nimi].xv * shots[nimi].xv) + (shots[nimi].yv * shots[nimi].yv));
len = len / Pallonspeedi;
shots[nimi].xv = shots[nimi].xv / len;
shots[nimi].yv = shots[nimi].yv / len;
shots[nimi].ekaframe = true;
shots[nimi]._alpha = 100;
shots[nimi].gotoAndPlay(1);
shots[nimi].solid = false;
shots[nimi].eletty = 0;
shots[nimi].onEnterFrame = function () {
if (!_global.gameon) {
this.removeMovieClip();
}
this.eletty++;
if ((!this.solid) && (_global.gameon)) {
if (this.pomppuja > 5) {
ThrowPoints2(this._x, this._y, this);
_root.tuhlailu--;
asetainfo(_root.tuhlailu);
ammuttavapallo.targetscale = 100;
palloilmassa--;
this.removeMovieClip();
return(undefined);
}
if (!this.ekaframe) {
this._y = this._y + (this.yv * 0.5);
this._x = this._x + (this.xv * 0.5);
} else {
this.ekaframe = false;
}
if (testhit(this._x, this._y)) {
var _local8 = Math.round(gety(this._x - _root.grid._x, this._y - _root.grid._y) / tileW) - 1;
var _local9 = _local8 + 2;
var _local6 = Math.round(getx(this._x - _root.grid._x, this._y - _root.grid._y) / tileH) - 1;
var _local7 = _local6 + 2;
parasnimi = "";
parasdist = 9999999 /* 0x98967F */;
var _local5 = _local8;
while (_local5 <= _local9) {
var _local4 = _local6;
while (_local4 <= _local7) {
if (!_root.grid[(("t_" + _local5) + "_") + _local4]) {
ddd222 = dist2(_root.grid._x + setx(_local4 * tileW, _local5 * tileH), _root.grid._y + sety(_local4 * tileW, _local5 * tileH), this._x, this._y);
if (parasdist > ddd222) {
parasdist = ddd222;
parasii = _local5;
parasjj = _local4;
}
}
_local4++;
}
_local5++;
}
oldpiste = Points;
kiinnita(this.munsisalto, parasii, parasjj, (("t_" + parasii) + "_") + parasjj, this.xv, this.yv, true);
if (oldpiste == Points) {
tuhlailu--;
}
asetainfo(tuhlailu);
palloilmassa--;
asetaseuraavapallo();
this.removeMovieClip();
return(undefined);
}
this._y = this._y + (this.yv * 0.5);
this._x = this._x + (this.xv * 0.5);
if (testhit(this._x, this._y)) {
var _local8 = Math.round(gety(this._x - _root.grid._x, this._y - _root.grid._y) / tileH) - 1;
var _local9 = _local8 + 2;
var _local6 = Math.round(getx(this._x - _root.grid._x, this._y - _root.grid._y) / tileW) - 1;
var _local7 = _local6 + 2;
parasnimi = "";
parasdist = 9999999 /* 0x98967F */;
var _local5 = _local8;
while (_local5 <= _local9) {
var _local4 = _local6;
while (_local4 <= _local7) {
if (!_root.grid[(("t_" + _local5) + "_") + _local4]) {
ddd222 = dist2(_root.grid._x + setx(_local4 * tileW, _local5 * tileH), _root.grid._y + sety(_local4 * tileW, _local5 * tileH), this._x, this._y);
if (parasdist > ddd222) {
parasdist = ddd222;
parasii = _local5;
parasjj = _local4;
}
}
_local4++;
}
_local5++;
}
oldpiste = Points;
kiinnita(this.munsisalto, parasii, parasjj, (("t_" + parasii) + "_") + parasjj, this.xv, this.yv, true);
if (oldpiste == Points) {
tuhlailu--;
}
asetainfo(tuhlailu);
palloilmassa--;
asetaseuraavapallo();
this.removeMovieClip();
return(undefined);
}
}
if ((this._x - _root.GridCenterX) < (_root.leftBound + (tileW / 2))) {
this._x = (_root.leftBound + (tileW / 2)) + _root.GridCenterX;
this.xv = Math.abs(this.xv);
this.pomppuja++;
}
if ((this._x - _root.GridCenterX) > (_root.rightBound - (tileW / 2))) {
this._x = (_root.rightBound - (tileW / 2)) + _root.GridCenterX;
this.xv = -Math.abs(this.xv);
this.pomppuja++;
}
if (((this._y - _root.GridCenterY) < (_root.upperBound + (tileH / 2))) && (this.eletty > 20)) {
this._y = (_root.upperBound + (tileH / 2)) + _root.GridCenterY;
this.yv = Math.abs(this.yv);
this.pomppuja++;
}
if ((this._y - _root.GridCenterY) > (_root.lowerBound - (tileH / 2))) {
this._y = (_root.lowerBound - (tileH / 2)) + _root.GridCenterY;
this.yv = -Math.abs(this.yv);
this.pomppuja++;
}
};
}
function ThrowPoints(numbertothrow, xthrow, ythrow, alkupmovie) {
if (numbertothrow < 0) {
scoreEffects.attachMovie("ScoreEffectMinus", "ScoreEffect" + PointsThrown, 700000 + PointsThrown);
} else {
scoreEffects.attachMovie("ScoreEffectPlus", "ScoreEffect" + PointsThrown, 700000 + PointsThrown);
}
scoreEffects["ScoreEffect" + PointsThrown]._x = xthrow;
scoreEffects["ScoreEffect" + PointsThrown]._y = ythrow;
scoreEffects["ScoreEffect" + PointsThrown]._xscale = 150;
scoreEffects["ScoreEffect" + PointsThrown]._yscale = 150;
if (numbertothrow > 0) {
scoreEffects["ScoreEffect" + PointsThrown].Scoreaddition = "+" + numbertothrow;
} else {
scoreEffects["ScoreEffect" + PointsThrown].Scoreaddition = numbertothrow;
}
scoreEffects["ScoreEffect" + PointsThrown].onEnterFrame = function () {
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._alpha = this._alpha - 1.5;
if (this._alpha < 1.5) {
this.removeMovieClip();
}
};
PointsThrown++;
scoreEffects.attachMovie("file" + alkupmovie.munsisalto, "ScoreEffect" + PointsThrown, 700000 + PointsThrown);
scoreEffects["ScoreEffect" + PointsThrown]._x = xthrow;
scoreEffects["ScoreEffect" + PointsThrown]._y = ythrow;
scoreEffects["ScoreEffect" + PointsThrown]._rotation = alkupmovie._rotation + grid._rotation;
scoreEffects["ScoreEffect" + PointsThrown].xv = (Math.random() * 10) - 5;
scoreEffects["ScoreEffect" + PointsThrown].yv = (Math.random() * 10) - 5;
scoreEffects["ScoreEffect" + PointsThrown].onEnterFrame = function () {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
this._alpha = this._alpha - 1.5;
this._x = this._x + this.xv;
this._y = this._y + this.yv;
this._rotation = this._rotation + (this.xv * 10);
this.yv = this.yv + 1;
if (this._alpha < 1.5) {
this.removeMovieClip();
}
};
PointsThrown++;
}
function ThrowPoints2(xthrow, ythrow, alkupmovie) {
scoreEffects.attachMovie("file" + alkupmovie.munsisalto, "ScoreEffect" + PointsThrown, 700000 + PointsThrown);
scoreEffects["ScoreEffect" + PointsThrown]._x = xthrow;
scoreEffects["ScoreEffect" + PointsThrown]._y = ythrow;
scoreEffects["ScoreEffect" + PointsThrown]._rotation = alkupmovie._rotation + _root.grid._rotation;
scoreEffects["ScoreEffect" + PointsThrown].xv = (Math.random() * 10) - 5;
scoreEffects["ScoreEffect" + PointsThrown].yv = (Math.random() * 10) - 5;
scoreEffects["ScoreEffect" + PointsThrown].onEnterFrame = function () {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
this._alpha = this._alpha - 1.5;
this._x = this._x + this.xv;
this._y = this._y + this.yv;
this._rotation = this._rotation + (this.xv * 10);
this.yv = this.yv + 1;
if (this._alpha < 1.5) {
this.removeMovieClip();
}
};
PointsThrown++;
}
function ThrowParticles(xthrow, ythrow) {
scoreEffects.attachMovie("file3", "ScoreEffect" + PointsThrown, 700000 + PointsThrown);
scoreEffects["ScoreEffect" + PointsThrown]._x = xthrow;
scoreEffects["ScoreEffect" + PointsThrown]._y = ythrow;
scoreEffects["ScoreEffect" + PointsThrown]._xscale = 50;
scoreEffects["ScoreEffect" + PointsThrown]._yscale = 50;
scoreEffects["ScoreEffect" + PointsThrown].xv = (Math.random() * 10) - 5;
scoreEffects["ScoreEffect" + PointsThrown].yv = (Math.random() * 10) - 5;
if (xthrow < -250) {
scoreEffects["ScoreEffect" + PointsThrown].xv = scoreEffects["ScoreEffect" + PointsThrown].xv + 4;
}
if (xthrow > 250) {
scoreEffects["ScoreEffect" + PointsThrown].xv = scoreEffects["ScoreEffect" + PointsThrown].xv - 4;
}
if (ythrow > 250) {
scoreEffects["ScoreEffect" + PointsThrown].yv = scoreEffects["ScoreEffect" + PointsThrown].yv - 4;
}
scoreEffects["ScoreEffect" + PointsThrown].onEnterFrame = function () {
this._xscale = this._xscale - 2;
this._yscale = this._yscale - 2;
this._alpha = this._alpha - 1.5;
this._x = this._x + this.xv;
this._y = this._y + this.yv;
this._rotation = this._rotation + (this.xv * 10);
this.yv = this.yv + 1;
if (this._alpha < 1.5) {
this.removeMovieClip();
}
};
PointsThrown++;
}
function ThrowError(xthrow, ythrow) {
scoreEffects.attachMovie("ScoreEffectMinus", "ScoreEffect" + PointsThrown, 700000 + PointsThrown);
scoreEffects["ScoreEffect" + PointsThrown]._x = xthrow;
scoreEffects["ScoreEffect" + PointsThrown]._y = ythrow;
scoreEffects["ScoreEffect" + PointsThrown]._xscale = 150;
scoreEffects["ScoreEffect" + PointsThrown]._yscale = 150;
scoreEffects["ScoreEffect" + PointsThrown].Scoreaddition = "";
scoreEffects["ScoreEffect" + PointsThrown].onEnterFrame = function () {
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._alpha = this._alpha - 0.7;
if (this._alpha < 1.5) {
this.removeMovieClip();
}
};
PointsThrown++;
aj = 0;
while (aj < 30) {
ThrowParticles(xthrow, ythrow);
aj++;
}
}
function updateGrid() {
while ((!grid[(("t_" + (rowsCurrentlyInGrid - 1)) + "_") + 0]) || ((grid._y + grid[(("t_" + (rowsCurrentlyInGrid - 1)) + "_") + 0]._y) > -20)) {
addRowToGrid();
}
}
function initGrid() {
i = 0;
while (i <= Erivareja) {
_root["tatavaria" + i] = 1;
i++;
}
i = Alkuklimpinkoko - 1;
while (i > 0) {
j = 0;
while (j < (((2 * Alkuklimpinkoko) - 1) - i)) {
asetaitte(-i, (((-Alkuklimpinkoko) + 1) + i) + j, satuluku());
j++;
}
j = 0;
while (j < (((Alkuklimpinkoko * 2) - 1) - i)) {
asetaitte(i, ((Alkuklimpinkoko - 1) - i) - j, satuluku());
j++;
}
i--;
}
j = 0;
while (j < ((Alkuklimpinkoko * 2) - 1)) {
asetaitte(0, ((-Alkuklimpinkoko) + 1) + j, satuluku());
j++;
}
grid.t_0_0.removeMovieClip();
grid.attachMovie("tilepommi", "t_0_0", grid.getNextHighestDepth());
grid.t_0_0.munsisalto = -1;
grid.t_0_0._xscale = (grid.t_0_0._yscale = kokokerroin * 100);
asetaitte(-1, 0, 1);
asetaitte(1, 0, 2);
asetaitte(0, 1, 3);
asetaitte(0, -1, 4);
asetaitte(1, -1, 5);
asetaitte(-1, 1, 6);
}
Pallojapersatsi = 10;
kokokerroin = 0.75006;
Pallonspeedi = 20.835;
Alkuklimpinkoko = 6;
Erivareja = 6;
GridCenterX = 250.02;
GridCenterY = 291.69;
multiplier = "";
pistekerroin = 1;
kutistuu = false;
if (ollaankodeadwhalessa) {
dwnappi2._visible = false;
}
lowerBound = 241.686;
upperBound = -241.686;
leftBound = -241.686;
rightBound = 241.686;
this.createEmptyMovieClip("line_mc", 10);
gridspeed = 0;
pallojainklimppi = 0;
palloilmassa = 0;
nuoli._x = GridCenterX;
seuraavapallo = 1;
seuraavaseuraavapallo = 2;
_root.oikeapalkki._y = -100;
vasein = 99999 /* 0x01869F */;
oikein = -99999;
ylin = -99999;
alin = 99999 /* 0x01869F */;
BFStunnus = 0;
ampuaika = getTimer() + 1000;
ammuttu = 0;
axis1x = 1;
axis1y = 0;
axis2x = 0.5;
axis2y = 0.866025403784439;
tileW = 34 * kokokerroin;
tileH = 34 * kokokerroin;
hiirialhaalla = false;
_root.onMouseDown = function () {
hiirialhaalla = true;
};
_root.onMouseUp = function () {
hiirialhaalla = false;
};
edellinenaika = getTimer();
aikakerroin = 1;
var spacepohjassaviimeframessa = false;
edaika = 0;
_root.onEnterFrame = function () {
_root.oikeapalkki.frosmonappi._xscale = (_root.oikeapalkki.frosmonappi._yscale = (0.8 * _root.oikeapalkki.frosmonappi._xscale) + (0.2 * _root.targetnappiscale2));
dwnappi2._xscale = (dwnappi2._yscale = (0.8 * dwnappi2._xscale) + (0.2 * _root.targetnappiscale));
_root.oikeapalkki._y = (0.9 * _root.oikeapalkki._y) + 24.33528;
uusiaika = getTimer();
aikakerroin = (uusiaika - edellinenaika) / 33;
edellinenaika = uusiaika;
framejalaskettu++;
if (framejalaskettu >= 30) {
framerate = (1000 * (framejalaskettu * 1)) / ((1 * (getTimer() - framenalkuaika)) + 0.001);
framenalkuaika = getTimer();
framejalaskettu = 0;
}
if (!_global.gameon) {
gridinaloitus = getTimer();
} else {
if ((pallojainklimppi == 1) && (kutistuu == false)) {
kutistuu = true;
grid.targetscale = 0;
}
if ((kutistuu == true) && (grid._xscale < 2)) {
kutistuu = false;
initGrid();
grid._xscale = (grid._yscale = 0);
grid.targetscale = 100;
pistekerroin = pistekerroin + 1;
multiplier = pistekerroin + "x";
}
grid._xscale = (grid._yscale = (0.95 * grid._xscale) + (0.05 * grid.targetscale));
i = 1;
while (i <= 10) {
if (this["tuhlaus" + i]) {
this["tuhlaus" + i]._rotation = Math.sin((getTimer() / 1800) + (i * 0.2)) * 200;
this["tuhlaus" + i]._alpha = (this["tuhlaus" + i]._alpha * 0.95) + (this["tuhlaus" + i].targetalpha * 0.05);
this["tuhlaus" + i]._xscale = (this["tuhlaus" + i]._yscale = (this["tuhlaus" + i]._xscale * 0.95) + (this["tuhlaus" + i].targetscale * 0.05));
}
i++;
}
gridspeed = gridspeed * 0.97;
if (_root._ymouse > ((GridCenterY + upperBound) + 5)) {
nuoli._rotation = (Math.atan2(_root._ymouse - nuoli._y, _root._xmouse - nuoli._x) / 3.14159) * 180;
}
line_mc._visible = true;
hidastuskerroin = 1;
if (getTimer() < (kellonalkuaika + kellonkesto)) {
hidastuskerroin = 0.3;
}
if (((((!kutistuu) && (hiirialhaalla)) && (_root._ymouse > ((GridCenterY + upperBound) + 5))) && (Math.abs(gridspeed) < 2)) && (palloilmassa == 0)) {
hiirenseuraaja._x = _root._xmouse;
hiirenseuraaja._y = _root._ymouse;
if (!hiirenseuraaja.hitTest(Neppula)) {
shoot();
bubblePop = new Sound(_root);
bubblePop.attachSound("FOLEY WHIP WHOOSH DOUBLE ALUMINUM ROD 01");
bubblePop.start(0, 1);
hiirialhaalla = false;
}
}
if (tuhlailu == 0) {
whoosi = new Sound(_root);
whoosi.attachSound("ropes_whoosh");
whoosi.start(0, 1);
i = 0;
while (i < Pallojapersatsi) {
shootrandom();
i++;
}
tuhlailulim--;
if (tuhlailulim == 0) {
tuhlailulim = 6;
}
tuhlailu = tuhlailulim;
asetainfo(tuhlailu);
}
grid._x = GridCenterX;
grid._y = GridCenterY;
grid._rotation = grid._rotation + gridspeed;
ang = (grid._rotation * 3.14159265) / 180;
axis1x = Math.cos(ang);
axis1y = Math.sin(ang);
axis2x = Math.cos(ang + 1.04719733333333);
axis2y = Math.sin(ang + 1.04719733333333);
line_mc._x = grid._x;
line_mc._y = grid._y;
vasein = 99999 /* 0x01869F */;
oikein = -99999;
ylin = -99999;
alin = 99999 /* 0x01869F */;
}
Score = "" + Math.round(tempPoints);
tempPoints = (0.93 * tempPoints) + (0.07 * Points);
if ((Points > 0) && (oldpo != Points)) {
bubblePop = new Sound(this);
bubblePop.attachSound("bubble");
bubblePop.start(0, 1);
}
oldpo = Points;
if ((GameOver == true) && (_global.gameon == true)) {
if (kelloefekti) {
kelloefekti.removeMovieClip();
}
whoosh = new Sound(_root);
whoosh.attachSound("Descending Gamey Blip");
whoosh.start(0, 1);
_global.gameon = false;
_global.lopputulos = "" + _global.lopputulema;
_root.lopputiski.loppuvalikko.pisteteksti.text = "" + _global.lopputulema;
_root.lopputiski._visible = true;
_root.lopputiski.julkaisuaika = getTimer();
_root.lopputiski.gotoAndPlay(1);
_root.lopputiski.gotoAndPlay(1);
}
};
init();
stop();
Instance of Symbol 129 MovieClip [mute] "Neppula" in Frame 4
onClipEvent (load) {
stop();
}
on (release) {
if (_global.allsound.getVolume() == 100) {
this.gotoAndStop(2);
_global.allsound.setVolume(0);
} else {
this.gotoAndStop(1);
_global.allsound.setVolume(100);
}
}
Instance of Symbol 194 MovieClip "infotiski" in Frame 4
on (release) {
if ((getTimer() - _root.infotiskijulkaistu) > 300) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
_root.infotiski._visible = false;
this._visible = false;
if (!_global.onnitteluja) {
_root.samplegrid._visible = true;
_root.transformationlist._visible = true;
_global.gameon = true;
}
}
}
Frame 5
_global.gameon = false;
stop();
Frame 10
gotoAndPlay ("Start");
Symbol 16 MovieClip [tile9] Frame 1
stop();
Symbol 18 MovieClip [tile8] Frame 1
stop();
Symbol 20 MovieClip [file7] Frame 1
stop();
Symbol 21 MovieClip [tile7] Frame 1
stop();
Symbol 23 MovieClip [tile6] Frame 1
stop();
Symbol 25 MovieClip [tile5] Frame 1
stop();
Symbol 27 MovieClip [tile1] Frame 1
stop();
Symbol 29 MovieClip [file8] Frame 1
stop();
Symbol 31 MovieClip [tile4] Frame 1
stop();
Symbol 33 MovieClip [tile3] Frame 1
stop();
Symbol 35 MovieClip [filex] Frame 1
stop();
Symbol 37 MovieClip [file9] Frame 1
stop();
Symbol 39 MovieClip [tile2] Frame 1
stop();
Symbol 41 MovieClip [tileydinpommi] Frame 1
stop();
Symbol 49 Button
on (release) {
if ((_root.lopputiski.julkaisuaika + 500) < getTimer()) {
kirupaSound = new Sound();
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
if (_root.ollaankodeadwhalessa) {
this.hainappi._visible = false;
} else {
_root.haiskoreteksti = "Only at DeadWhale.com";
}
}
}
Symbol 53 Button
on (release) {
if ((_root.lopputiski.julkaisuaika + 1500) < getTimer()) {
kirupaSound = new Sound();
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
this._visible = false;
_root.init();
}
}
Symbol 68 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
getURL ("http://www.deadwhale.com", "_blank");
}
Symbol 69 MovieClip [loppuvalikko] Frame 1
if (_root.ollaankodeadwhalessa) {
isonappi._visible = false;
}
Symbol 70 MovieClip [Lopputiski] Frame 10
stop();
Symbol 72 MovieClip [tile_show_on] Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 78 MovieClip [tile] Frame 8
stop();
Symbol 78 MovieClip [tile] Frame 16
stop();
Symbol 110 MovieClip [Tausta] Frame 1
function onEnterFrame() {
aikakerroin = (getTimer() - edellinenaika) / 33;
edellinenaika = getTimer();
if (this._visible) {
this._alpha = this._alpha - (1 * aikakerroin);
}
if (this._alpha < 0) {
this._visible = false;
}
}
edellinenaika = 0;
stop();
Symbol 116 MovieClip [tilekello] Frame 1
stop();
Symbol 119 MovieClip [kelloefekti] Frame 1
function onEnterFrame() {
if (getTimer() < (_root.kellonalkuaika + _root.kellonkesto)) {
this.kellopalkki._yscale = (((_root.kellonkesto - getTimer()) + _root.kellonalkuaika) / _root.kellonkesto) * 100;
} else {
this.removeMovieClip();
}
}
Symbol 139 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
_root.GameOver = true;
}
Symbol 148 MovieClip [file6] Frame 1
stop();
Symbol 150 MovieClip [file5] Frame 1
stop();
Symbol 152 MovieClip [file4] Frame 1
stop();
Symbol 154 MovieClip [file3] Frame 1
stop();
Symbol 156 MovieClip [file2] Frame 1
stop();
Symbol 158 MovieClip [file1] Frame 1
stop();
Symbol 160 MovieClip [tilepommi] Frame 1
stop();
Symbol 212 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.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 (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.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.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.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 213 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _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("1.31");
}
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";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.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 _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
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.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.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];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
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 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._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 (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:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 167 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
gotoAndPlay ("Main");
}
Symbol 173 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
gotoAndPlay ("Main");
}
Symbol 184 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
getURL ("http://www.deadwhale.com", "_blank");
}
Symbol 188 Button
on (rollOver) {
_root.targetnappiscale = 100;
}
on (rollOut) {
_root.targetnappiscale = 37.04;
}
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
getURL ("http://www.deadwhale.com", "_blank");
}
Symbol 194 MovieClip Frame 10
stop();
Symbol 197 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
gotoAndPlay ("Main");
}
Symbol 200 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
mochi.MochiScores.showLeaderboard({boardID:"71d91b67a3e8215f", score:_global.lopputulema});
}
Symbol 204 Button
on (release) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("Clicki");
kirupaSound.start(0, 1);
getURL ("http://www.deadwhale.com", "_blank");
}
Symbol 210 MovieClip Frame 26
stop();