Frame 1
stop();
Frame 2
var time;
var timer;
time = 0;
timer = 0;
stopAllSounds();
Instance of Symbol 38 MovieClip "rock" in Frame 2
onClipEvent (mouseDown) {
if (((velx == 0) && (vely == 0)) || ((_root.rock._x < 0) || (_root.rock._x > 600))) {
_root.rock._x = 300;
_root.rock._y = 400;
xpos = _root._xmouse - 300;
ypos = _root._ymouse - 400;
dist = Math.sqrt(Math.pow(300 - _root._xmouse, 2) + Math.pow(400 - _root._ymouse, 2));
theta = Math.atan2(ypos, xpos);
if (dist < 200) {
vel = 25 + (dist / 2);
} else {
vel = 125;
}
velx = (vel * Math.cos(theta)) / 3.5;
vely = (vel * Math.sin(theta)) / 3.5;
}
}
Frame 3
stop();
Frame 4
var timer;
timer = _root.timex.text;
gotoAndPlay (5);
Frame 5
stopAllSounds();
score.text = timer + " hours";
Frame 6
stop();
score.text = timer + " hours";
Frame 7
stop();
score.text = timer + " hours";
Symbol 15 Button
on (release) {
stopAllSounds();
gotoAndPlay (2);
}
Symbol 30 MovieClip Frame 1
wall = new Sound();
wall.attachSound("sound_wall");
var wallcount;
wallcount--;
var crunchcount;
crunchcount--;
crunch = new Sound();
crunch.attachSound("sound_crunch");
if ((((_root.rock._x > 340) && (_root.rock._x < 370)) || ((_root.rock._x < 260) && (_root.rock._x > 230))) && (_root.rock._y > 250)) {
if (wallcount < 0) {
wall.start();
wallcount = 2;
}
}
if (_root.bird._x == 800) {
if (crunchcount < 0) {
crunch.start();
}
crunchcount = 75;
}
Symbol 30 MovieClip Frame 2
wall = new Sound();
wall.attachSound("sound_wall");
var wallcount;
wallcount--;
var crunchcount;
crunchcount--;
crunch = new Sound();
crunch.attachSound("sound_crunch");
if ((((_root.rock._x > 340) && (_root.rock._x < 370)) || ((_root.rock._x < 260) && (_root.rock._x > 230))) && (_root.rock._y > 250)) {
if (wallcount < 0) {
wall.start();
wallcount = 2;
}
}
if (_root.bird._x == 800) {
if (crunchcount < 0) {
crunch.start();
}
crunchcount = 75;
}
Symbol 38 MovieClip Frame 1
eaten = 0;
var time;
time++;
timer = int(time / 24);
_root.timex.text = timer;
leftgull = new Sound();
leftgull.attachSound("sound_gull");
rightgull = new Sound();
rightgull.attachSound("sound_gull");
grass = new Sound();
grass.attachSound("sound_grass");
goose = new Sound();
goose.attachSound("sound_goose");
var goosecount;
goosecount--;
var grasscount;
grasscount--;
drip = new Sound();
drip.attachSound("sound_drip");
_root.hunger._x = _root.hunger._x - 1;
if (_root.hunger._x < -185) {
dead = 1;
_root.gotoAndPlay(3);
} else {
dead = 0;
}
var birddead;
var birdx;
var birdy;
var points;
_root.aim._x = 300;
_root.aim._y = 400;
xpos = _root._xmouse - 300;
ypos = _root._ymouse - 400;
dist = Math.sqrt(Math.pow(300 - _root._xmouse, 2) + Math.pow(400 - _root._ymouse, 2));
theta = Math.atan2(ypos, xpos);
thetad = (theta * 180) / Math.PI;
_root.aim._rotation = thetad - 90;
if (dist < 200) {
_root.bar._x = 722 - (dist / 2);
_root.full._visible = false;
} else {
_root.bar._x = 622;
_root.full._visible = true;
}
_root.rock._x = _root.rock._x + _root.rock.velx;
_root.rock._y = _root.rock._y + _root.rock.vely;
_root.rock.vely = _root.rock.vely + 1;
if (((((_root.rock._x > 340) && (_root.rock._x < 370)) && (_root.rock.velx > 0)) || (((_root.rock._x < 260) && (_root.rock._x > 230)) && (_root.rock.velx < 0))) && (_root.rock._y > 250)) {
_root.rock.velx = -1 * _root.rock.velx;
}
if ((_root.rock.vely > 0) && ((_root.rock._y > 240) && ((_root.rock._x < 250) || (_root.rock._x > 350)))) {
_root.rock.vely = -0.5 * _root.rock.vely;
_root.rock.velx = 0.8 * _root.rock.velx;
if ((_root.rock.velx < 3) && (_root.rock.velx > -3)) {
_root.rock.velx = 0;
}
if ((_root.rock.vely < 5) && (_root.rock.vely > -5)) {
_root.rock.vely = 0;
}
}
if (_root.rock._y > 450) {
_root.rock._x = -1000;
_root.rock._y = 100;
_root.velx = 0;
_root.vely = 0;
drip.start();
}
delay--;
birdtime = Math.random();
var birdscreen;
var bside;
if (!((_root.bird._x > -40) && (_root.bird._x < 640))) {
_root.bird._y = random(200);
if (delay < 0) {
if (Math.random() > 0.5) {
_root.bird._x = 625;
rightgull.start();
birddead = 0;
bside = 1;
birdy = 0;
birdx = (5 + (_root.bird._y / 40)) + (2 * Math.random());
} else {
_root.bird._x = -25;
leftgull.start();
birddead = 0;
bside = 0;
birdy = 0;
birdx = (5 + (_root.bird._y / 40)) + (2 * Math.random());
}
}
} else {
if (birddead == 0) {
if (bside == 0) {
_root.bird._x = _root.bird._x + birdx;
}
if (bside == 1) {
_root.bird._x = _root.bird._x - birdx;
}
} else {
if (bside == 0) {
_root.bird._x = _root.bird._x + birdx;
_root.bird._y = _root.bird._y - birdy;
birdy = birdy - 1;
}
if (bside == 1) {
_root.bird._x = _root.bird._x - birdx;
_root.bird._y = _root.bird._y - birdy;
birdy = birdy - 1;
}
}
delay = 24 + (48 * Math.random());
}
xdiff = Math.abs(_root.bird._x - _root.rock._x);
ydiff = Math.abs(_root.bird._y - _root.rock._y);
if ((xdiff < 33) && (ydiff < 23)) {
if (goosecount < 0) {
goose.start();
goosecount = 30;
}
_root.rock.velx = -0.1 * _root.rock.velx;
_root.rock.vely = -0.1 * _root.rock.vely;
birddead = 1;
}
if ((((_root.bird._x > 330) && (_root.bird._x < 370)) || ((_root.bird._x < 270) && (_root.bird._x > 230))) && (_root.bird._y > 250)) {
birdx = -0.8 * birdx;
} else if ((_root.bird._y > 250) && (!((_root.bird._x > 250) && (_root.bird._x < 350)))) {
_root.bird._y = 200;
_root.bird._x = 700;
}
if (_root.bird._y > 400) {
_root.bird._y = 200;
_root.bird._x = 800;
_root.hunger._x = 410;
}
if (birddead == 1) {
if (!((_root.bird._rotation = 180))) {
_root.bird._rotation = _root.bird._rotation + 0.1;
}
} else {
_root.bird._rotation = 0;
}
if (bside == 0) {
_root.bird._xscale = -100;
} else {
_root.bird._xscale = 100;
}
if ((((((_root.rock._x > 0) && (_root.rock._x < 240)) || ((_root.rock._x > 380) && (_root.rock._x < 600))) && (_root.rock._y > 235)) && (!((vely == 0) && (velx == 0)))) && (grasscount < 1)) {
grasscount = 20;
grass.setPan(0);
grass.start();
}
Symbol 38 MovieClip Frame 2
eaten = 0;
var time;
time++;
timer = int(time / 24);
_root.timex.text = timer;
leftgull = new Sound();
leftgull.attachSound("sound_gull");
rightgull = new Sound();
rightgull.attachSound("sound_gull");
grass = new Sound();
grass.attachSound("sound_grass");
goose = new Sound();
goose.attachSound("sound_goose");
var goosecount;
goosecount--;
var grasscount;
grasscount--;
drip = new Sound();
drip.attachSound("sound_drip");
_root.hunger._x = _root.hunger._x - 1;
if (_root.hunger._x < -185) {
dead = 1;
_root.gotoAndPlay(3);
} else {
dead = 0;
}
var birddead;
var birdx;
var birdy;
var points;
_root.aim._x = 300;
_root.aim._y = 400;
xpos = _root._xmouse - 300;
ypos = _root._ymouse - 400;
dist = Math.sqrt(Math.pow(300 - _root._xmouse, 2) + Math.pow(400 - _root._ymouse, 2));
theta = Math.atan2(ypos, xpos);
thetad = (theta * 180) / Math.PI;
_root.aim._rotation = thetad - 90;
if (dist < 200) {
_root.bar._x = 722 - (dist / 2);
_root.full._visible = false;
} else {
_root.bar._x = 622;
_root.full._visible = true;
}
_root.rock._x = _root.rock._x + _root.rock.velx;
_root.rock._y = _root.rock._y + _root.rock.vely;
_root.rock.vely = _root.rock.vely + 1;
if (((((_root.rock._x > 340) && (_root.rock._x < 370)) && (_root.rock.velx > 0)) || (((_root.rock._x < 260) && (_root.rock._x > 230)) && (_root.rock.velx < 0))) && (_root.rock._y > 250)) {
_root.rock.velx = -1 * _root.rock.velx;
}
if ((_root.rock.vely > 0) && ((_root.rock._y > 240) && ((_root.rock._x < 250) || (_root.rock._x > 350)))) {
_root.rock.vely = -0.5 * _root.rock.vely;
_root.rock.velx = 0.8 * _root.rock.velx;
if ((_root.rock.velx < 3) && (_root.rock.velx > -3)) {
_root.rock.velx = 0;
}
if ((_root.rock.vely < 5) && (_root.rock.vely > -5)) {
_root.rock.vely = 0;
}
}
if (_root.rock._y > 450) {
_root.rock._x = -1000;
_root.rock._y = 100;
_root.velx = 0;
_root.vely = 0;
drip.start();
}
delay--;
birdtime = Math.random();
var birdscreen;
var bside;
if (!((_root.bird._x > -40) && (_root.bird._x < 640))) {
_root.bird._y = random(200);
if (delay < 0) {
if (Math.random() > 0.5) {
_root.bird._x = 625;
rightgull.start();
birddead = 0;
bside = 1;
birdy = 0;
birdx = (5 + (_root.bird._y / 40)) + (2 * Math.random());
} else {
_root.bird._x = -25;
leftgull.start();
birddead = 0;
bside = 0;
birdy = 0;
birdx = (5 + (_root.bird._y / 40)) + (2 * Math.random());
}
}
} else {
if (birddead == 0) {
if (bside == 0) {
_root.bird._x = _root.bird._x + birdx;
}
if (bside == 1) {
_root.bird._x = _root.bird._x - birdx;
}
} else {
if (bside == 0) {
_root.bird._x = _root.bird._x + birdx;
_root.bird._y = _root.bird._y - birdy;
birdy = birdy - 1;
}
if (bside == 1) {
_root.bird._x = _root.bird._x - birdx;
_root.bird._y = _root.bird._y - birdy;
birdy = birdy - 1;
}
}
delay = 24 + (48 * Math.random());
}
xdiff = Math.abs(_root.bird._x - _root.rock._x);
ydiff = Math.abs(_root.bird._y - _root.rock._y);
if ((xdiff < 33) && (ydiff < 23)) {
if (goosecount < 0) {
goose.start();
goosecount = 30;
}
_root.rock.velx = -0.1 * _root.rock.velx;
_root.rock.vely = -0.1 * _root.rock.vely;
birddead = 1;
}
if ((((_root.bird._x > 330) && (_root.bird._x < 370)) || ((_root.bird._x < 270) && (_root.bird._x > 230))) && (_root.bird._y > 250)) {
birdx = -0.8 * birdx;
} else if ((_root.bird._y > 250) && (!((_root.bird._x > 250) && (_root.bird._x < 350)))) {
_root.bird._y = 200;
_root.bird._x = 700;
}
if (_root.bird._y > 400) {
_root.bird._y = 200;
_root.bird._x = 800;
_root.hunger._x = 410;
}
if (birddead == 1) {
if (!((_root.bird._rotation = 180))) {
_root.bird._rotation = _root.bird._rotation + 0.1;
}
} else {
_root.bird._rotation = 0;
}
if (bside == 0) {
_root.bird._xscale = -100;
} else {
_root.bird._xscale = 100;
}
if ((((((_root.rock._x > 0) && (_root.rock._x < 240)) || ((_root.rock._x > 380) && (_root.rock._x < 600))) && (_root.rock._y > 235)) && (!((vely == 0) && (velx == 0)))) && (grasscount < 1)) {
grasscount = 20;
grass.setPan(0);
grass.start();
}
Symbol 64 Button
on (release) {
gotoAndPlay (2);
}
Symbol 70 Button
on (release) {
getURL ("http://www.awesomefunny.com");
}
Symbol 72 Button
on (release) {
strText = "725" + timer;
strPW = "notfake47";
encText = "";
pwLength = strPW.length;
x = 0;
while (x < strText.length) {
i = (i % pwLength) + 1;
encText = encText + Number(strText.charCodeAt(x) ^ strPW.charCodeAt(i - 1));
encText = encText + ",";
x++;
}
strPW = "";
strText = "";
this.loadvariables("http://www.awesomefunny.com/score.php?", "POST");
gotoAndStop (7);
}