Frame 1
urlB = "";
urlC = "";
urlC_fnl = "";
serverUrl = String(_url);
serverUrlParse = serverUrl.split(".");
urlB = String(serverUrlParse[1]);
urlC = String(serverUrlParse[2]);
urlC_fnl = urlC.substring(0, 3);
Frame 2
play();
Frame 3
function neotin(inScoreID, inGameScore) {
var ecryx;
var ecrySum;
var ecryXh;
var ecryXhfnl;
var subChar;
var encrySub;
var ecryChrDc;
var ecryChrDclast;
var ecryChrDclst;
ecryx = inScoreID.toString();
z = 0;
while (z < ecryx.length) {
ecrySum = ecrySum + Number(ecryx.charAt(z));
z++;
}
ecrySum = Number(String(ecrySum) add "7");
inGameScore = inGameScore + 107;
ecrySum = ecrySum * inGameScore;
ecryXh = new Number(ecrySum);
ecryXhfnl = ecryXh.toString(16);
subChar = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F");
z = 0;
while (z < ecryXhfnl.length) {
encrySub = encrySub add ecryXhfnl.charAt(z);
encrySub = encrySub add subChar[random(subChar.length)];
z++;
}
encrySub = subChar[random(subChar.length)] add encrySub;
z = 0;
while (z < encrySub.length) {
ecryChrDc = ecryChrDc + encrySub.charCodeAt(z);
z++;
}
ecryChrDc = ecryChrDc % 16;
ecryChrDclast = ecryChrDc.toString(16);
ecryChrDclast = ecryChrDclast.toUpperCase();
ecryChrDclst = ecryChrDclast.charAt(ecryChrDclast.length - 1);
encrySub = encrySub add ecryChrDclst;
return(encrySub.toUpperCase());
}
Frame 4
starttimer = getTimer();
starttimer = starttimer + 5000;
Frame 6
post = int((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100) + " %";
elapsedtimer = getTimer();
Frame 8
if (_framesloaded < _totalframes) {
gotoAndPlay ("start_count");
}
Frame 10
post = int((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100) + " %";
_root.continueButton.gotoandstop(2);
stop();
Frame 12
rnd = getTimer();
tsfnl = Number(_root.ts) + 6;
encyRndV = random(5000);
crv = neotin(tsfnl, encyRndV);
regu = ((((("" + tok) + "") + rnd) + "") + crv) + "";
loadVariables (regu, "_root");
sendTime = rnd + 25000;
Frame 15
gotoAndPlay (19);
Frame 20
gotoAndPlay (21);
Frame 21
cttimer = 10;
varStart = getTimer();
stop();
Instance of Symbol 22 MovieClip in Frame 21
onClipEvent (enterFrame) {
varTempTimer = getTimer() - _root.varStart;
_root.ctdn = _root.cttimer - int(varTempTimer / 1000);
_root.prog_bar._width = (_root.cttimer * 39) - int(varTempTimer / 22);
if (_root.ctdn < 1) {
_root.play();
}
varPrePlay = "941";
}
Frame 25
stop();
Instance of Symbol 49 MovieClip "actions" in Frame 25
onClipEvent (load) {
function gameoverfunction(inVar) {
if (inVar == 1) {
_parent["g" + gameoverdepth].gotoAndPlay(2);
if (_parent.timeractions.timesup == 0) {
if (totalshots < 0) {
totalshots = 0;
}
score = score + (totalshots * pointspermove);
}
updatescoreboard();
} else {
_parent["g" + gameoverdepth].gotoAndPlay(2);
}
}
function updaterow(dir, wrow) {
if ((1 < (wrow + 1)) || (wrow == 0)) {
if (dir == -1) {
this["rowinfo" + wrow]--;
trace((("Remove Row: " + wrow) + " RT: ") + this["rowinfo" + wrow]);
if (this["rowinfo" + wrow] == 0) {
rowstogo--;
_parent["g" + rightwalldepth].showrowstogo = rowstogo;
}
} else if (dir == 1) {
this["rowinfo" + wrow]++;
trace((("added Row: " + wrow) + " RT: ") + this["rowinfo" + wrow]);
if (this["rowinfo" + wrow] == 1) {
rowstogo++;
_parent["g" + rightwalldepth].showrowstogo = rowstogo;
}
}
}
}
function graphicsetup() {
leftwalldepth = 100001 /* 0x0186A1 */;
makegraphic(_parent.leftwallg, leftwalldepth);
rightwalldepth = 100002 /* 0x0186A2 */;
makegraphic(_parent.rightwallg, rightwalldepth);
ydudedepth = 100003 /* 0x0186A3 */;
makegraphic(_parent.ydudeg, ydudedepth);
bdudedepth = 100004 /* 0x0186A4 */;
makegraphic(_parent.bdudeg, bdudedepth);
dldepth = 1;
makegraphic(_parent.deadlineg, dldepth);
_parent["g" + dldepth]._y = bottomline + (cellheight / 2);
bigfootdepth = 100000 /* 0x0186A0 */;
makegraphic(_parent.bigfootg, bigfootdepth);
lefteggsdepth = 100008 /* 0x0186A8 */;
makegraphic(_parent.lefteggsg, lefteggsdepth);
righteggsdepth = 100009 /* 0x0186A9 */;
makegraphic(_parent.righteggsg, righteggsdepth);
slingshotdepth = 100010 /* 0x0186AA */;
makegraphic(_parent.slingshotg, slingshotdepth);
arrowdepth = 2;
makegraphic(_parent.arrowg, arrowdepth);
handdepth = 100011 /* 0x0186AB */;
makegraphic(_parent.handg, handdepth);
whirleydepth = 100012 /* 0x0186AC */;
makegraphic(_parent.whirley, whirleydepth);
timerdepth = 100013 /* 0x0186AD */;
makegraphic(_parent.timerdude, timerdepth);
ctextdepth = 100014 /* 0x0186AE */;
makegraphic(_parent.combotextg, ctextdepth);
bluexdepth = 100015 /* 0x0186AF */;
makegraphic(_parent.bluexg, bluexdepth);
coverdepth = 150000 /* 0x0249F0 */;
makegraphic(_parent.coverg, coverdepth);
gameoverdepth = 100016 /* 0x0186B0 */;
makegraphic(_parent.gameoverg, gameoverdepth);
gameoverbutton = 100017 /* 0x0186B1 */;
makegraphic(_parent.gameoverbutt, gameoverbutton);
depth = 10;
}
function makegraphic(object, odepth) {
duplicateMovieClip (object, ["g" + odepth], odepth);
object._visible = 0;
}
function setbabyshaker() {
if (babyshaker == 1) {
return(0);
}
babyshakerlist.splice(0);
return(0);
}
function removefrombabyshakers() {
babyshaker = 0;
babyshakerlist.splice(0);
}
function updatebabyshakers() {
len = babyshakerlist.length;
x = 0;
while (x < len) {
val = eggarray[babyshakerlist[x]];
_parent["cell" + val].dobabyshaker();
x++;
}
}
function levelsetup() {
bonus = 0;
eggcount = 0;
bottomcount = 0;
eggsactive = 0;
colorarray.splice(0);
if (level eq "endless") {
width = cellwidth * cols;
_parent["g" + leftwalldepth]._x = (center - (width / 2)) + 1;
_parent["g" + rightwalldepth]._x = (center + (width / 2)) - 1;
_parent["g" + timerdepth]._x = _parent["g" + rightwalldepth]._x + 10;
offsetx = _parent["g" + leftwalldepth]._x;
offsety = -50;
rr = 0;
while (5 >= rr) {
setnewrow(1);
rr++;
}
rr = 0;
while (5 >= rr) {
setnewrow();
rr++;
}
}
if (0 < timelength) {
inittimer = 39;
}
}
function setbonus(framenumber) {
return(0);
}
function adjustscore(tscore, scorex, scorey) {
if (0 >= tscore) {
return(0);
}
sscore = 0;
sscore = tscore;
tscore = sscore;
tscore = tscore + veggs;
veggs = 0;
if (combocount >= 3) {
if (combocount == 3) {
additive = 3;
} else if (combocount == 4) {
additive = 4;
} else if (combocount == 5) {
additive = 6;
} else if (combocount == 6) {
additive = 8;
} else if (combocount == 7) {
additive = 10;
} else {
additive = 15;
}
tscore = tscore + additive;
}
if (level eq "endless") {
if (skilllevel == 1) {
tscore = int(tscore / 5);
if (tscore < 1) {
tscore = 1;
}
} else {
tscore = tscore * 2;
}
} else if (skillevel == 2) {
tscore = int((tscore = tscore / 2));
if (tscore < 1) {
tscore = 1;
}
} else {
tscore = tscore * 2;
}
tscore = tscore * 10;
scoretext = "+" + tscore;
if (scorebonus == 2) {
tscore = tscore * 2;
scoretext = scoretext + "x2";
}
if (scorebonus == 3) {
tscore = tscore * 3;
scoretext = scoretext + "x3";
}
if (scorebonus == 4) {
tscore = tscore * 4;
scoretext = scoretext + "x4";
}
if (scorex >= 0) {
sdepth++;
duplicateMovieClip (_parent.scorefg, ["s" + sdepth], sdepth);
_parent["s" + sdepth].still.num = scoretext;
if ((_parent["g" + rightwalldepth]._x - 50) < scorex) {
scorex = _parent["g" + rightwalldepth]._x - 50;
}
if (scorey < 50) {
scorey = 50;
}
_parent["s" + sdepth]._x = scorex;
_parent["s" + sdepth]._y = scorey;
_parent["s" + sdepth].setup = 1;
}
score = score + tscore;
tscore = 0;
updatescoreboard();
}
function updatescoreboard() {
trace("Before Update Score: " + score);
x = 1;
while (6 >= x) {
_parent["scoreg" + x].gotoAndStop(1);
x++;
}
tempscore = score;
sstring = tempscore.toString();
pos = 6;
x = sstring.length - 1;
while (x >= 0) {
sd = int(sstring.substr(x, 1));
if (sd >= 0) {
_parent["scoreg" + pos].gotoAndStop(sd + 2);
} else {
_parent["scoreg" + pos].gotoAndStop(1);
}
pos--;
x--;
}
_root.mylah = Number(score);
}
function makearrays() {
if (eggarraysmade != 1) {
eggarraysmade = 1;
eggarray = new Array();
bonusarray = new Array();
removearray = new Array(200);
checklistarray = new Array();
moves = new Array();
garray = new Array();
droparray = new Array(200);
anitypes = new Array();
anilocs = new Array();
anibaby = new Array();
anicolor = new Array();
scorenamelist = new Array("Petrified", "Fossil", "Hatchling", "Scavenger", "Eggsucker", "Herbivore", "Omnivore", "Carnivore", "Raptor", "Horned Lizard", "Thunder Lizard", "Tyrant Lizard", "Terrible Claw", "Supersaurus", "Megasaurus", "Gigasaurus", "Ultrasaurus", "Hypersaurus", "Tyrannosaurus Rex", "Lord of the Lizards");
bombgridarray = new Array();
temppoint = new Object();
checkedarray = new Array();
tarray = new Array();
grouparray = new Array();
rc = new Array();
sstring = new String();
babyshakerlist = new Array();
colorarray = new Array();
temparray = new Array();
}
}
function setnewrow(blank) {
if (setrowsactive == 0) {
return(0);
}
if (rowsdropped >= requiredrows) {
return(0);
}
if (rowsdropped == (requiredrows - 1)) {
brickceiling = 1;
}
if (eggcount == 0) {
eggarray.splice(0);
cellcount = -1;
rowsdropped = -1;
}
rowsdropped++;
this["rowinfo" + rowsdropped] = 0;
eggoffset = 0;
if (geteven(rowsdropped)) {
eggoffset = cellwidth / 2;
}
ty = gethighestegg();
ty = ty - cellheight;
tx = _parent["g" + leftwalldepth]._x + (cellwidth / 2);
tx = tx - eggoffset;
if (brickceiling == 1) {
x = 0;
while (x < cols) {
edepth--;
depth = edepth;
depth++;
cellcount++;
lasteggset = cellcount;
eggarray[cellcount] = depth;
tempcolor = brickframe;
duplicateMovieClip (_parent.eggmaster, ["cell" + depth], depth);
_parent["cell" + depth]._x = tx + (x * cellwidth);
_parent["cell" + depth]._y = ty;
_parent["cell" + depth].holdx = tx + (x * cellwidth);
_parent["cell" + depth].holdy = ty;
_parent["cell" + depth].depth = depth;
_parent["cell" + depth].active = 1;
_parent["cell" + depth].cellcount = cellcount;
if ((x == 0) && (0 < eggoffset)) {
_parent["cell" + depth].fillable = 0;
_parent["cell" + depth].frame = brickframe;
_parent["cell" + depth].gotoAndStop(brickframe);
} else {
bricktracker = depth;
_parent["cell" + depth].fillable = 1;
_parent["cell" + depth].frame = brickframe;
_parent["cell" + depth].gotoAndStop(brickframe);
}
x++;
}
return(0);
}
x = 0;
while (x < cols) {
edepth--;
depth = edepth;
depth++;
eggcount++;
cellcount++;
eggsactive++;
lasteggset = cellcount;
eggarray[cellcount] = depth;
tempcolor = getrandom(maxcolors) + 1;
duplicateMovieClip (_parent.eggmaster, ["cell" + depth], depth);
_parent["cell" + depth]._x = tx + (x * cellwidth);
_parent["cell" + depth]._y = ty;
_parent["cell" + depth].holdx = tx + (x * cellwidth);
_parent["cell" + depth].holdy = ty;
_parent["cell" + depth].depth = depth;
_parent["cell" + depth].active = 1;
_parent["cell" + depth].cellcount = cellcount;
if (blank != 1) {
if ((x == 0) && (0 < eggoffset)) {
_parent["cell" + depth].fillable = 0;
_parent["cell" + depth].frame = blankegg;
_parent["cell" + depth].gotoAndStop(blankegg);
} else {
_parent["cell" + depth].fillable = 1;
_parent["cell" + depth].frame = tempcolor;
_parent["cell" + depth].row = rowsdropped;
_parent["cell" + depth].gotoAndStop(tempcolor);
colorarray[tempcolor]++;
this["rowinfo" + rowsdropped]++;
}
} else if ((x == 0) && (0 < eggoffset)) {
_parent["cell" + depth].fillable = 0;
_parent["cell" + depth].frame = blankegg;
_parent["cell" + depth].gotoAndStop(blankegg);
} else {
_parent["cell" + depth].fillable = 1;
_parent["cell" + depth].frame = blankegg;
_parent["cell" + depth].row = rowsdropped;
_parent["cell" + depth].gotoAndStop(blankegg);
}
_parent["cell" + depth].dotnt();
x++;
}
}
function rightedge(cell) {
if ((cell % cols) == (cols - 1)) {
return(1);
}
return(0);
}
function bottomedge(cell) {
if (cell >= (totalcells - cols)) {
return(1);
}
return(0);
}
function leftedge(cell) {
if ((cell % cols) == 0) {
return(1);
}
return(0);
}
function checkformoves(scell) {
tscore = 0;
scellhold = scell;
anitypes.splice(0);
anibaby.splice(0);
anilocs.splice(0);
anicolor.splice(0);
checkformovesnum = -1;
highestremoved = 0;
moves = eggarray.slice(0);
removearray.splice(0);
val = eggarray[scell];
if (_parent["cell" + val].frame != bombpic) {
checkcolor = _parent["cell" + val].frame;
result = startworm(scell, checkcolor);
if (result >= minremove) {
tscore = tscore + (result - 2);
combocount++;
if (comboability == 1) {
if ((soundon == 1) && (0 < combocount)) {
_parent.soundcombos.gotoAndPlay(combocount * 5);
}
_parent["g" + ctextdepth].gotoAndPlay(combocount * 10);
}
i = 0;
while (i < removearray.length) {
num = removearray[i];
if (highestremoved < num) {
highestremoved = num;
}
val = eggarray[num];
type = 0;
baby = 0;
setbonus(_parent["cell" + val].bonus._currentFrame);
if (0 < _parent["cell" + val].tnt) {
type = 1;
}
if ((0 < _parent["cell" + val].babyshake) && (babyshakeron == 1)) {
babyshaker = 0;
baby = random(3) + 1;
}
anitypes.push(type);
anibaby.push(baby);
anilocs.push(val);
anicolor.push(_parent["cell" + val].frame);
_parent["cell" + val].turnoff();
i++;
}
finddroppers();
} else {
combocount = 0;
}
delete moves;
ret = result;
result = 0;
if (0 < anitypes.length) {
doani();
}
if (0 < dropcount) {
tscore = tscore * dropcount;
}
val = eggarray[highestremoved];
adjustscore(tscore, _parent["cell" + val]._x, _parent["cell" + val]._y);
} else {
explodethunderbomb(scellhold);
}
}
function explodethunderbomb(scellhold) {
thunderboming = 0;
removearray.push(scellhold);
startcell = scellhold;
if (getrowoffset(startcell) == 0) {
startcell = startcell + (cols * 2);
} else {
startcell = startcell + (cols * 3);
}
scount = 0;
while ((leftedge(startcell) == 0) && (scount < 2)) {
scount++;
startcell--;
}
r = 0;
while (r < 5) {
c = startcell;
while (c < (startcell + (3 + scount))) {
pcell = c - (r * cols);
if (highestremoved < pcell) {
highestremoved = pcell;
}
removearray.push(pcell);
if (rightedge(pcell)) {
c = startcell + 6;
}
c++;
}
r++;
}
i = 0;
while (i < removearray.length) {
num = removearray[i];
val = eggarray[num];
baby = 0;
type = 1;
if (0 < _parent["cell" + val].babyshake) {
babyshaker = 0;
}
anitypes.push(type);
anibaby.push(baby);
anilocs.push(val);
anicolor.push(_parent["cell" + val].frame);
_parent["cell" + val].turnoff();
i++;
}
finddroppers();
if (0 < anitypes.length) {
doani();
}
backpeddle = 3;
thunderbombing = 0;
if (0 < dropcount) {
tscore = tscore * dropcount;
}
val = eggarray[highestremoved];
adjustscore(tscore, _parent["cell" + val]._x, _parent["cell" + val]._y);
}
function doani() {
sdepth = 10000;
if (soundon == 1) {
_parent.soundtnt.gotoAndPlay(2);
}
a = 0;
while (a < anitypes.length) {
trace("A: " + anilocs[a]);
if (anitypes[a] == 1) {
dropbomb(a);
} else {
dropyolk(a);
}
if (0 < anibaby[a]) {
dropbaby(a);
}
if (0 < scorebonus) {
stardrops(a);
}
a++;
}
}
function stardrops(a) {
bx = _parent["cell" + anilocs[a]]._x;
by = _parent["cell" + anilocs[a]]._y;
starcount = scorebonus * 2;
x = 0;
while (x < starcount) {
sdepth++;
duplicateMovieClip (_parent.starsg, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth].gotoAndPlay(random(5) + 1);
_parent["ani" + sdepth]._x = bx;
_parent["ani" + sdepth]._y = by;
x++;
}
}
function dropbaby(a) {
if (soundon == 1) {
_parent.soundbaby.gotoAndPlay(2);
}
bx = _parent["cell" + anilocs[a]]._x;
by = _parent["cell" + anilocs[a]]._y;
sdepth++;
babyshaker = 0;
duplicateMovieClip (_parent.baby, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth].gotoAndPlay(anibaby[a]);
_parent["ani" + sdepth]._x = bx;
_parent["ani" + sdepth]._y = by;
}
function whirleyeggdrop(sx, sy) {
sc = getcell(sx, sy);
if (_parent["cell" + nextslingdepth].frame == bombpic) {
explodethunderbomb(sc);
}
removeMovieClip(_parent["cell" + nextslingdepth]);
if (soundon) {
_parent.soundbreakegg.gotoAndPlay(2);
}
sdepth++;
duplicateMovieClip (_parent.yolk, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = sx + 10;
_parent["ani" + sdepth]._y = sy;
sdepth++;
duplicateMovieClip (_parent.yolk, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = sx - 10;
_parent["ani" + sdepth]._y = (sy + random(20)) - 10;
sdepth++;
duplicateMovieClip (_parent.topeggg, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = (sx + random(20)) - 10;
_parent["ani" + sdepth]._y = sy;
_parent["ani" + sdepth].gotoAndStop(maxcolors + 1);
sdepth++;
duplicateMovieClip (_parent.bottomeggg, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = (sx + random(20)) - 10;
_parent["ani" + sdepth]._y = sy;
_parent["ani" + sdepth].gotoAndStop(maxcolors + 1);
sdepth++;
duplicateMovieClip (_parent.shrapballg, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = (sx + random(20)) - 10;
_parent["ani" + sdepth]._y = sy;
}
function starsontimerdude(tx, ty) {
tempdepth = 160000 /* 0x027100 */;
bx = tx;
by = ty;
starcount = 20;
x = 0;
while (x < starcount) {
tempdepth++;
duplicateMovieClip (_parent.starsg, ["ani" + tempdepth], tempdepth);
_parent["ani" + tempdepth].gotoAndPlay(random(5) + 1);
_parent["ani" + tempdepth]._x = bx;
_parent["ani" + tempdepth]._y = by;
x++;
}
}
function dropyolk(a) {
bx = _parent["cell" + anilocs[a]]._x;
by = _parent["cell" + anilocs[a]]._y;
if (by == 18) {
return(0);
}
sdepth++;
duplicateMovieClip (_parent.yolk, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = bx;
_parent["ani" + sdepth]._y = by;
if (getrandom(2) == 0) {
sdepth++;
duplicateMovieClip (_parent.shrapballg, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = (bx + random(20)) - 10;
_parent["ani" + sdepth]._y = by;
} else {
sdepth++;
duplicateMovieClip (_parent.topeggg, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = (bx + random(20)) - 10;
_parent["ani" + sdepth]._y = by;
_parent["ani" + sdepth].gotoAndStop(anicolor[a]);
sdepth++;
duplicateMovieClip (_parent.bottomeggg, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = (bx + random(20)) - 10;
_parent["ani" + sdepth]._y = by;
_parent["ani" + sdepth].gotoAndStop(anicolor[a]);
}
}
function dropbomb(a) {
bx = _parent["cell" + anilocs[a]]._x;
by = _parent["cell" + anilocs[a]]._y;
if (by == 18) {
return(0);
}
sdepth++;
duplicateMovieClip (_parent.bomb, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = bx;
_parent["ani" + sdepth]._y = by;
if (random(3) == 0) {
sdepth++;
duplicateMovieClip (_parent.tntdrop, ["ani" + sdepth], sdepth);
_parent["ani" + sdepth]._x = bx;
_parent["ani" + sdepth]._y = by;
}
}
function finddroppers() {
end = lasteggset;
removearray.splice(0);
checkedarray.splice(0);
start = lowestcell;
droparray.splice(0);
bl = end;
while (bl >= start) {
startthread(bl);
bl--;
}
dropcount = removearray.length;
i = 0;
while (i < removearray.length) {
num = removearray[i];
if (highestremoved < num) {
highestremoved = num;
}
val = eggarray[num];
type = 0;
baby = 0;
if (0 < _parent["cell" + val].babyshake) {
babyshaker = 0;
}
if (0 < _parent["cell" + val].tnt) {
type = 1;
}
anitypes.push(type);
anibaby.push(baby);
anilocs.push(val);
_parent["cell" + val].turnoff();
i++;
}
}
function startthread(scell) {
tarray.splice(0);
grouparray.splice(0);
con = -1;
val = eggarray[scell];
if (_parent["cell" + val].frame == blankegg) {
return(0);
}
tarray.push(scell);
grouparray.push(scell);
while ((con == -1) && (0 < tarray.length)) {
scell = tarray[0];
tarray = tarray.slice(1);
if (con == -1) {
rc1 = fillcellrc1(scell, tcol, rowoffset);
if (rc1 >= 0) {
groupmaker(rc1);
}
}
if (con == -1) {
rc2 = fillcellrc2(scell, tcol, rowoffset);
if (rc2 >= 0) {
groupmaker(rc2);
}
}
if (con == -1) {
rc3 = fillcellrc3(scell, tcol, rowoffset);
if (rc3 >= 0) {
groupmaker(rc3);
}
}
if (con == -1) {
rc4 = fillcellrc4(scell, tcol, rowoffset);
if (rc4 >= 0) {
groupmaker(rc4);
}
}
if (con == -1) {
rc5 = fillcellrc5(scell, tcol, rowoffset);
if (rc5 >= 0) {
groupmaker(rc5);
}
}
if (con == -1) {
rc6 = fillcellrc6(scell, tcol, rowoffset);
if (rc6 >= 0) {
groupmaker(rc6);
}
}
}
if ((con == 0) || (con == -1)) {
ml = 0;
while (ml < grouparray.length) {
removearray.push(grouparray[ml]);
droparray[grouparray[ml]] = 0;
ml++;
}
} else if (con == 1) {
ml = 0;
while (ml < grouparray.length) {
droparray[grouparray[ml]] = 1;
ml++;
}
}
}
function groupmaker(ml) {
if (droparray[ml] == 0) {
con = 0;
}
if (droparray[ml] == 1) {
con = 1;
} else if (lasteggset < ml) {
con = 1;
}
if ((ml >= 0) && (checkedarray[ml] != 1)) {
checkedarray[ml] = 1;
val = eggarray[ml];
if (_parent["cell" + val].frame != blankegg) {
grouparray.push(ml);
tarray.push(ml);
}
}
}
function startworm(tcell, tcolor) {
result = 1;
removearray.splice(0);
moves = eggarray.slice(0);
checklistarray.splice(0);
checklistarray.push(tcell);
return(runworms(tcolor));
}
function runworms(tcolor) {
while (0 < checklistarray.length) {
tcell = checklistarray[0];
checklistarray = checklistarray.slice(1);
fillcells16offhor(tcell);
if (moves[tcell] >= 0) {
moves[tcell] = -1;
removearray.push(tcell);
if (rc1 >= 0) {
val = moves[rc1];
if (((rc1 >= 0) && (val >= 0)) && (_parent["cell" + val].frame == tcolor)) {
result++;
checklistarray.push(rc1);
}
}
if (rc2 >= 0) {
val = moves[rc2];
if (((rc2 >= 0) && (val >= 0)) && (_parent["cell" + val].frame == tcolor)) {
result++;
checklistarray.push(rc2);
}
}
if (rc3 >= 0) {
val = moves[rc3];
if (((rc3 >= 0) && (val >= 0)) && (_parent["cell" + val].frame == tcolor)) {
result++;
checklistarray.push(rc3);
}
}
if (rc4 >= 0) {
val = moves[rc4];
if (((rc4 >= 0) && (val >= 0)) && (_parent["cell" + val].frame == tcolor)) {
result++;
checklistarray.push(rc4);
}
}
if (rc5 >= 0) {
val = moves[rc5];
if (((rc5 >= 0) && (val >= 0)) && (_parent["cell" + val].frame == tcolor)) {
result++;
checklistarray.push(rc5);
}
}
if (rc6 >= 0) {
val = moves[rc6];
if (((rc6 >= 0) && (val >= 0)) && (_parent["cell" + val].frame == tcolor)) {
result++;
checklistarray.push(rc6);
}
}
}
}
return(result);
}
function fillcellrc1(scell, tcol, rowoffset) {
tcol = returncol(scell);
rowoffset = getrowoffset(scell);
if (rowoffset) {
rc1 = scell + cols;
if (tcol == 0) {
rc1 = -10;
}
} else {
rc1 = (scell + cols) + 1;
if (tcol == (cols - 1)) {
rc1 = -10;
}
}
return(rc1);
}
function fillcellrc2(scell, tcol, rowoffset) {
tcol = returncol(scell);
rowoffset = getrowoffset(scell);
if (rowoffset) {
rc2 = scell + 1;
if (tcol == (cols - 1)) {
rc2 = -10;
}
if (tcol == 0) {
rc2 = -10;
}
} else {
rc2 = scell + 1;
if (tcol == (cols - 1)) {
rc2 = -10;
}
}
return(rc2);
}
function fillcellrc3(scell, tcol, rowoffset) {
tcol = returncol(scell);
rowoffset = getrowoffset(scell);
if (rowoffset) {
rc3 = scell - cols;
if (tcol == 0) {
rc3 = -10;
}
} else {
rc3 = (scell - cols) + 1;
if (tcol == (cols - 1)) {
rc3 = -10;
}
}
return(rc3);
}
function fillcellrc4(scell, tcol, rowoffset) {
tcol = returncol(scell);
rowoffset = getrowoffset(scell);
if (rowoffset) {
rc4 = (scell - cols) - 1;
if (tcol == 0) {
rc4 = -10;
}
} else {
rc4 = scell - cols;
if (tcol == 0) {
rc4 = -10;
}
}
return(rc4);
}
function fillcellrc5(scell, tcol, rowoffset) {
tcol = returncol(scell);
rowoffset = getrowoffset(scell);
if (rowoffset) {
rc5 = scell - 1;
if ((tcol == 0) || (tcol == 1)) {
rc5 = -10;
}
} else {
rc5 = scell - 1;
if (tcol == 0) {
rc5 = -10;
}
}
return(rc5);
}
function fillcellrc6(scell, tcol, rowoffset) {
tcol = returncol(scell);
rowoffset = getrowoffset(scell);
if (rowoffset) {
rc6 = (scell + cols) - 1;
if (tcol == 0) {
rc6 = -10;
}
} else {
rc6 = scell + cols;
if (tcol == 0) {
rc6 = -10;
}
}
return(rc6);
}
function fillcells16offhor(scell) {
tcol = returncol(scell);
if (getrowoffset(scell)) {
rc1 = scell + cols;
rc2 = scell + 1;
rc3 = scell - cols;
rc4 = (scell - cols) - 1;
rc5 = scell - 1;
rc6 = (scell + cols) - 1;
if (tcol == (cols - 1)) {
rc2 = -10;
}
if (tcol == 0) {
rc4 = -10;
rc5 - 10;
rc6 = -10;
}
if (tcol == 1) {
rc5 = -10;
}
} else {
rc1 = (scell + cols) + 1;
rc2 = scell + 1;
rc3 = (scell - cols) + 1;
rc4 = scell - cols;
rc5 = scell - 1;
rc6 = scell + cols;
if (tcol == 0) {
rc4 = -10;
rc5 = -10;
rc6 = -10;
}
if (tcol == (cols - 1)) {
rc1 = -10;
rc2 = -10;
rc3 = -10;
}
}
}
function returncol(cell) {
if (cell < cols) {
return(cell);
}
return(cell % cols);
}
function getrowoffset(cell) {
trow = int(cell / cols);
if (geteven(trow)) {
return(1);
}
return(0);
}
function getrow(cell) {
return(int(cell / cols));
}
function getcell(sx, sy) {
sx = sx + (cellwidth / 2);
sy = sy + (cellheight / 2);
hy = gethighestegg();
sy = sy - hy;
sx = sx - _parent["g" + leftwalldepth]._x;
trow = int(sy / cellheight);
offsettrue = 0;
if (geteven(rowsdropped - trow) == 0) {
sx = sx - (cellwidth / 2);
offsettrue = 1;
}
tcol = int(sx / cellwidth);
tcell = (lasteggset - (cols - tcol)) + 1;
tcell = tcell - (cols * trow);
if ((offsettrue == 0) && (tcol == 0)) {
return(-10);
}
return(tcell);
}
function geteven(num) {
if (num == 0) {
return(1);
}
if (num == 1) {
return(0);
}
if ((num % 2) == 0) {
return(1);
}
return(0);
}
function getrandom(num) {
theNum = (seed * 2634) + 4354;
theNum2 = String(theNum);
theNum3 = theNum2.slice(-4);
theNum3 = theNum2.slice(0, 3);
seed = theNum3;
theNum3 = theNum3 % num;
return(theNum3);
}
function gethighestegg() {
val = eggarray[lasteggset];
return(_parent["cell" + val]._y);
}
function updatearrow() {
if ((_root._xmouse < 449) && (140 < _root._xmouse)) {
ta = _parent.motions.getAngle(throwx, throwy, _root._xmouse, _root._ymouse);
len = _parent.motions.getVector(throwx, throwy, _root._xmouse, _root._ymouse);
arrowdepthrotation = ta;
_parent["g" + arrowdepth]._rotation = ta;
_parent["g" + arrowdepth]._height = len;
_parent["g" + arrowdepth]._width = len / 4;
}
}
function getnextbestcolor() {
temparray.splice(0);
x = 0;
while (maxcolors >= x) {
if (0 < colorarray[x]) {
temparray.push(x);
}
x++;
}
if (temparray.length == 0) {
return(1);
}
len = temparray.length;
tc = getrandom(len);
return(temparray[tc]);
}
function setnextegg() {
negg++;
depth = negg;
depth++;
nextreadydepth = depth;
nextready = getnextbestcolor();
duplicateMovieClip (_parent.eggmaster, ["cell" + depth], depth);
_parent["cell" + depth]._x = nextx;
_parent["cell" + depth]._y = nexty;
_parent["cell" + depth].depth = depth;
_parent["cell" + depth].active = 0;
_parent["cell" + depth].cellcount = cellcount;
if ((givebonus == 1) && (givebonuseggs == 1)) {
givebonus = 0;
bon = pickabonus();
_parent["cell" + depth].bonus.gotoAndStop(bon);
}
_parent["cell" + depth].gotoAndPlay(nextready);
}
function pickabonus() {
clear = 0;
while (clear == 0) {
bon = getrandom(7) + 3;
clear = 1;
if ((bon == 2) && (xon == 1)) {
clear = 0;
}
if ((0 < scorebonus) && ((bon >= 3) && (6 >= bon))) {
clear = 0;
}
}
return(bon);
}
function setslingegg() {
nextslingdepth = nextreadydepth;
slingready = nextready;
nextready = 0;
_parent["cell" + nextslingdepth]._x = throwx;
_parent["cell" + nextslingdepth]._y = throwy;
_parent["g" + slingshotdepth].gotoAndStop(2);
}
function makecommas(num) {
return(num);
while (0 < start) {
char = temp.substr(start, 1);
rstr = rstr + char;
start--;
ccount++;
if (ccount == 3) {
rstr = rstr + ",";
ccount = 0;
}
}
return(rstr);
}
function throweggstart() {
inrange = 0;
if ((_root._xmouse < 449) && (140 < _root._xmouse)) {
inrange = 1;
}
if ((slingready == 0) || (inrange == 0)) {
return(0);
}
eggmoving = 1;
if (soundon) {
_parent.soundslingshot.gotoAndPlay(2);
}
_parent["g" + slingshotdepth].gotoAndPlay(3);
eggangle = arrowdepthrotation;
totalshots--;
if (totalshots < 0) {
totalshots = 0;
}
_parent.showbonus = makecommas(totalshots * pointspermove);
if (_parent.showbonus < 0) {
_parent.showbonus = 0;
}
}
function makepath() {
dpx = 0;
dpy = 0;
stepcount = 0;
searching = 1;
while ((stepcount < 400) && (searching == 1)) {
result = nextstep();
stepcount++;
if ((result == 1) || (result == 2)) {
eggangle = _parent.motions.reflectAngle(eggangle, 0);
}
if (result == 3) {
searching = 0;
}
}
}
function moveegg() {
result = nextstep(_parent["cell" + nextslingdepth]._x, _parent["cell" + nextslingdepth]._y, eggangle);
if ((result == 1) || (result == 2)) {
eggangle = _parent.motions.reflectAngle(eggangle, 0);
}
if (result == 3) {
eggmoving = 0;
slingready = 0;
}
if (result == 4) {
setthrowegg();
}
if (result == 5) {
eggmoving = 0;
slingready = 0;
}
if (result == 0) {
_parent["cell" + nextslingdepth]._x = temppoint.x;
_parent["cell" + nextslingdepth]._y = temppoint.y;
}
}
function setbluex() {
if ((showbluex == 0) && (slingready == 0)) {
return(0);
}
if (oldangle == arrowdepthrotation) {
_parent["g" + blueydepth]._y = _parent["g" + blueydepth]._y - eggstep;
return(0);
}
if (eggmoving == 1) {
return(0);
}
oldangle = arrowdepthrotation;
trackx = _parent["cell" + nextslingdepth]._x;
tracky = _parent["cell" + nextslingdepth]._y;
result = 0;
tempangle = arrowdepthrotation;
while (result < 3) {
result = nextstep(trackx, tracky, tempangle);
if ((result == 1) || (result == 2)) {
tempangle = _parent.motions.reflectAngle(eggangle, 0);
}
trackx = temppoint.x;
tracky = temppoint.y;
}
_parent["g" + bluexdepth]._x = trackx;
_parent["g" + bluexdepth]._y = tracky;
}
function nextstep(tx, ty, tangle) {
temppoint.x = tx;
temppoint.y = ty;
shortthrowstep = 5;
csteps = 6;
st = 0;
while (st < csteps) {
lastx = temppoint.x;
lasty = temppoint.y;
temppoint = _parent.motions.moveObj(temppoint.x + offx, temppoint.y, tangle, shortthrowstep);
if (temppoint.x < (_parent["g" + leftwalldepth]._x + (cellwidth / 2))) {
temppoint.x = _parent["g" + leftwalldepth]._x + (cellwidth / 2);
return(1);
}
if ((_parent["g" + rightwalldepth]._x - (cellwidth / 2)) < temppoint.x) {
temppoint.x = _parent["g" + rightwalldepth]._x - (cellwidth / 2);
return(2);
}
if (_parent["g" + whirleydepth].hitarea.hitTest(temppoint.x, temppoint.y, false)) {
_parent["g" + whirleydepth].hitwhirley = 1;
return(5);
}
if (temppoint.y < -50) {
return(3);
}
tcell = getcell(temppoint.x, temppoint.y);
val = eggarray[tcell];
if ((_parent["cell" + val].frame != blankegg) && (_parent["cell" + val].fillable == 1)) {
return(4);
}
if (_parent["cell" + val].frame == brickframe) {
return(4);
}
st++;
}
return(0);
}
function setthrowegg() {
eggmoving = 0;
found = 0;
fcount = 0;
fail = 0;
while (found == 0) {
fcount++;
tcell = getcell(lastx, lasty);
val = eggarray[tcell];
if (_parent["cell" + val].frame != blankegg) {
lastx = lastx + (eggstep + 1);
lasty = lasty + (eggstep + 1);
} else {
found = 1;
}
if (fcount >= 25) {
found = 1;
fail = 1;
}
}
if ((0 < _parent["cell" + val].row) && (fail == 0)) {
_parent["cell" + val].frame = slingready;
updaterow(1, _parent["cell" + val].row);
colorarray[slingready]++;
_parent["cell" + val].gotoAndStop(slingready);
_parent["cell" + val].bonus.gotoAndStop(_parent["cell" + nextslingdepth].bonus._currentFrame);
checkformovesnum = tcell;
checkformovescount = 3;
}
slingready = 0;
if (soundon) {
_parent.soundegglands.gotoAndPlay(2);
}
removeMovieClip(_parent["cell" + nextslingdepth]);
}
function dothunderbombingactions() {
if (comboability == 0) {
return(0);
}
if (combocount == 9) {
combocount = 0;
thunderbombing = 1;
_parent.thunder.active = 1;
}
if (0 < thunderbombing) {
thunderbombing++;
}
if ((((thunderbombing >= 15) && (eggmoving == 0)) && (0 < slingready)) && (slingready != bombpic)) {
_parent["cell" + nextslingdepth].gotoAndStop(bombpic);
_parent["cell" + nextslingdepth].frame = bombpic;
slingready = bombpic;
}
}
function reachedbottom() {
eggstep = 0;
bottomcount++;
if ((bottomcount == 2) && (soundon)) {
_parent.soundaooga.gotoAndPlay(2);
}
if (bottomcount >= 30) {
bigfootdown();
}
}
function bigfootdown() {
setrowsactive = 0;
if (bottomcount == 30) {
if (soundon) {
_parent.soundfootlands.gotoAndPlay(2);
}
_parent["g" + bigfootdepth]._x = center;
_parent["g" + bigfootdepth]._width = (_parent["g" + rightwalldepth]._x - _parent["g" + leftwalldepth]._x) + 40;
dep = tilearray[lasteggset];
_parent["g" + bigfootdepth]._y = _parent["cell" + dep]._y - (cellheight / 2);
}
_parent["g" + bigfootdepth]._y = _parent["g" + bigfootdepth]._y + 100;
slingready = 0;
eggstep = 100;
if (355 < _parent["g" + bigfootdepth]._y) {
_parent["g" + bigfootdepth]._y = 355;
gameover = 1;
_parent.timeractions.timesup == 2;
pause = 1;
}
}
function geteggcount() {
tcount = 0;
x = 0;
while (maxcolors >= x) {
tcount = tcount + colorarray[x];
x++;
}
return(tcount);
}
if ((soundon != 1) && (soundon != 0)) {
soundon = 1;
}
maxmoves = 200;
_parent.showmaxmoves = maxmoves;
totalshots = maxmoves;
pointspermove = 375;
bottomline = 197;
if (_root.ptype == 1) {
timelength = 60;
} else {
timelength = 300;
}
graphicsetup();
requiredrows = 20;
rowstogo = requiredrows;
_parent["g" + rightwalldepth].showrowstogo = requiredrows;
if (totalshots < 0) {
totalshots = 0;
}
_parent.showbonus = makecommas(totalshots * pointspermove);
requiredrows = requiredrows + 6;
seed = 1;
seed = random(100);
cols = 8;
rows = 0;
eggstep = 3;
givebonuseggs = 0;
cellwidth = 23;
cellheight = 25;
maxcolors = 5;
overallmaxcolor = 17;
minremove = 3;
pause = 0;
combocount = 0;
bombpic = 18;
nextx = 240;
nexty = 312;
throwx = 289;
throwy = 327;
throwstep = cellheight * 0.4;
center = 289;
blankegg = 21;
babyshakeron = 0;
comboability = 0;
nextready = 0;
slingready = 0;
eggmoving = 0;
setrowsactive = 1;
thunderbombing = 0;
showbluex = 1;
level = "endless";
skilllevel = 1;
edepth = 5000;
sdepth = 10000;
negg = 5001;
brickceiling = 0;
brickframe = 20;
makearrays();
levelsetup();
}
onClipEvent (enterFrame) {
if (gameover == 1) {
gameover = 2;
_parent["g" + arrowdepth]._rotation = 0;
gameoverfunction(1);
}
if (pause == 0) {
eggstep = 10;
if (17 < _parent["cell" + bricktracker]._y) {
eggstep = 0;
}
if ((bottomline - 12) < lowestegg) {
eggstep = 0;
}
if (278 < lowestegg) {
if (bottomcount == 0) {
reachedbottom();
}
}
if (bottomline < lowestegg) {
eggstep = -10;
}
if (_parent.timeractions.timesup == 1) {
bottomcount++;
} else if (bottomline >= lowestegg) {
bottomcount = 0;
}
if ((0 < bottomcount) || (_parent.timeractions.timesup == 1)) {
reachedbottom();
}
if (0 < backpeddle) {
eggstep = -30;
backpeddle--;
}
updatearrow();
updatebabyshakers();
if (-30 < gethighestegg()) {
setnewrow();
}
if (nextready == 0) {
setnextegg();
}
if (slingready == 0) {
setslingegg();
}
if (eggmoving == 1) {
moveegg();
}
if (edepth < 10) {
edepth = 5000;
}
if (5050 < negg) {
neg = 5001;
}
if (0 < checkformovescount) {
checkformovescount--;
}
if (checkformovescount == 1) {
checkformoves(checkformovesnum);
}
dothunderbombingactions();
setbabyshaker();
lowestegg = 0;
lowestcell = lasteggset;
if (9000 < depth) {
depth = 1000;
}
if (0 < inittimer) {
inittimer--;
}
if (inittimer == 1) {
inittimer = 0;
_parent.timeractions.starttimer(timelength);
}
_parent.eggcount = geteggcount();
tcell = getcell(_root._Xmouse, _root._Ymouse);
_parent.eggcount = _parent["cell" + eggarray[tcell]].row;
if (totalshots < 0) {
totalshots = 0;
}
_parent.showshotsleft = maxmoves - totalshots;
if ((rowstogo == 0) && (bottomcount == 0)) {
bottomcount = 31;
reachedbottom();
}
}
}
onClipEvent (mouseDown) {
updateAfterEvent();
if ((mdown != 1) && (eggmoving == 0)) {
mdown = 1;
_parent.realcell = getcell(_root._xmouse, _root._ymouse);
_parent.realcell = returncol(_parent.realcell);
throweggstart();
}
}
onClipEvent (mouseUp) {
mdown = 0;
}
Instance of Symbol 64 MovieClip "eggmaster" in Frame 25
onClipEvent (load) {
function turnoff() {
if (frame == _parent.actions.blankegg) {
return(0);
}
remove = 0;
tnt = 0;
this.tnt1._visible = 0;
this.tnt2._visible = 0;
this.tnt3._visible = 0;
this.gotoAndPlay(_parent.actions.blankegg);
_parent.actions.colorarray[frame]--;
frame = _parent.actions.blankegg;
_parent.actions.updaterow(-1, row);
if (0 < babyshake) {
babyshake = 0;
_parent.actions.removefrombabyshakers();
}
}
function dotnt() {
tnt = -2;
this.tnt1._visible = 0;
this.tnt2._visible = 0;
this.tnt3._visible = 0;
if (frame == _parent.actions.blankegg) {
return(0);
}
if (_parent.actions.getrandom(3) == 0) {
tnt = random(3) + 1;
if (tnt == 1) {
this.tnt1._visible = 1;
}
if (tnt == 2) {
this.tnt2._visible = 1;
}
if (tnt == 3) {
this.tnt3._visible = 1;
}
}
}
function startbabyshaker() {
if (frame == _parent.actions.blankegg) {
return(0);
}
if (0 < tnt) {
return(0);
}
if (_parent.actions.babyshaker == 1) {
return(0);
}
babyshake = 1;
holdx = this._x;
holdy = this._y;
_parent.actions.babyshaker = 1;
}
function dobabyshaker() {
babyshake++;
if (125 < babyshake) {
babyshake = 0;
_parent.actions.babyshaker = 0;
this._rotation = 0;
} else if ((babyshake % 2) == 0) {
this._rotation = this._rotation + (random(35) - 17.5);
}
if ((babyshake % 10) == 0) {
this._rotation = 0;
}
}
babyshake = 0;
dotnt();
if (_name eq "eggmaster") {
active = 0;
}
this.tnt1._visible = 0;
this.tnt2._visible = 0;
this.tnt3._visible = 0;
}
onClipEvent (enterFrame) {
darray = _parent.actions.droparray[cellcount];
if (active == 1) {
if (_parent.action.eggstep != 0) {
this._y = this._y + _parent.actions.eggstep;
if ((_parent.actions.lowestegg < this._y) && (frame != _parent.actions.blankegg)) {
_parent.actions.lowestegg = this._y;
}
if ((cellcount < _parent.actions.lowestcell) && (frame != _parent.actions.blankegg)) {
_parent.actions.lowestcell = cellcount;
}
if (400 < this._y) {
remove = 1;
}
}
if (remove == 1) {
removeMovieClip(this);
}
if (remove == 2) {
turnoff();
}
if (0 < connected) {
concount++;
}
if (concount == 30) {
connected = "";
concount = 0;
}
}
}
Instance of Symbol 156 MovieClip "baby" in Frame 25
onClipEvent (load) {
if (_name eq "baby") {
active = 0;
} else {
active = 1;
}
stillcount = 10;
}
onClipEvent (enterFrame) {
if (active == 1) {
if (0 < stillcount) {
stillcount--;
}
if (stillcount == 1) {
_parent.actions.adjustscore(25, this._x, this._y);
}
if (stillcount == 8) {
if (_parent.actions.soundon) {
_parent.soundreward.gotoAndPlay(2);
}
_parent.actions.givebonus = 1;
}
if (stillcount == 0) {
this._y = this._y + 25;
if (350 < this._y) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 164 MovieClip "bomb" in Frame 25
onClipEvent (load) {
if (_name eq "bomb") {
active = 0;
} else {
active = 1;
}
scale = 100;
}
onClipEvent (enterFrame) {
if (active == 1) {
scale = scale - 15;
this._xscale = scale;
this._yscale = scale;
if (0 >= scale) {
removeMovieClip(this);
}
}
}
Instance of Symbol 167 MovieClip "yolk" in Frame 25
onClipEvent (load) {
if (_name eq "yolk") {
active = 0;
} else {
active = 1;
}
}
onClipEvent (enterFrame) {
if (active == 1) {
this._y = this._y + 35;
if (350 < this._y) {
removeMovieClip(this);
}
}
}
Instance of Symbol 185 MovieClip "whirley" in Frame 25
onClipEvent (load) {
function runwhirley() {
return(0);
}
function hitwhirleyaction() {
if (falling != 1) {
falling = 1;
if (_parent.actions.soundon == 1) {
_parent.soundwhirleyhit.gotoAndPlay(2);
}
this.egg._visible = 0;
_parent.actions.whirleyeggdrop(this._x, this._y);
}
if (falling == 1) {
this._y = this._y - 25;
if (this._y < -60) {
active = 0;
hitwhirley = 0;
this._rotation = this._rotation - 180;
}
}
}
function switchdir() {
if (dir == 1) {
dir = 2;
gotoAndPlay (25);
} else {
dir = 1;
gotoAndPlay (38);
}
}
active = 0;
flybys = 0;
this._y = 540;
this._x = 100;
}
onClipEvent (enterFrame) {
if (active == 1) {
if (hitwhirley == 1) {
hitwhirleyaction();
} else {
this._y = this._y - step;
if (dir == 1) {
this._x = this._x + (step * 0.8);
} else {
this._x = this._x - (step * 0.8);
}
if (this._x < (_parent["g" + _parent.actions.leftwalldepth]._x + step)) {
switchdir();
}
if (((_parent["g" + _parent.actions.rightwalldepth]._x - step) - 40) < this._x) {
switchdir();
}
if (this._y < -60) {
active = 0;
_parent.actions.maxcolors++;
if (_parent.actions.overallmaxcolor < _parent.actions.maxolors) {
_parent.actions.maxcolors = _parent.actions.overallmaxcolor;
}
flybys = 0;
}
}
}
}
Instance of Symbol 219 MovieClip "thunder" in Frame 25
onClipEvent (load) {
active = 0;
}
onClipEvent (enterFrame) {
if (active == 1) {
active = 0;
if (_parent.actions.soundon == 1) {
_parent.soundthunder.gotoAndPlay(2);
}
this.gotoAndPlay(2);
_parent.bg.gotoAndPlay(2);
}
}
Instance of Symbol 222 MovieClip "timerdude" in Frame 25
onClipEvent (load) {
function resettimer() {
}
function turnoffbonus2() {
this.bonus2.gotoAndStop(1);
_parent.actions.scorebonus = 0;
}
function setbonus(frame) {
_parent.actions.starsontimerdude(this._x, this._y);
if (_parent.actions.soundon == 1) {
_parent.soundbonus.gotoAndPlay(2);
}
if ((frame >= 3) && (5 >= frame)) {
if (frame == 3) {
_parent.actions.scorebonus = 2;
}
if (frame == 4) {
_parent.actions.scorebonus = 3;
}
if (frame == 5) {
_parent.actions.scorebonus = 4;
}
this.bonus2.gotoAndStop(frame);
bcounter2 = 125;
}
if (frame == 6) {
_parent.actions.backpeddle = 4;
}
if (6 < frame) {
if (frame == 6) {
_parent.actions.veggs = 5;
}
if (frame == 7) {
_parent.actions.veggs = 10;
}
if (frame == 9) {
_parent.actions.veggs = 15;
}
}
}
function rundude() {
}
function startwarning() {
resettimer();
this.redthing.gotoAndPlay(2);
if (_parent.actions.soundon == 1) {
_parent.soundsiren.gotoAndPlay(2);
}
}
function callwhirley() {
trace("calling whirley");
_parent["g" + _parent.actions.whirleydepth].runwhirley();
resettimer();
}
if (_name eq "timerdude") {
active = 0;
} else {
active = 1;
}
resettimer();
}
onClipEvent (enterFrame) {
if (active == 1) {
if (0 < bcounter2) {
bcounter2--;
}
if (bcounter2 == 1) {
turnoffbonus2();
}
}
}
Instance of Symbol 75 MovieClip "tntdrop" in Frame 25
onClipEvent (load) {
dir = random(2);
stepx = random(3) + 1;
if (dir == 1) {
stepx = stepx * -1;
}
stepy = 40;
}
onClipEvent (enterFrame) {
this._x = this._x + stepx;
this._y = this._y + stepy;
if (350 < this._y) {
removeMovieClip(this);
}
}
Instance of Symbol 253 MovieClip "shrapballg" in Frame 25
onClipEvent (load) {
if (_name eq "shrapballg") {
active = 0;
} else {
active = 1;
}
xstepper = random(20) - 10;
ystep = 34 + random(15);
dcount = 0;
}
onClipEvent (enterFrame) {
if (active == 1) {
if (dcount < 5) {
this._x = this._x + xstepper;
}
dcount++;
if (1 < dcount) {
this._y = this._y + ystep;
}
if (350 < this._y) {
removeMovieClip(this);
}
}
}
Instance of Symbol 255 MovieClip "topeggg" in Frame 25
onClipEvent (load) {
if (_name eq "topeggg") {
active = 0;
} else {
active = 1;
}
this._x = this._x + (random(60) - 30);
xstepper = random(20) - 10;
ystep = 34 + random(15);
this._rotation = random(360);
dcount = 0;
}
onClipEvent (enterFrame) {
if (active == 1) {
if (dcount < 5) {
this._x = this._x + xstepper;
}
dcount++;
if (1 < dcount) {
this._y = this._y + ystep;
}
if (350 < this._y) {
removeMovieClip(this);
}
}
}
Instance of Symbol 273 MovieClip "bottomeggg" in Frame 25
onClipEvent (load) {
if (_name eq "bottomeggg") {
active = 0;
} else {
active = 1;
}
this._x = this._x + (random(60) - 30);
xstepper = random(20) - 10;
ystep = 34 + random(15);
this._rotation = random(360);
dcount = 0;
}
onClipEvent (enterFrame) {
if (active == 1) {
if (dcount < 5) {
this._x = this._x + xstepper;
}
dcount++;
if (1 < dcount) {
this._y = this._y + ystep;
}
if (350 < this._y) {
removeMovieClip(this);
}
}
}
Instance of Symbol 305 MovieClip "scorefg" in Frame 25
onClipEvent (load) {
function startup(val, sx, sy) {
trace("score startup");
this.num = val;
this._x = sx;
this._y = sy;
active = 1;
}
if (_name eq "scorefg") {
active = 0;
}
}
onClipEvent (enterFrame) {
if (setup == 1) {
active = 1;
setup = 0;
}
if (0 < active) {
active++;
if (active == 15) {
removeMovieClip(this);
}
}
}
Instance of Symbol 311 MovieClip "timeractions" in Frame 25
onClipEvent (load) {
function starttimer(secondsin) {
seconds = secondsin;
starttimers = 1;
}
}
onClipEvent (enterFrame) {
if (starttimers == 1) {
starttimers = 0;
timesup = 0;
offsettimer = getTimer();
timeron = 1;
}
if (timeron) {
time = getTimer();
temptime = int((time - offsettimer) / 1000);
htime = temptime;
if (htime >= seconds) {
timeron = 0;
showmin = "";
showsec = "00";
timesup = 1;
}
if (timeron) {
tr = seconds - htime;
if (((_parent.actions.soundon == 1) && (5 >= tr)) && (trhold != tr)) {
_parent.soundclockclick.gotoAndPlay(2);
trhold = tr;
}
if (59 < tr) {
showmin = int(tr / 60);
showsec = tr % 60;
} else {
showmin = "";
showsec = tr;
}
if ((0 < showmin) && (showsec == 0)) {
showsec = "00";
}
if ((0 < showsec) && (showsec < 10)) {
showsec = "0" + showsec;
}
}
}
showtimer = (showmin + ":") + showsec;
_parent.showtimer = showtimer;
}
Instance of Symbol 314 MovieClip in Frame 25
onClipEvent (load) {
offsettimer = getTimer();
}
onClipEvent (enterFrame) {
framecount++;
if (framecount == 100) {
framecount = 0;
time = getTimer();
timepassed = int((time - offsettimer) / 1000);
_parent.timeframe = "FR: " + (timepassed / 4);
offsettimer = getTimer();
}
}
Instance of Symbol 317 MovieClip "starsg" in Frame 25
onClipEvent (load) {
if (_name ne "starsg") {
active = 1;
}
dir = random(360);
step = random(5) + 2;
steps = random(3) + 4;
stepcount = 0;
}
onClipEvent (enterFrame) {
if (active == 1) {
steps--;
trace("Star: " + _name);
_parent.motions.moveObj2(this, dir, step);
if (steps == 0) {
removeMovieClip(this);
}
}
}
Instance of Symbol 328 MovieClip "soundg" in Frame 25
onClipEvent (load) {
function updatesound() {
if (_parent.actions.soundon == 1) {
_parent.actions.soundon = 0;
this.gotoAndStop(3);
} else {
_parent.actions.soundon = 1;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 346 MovieClip "motions" in Frame 25
onClipEvent (load) {
function initMath() {
_root.Deg2Rad = (Math.PI/180);
_root.Rad2Deg = 1 / _root.Deg2Rad;
_root.TABLE_SIZE = 720;
initTables();
}
function moveObj(x, y, angle, step) {
if (temppoint != 1) {
temp = new Object();
temppoint = 1;
}
if (0 < (angle - 90)) {
ang_adj = angle - 90;
} else {
ang_adj = angle + 270;
}
temp.x = x + (step * _root.myCos[ang_adj]);
temp.y = y + (step * _root.mySin[ang_adj]);
return(temp);
}
function reflectAngle(objAng, hitAng) {
objAng = objAng - hitAng;
objAng = (360 - objAng) + hitAng;
if (objAng >= 360) {
objAng = objAng % 360;
}
return(objAng);
}
function getAngle(x, y, x1, y1) {
distX = x - x1;
distY = y - y1;
t = Math.atan2(distY, distX) * _root.Rad2Deg;
if (t < 0) {
t = t + 360;
}
remain = t - Math.floor(t);
if (0.25 >= remain) {
t = Math.floor(t);
} else if ((0.25 < remain) && (0.75 >= remain)) {
t = Math.floor(t) + 0.5;
} else {
t = Math.ceil(t);
}
t = t - 90;
return(t);
}
function Rand(min, max) {
return(Math.floor(Math.random() * ((max + 1) - min)) + min);
}
function getVector(x, y, x1, y1) {
return(Math.sqrt(((x - x1) * (x - x1)) + ((y - y1) * (y - y1))));
}
function initTables() {
_root.mySin = new Array(_root.TABLE_SIZE);
_root.myCos = new Array(_root.TABLE_SIZE);
i = 0;
while (i < _root.TABLE_SIZE) {
temp = _root.Deg2Rad * i;
_root.mySin[i] = Math.sin(temp);
_root.myCos[i] = Math.cos(temp);
i = i + 0.5;
}
}
function moveObj2(object, angle, step) {
if (0 < (angle - 90)) {
ang_adj = angle - 90;
} else {
ang_adj = angle + 270;
}
object._x = object._x + (step * _root.myCos[ang_adj]);
object._y = object._y + (step * _root.mySin[ang_adj]);
}
initMath();
}
Symbol 12 Button
on (release) {
_parent.play();
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 2
stop();
Symbol 25 Button
on (release) {
play();
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 3
stop();
Symbol 80 MovieClip Frame 4
stop();
Symbol 80 MovieClip Frame 5
stop();
Symbol 80 MovieClip Frame 6
stop();
Symbol 80 MovieClip Frame 7
stop();
Symbol 80 MovieClip Frame 8
stop();
Symbol 80 MovieClip Frame 9
stop();
Symbol 80 MovieClip Frame 10
stop();
Symbol 80 MovieClip Frame 11
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 4
stop();
Symbol 64 MovieClip Frame 5
stop();
Symbol 64 MovieClip Frame 6
stop();
Symbol 64 MovieClip Frame 7
stop();
Symbol 64 MovieClip Frame 8
stop();
Symbol 64 MovieClip Frame 9
stop();
Symbol 64 MovieClip Frame 10
stop();
Symbol 64 MovieClip Frame 11
stop();
Symbol 64 MovieClip Frame 12
stop();
Symbol 64 MovieClip Frame 13
stop();
Symbol 64 MovieClip Frame 14
stop();
Symbol 64 MovieClip Frame 15
stop();
Symbol 64 MovieClip Frame 16
stop();
Symbol 64 MovieClip Frame 17
stop();
Symbol 64 MovieClip Frame 18
stop();
Symbol 64 MovieClip Frame 19
stop();
Symbol 64 MovieClip Frame 20
stop();
Symbol 64 MovieClip Frame 21
stop();
Symbol 64 MovieClip Frame 22
stop();
Symbol 64 MovieClip Frame 23
stop();
Symbol 64 MovieClip Frame 24
stop();
Symbol 64 MovieClip Frame 25
stop();
Symbol 64 MovieClip Frame 26
stop();
Symbol 64 MovieClip Frame 27
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 156 MovieClip Frame 3
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
stop();
Symbol 163 MovieClip Frame 3
stop();
Symbol 163 MovieClip Frame 4
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 9
gotoAndStop (1);
Symbol 177 MovieClip Frame 14
gotoAndStop (1);
Symbol 177 MovieClip Frame 19
gotoAndStop (1);
Symbol 177 MovieClip Frame 24
gotoAndStop (1);
Symbol 177 MovieClip Frame 29
gotoAndStop (1);
Symbol 177 MovieClip Frame 34
gotoAndStop (1);
Symbol 177 MovieClip Frame 39
gotoAndStop (1);
Symbol 177 MovieClip Frame 44
gotoAndStop (1);
Symbol 177 MovieClip Frame 49
gotoAndStop (1);
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 3
stop();
Symbol 186 MovieClip Frame 4
stop();
Symbol 186 MovieClip Frame 5
stop();
Symbol 186 MovieClip Frame 6
stop();
Symbol 186 MovieClip Frame 7
stop();
Symbol 186 MovieClip Frame 8
stop();
Symbol 186 MovieClip Frame 9
stop();
Symbol 186 MovieClip Frame 10
stop();
Symbol 186 MovieClip Frame 11
stop();
Symbol 186 MovieClip Frame 12
stop();
Symbol 186 MovieClip Frame 13
stop();
Symbol 186 MovieClip Frame 14
stop();
Symbol 186 MovieClip Frame 15
stop();
Symbol 186 MovieClip Frame 16
stop();
Symbol 186 MovieClip Frame 17
stop();
Symbol 186 MovieClip Frame 18
stop();
Symbol 186 MovieClip Frame 19
stop();
Symbol 186 MovieClip Frame 20
stop();
Symbol 185 MovieClip Frame 12
gotoAndPlay (1);
Symbol 185 MovieClip Frame 24
gotoAndPlay (13);
Symbol 213 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 3
stop();
Symbol 228 MovieClip Frame 4
stop();
Symbol 228 MovieClip Frame 5
stop();
Symbol 228 MovieClip Frame 6
stop();
Symbol 228 MovieClip Frame 7
stop();
Symbol 228 MovieClip Frame 8
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 17
_parent.callwhirley();
Symbol 238 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 3
stop();
Symbol 255 MovieClip Frame 4
stop();
Symbol 255 MovieClip Frame 5
stop();
Symbol 255 MovieClip Frame 6
stop();
Symbol 255 MovieClip Frame 7
stop();
Symbol 255 MovieClip Frame 8
stop();
Symbol 255 MovieClip Frame 9
stop();
Symbol 255 MovieClip Frame 10
stop();
Symbol 255 MovieClip Frame 11
stop();
Symbol 255 MovieClip Frame 12
stop();
Symbol 255 MovieClip Frame 13
stop();
Symbol 255 MovieClip Frame 14
stop();
Symbol 255 MovieClip Frame 15
stop();
Symbol 255 MovieClip Frame 16
stop();
Symbol 255 MovieClip Frame 17
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 3
stop();
Symbol 273 MovieClip Frame 4
stop();
Symbol 273 MovieClip Frame 5
stop();
Symbol 273 MovieClip Frame 6
stop();
Symbol 273 MovieClip Frame 7
stop();
Symbol 273 MovieClip Frame 8
stop();
Symbol 273 MovieClip Frame 9
stop();
Symbol 273 MovieClip Frame 10
stop();
Symbol 273 MovieClip Frame 11
stop();
Symbol 273 MovieClip Frame 12
stop();
Symbol 273 MovieClip Frame 13
stop();
Symbol 273 MovieClip Frame 14
stop();
Symbol 273 MovieClip Frame 15
stop();
Symbol 273 MovieClip Frame 16
stop();
Symbol 273 MovieClip Frame 17
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
stop();
Symbol 291 MovieClip Frame 3
stop();
Symbol 291 MovieClip Frame 4
stop();
Symbol 291 MovieClip Frame 5
stop();
Symbol 291 MovieClip Frame 6
stop();
Symbol 291 MovieClip Frame 7
stop();
Symbol 291 MovieClip Frame 8
stop();
Symbol 291 MovieClip Frame 9
stop();
Symbol 291 MovieClip Frame 10
stop();
Symbol 291 MovieClip Frame 11
stop();
Symbol 291 MovieClip Frame 12
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 2
stop();
Symbol 317 MovieClip Frame 3
stop();
Symbol 317 MovieClip Frame 4
stop();
Symbol 317 MovieClip Frame 5
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
stop();
Symbol 328 MovieClip Frame 3
stop();
Symbol 328 MovieClip Frame 4
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
thisname = _name;
stop();
Symbol 334 MovieClip Frame 2
play();
Symbol 334 MovieClip Frame 52
tok = 999;
_root.testtime = getTimer();
if (_root.mylah < 0) {
_root.mylah = _root.mylah * -1;
}
rezern = _root.neotin(_root.ts, _root.mylah);
myExpression = ("" + rezern) + "";
loadVariables (myExpression, "_root");
waiting = getTimer() + 16000;
Symbol 334 MovieClip Frame 63
sendscore = new LoadVars();
sendscore.game_name = "dynomite";
sendscore.score = _root.mylah;
sendscore.send("newscore.php", "_self", "POST");
stop();
Symbol 334 MovieClip Frame 64
stop();
Symbol 334 MovieClip Frame 65
stop();
Symbol 334 MovieClip Frame 66
prevFrame();
Symbol 334 MovieClip Frame 67
gotoAndPlay ("enderror");
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 9
stop();
Symbol 365 MovieClip Frame 19
stop();
Symbol 365 MovieClip Frame 29
gotoAndPlay (1);
Symbol 365 MovieClip Frame 39
gotoAndPlay (1);
Symbol 365 MovieClip Frame 49
gotoAndPlay (1);
Symbol 365 MovieClip Frame 59
gotoAndPlay (1);
Symbol 365 MovieClip Frame 69
gotoAndPlay (1);
Symbol 365 MovieClip Frame 79
gotoAndPlay (1);
Symbol 365 MovieClip Frame 89
gotoAndPlay (1);
Symbol 365 MovieClip Frame 99
gotoAndPlay (1);
Symbol 386 Button
on (release) {
this.soundg.updatesound();
}
Symbol 400 Button
on (release) {
_parent.actions.gameoverfunction(2);
gotoAndStop (2);
}
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 2
stop();