Frame 1
nocacheURL = "http://www.deluxepeople.com/show_scores.php?" + Math.floor(Math.random() * 99999);
_root.loadVariables(nocacheURL);
bubble1._visible = 0;
bubble2._visible = 0;
bubble3._visible = 0;
bubble4._visible = 0;
bubble5._visible = 0;
controls._visible = 0;
removeMovieClip("gameover");
if (isNaN(_root.personalbest)) {
_root.personalbest = 0;
}
stop();
_root.music = new Sound();
_root.music.loadSound("http://www.deluxepeople.com/eggsindanger/aggifmedia/music.mp3", true);
_root.music.onSoundComplete = function () {
_root.music.loadSound("http://www.deluxepeople.com/eggsindanger/aggifmedia/music.mp3", true);
};
function starttalking() {
var movie_sound = new Sound(this);
movie_sound.attachSound("cluck" + (random(7) + 1));
movie_sound.start();
movie_sound.onSoundComplete = function () {
movie_sound.attachSound("cluck" + (random(7) + 1));
movie_sound.start();
};
_root.intervalId = setInterval(this, "talk1", 1500);
}
function talk1() {
trace("wt" + whattalkingstage);
if (_root.whattalkingstage == 2) {
} else if (_root.whattalkingstage == 3) {
} else if (_root.whattalkingstage == 4) {
} else if (_root.whattalkingstage == 5) {
} else if (_root.whattalkingstage == 8) {
} else if (_root.whattalkingstage == 9) {
} else if (_root.whattalkingstage == 10) {
} else if (_root.whattalkingstage == 13) {
_root.actor1.talking = "no";
_root.actor2.talking = "no";
bubble5._visible = 0;
bubble4._visible = 0;
stopAllSounds();
while (_root.actor1.head.beak._currentframe != 1) {
_root.actor1.head.beak.gotoAndStop(1);
}
while (_root.actor2.head.beak._currentframe != 1) {
_root.actor2.head.beak.gotoAndStop(1);
}
_root.talkchicken1._visible = 0;
_root.actor1._visible = 1;
_root.movie_sound.onSoundComplete = function () {
};
stopAllSounds();
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/aggifara.swf", _root.aggifarafalt);
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/aggifara.swf", _root.aggifarafalt2);
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/spelaspelet.swf", _root.spelaspelet);
_root.playbutton._visible = 1;
_root.controls._visible = 1;
_root.actor1._xscale = -60;
_root.skipintro._visible = 0;
_root.actor1.leg1.gotoAndPlay("walk2");
_root.actor1.leg2.gotoAndPlay("walk1");
_root.actor1.wing1.gotoAndPlay("flying");
_root.actor1.wing2.gotoAndPlay("flying");
_root.actor2.leg2.gotoAndPlay("walk2");
_root.actor2.leg1.gotoAndPlay("walk1");
_root.actor1.onEnterFrame = function () {
_root.actor1._x = _root.actor1._x + 15;
_root.actor1shadow._x = _root.actor1._x;
_root.actor1shadow._y = _root.actor1._y + 90;
};
_root.actor2.onEnterFrame = function () {
_root.actor2._x = _root.actor2._x + 15;
_root.actor2shadow._x = _root.actor2._x;
_root.actor2shadow._y = _root.actor2._y + 122;
if (_root.actor2._x > 900) {
_root.actor1.onEnterFrame = function () {
};
_root.actor2.onEnterFrame = function () {
};
}
};
clearInterval(_root.intervalId);
}
_root.whattalkingstage = _root.whattalkingstage + 1;
}
skipintro.onRelease = function () {
stopAllSounds();
_root.actor1._visible = 0;
_root.actor2._visible = 0;
_root.actor2shadow._visible = 0;
_root.actor1shadow._visible = 0;
_root.bubble1._visible = 0;
_root.bubble2._visible = 0;
_root.bubble3._visible = 0;
_root.bubble4._visible = 0;
_root.bubble5._visible = 0;
_root.actor1.onEnterFrame = function () {
};
_root.actor2.onEnterFrame = function () {
};
removeMovieClip(_root.talkchicken1);
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/aggifara.swf", _root.aggifarafalt);
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/aggifara.swf", _root.aggifarafalt2);
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/spelaspelet.swf", _root.spelaspelet);
_root.playbutton._visible = 1;
_root.controls._visible = 1;
skipintro._visible = 0;
clearInterval(intervalId);
};
_root.whattalkingstage = 1;
_root.playbutton._visible = 0;
_root.actor1.onEnterFrame = function () {
if (_root.actor1._x > 900) {
_root.actor1.leg1.gotoAndPlay("walk2");
_root.actor1.leg2.gotoAndPlay("walk1");
}
_root.actor1._x = _root.actor1._x - 8;
if (_root.actor1._x < -200) {
_root.actor1._xscale = -40;
_root.actor1._yscale = 40;
_root.actor1.onEnterFrame = function () {
_root.actor1._x = _root.actor1._x + 10;
_root.actor1shadow._xscale = 100;
_root.actor1shadow._yscale = 100;
_root.actor1shadow._x = _root.actor1._x;
_root.actor1shadow._y = _root.actor1._y + 60;
if (_root.actor1._x > 900) {
_root.actor1.swapDepths(_root.darkness);
_root.actor1._xscale = 55;
_root.actor1._yscale = 55;
_root.actor1._y = 484;
_root.actor1.onEnterFrame = function () {
_root.actor1._x = _root.actor1._x - 10;
_root.actor1shadow._xscale = 130;
_root.actor1shadow._yscale = 130;
_root.actor1shadow._x = _root.actor1._x;
_root.actor1shadow._y = _root.actor1._y + 90;
if (_root.actor1._x < 370) {
_root.actor2._xscale = -60;
_root.actor1.leg1.gotoAndStop("standing");
_root.actor1.leg2.gotoAndStop("standing");
_root.actor1.head.beak.gotoAndPlay("talking");
bubble1._visible = 1;
_root.starttalking();
_root.attachMovie("talkchicken", "talkchicken1", _root.getNextHighestDepth());
_root.talkchicken1._xscale = _root.actor1._xscale;
_root.talkchicken1._yscale = _root.actor1._yscale;
_root.talkchicken1._x = _root.actor1._x;
_root.talkchicken1._y = _root.actor1._y;
_root.actor1._visible = 0;
_root.actor1.talking = "yes";
_root.actor1.onEnterFrame = function () {
};
if (_root.actor1.talking == "no") {
_root.actor1.head.beak.gotoAndStop(1);
}
}
_root.actor2.onEnterFrame = function () {
};
if (_root.actor2.talking == "no") {
_root.actor2.head.beak.gotoAndStop(1);
}
};
}
};
}
};
playbutton.onRelease = function () {
stopAllSounds();
nocacheURL = "http://www.deluxepeople.com/show_scores.php?" + Math.floor(Math.random() * 99999);
_root.loadVariables(nocacheURL);
_root.gotoAndStop(2);
};
liksangbutton.onRelease = function () {
getURL ("http://www.lik-sang.com/default.php?lsaid=605712", "_blank");
};
Frame 2
stopAllSounds();
_root.healthmeter = 1;
_root.music = new Sound();
_root.music.loadSound(("http://www.deluxepeople.com/eggsindanger/aggifmedia/music" + (random(4) + 2)) + ".mp3", true);
_root.music.onSoundComplete = function () {
_root.music.loadSound(("http://www.deluxepeople.com/eggsindanger/aggifmedia/music" + (random(4) + 2)) + ".mp3", true);
};
_root.chicken._xscale = 39.5;
_root.chicken2._xscale = 39.5;
_root.score = 0;
hayside1.swapDepths(999979);
hayside2.swapDepths(999978);
flasher1.swapDepths(999988);
flasher2.swapDepths(999987);
flasher3.swapDepths(999986);
flasher4.swapDepths(999985);
flasher5.swapDepths(999984);
health1.swapDepths(999995);
health2.swapDepths(999994);
health3.swapDepths(999992);
health4.swapDepths(999991);
health5.swapDepths(999990);
_root.chicken.swapDepths(80);
_root.chicken2.swapDepths(79);
_root.depth = 100;
_root.chicken.yhastighet = 0;
_root.chicken2.hastighet = 0;
_root.chicken2.yhastighet = 0;
chicken2.whatstate = "standing";
chicken2.whatstate = "standing";
controldot2._x = chicken2._x;
controldot2._y = chicken2._y + 55;
controldot._x = chicken._x;
controldot._y = chicken._y + 55;
chicken2.onPress = function () {
if (_root.steerwho != "chicken2") {
chicken2.swapDepths(81);
_root.depth = _root.depth + 1;
var thenewname = ("okbubble" + _root.depth);
_root.attachMovie("okbubble", thenewname, 996985);
eval (thenewname)._x = chicken2._x;
eval (thenewname)._y = chicken2._y - 100;
eval (thenewname).whatbirdistalking = "_root.chicken2";
_root.steerwho = "chicken2";
}
};
chicken2.onEnterFrame = function () {
if (_root.steerwho == "chicken2") {
if (Key.isDown(38)) {
if (_root.marken.hitTest(controldot2._x, controldot2._y + 2, true) || (_root.chicken.hitTest(_root.controldot2._x, _root.controldot2._y + 2, true))) {
chicken2.yhastighet = -11.5;
chicken2._y = chicken2._y - 12;
} else {
chicken2.yhastighet = chicken2.yhastighet - 0.2;
if (chicken2.whatstate != "flying") {
trace("hello");
chicken2.leg1.gotoAndStop(1);
chicken2.leg2.gotoAndStop(1);
chicken2.wing1.gotoAndPlay("flying");
chicken2.wing2.gotoAndPlay("flying");
chicken2.whatstate = "flying";
}
}
}
if (Key.isDown(40) && ((!_root.marken.hitTest(controldot2._x, controldot2._y + 5, true)) && (!_root.chicken.hitTest(_root.controldot2._x, _root.controldot2._y + 5, true)))) {
chicken2.yhastighet = chicken2.yhastighet + 0.8;
}
if (Key.isDown(37)) {
chicken2.hastighet = chicken2.hastighet - 1;
chicken2._xscale = -39.5;
if (_root.marken.hitTest(controldot2._x, controldot2._y + 5, true) || (_root.chicken.hitTest(_root.controldot2._x, _root.controldot2._y + 5, true))) {
if (chicken2.whatstate != "walking") {
chicken2.leg1.gotoAndPlay("walk2");
chicken2.leg2.gotoAndPlay("walk1");
chicken2.whatstate = "walking";
chicken2.wing1.gotoAndStop("standing");
chicken2.wing2.gotoAndStop("standing");
}
} else if (chicken2.whatstate != "flying") {
chicken2.leg1.gotoAndStop(1);
chicken2.leg2.gotoAndStop(1);
chicken2.wing1.gotoAndPlay("flying");
chicken2.wing2.gotoAndPlay("flying");
chicken2.whatstate = "flying";
}
}
if (Key.isDown(39)) {
chicken2.hastighet = chicken2.hastighet + 1;
chicken2._xscale = 39.5;
if (_root.marken.hitTest(controldot2._x, controldot2._y + 5, true) || (_root.chicken.hitTest(_root.controldot2._x, _root.controldot2._y + 5, true))) {
if (chicken2.whatstate != "walking") {
chicken2.leg1.gotoAndPlay("walk2");
chicken2.leg2.gotoAndPlay("walk1");
chicken2.whatstate = "walking";
chicken2.wing1.gotoAndStop("standing");
chicken2.wing2.gotoAndStop("standing");
}
} else if (chicken2.whatstate != "flying") {
chicken2.leg1.gotoAndStop(1);
chicken2.leg2.gotoAndStop(1);
chicken2.wing1.gotoAndPlay("flying");
chicken2.wing2.gotoAndPlay("flying");
chicken2.whatstate = "flying";
}
}
}
if ((((!Key.isDown(39)) && (!Key.isDown(37))) && (!Key.isDown(38))) || (Key.isDown(40))) {
chicken2.hastighet = chicken2.hastighet * 0.9;
chicken2.leg1.gotoAndStop(1);
chicken2.leg2.gotoAndStop(1);
chicken2.wing1.gotoAndStop(1);
chicken2.wing2.gotoAndStop(1);
chicken2.whatstate = "standing";
}
if ((!_root.marken.hitTest(_root.controldot2._x, _root.controldot2._y, true)) && (!_root.chicken.hitTest(_root.controldot2._x, _root.controldot2._y, true))) {
chicken2.yhastighet = chicken2.yhastighet + 0.5;
chicken2._y = chicken2._y - (-chicken2.yhastighet);
}
if (_root.chicken.hitTest(_root.controldot2._x, _root.controldot2._y - 2, true) || (_root.marken.hitTest(controldot2._x, controldot2._y - 2, true))) {
chicken2.wing1.gotoAndStop("standing");
chicken2.wing2.gotoAndStop("standing");
while (_root.chicken.hitTest(_root.controldot2._x, _root.controldot2._y + 2, true) || (_root.marken.hitTest(controldot2._x, controldot2._y + 2, true))) {
_root.chicken2._y = _root.chicken2._y - 1;
_root.controldot2._y = _root.controldot2._y - 1;
}
chicken2.yhastighet = 0;
}
chicken2.hastighet = chicken2.hastighet * 0.95;
if (_root.marken.hitTest(controldot2._x, controldot2._y - 2, true) && (!_root.marken.hitTest(controldot2._x, controldot2._y + 3, true))) {
while (_root.marken.hitTest(controldot2._x, controldot2._y + 1, true)) {
_root.chicken2._y = _root.chicken2._y - 1;
_root.controldot2._y = _root.controldot2._y - 1;
}
}
if (_root.marken.hitTest(_root.controldot2front._x, _root.controldot2front._y, true) || (_root.chicken.hitTest(_root.controldot2front._x, _root.controldot2front._y, true))) {
if (!_root.invbox.hitTest(_root.controldot2front._x, _root.controldot2front._y, true)) {
chicken2.hastighet = -chicken2.hastighet;
}
}
var _local3 = chicken2._x + chicken2.hastighet;
if ((_local3 < 742) && (_local3 > 8)) {
chicken2._x = chicken2._x + chicken2.hastighet;
}
controldot2._x = chicken2._x;
controldot2._y = chicken2._y + 55;
controldot2front._x = chicken2._x + (50 * int(chicken2._xscale / 39.5));
controldot2front._y = chicken2._y;
chickenshadow2._x = chicken2._x;
var _local2 = 100 * (chicken2._y / 526);
chickenshadow2._xscale = _local2;
chickenshadow2._yscale = _local2;
_root.chicken2.yorg = _root.chicken2._y;
};
function executeCallback() {
_root.depth = _root.depth + 1;
var newegg = ("egg1" + _root.depth);
_root.attachMovie("bungee", "bungee" + newegg, _root.depth);
_root.depth = _root.depth + 1;
_root.attachMovie("egg1", newegg, _root.depth);
eval (newegg)._x = random(700) + 30;
eval (newegg)._y = -100;
eval ("bungee" + newegg)._x = eval (newegg)._x;
eval ("bungee" + newegg)._y = eval (newegg)._y;
eval ("bungee" + newegg)._xscale = eval ("bungee" + newegg)._xscale + random(50);
_root.eggtimer();
}
function eggtimer() {
trace("hej");
clearInterval(intervalId);
var _local3 = 5000 - (_root.score * 100);
if (_local3 < 1000) {
_local3 = 1000;
}
intervalId = setInterval(this, "executeCallback", _local3);
}
function gameoverfunk() {
for (objects in _root) {
removeMovieClip(objects);
}
_root.depth = _root.depth + 1;
_root.attachMovie("gameover", "gameover", _root.depth);
}
function highscorefunk() {
highscoreintervalId = setInterval(this, "showscorefunk", 200);
}
function showscorefunk() {
if (_root.uppdaterat == "ja") {
clearInterval(highscoreintervalId);
_root.uppdaterat = "nej";
nocacheURL = "http://www.deluxepeople.com/show_scores.php?" + Math.floor(Math.random() * 99999);
_root.loadVariables(nocacheURL);
_root.gameover.messagebox = "";
_root.gameover.playagainbutton._visible = 1;
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/spelamera.swf", _root.gameover.spelaigenfalt);
}
}
_root.eggtimer();
stop();
_root.chicken.hastighet = 0;
_root.chicken.yhastighet = 0;
chicken.whatstate = "standing";
chicken.whatstate = "standing";
_root.steerwho = "noone";
chicken.onPress = function () {
if (_root.steerwho != "chicken") {
chicken.swapDepths(81);
_root.depth = _root.depth + 1;
var thenewname = ("okbubble" + _root.depth);
_root.attachMovie("okbubble", thenewname, 996985);
eval (thenewname)._x = chicken._x;
eval (thenewname)._y = chicken._y - 100;
eval (thenewname).whatbirdistalking = "_root.chicken";
_root.steerwho = "chicken";
}
};
chicken.onEnterFrame = function () {
if (_root.steerwho == "chicken") {
if (Key.isDown(38)) {
if (_root.marken.hitTest(controldot._x, controldot._y + 2, true) || (_root.chicken2.hitTest(_root.controldot._x, _root.controldot._y + 2, true))) {
chicken.yhastighet = -11.5;
chicken._y = chicken._y - 10;
} else {
chicken.yhastighet = chicken.yhastighet - 0.2;
if (chicken.whatstate != "flying") {
trace("hello");
chicken.leg1.gotoAndStop(1);
chicken.leg2.gotoAndStop(1);
chicken.wing1.gotoAndPlay("flying");
chicken.wing2.gotoAndPlay("flying");
chicken.whatstate = "flying";
}
}
}
if (Key.isDown(40) && ((!_root.marken.hitTest(controldot._x, controldot._y + 5, true)) && (!_root.chicken2.hitTest(_root.controldot._x, _root.controldot._y + 5, true)))) {
chicken.yhastighet = chicken.yhastighet + 0.8;
}
if (Key.isDown(37)) {
chicken.hastighet = chicken.hastighet - 1;
chicken._xscale = -39.5;
if (_root.marken.hitTest(controldot._x, controldot._y + 5, true) || (_root.chicken2.hitTest(_root.controldot._x, _root.controldot._y + 5, true))) {
if (chicken.whatstate != "walking") {
chicken.leg1.gotoAndPlay("walk2");
chicken.leg2.gotoAndPlay("walk1");
chicken.whatstate = "walking";
chicken.wing1.gotoAndStop("standing");
chicken.wing2.gotoAndStop("standing");
}
} else if (chicken.whatstate != "flying") {
chicken.leg1.gotoAndStop(1);
chicken.leg2.gotoAndStop(1);
chicken.wing1.gotoAndPlay("flying");
chicken.wing2.gotoAndPlay("flying");
chicken.whatstate = "flying";
}
}
if (Key.isDown(39)) {
chicken.hastighet = chicken.hastighet + 1;
chicken._xscale = 39.5;
if (_root.marken.hitTest(controldot._x, controldot._y + 5, true) || (_root.chicken2.hitTest(_root.controldot._x, _root.controldot._y + 5, true))) {
if (chicken.whatstate != "walking") {
chicken.leg1.gotoAndPlay("walk2");
chicken.leg2.gotoAndPlay("walk1");
chicken.whatstate = "walking";
chicken.wing1.gotoAndStop("standing");
chicken.wing2.gotoAndStop("standing");
}
} else if (chicken.whatstate != "flying") {
chicken.leg1.gotoAndStop(1);
chicken.leg2.gotoAndStop(1);
chicken.wing1.gotoAndPlay("flying");
chicken.wing2.gotoAndPlay("flying");
chicken.whatstate = "flying";
}
}
}
if ((((!Key.isDown(39)) && (!Key.isDown(37))) && (!Key.isDown(38))) || (Key.isDown(40))) {
chicken.hastighet = chicken.hastighet * 0.9;
chicken.leg1.gotoAndStop(1);
chicken.leg2.gotoAndStop(1);
chicken.wing1.gotoAndStop(1);
chicken.wing2.gotoAndStop(1);
chicken.whatstate = "standing";
}
if ((!_root.marken.hitTest(_root.controldot._x, _root.controldot._y, true)) && (!_root.chicken2.hitTest(_root.controldot._x, _root.controldot._y, true))) {
chicken.yhastighet = chicken.yhastighet + 0.5;
chicken._y = chicken._y - (-chicken.yhastighet);
}
if (_root.chicken2.hitTest(_root.controldot._x, _root.controldot._y - 2, true) || (_root.marken.hitTest(controldot._x, controldot._y - 2, true))) {
chicken.wing1.gotoAndStop("standing");
chicken.wing2.gotoAndStop("standing");
while (_root.chicken2.hitTest(_root.controldot._x, _root.controldot._y + 2, true) || (_root.marken.hitTest(controldot._x, controldot._y + 2, true))) {
_root.chicken._y = _root.chicken._y - 1;
_root.controldot._y = _root.controldot._y - 1;
}
chicken.yhastighet = 0;
}
if (_root.marken.hitTest(_root.controldotfront._x, _root.controldotfront._y, true) || (_root.chicken2.hitTest(_root.controldotfront._x, _root.controldotfront._y, true))) {
if (!_root.invbox.hitTest(_root.controldotfront._x, _root.controldotfront._y, true)) {
chicken.hastighet = -chicken.hastighet;
}
}
chicken.hastighet = chicken.hastighet * 0.95;
if (_root.marken.hitTest(controldot._x, controldot._y - 2, true) && (!_root.marken.hitTest(controldot._x, controldot._y + 3, true))) {
while (_root.marken.hitTest(controldot._x, controldot._y + 1, true)) {
_root.chicken._y = _root.chicken._y - 1;
_root.controldot._y = _root.controldot._y - 1;
}
}
var _local3 = chicken._x + chicken.hastighet;
if ((_local3 < 742) && (_local3 > 8)) {
chicken._x = chicken._x + chicken.hastighet;
}
controldot._x = chicken._x;
controldot._y = chicken._y + 55;
controldotfront._x = chicken._x + (50 * int(chicken._xscale / 39.5));
controldotfront._y = chicken._y;
chickenshadow._x = chicken._x;
var _local2 = 100 * (chicken._y / 526);
chickenshadow._xscale = _local2;
chickenshadow._yscale = _local2;
_root.chicken.yorg = _root.chicken._y;
};
Symbol 12 MovieClip Frame 8
gotoAndPlay (2);
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 8
gotoAndPlay (2);
Symbol 18 MovieClip Frame 15
gotoAndPlay (9);
Symbol 25 MovieClip Frame 6
gotoAndPlay (2);
Symbol 34 MovieClip [talkchicken] Frame 1
leg1.gotoAndPlay("standing");
leg2.gotoAndPlay("standing");
wing1.gotoAndStop("standing");
wing2.gotoAndStop("standing");
head.beak.gotoAndPlay("talking");
Symbol 34 MovieClip [talkchicken] Frame 74
head.beak.gotoAndStop(1);
_root.actor2.head.beak.gotoAndPlay("talking");
_root.bubble2._visible = 1;
_root.bubble1._visible = 0;
Symbol 34 MovieClip [talkchicken] Frame 144
head.beak.gotoAndPlay("talking");
_root.actor2.head.beak.gotoAndStop(1);
_root.bubble3._visible = 1;
_root.bubble2._visible = 0;
Symbol 34 MovieClip [talkchicken] Frame 221
_root.bubble4._visible = 1;
_root.bubble3._visible = 0;
Symbol 34 MovieClip [talkchicken] Frame 265
head.beak.gotoAndStop(1);
_root.actor2.head.beak.gotoAndPlay("talking");
_root.bubble5._visible = 1;
_root.bubble4._visible = 0;
stop();
Symbol 38 MovieClip [okbubble] Frame 1
eval (whatbirdistalking + ".head.beak").gotoAndPlay("talking");
var movie_sound = new Sound(my_mc);
movie_sound.attachSound("cluck1");
movie_sound.start();
Symbol 38 MovieClip [okbubble] Frame 10
eval (whatbirdistalking + ".head.beak").gotoAndStop("standing");
Symbol 38 MovieClip [okbubble] Frame 17
removeMovieClip(this);
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 8
gotoAndPlay (2);
Symbol 44 MovieClip [chicken] Frame 1
leg1.gotoAndPlay("standing");
leg2.gotoAndPlay("standing");
wing1.gotoAndStop("standing");
wing2.gotoAndStop("standing");
head.beak.gotoAndStop("standing");
stop();
Symbol 44 MovieClip [chicken] Frame 38
head.beak.gotoAndPlay("talking");
Symbol 44 MovieClip [chicken] Frame 74
leg1.gotoAndStop("standing");
leg2.gotoAndStop("standing");
wing1.gotoAndPlay("flying");
wing2.gotoAndPlay("flying");
head.beak.gotoAndStop("standing");
Symbol 45 MovieClip [egg1] Frame 1
var variabel = 1;
var maxvar = (random(10) + 5);
var rotationdirection = random(11);
if (rotationdirection < 5) {
rotationdirection = -1;
} else {
rotationdirection = 1;
}
var realypos = random(400);
this.onEnterFrame = function () {
_y = (_y + 20);
eval ("_root.bungee" + _name)._x = _x;
eval ("_root.bungee" + _name)._y = _y;
if (_root.controldot2front.hitTest(this) || (_root.controldotfront.hitTest(this))) {
_root.score = _root.score + 1;
removeMovieClip("_root.bungee" + _name);
gotoAndPlay (66);
}
if (realypos < _y) {
this.onEnterFrame = function () {
if (variabel < maxvar) {
variabel = variabel + 1;
} else {
variabel = -maxvar;
}
_y = (_y + variabel);
eval ("_root.bungee" + _name)._x = _x;
eval ("_root.bungee" + _name)._y = _y;
eval ("_root.bungee" + _name)._xscale = eval ("_root.bungee" + _name)._xscale - 0.2;
_rotation = (_rotation + (rotationdirection * variabel));
if (_root.controldot2front.hitTest(this) || (_root.controldotfront.hitTest(this))) {
_root.score = _root.score + 1;
removeMovieClip("_root.bungee" + _name);
gotoAndPlay (66);
}
if ((eval ("_root.bungee" + _name)._xscale < 14) && (warning._currentframe == 1)) {
warning.gotoAndPlay(2);
}
if (eval ("_root.bungee" + _name)._xscale < 5) {
removeMovieClip("_root.bungee" + _name);
this.onEnterFrame = function () {
_y = (_y + 20);
if (_root.controldot2front.hitTest(this) || (_root.controldotfront.hitTest(this))) {
_root.score = _root.score + 1;
gotoAndPlay (66);
}
if (_y > 575) {
gotoAndPlay (2);
}
};
}
};
}
};
stop();
Symbol 45 MovieClip [egg1] Frame 2
_rotation = 0;
this.onEnterFrame = function () {
_xscale = (_xscale + 1);
_yscale = (_yscale - 1);
_alpha = (_alpha - 1);
};
if (_root.healthmeter < 6) {
eval ("_root.flasher" + _root.healthmeter).play();
_root.my_color = new Color("_root.health" + _root.healthmeter);
_root.my_color.setRGB(0);
_root.healthmeter = _root.healthmeter + 1;
} else {
_root.gameoverfunk();
}
_root.chicken.head.beak.gotoAndPlay("talking");
_root.chicken2.head.beak.gotoAndPlay("talking");
var movie_sound = new Sound(this);
movie_sound.attachSound("cluck5");
movie_sound.start();
Symbol 45 MovieClip [egg1] Frame 24
_root.chicken.head.beak.gotoAndStop("standing");
_root.chicken2.head.beak.gotoAndStop("standing");
Symbol 45 MovieClip [egg1] Frame 65
removeMovieClip(this);
Symbol 45 MovieClip [egg1] Frame 66
_rotation = 0;
this.onEnterFrame = function () {
};
var movie_sound = new Sound(this);
movie_sound.attachSound("cluck" + (random(2) + 1));
movie_sound.start();
_root.chicken.head.beak.gotoAndPlay("talking");
_root.chicken2.head.beak.gotoAndPlay("talking");
Symbol 45 MovieClip [egg1] Frame 83
_root.chicken.head.beak.gotoAndStop("standing");
_root.chicken2.head.beak.gotoAndStop("standing");
Symbol 45 MovieClip [egg1] Frame 91
removeMovieClip(this);
Symbol 57 Button
on (release) {
if ((newplayer != "") && (newplayer != undefined)) {
var score = _root.score;
var num = _root.num;
var lowscore = _root.lowscore;
loadVariables ("http://www.deluxepeople.com/update_scores.php", _root, "POST");
_root.gameover.enternamemovie._visible = 0;
_root.gameover.messagebox = "S\u00E4nder data!!";
_root.highscorefunk();
}
}
Symbol 66 MovieClip [gameover] Frame 1
enternamemovie._visible = 0;
nocacheURL = "http://www.deluxepeople.com/show_scores.php?" + Math.floor(Math.random() * 99999);
_root.loadVariables(nocacheURL);
score = _root.score;
liksangbutton.onRelease = function () {
getURL ("http://www.lik-sang.com/default.php?lsaid=605712", "_blank");
};
stopAllSounds();
if (_root.personalbest < _root.score) {
_root.personalbest = _root.score;
}
if ((_root.score > _root.lowscore) || (_root.num < 10)) {
enternamemovie._visible = 1;
playagainbutton._visible = 0;
} else {
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/spelamera.swf", this.spelaigenfalt);
}
_root.chicken._visible = 0;
_root.chicken2._visible = 0;
_root.chickenshadow._visible = 0;
_root.chickenshadow2._visible = 0;
loadMovie ("http://www.deluxepeople.com/eggsindanger/aggifmedia/gameovermovie.swf", this.controldot);
playagainbutton.onRelease = function () {
_root.gotoAndStop(1);
};
clearInterval(_root.intervalId);
Instance of Symbol 60 MovieClip "enternamemovie" in Symbol 66 MovieClip [gameover] Frame 1
onClipEvent (data) {
_root.gotoAndStop(20);
}
Symbol 66 MovieClip [gameover] Frame 2
chicken.head.beak.gotoAndPlay("talking");
var movie_sound = new Sound(this);
movie_sound.attachSound("cluck5");
movie_sound.start();
Symbol 66 MovieClip [gameover] Frame 17
chicken.head.beak.gotoAndStop("standing");
Symbol 66 MovieClip [gameover] Frame 33
chicken.head.beak.gotoAndPlay("talking");
var movie_sound = new Sound(this);
movie_sound.attachSound("cluck2");
movie_sound.start();
Symbol 66 MovieClip [gameover] Frame 52
chicken.head.beak.gotoAndStop("standing");
Symbol 66 MovieClip [gameover] Frame 88
stop();
Symbol 88 MovieClip Frame 1
head.beak.gotoAndStop(1);
Symbol 108 MovieClip Frame 126
stop();
Symbol 123 MovieClip Frame 1
stop();