Frame 1
total = getBytesTotal();
fscommand ("fullscreen", true);
Frame 4
loaded = getBytesLoaded();
percent = 100 * (loaded / total);
this.loaderhold.loader._yscale = percent;
Frame 5
if (percent < 99) {
gotoAndPlay (4);
}
Frame 34
Mouse.hide();
Instance of Symbol 44 MovieClip in Frame 34
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 38
stop();
Frame 39
function rotatefrog() {
rotit = rot / 10;
if (rot == 90) {
if ((frogrot < 27) && (frogrot > 9)) {
frogrot = frogrot - 1;
}
if ((frogrot > 26) || (frogrot < 10)) {
frogrot = frogrot + 1;
if (frogrot == 37) {
frogrot = 1;
}
}
}
if (rot == 0) {
if ((frogrot < 19) && (frogrot > 0)) {
frogrot = frogrot - 1;
}
if (frogrot > 18) {
frogrot = frogrot + 1;
if (frogrot == 37) {
frogrot = 1;
}
}
}
if (rot == 180) {
if (frogrot < 18) {
frogrot = frogrot + 1;
}
if (frogrot > 18) {
frogrot = frogrot - 1;
}
}
if (rot == 270) {
if (frogrot < 10) {
frogrot = frogrot - 1;
if (frogrot < 0) {
frogrot = 35;
}
} else if (frogrot > 27) {
frogrot = frogrot - 1;
} else if ((frogrot > 9) && (frogrot < 27)) {
frogrot = frogrot + 1;
}
}
thefrog.gotoAndStop(frogrot);
}
function clearbugs() {
i = 200;
while (i < 250) {
eval ("bug" + i).clip.gotoAndPlay(2);
i++;
}
}
function newlevel() {
bwait = 0;
bdelay = 5;
bub = 100;
bugs = 0;
level++;
if (level == 6) {
level = 1;
}
attachMovie("Thefrog", "thefrog", 300);
x = 250;
y = 250;
thefrog._x = x;
thefrog._y = x;
frogshad._y = y + 20;
frogshad._x = x + 20;
leftv = 0;
rightv = 0;
upv = 0;
downv = 0;
sl = 0.5;
bugscollected = 0;
clocktime = 0;
bubble = new Array();
if (level == 1) {
count = 0;
spawncount = 12;
life = 70;
timetarget = 30;
bugcount = 0;
bugtarget = 30;
bugsleft = bugtarget;
where = new Array(149, 114, 67, 152, 41, 229, 47, 301, 87, 358, 153, 398, 221, 418, 306, 445, 399, 458, 461, 421, 460, 328, 458, 274, 452, 212, 363, 205, 273, 203, 202, 202, 123, 205, 72, 205, 152, 285, 229, 347, 297, 415, 375, 451, 445, 391, 417, 327, 352, 278, 296, 236, 236, 187, 169, 136, 152, 74, 226, 51, 288, 75, 361, 127, 406, 192, 412, 258, 378, 329, 317, 369, 205, 359, 128, 279, 155, 178, 261, 152, 270, 225);
}
if (level == 2) {
count = 0;
spawncount = 10;
life = 70;
timetarget = 55;
bugcount = 0;
bugtarget = 40;
bugsleft = bugtarget;
where = new Array(173, 137, 405, 100, 422, 327, 152, 426, 139, 327, 393, 418, 199, 99, 331, 240, 90, 214, 89, 409, 382, 104, 420, 416, 281, 283, 327, 340, 137, 344, 277, 40, 420, 186, 348, 108, 24, 212, 141, 200, 124, 288, 73, 403, 266, 480, 284, 194, 271, 351, 227, 200, 208, 382, 161, 206, 431, 291, 353, 91, 126, 68, 65, 155, 97, 327, 404, 332, 84, 285, 330, 121, 97, 115, 393, 138, 62, 141, 253, 152, 401, 160, 443, 224, 400, 280, 293, 273, 58, 293, 81, 372, 128, 444, 426, 404, 424, 345, 424, 286, 419, 228, 68, 235, 76, 295, 451, 249, 427, 172, 398, 109, 357, 58, 266, 50, 151, 55, 295, 243, 105, 251, 170, 419, 211, 209, 407, 111, 449, 257, 357, 336);
}
if (level == 3) {
count = 0;
spawncount = 7;
life = 70;
timetarget = 40;
bugcount = 0;
bugtarget = 40;
bugsleft = bugtarget;
where = new Array(340, 211, 357, 277, 302, 340, 211, 358, 150, 334, 120, 269, 124, 187, 180, 137, 270, 120, 354, 140, 401, 205, 405, 280, 376, 344, 300, 396, 201, 413, 132, 384, 78, 329, 49, 247, 59, 169, 112, 103, 200, 57, 291, 42, 379, 69, 434, 125, 463, 203, 458, 279, 437, 356, 394, 409, 324, 440, 219, 460, 131, 451, 60, 374, 25, 293, 81, 253, 169, 240, 244, 233);
}
if (level == 4) {
count = 0;
spawncount = 7;
life = 70;
timetarget = 40;
bugcount = 0;
bugtarget = 80;
bugsleft = bugtarget;
where = new Array(385, 213, 430, 189, 466, 118, 440, 50, 362, 26, 296, 54, 262, 105, 226, 140, 174, 114, 147, 56, 80, 40, 33, 64, 33, 121, 80, 161, 118, 202, 139, 255, 112, 307, 51, 330, 22, 389, 65, 453, 145, 459, 194, 404, 252, 368, 312, 381, 349, 435, 399, 462, 463, 425, 460, 348, 395, 276);
}
if (level == 5) {
count = 0;
spawncount = 7;
life = 80;
timetarget = 45;
bugcount = 0;
bugtarget = 70;
bugsleft = bugtarget;
where = new Array(258, 84, 259, 438, 337, 98, 348, 457, 410, 91, 420, 451, 346, 88, 341, 450, 268, 99, 259, 457, 182, 97, 184, 461, 112, 92, 109, 470, 49, 91, 42, 458, 50, 258, 121, 321, 194, 219, 259, 326, 318, 218, 375, 322, 436, 206, 456, 330, 365, 205, 307, 324, 236, 201, 174, 310, 121, 190, 52, 309, 61, 110, 169, 364, 209, 113, 262, 363, 339, 110, 368, 357, 408, 105, 472, 359);
}
levelinfo = ((("Collect " + bugtarget) + " bugs in ") + timetarget) + " seconds";
wait = 70;
waitcount = 0;
attachMovie("levelintro", "levelintro", 310);
levelintro._x = 250;
levelintro._y = 250;
action = "levelstartwait";
}
function frameAction() {
var _local1 = this;
if (gameon == 1) {
if (tcb == undefined) {
tcb = getTimer();
}
tca = getTimer();
bbb = tca - tcb;
if ((tca - tcb) > 1000) {
a = Math.floor((clocktime / timetarget) * 100);
if (a >= 99) {
gameon = 0;
} else if (a > 74) {
_local1.clock.timetac.play();
}
clocktime++;
if (clocktime > timetarget) {
clocktime = timetarget;
action = "gameover";
}
_local1.clock.clockhand._rotation = (360 / timetarget) * clocktime;
tcb = getTimer();
}
createbug();
if (pressed > 0) {
_local1.thefrog.frog2.frog.play();
}
fw = thefrog._width;
pressed = 0;
if (Key.isDown(39)) {
rightv = rightv + 1;
pressed = 1;
rot = 90;
} else if (Key.isDown(37)) {
leftv = leftv + 1;
pressed = 1;
rot = 270;
}
if (Key.isDown(40)) {
downv = downv + 1;
pressed = 1;
rot = 180;
} else if (Key.isDown(38)) {
upv = upv + 1;
pressed = 1;
rot = 0;
}
if (leftv > 0) {
leftv = leftv - sl;
}
if (rightv > 0) {
rightv = rightv - sl;
}
if (upv > 0) {
upv = upv - sl;
}
if (downv > 0) {
downv = downv - sl;
}
x = x + rightv;
x = x - leftv;
y = y + downv;
y = y - upv;
if (x < (thefrog._width / 2)) {
x = thefrog._width / 2;
rightv = leftv * 0.5;
leftv = 0;
} else if (x > (500 - (thefrog._width / 2))) {
x = 500 - (thefrog._width / 2);
leftv = rightv * 0.5;
rightv = 0;
}
if (y < (thefrog._width / 2)) {
y = thefrog._width / 2;
downv = upv * 0.5;
upv = 0;
} else if (y > (500 - (thefrog._width / 2))) {
y = 500 - (thefrog._width / 2);
upv = downv * 0.5;
downv = 0;
} else {
aa = ((leftv + upv) + rightv) + downv;
}
rotatefrog();
thefrog._x = x;
thefrog._y = y;
frogshad._y = y + 20;
frogshad._x = x + 20;
bubbletrail();
} else if (gameon == 0) {
if (action == "level complete") {
clearbugs();
wait = 70;
waitcount = 0;
attachMovie("levelcomplete", "levelcomplete", 309);
levelcomplete._x = 250;
levelcomplete._y = 250;
action = "level congrats wait";
}
if (action == "level congrats wait") {
waitcount++;
if (waitcount > wait) {
levelcomplete.play();
action = "start";
}
}
if (action == "start") {
timedmax = 0;
tc = 0;
tc2 = 0;
action = "new level";
}
if (action == "new level") {
newlevel();
}
if (action == "levelstartwait") {
waitcount++;
if (waitcount > wait) {
levelintro.play();
action = "begin level";
}
}
if (action == "begin level") {
frogrot = 0;
rotit = 0;
gameon = 1;
}
if (action == "gameover") {
clearbugs();
wait = 70;
waitcount = 0;
attachMovie("gameover", "gameover", 309);
gameover._x = 250;
gameover._y = 250;
action = "gameover wait";
}
if (action == "gameover wait") {
waitcount++;
if (waitcount > wait) {
removeMovieClip("thefrog");
action = "gameover!!";
gameover.play();
gotoAndPlay (34);
}
}
}
}
moveit = 20;
lifeamount = 200;
buglayer = 200;
maxbugs = 25;
gameon = 0;
level = 0;
action = "start";
function bubbletrail() {
if ((((downv > 0) || (upv > 0)) || (leftv > 0)) || (rightv > 0)) {
bwait++;
if (bwait > bdelay) {
bwait = 0;
attachMovie("bubbletrail", "b" + bub, bub);
with (eval ("b" + bub)) {
_x = x;
_y = y;
_rotation = random(360);
}
bub++;
if (bub > 150) {
bub = 100;
}
}
}
}
function createbug() {
count++;
if (count > spawncount) {
bugx = where[bugs];
bugy = where[bugs + 1];
count = 0;
attachMovie("bugs", "bug" + buglayer, buglayer);
with (eval ("bug" + buglayer)) {
clip.life = lifeamount;
clip.flap = random(40) + 15;
_x = bugx;
_y = bugy;
_rotation = random(360);
}
buglayer++;
if (buglayer > 250) {
buglayer = 200;
}
bugs = bugs + 2;
if (bugs > where.length) {
bugs = 0;
}
}
}
Instance of Symbol 95 MovieClip in Frame 39
onClipEvent (enterFrame) {
_root.frameAction();
}
Frame 43
stop();
Symbol 4 MovieClip Frame 18
stop();
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 13
gotoAndStop (1);
Instance of Symbol 6 MovieClip "wing1" in Symbol 8 MovieClip Frame 1
onClipEvent (load) {
c = 0;
d = this._parent._parent.flap;
trace(d);
}
onClipEvent (enterFrame) {
c++;
if (c > d) {
this.play();
c = 0;
}
}
Symbol 12 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 10
removeMovieClip(_parent);
Symbol 12 MovieClip Frame 26
removeMovieClip(_parent);
Symbol 13 MovieClip [bugs] Frame 1
stop();
Instance of Symbol 2 MovieClip in Symbol 13 MovieClip [bugs] Frame 1
onClipEvent (load) {
played = 0;
lifex = 0;
}
onClipEvent (enterFrame) {
if (played == 0) {
tx = _parent._x;
ty = _parent._y;
a = Math.abs(tx - _root.x);
b = Math.abs(ty - _root.y);
if ((a < 30) && (b < 30)) {
_root.bugscollected++;
_root.bugsleft = _root.bugtarget - _root.bugscollected;
if (_root.bugsleft <= 0) {
_root.bugsleft = 0;
_root.action = "level complete";
_root.gameon = 0;
}
_parent.clip.gotoAndPlay(11);
played = 2;
}
lifex++;
if (lifex > _root.life) {
_parent.clip.gotoAndPlay(2);
played = 1;
}
}
}
Symbol 18 MovieClip Frame 24
stop();
Symbol 41 Button
on (press) {
gotoAndPlay (39);
}
Symbol 49 MovieClip [gameover] Frame 17
stop();
Symbol 49 MovieClip [gameover] Frame 26
removeMovieClip(this);
Symbol 56 MovieClip [levelintro] Frame 17
stop();
Symbol 56 MovieClip [levelintro] Frame 37
removeMovieClip(this);
Symbol 61 MovieClip [levelcomplete] Frame 17
stop();
Symbol 61 MovieClip [levelcomplete] Frame 37
removeMovieClip(this);
Symbol 69 MovieClip Frame 10
stop();
Symbol 71 MovieClip Frame 1
stop();
Instance of Symbol 70 MovieClip "eye" in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
_root.blink = random(30);
c = 0;
}
onClipEvent (enterFrame) {
c++;
if (c > _root.blink) {
this.blink2.play();
this.blink1.play();
_root.blink = random(60);
c = 0;
}
}
Instance of Symbol 70 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
_root.blink = random(30);
c = 0;
}
onClipEvent (enterFrame) {
c++;
if (c > _root.blink) {
this.blink2.play();
this.blink1.play();
__root.blink = random(60);
c = 0;
}
}
Symbol 73 MovieClip [Thefrog] Frame 1
stop();
Symbol 74 MovieClip [bubbletrail] Frame 17
removeMovieClip(_parent._parent);
Symbol 84 MovieClip Frame 1
stop();